summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-03 01:46:10 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-03 01:46:10 +0000
commitf3d0a06707ada65fef1ab83ac00cf9084a4cbebb (patch)
treebe9408bee7eaf77b66b9e21d9a0962bf0fb06bb2 /libc
parentc885bf5cf94a12202f849477a845d728cbd12889 (diff)
Hide setstate_r, test
Diffstat (limited to 'libc')
-rw-r--r--libc/stdlib/random.c1
-rw-r--r--libc/stdlib/random_r.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/libc/stdlib/random.c b/libc/stdlib/random.c
index 3ffa50690..28f3cd24d 100644
--- a/libc/stdlib/random.c
+++ b/libc/stdlib/random.c
@@ -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>
diff --git a/libc/stdlib/random_r.c b/libc/stdlib/random_r.c
index 9e203f0d5..0733bf900 100644
--- a/libc/stdlib/random_r.c
+++ b/libc/stdlib/random_r.c
@@ -319,7 +319,7 @@ fail:
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 @@ fail:
__set_errno (EINVAL);
return -1;
}
+strong_alias(__setstate_r,setstate_r)