svn commit: trunk/uClibc/libc/stdlib

psm at uclibc.org psm at uclibc.org
Fri Dec 9 20:55:31 UTC 2005


Author: psm
Date: 2005-12-09 12:54:50 -0800 (Fri, 09 Dec 2005)
New Revision: 12786

Log:
hidden initstate_r and use

Modified:
   trunk/uClibc/libc/stdlib/random.c
   trunk/uClibc/libc/stdlib/random_r.c


Changeset:
Modified: trunk/uClibc/libc/stdlib/random.c
===================================================================
--- trunk/uClibc/libc/stdlib/random.c	2005-12-09 20:51:48 UTC (rev 12785)
+++ trunk/uClibc/libc/stdlib/random.c	2005-12-09 20:54:50 UTC (rev 12786)
@@ -25,6 +25,7 @@
 #define random_r __random_r
 #define srandom_r __srandom_r
 #define setstate_r __setstate_r
+#define initstate_r __initstate_r
 
 #define _GNU_SOURCE
 #include <features.h>

Modified: trunk/uClibc/libc/stdlib/random_r.c
===================================================================
--- trunk/uClibc/libc/stdlib/random_r.c	2005-12-09 20:51:48 UTC (rev 12785)
+++ trunk/uClibc/libc/stdlib/random_r.c	2005-12-09 20:54:50 UTC (rev 12786)
@@ -258,11 +258,7 @@
    Note: The first thing we do is save the current state, if any, just like
    setstate so that it doesn't matter when initstate is called.
    Returns a pointer to the old state.  */
-int initstate_r (seed, arg_state, n, buf)
-     unsigned int seed;
-     char *arg_state;
-     size_t n;
-     struct random_data *buf;
+int attribute_hidden __initstate_r (unsigned int seed, char *arg_state, size_t n, struct random_data *buf)
 {
     int type;
     int degree;
@@ -310,6 +306,7 @@
     __set_errno (EINVAL);
     return -1;
 }
+strong_alias(__initstate_r,initstate_r)
 
 /* Restore the state from the given state array.
    Note: It is important that we also remember the locations of the pointers




More information about the uClibc-cvs mailing list