svn commit: trunk/uClibc/libc/stdlib

psm at uclibc.org psm at uclibc.org
Sat Dec 3 01:46:11 UTC 2005


Author: psm
Date: 2005-12-02 17:46:10 -0800 (Fri, 02 Dec 2005)
New Revision: 12655

Log:
Hide setstate_r, test

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-03 00:34:49 UTC (rev 12654)
+++ trunk/uClibc/libc/stdlib/random.c	2005-12-03 01:46:10 UTC (rev 12655)
@@ -24,6 +24,7 @@
 
 #define random_r __random_r
 #define srandom_r __srandom_r
+#define setstate_r __setstate_r
 
 #define _GNU_SOURCE
 #include <features.h>

Modified: trunk/uClibc/libc/stdlib/random_r.c
===================================================================
--- trunk/uClibc/libc/stdlib/random_r.c	2005-12-03 00:34:49 UTC (rev 12654)
+++ trunk/uClibc/libc/stdlib/random_r.c	2005-12-03 01:46:10 UTC (rev 12655)
@@ -319,7 +319,7 @@
    to the order in which things are done, it is OK to call setstate with the
    same state as the current state
    Returns a pointer to the old state information.  */
-int setstate_r (char *arg_state, struct random_data *buf)
+int attribute_hidden __setstate_r (char *arg_state, struct random_data *buf)
 {
     int32_t *new_state = 1 + (int32_t *) arg_state;
     int type;
@@ -362,3 +362,4 @@
     __set_errno (EINVAL);
     return -1;
 }
+strong_alias(__setstate_r,setstate_r)




More information about the uClibc-cvs mailing list