diff options
Diffstat (limited to 'libc/stdlib')
-rw-r--r-- | libc/stdlib/arc4random.c | 16 | ||||
-rw-r--r-- | libc/stdlib/erand48_r.c | 2 | ||||
-rw-r--r-- | libc/stdlib/getenv.c | 2 | ||||
-rw-r--r-- | libc/stdlib/grantpt.c | 2 | ||||
-rw-r--r-- | libc/stdlib/jrand48_r.c | 2 | ||||
-rw-r--r-- | libc/stdlib/malloc-simple/calloc.c | 2 | ||||
-rw-r--r-- | libc/stdlib/malloc-simple/free.c | 2 | ||||
-rw-r--r-- | libc/stdlib/malloc-simple/malloc.c | 2 | ||||
-rw-r--r-- | libc/stdlib/malloc-simple/memalign.c | 2 | ||||
-rw-r--r-- | libc/stdlib/malloc-simple/realloc.c | 2 | ||||
-rw-r--r-- | libc/stdlib/malloc-standard/malloc.h | 2 | ||||
-rw-r--r-- | libc/stdlib/malloc/heap.h | 10 | ||||
-rw-r--r-- | libc/stdlib/malloc/heap_alloc.c | 2 | ||||
-rw-r--r-- | libc/stdlib/malloc/heap_alloc_at.c | 2 | ||||
-rw-r--r-- | libc/stdlib/malloc/heap_free.c | 2 | ||||
-rw-r--r-- | libc/stdlib/nrand48_r.c | 2 | ||||
-rw-r--r-- | libc/stdlib/ptsname.c | 2 | ||||
-rw-r--r-- | libc/stdlib/random_r.c | 2 | ||||
-rw-r--r-- | libc/stdlib/stdlib.c | 4 | ||||
-rw-r--r-- | libc/stdlib/system.c | 2 |
20 files changed, 32 insertions, 32 deletions
diff --git a/libc/stdlib/arc4random.c b/libc/stdlib/arc4random.c index 836b79f6c..bf6a4cd30 100644 --- a/libc/stdlib/arc4random.c +++ b/libc/stdlib/arc4random.c @@ -52,13 +52,13 @@ struct arc4_stream { static int rs_initialized; static struct arc4_stream rs; -static inline void arc4_init(struct arc4_stream *); -static inline void arc4_addrandom(struct arc4_stream *, u_char *, int); +static __inline__ void arc4_init(struct arc4_stream *); +static __inline__ void arc4_addrandom(struct arc4_stream *, u_char *, int); static void arc4_stir(struct arc4_stream *); -static inline uint8_t arc4_getbyte(struct arc4_stream *); -static inline uint32_t arc4_getword(struct arc4_stream *); +static __inline__ uint8_t arc4_getbyte(struct arc4_stream *); +static __inline__ uint32_t arc4_getword(struct arc4_stream *); -static inline void +static __inline__ void arc4_init(as) struct arc4_stream *as; { @@ -70,7 +70,7 @@ arc4_init(as) as->j = 0; } -static inline void +static __inline__ void arc4_addrandom(as, dat, datlen) struct arc4_stream *as; u_char *dat; @@ -141,7 +141,7 @@ arc4_stir(as) arc4_getbyte(as); } -static inline uint8_t +static __inline__ uint8_t arc4_getbyte(as) struct arc4_stream *as; { @@ -156,7 +156,7 @@ arc4_getbyte(as) return (as->s[(si + sj) & 0xff]); } -static inline uint32_t +static __inline__ uint32_t arc4_getword(as) struct arc4_stream *as; { diff --git a/libc/stdlib/erand48_r.c b/libc/stdlib/erand48_r.c index 3dd0dfdf0..42db6f74b 100644 --- a/libc/stdlib/erand48_r.c +++ b/libc/stdlib/erand48_r.c @@ -21,7 +21,7 @@ #include <stdlib.h> #include <limits.h> -extern int __drand48_iterate(unsigned short xsubi[3], +extern int __drand48_iterate(unsigned short xsubi[3], struct drand48_data *buffer) attribute_hidden; libc_hidden_proto(erand48_r) diff --git a/libc/stdlib/getenv.c b/libc/stdlib/getenv.c index 230ec0051..7b3df7e64 100644 --- a/libc/stdlib/getenv.c +++ b/libc/stdlib/getenv.c @@ -12,7 +12,7 @@ libc_hidden_proto(getenv) /* Experimentally off - libc_hidden_proto(memcmp) */ /* Experimentally off - libc_hidden_proto(strlen) */ -/* IEEE Std 1003.1-2001 says getenv need not be thread safe, so +/* IEEE Std 1003.1-2001 says getenv need not be thread safe, so * don't bother locking access to __environ */ char *getenv(const char *var) { diff --git a/libc/stdlib/grantpt.c b/libc/stdlib/grantpt.c index 2c59cd678..b60ffe7dc 100644 --- a/libc/stdlib/grantpt.c +++ b/libc/stdlib/grantpt.c @@ -58,7 +58,7 @@ grantpt (attribute_unused int fd) if (pts_name (fd, &buf, sizeof (_buf))) return -1; - + if (statfs (buf, &fsbuf) < 0) return -1; diff --git a/libc/stdlib/jrand48_r.c b/libc/stdlib/jrand48_r.c index 912f70c4f..fe77c3c38 100644 --- a/libc/stdlib/jrand48_r.c +++ b/libc/stdlib/jrand48_r.c @@ -19,7 +19,7 @@ #include <stdlib.h> -extern int __drand48_iterate(unsigned short xsubi[3], +extern int __drand48_iterate(unsigned short xsubi[3], struct drand48_data *buffer) attribute_hidden; libc_hidden_proto(jrand48_r) diff --git a/libc/stdlib/malloc-simple/calloc.c b/libc/stdlib/malloc-simple/calloc.c index 75edff86d..b40489644 100644 --- a/libc/stdlib/malloc-simple/calloc.c +++ b/libc/stdlib/malloc-simple/calloc.c @@ -1,4 +1,4 @@ -/* +/* * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. diff --git a/libc/stdlib/malloc-simple/free.c b/libc/stdlib/malloc-simple/free.c index 553a6bfc8..3fc7a969e 100644 --- a/libc/stdlib/malloc-simple/free.c +++ b/libc/stdlib/malloc-simple/free.c @@ -1,4 +1,4 @@ -/* +/* * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. diff --git a/libc/stdlib/malloc-simple/malloc.c b/libc/stdlib/malloc-simple/malloc.c index 61f33d871..1ad8ca2ff 100644 --- a/libc/stdlib/malloc-simple/malloc.c +++ b/libc/stdlib/malloc-simple/malloc.c @@ -1,4 +1,4 @@ -/* +/* * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. diff --git a/libc/stdlib/malloc-simple/memalign.c b/libc/stdlib/malloc-simple/memalign.c index 24b7ab9c5..d7ee35297 100644 --- a/libc/stdlib/malloc-simple/memalign.c +++ b/libc/stdlib/malloc-simple/memalign.c @@ -1,4 +1,4 @@ -/* +/* * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. diff --git a/libc/stdlib/malloc-simple/realloc.c b/libc/stdlib/malloc-simple/realloc.c index de9675d59..b116ab112 100644 --- a/libc/stdlib/malloc-simple/realloc.c +++ b/libc/stdlib/malloc-simple/realloc.c @@ -1,4 +1,4 @@ -/* +/* * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. diff --git a/libc/stdlib/malloc-standard/malloc.h b/libc/stdlib/malloc-standard/malloc.h index 85f9e2125..e87d34758 100644 --- a/libc/stdlib/malloc-standard/malloc.h +++ b/libc/stdlib/malloc-standard/malloc.h @@ -629,7 +629,7 @@ nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ as a malloc_chunk. This avoids special-casing for headers. But to conserve space and improve locality, we allocate only the fd/bk pointers of bins, and then use repositioning tricks - to treat these as the fields of a malloc_chunk*. + to treat these as the fields of a malloc_chunk*. */ typedef struct malloc_chunk* mbinptr; diff --git a/libc/stdlib/malloc/heap.h b/libc/stdlib/malloc/heap.h index 38ec41cbf..6505cd223 100644 --- a/libc/stdlib/malloc/heap.h +++ b/libc/stdlib/malloc/heap.h @@ -141,7 +141,7 @@ extern void __heap_check (struct heap *heap, const char *str); /* Delete the free-area FA from HEAP. */ -static inline void +static __inline__ void __heap_delete (struct heap *heap, struct heap_free_area *fa) { if (fa->next) @@ -156,7 +156,7 @@ __heap_delete (struct heap *heap, struct heap_free_area *fa) /* Link the free-area FA between the existing free-area's PREV and NEXT in HEAP. PREV and NEXT may be 0; if PREV is 0, FA is installed as the first free-area. */ -static inline void +static __inline__ void __heap_link_free_area (struct heap *heap, struct heap_free_area *fa, struct heap_free_area *prev, struct heap_free_area *next) @@ -175,7 +175,7 @@ __heap_link_free_area (struct heap *heap, struct heap_free_area *fa, /* Update the mutual links between the free-areas PREV and FA in HEAP. PREV may be 0, in which case FA is installed as the first free-area (but FA may not be 0). */ -static inline void +static __inline__ void __heap_link_free_area_after (struct heap *heap, struct heap_free_area *fa, struct heap_free_area *prev) @@ -191,7 +191,7 @@ __heap_link_free_area_after (struct heap *heap, free-area's PREV and NEXT in HEAP, and return a pointer to its header. PREV and NEXT may be 0; if PREV is 0, MEM is installed as the first free-area. */ -static inline struct heap_free_area * +static __inline__ struct heap_free_area * __heap_add_free_area (struct heap *heap, void *mem, size_t size, struct heap_free_area *prev, struct heap_free_area *next) @@ -209,7 +209,7 @@ __heap_add_free_area (struct heap *heap, void *mem, size_t size, /* Allocate SIZE bytes from the front of the free-area FA in HEAP, and return the amount actually allocated (which may be more than SIZE). */ -static inline size_t +static __inline__ size_t __heap_free_area_alloc (struct heap *heap, struct heap_free_area *fa, size_t size) { diff --git a/libc/stdlib/malloc/heap_alloc.c b/libc/stdlib/malloc/heap_alloc.c index f8d596506..9f5fd6c1a 100644 --- a/libc/stdlib/malloc/heap_alloc.c +++ b/libc/stdlib/malloc/heap_alloc.c @@ -27,7 +27,7 @@ __heap_alloc (struct heap *heap, size_t *size) void *mem = 0; _size = HEAP_ADJUST_SIZE (_size); - + if (_size < sizeof (struct heap_free_area)) /* Because we sometimes must use a freed block to hold a free-area node, we must make sure that every allocated block can hold one. */ diff --git a/libc/stdlib/malloc/heap_alloc_at.c b/libc/stdlib/malloc/heap_alloc_at.c index 296c6e552..a65140fea 100644 --- a/libc/stdlib/malloc/heap_alloc_at.c +++ b/libc/stdlib/malloc/heap_alloc_at.c @@ -32,7 +32,7 @@ __heap_alloc_at (struct heap *heap, void *mem, size_t size) for (fa = heap->free_areas; fa; fa = fa->next) { void *fa_mem = HEAP_FREE_AREA_START (fa); - if (fa_mem <= mem) + if (fa_mem <= mem) { if (fa_mem == mem && fa->size >= size) /* FA has the right addr, and is big enough! */ diff --git a/libc/stdlib/malloc/heap_free.c b/libc/stdlib/malloc/heap_free.c index 8bc740dd8..1c4634c55 100644 --- a/libc/stdlib/malloc/heap_free.c +++ b/libc/stdlib/malloc/heap_free.c @@ -72,7 +72,7 @@ __heap_free (struct heap *heap, void *mem, size_t size) /* The new descriptor is at the end of the extended block, SIZE bytes later than the old descriptor. */ fa = (struct heap_free_area *)((char *)fa + size); - /* Update links with the neighbors in the list. */ + /* Update links with the neighbors in the list. */ __heap_link_free_area (heap, fa, prev_fa, next_fa); } } diff --git a/libc/stdlib/nrand48_r.c b/libc/stdlib/nrand48_r.c index f45cb1132..63b0ac8ef 100644 --- a/libc/stdlib/nrand48_r.c +++ b/libc/stdlib/nrand48_r.c @@ -19,7 +19,7 @@ #include <stdlib.h> -extern int __drand48_iterate(unsigned short xsubi[3], +extern int __drand48_iterate(unsigned short xsubi[3], struct drand48_data *buffer) attribute_hidden; libc_hidden_proto(nrand48_r) diff --git a/libc/stdlib/ptsname.c b/libc/stdlib/ptsname.c index 1fd516234..bd9c3cab2 100644 --- a/libc/stdlib/ptsname.c +++ b/libc/stdlib/ptsname.c @@ -55,7 +55,7 @@ libc_hidden_proto(stat) terminal devices. As of Linux 2.1.115 these are no longer supported. They have been replaced by major numbers 2 (masters) and 3 (slaves). */ - + /* The are declared in getpt.c. */ extern const char __libc_ptyname1[] attribute_hidden; extern const char __libc_ptyname2[] attribute_hidden; diff --git a/libc/stdlib/random_r.c b/libc/stdlib/random_r.c index e95653545..ca80a7808 100644 --- a/libc/stdlib/random_r.c +++ b/libc/stdlib/random_r.c @@ -121,7 +121,7 @@ static const struct random_poly_info random_poly_info = - + /* If we are using the trivial TYPE_0 R.N.G., just do the old linear congruential bit. Otherwise, we do our fancy trinomial stuff, which is the same in all the other cases due to all the global variables that have been diff --git a/libc/stdlib/stdlib.c b/libc/stdlib/stdlib.c index a864dd574..0ebe3b9f9 100644 --- a/libc/stdlib/stdlib.c +++ b/libc/stdlib/stdlib.c @@ -35,7 +35,7 @@ #define _ISOC99_SOURCE /* for ULLONG primarily... */ #include <limits.h> #include <stdint.h> -/* Work around gcc's refusal to create aliases. +/* Work around gcc's refusal to create aliases. * TODO: Add in a define to disable the aliases? */ #if UINT_MAX == ULONG_MAX @@ -267,7 +267,7 @@ strong_alias(llabs,imaxabs) /**********************************************************************/ #ifdef L_atoi -#if INT_MAX < LONG_MAX +#if INT_MAX < LONG_MAX libc_hidden_proto(strtol) diff --git a/libc/stdlib/system.c b/libc/stdlib/system.c index 5b8feacf2..2c55e4ece 100644 --- a/libc/stdlib/system.c +++ b/libc/stdlib/system.c @@ -27,7 +27,7 @@ libc_hidden_proto(vfork) /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */ #include <sys/syscall.h> #ifndef __NR_vfork -# define vfork fork +# define vfork fork libc_hidden_proto(fork) #endif |