Gentoo Archives: gentoo-commits

From: "Sven Wegener (swegener)" <swegener@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-benchmarks/tiobench/files: 0.3.3-glibc-2.16.patch
Date: Sun, 04 Nov 2012 22:46:44
Message-Id: 20121104224626.A7A8E20066@flycatcher.gentoo.org
1 swegener 12/11/04 22:46:26
2
3 Added: 0.3.3-glibc-2.16.patch
4 Log:
5 Rename aligned_alloc to tio_aligned_alloc, bug #429912.
6
7 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 0x64D4CF24)
8
9 Revision Changes Path
10 1.1 app-benchmarks/tiobench/files/0.3.3-glibc-2.16.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/tiobench/files/0.3.3-glibc-2.16.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-benchmarks/tiobench/files/0.3.3-glibc-2.16.patch?rev=1.1&content-type=text/plain
14
15 Index: 0.3.3-glibc-2.16.patch
16 ===================================================================
17 diff -Nur tiobench-0.3.3.orig/tiotest.c tiobench-0.3.3/tiotest.c
18 --- tiobench-0.3.3.orig/tiotest.c 2001-03-05 02:34:00.000000000 +0000
19 +++ tiobench-0.3.3/tiotest.c 2012-11-04 22:44:41.695677071 +0000
20 @@ -31,7 +31,7 @@
21 */
22 ArgumentOptions args;
23
24 -static void * aligned_alloc(ssize_t size)
25 +static void * tio_aligned_alloc(ssize_t size)
26 {
27 caddr_t a;
28 a = mmap((caddr_t )0, size,
29 @@ -281,7 +281,7 @@
30 pthread_attr_setscope(&(d->threads[i].thread_attr),
31 PTHREAD_SCOPE_SYSTEM);
32
33 - d->threads[i].buffer = aligned_alloc( d->threads[i].blockSize );
34 + d->threads[i].buffer = tio_aligned_alloc( d->threads[i].blockSize );
35 if( d->threads[i].buffer == NULL )
36 {
37 perror("Error allocating memory");