summaryrefslogtreecommitdiff
path: root/libc/unistd/confstr.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
commitaf0172162f7c653cad6a11ed1c1a5459bc154465 (patch)
tree70031dad1e7286d58762da7b9e3d3f93d043c278 /libc/unistd/confstr.c
parentc8609543a9a8bf6559c2931dbbef6b3c41b3fbf2 (diff)
hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing headers, other jump relocs removed
Diffstat (limited to 'libc/unistd/confstr.c')
-rw-r--r--libc/unistd/confstr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/unistd/confstr.c b/libc/unistd/confstr.c
index bfaecb198..8d1c8d303 100644
--- a/libc/unistd/confstr.c
+++ b/libc/unistd/confstr.c
@@ -21,6 +21,8 @@
#include <unistd.h>
#include <string.h>
+libc_hidden_proto(memcpy)
+
#define CS_PATH "/bin:/usr/bin"
/* If BUF is not NULL and LEN > 0, fill in at most LEN - 1 bytes
@@ -48,10 +50,10 @@ size_t confstr ( int name, char *buf, size_t len)
if (len > 0 && buf != NULL)
{
if (string_len <= len)
- __memcpy (buf, string, string_len);
+ memcpy (buf, string, string_len);
else
{
- __memcpy (buf, string, len - 1);
+ memcpy (buf, string, len - 1);
buf[len - 1] = '\0';
}
}