diff options
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/getdents.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/getdents64.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/syscalls.h | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/write.c | 5 |
4 files changed, 2 insertions, 8 deletions
diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c index 4db513a62..f7f3a2f12 100644 --- a/libc/sysdeps/linux/common/getdents.c +++ b/libc/sysdeps/linux/common/getdents.c @@ -61,7 +61,7 @@ ssize_t attribute_hidden __getdents (int fd, char *buf, size_t nbytes) dp = (struct dirent *) buf; skdp = kdp = alloca (red_nbytes); - retval = __syscall_getdents(fd, (char *)kdp, red_nbytes); + retval = __syscall_getdents(fd, (unsigned char *)kdp, red_nbytes); if (retval == -1) return -1; diff --git a/libc/sysdeps/linux/common/getdents64.c b/libc/sysdeps/linux/common/getdents64.c index f65e9e70b..6eb5418a0 100644 --- a/libc/sysdeps/linux/common/getdents64.c +++ b/libc/sysdeps/linux/common/getdents64.c @@ -66,7 +66,7 @@ ssize_t attribute_hidden __getdents64 (int fd, char *buf, size_t nbytes) dp = (struct dirent64 *) buf; skdp = kdp = alloca (red_nbytes); - retval = __syscall_getdents64(fd, (char *)kdp, red_nbytes); + retval = __syscall_getdents64(fd, (unsigned char *)kdp, red_nbytes); if (retval == -1) return -1; diff --git a/libc/sysdeps/linux/common/syscalls.h b/libc/sysdeps/linux/common/syscalls.h index 743ac8a74..88d9b4dcf 100644 --- a/libc/sysdeps/linux/common/syscalls.h +++ b/libc/sysdeps/linux/common/syscalls.h @@ -21,7 +21,6 @@ */ #define _GNU_SOURCE -#define _LARGEFILE64_SOURCE #include <features.h> #include <errno.h> #include <sys/types.h> diff --git a/libc/sysdeps/linux/common/write.c b/libc/sysdeps/linux/common/write.c index 8a1d57a82..651365fed 100644 --- a/libc/sysdeps/linux/common/write.c +++ b/libc/sysdeps/linux/common/write.c @@ -14,8 +14,3 @@ attribute_hidden _syscall3(ssize_t, __write, int, fd, const __ptr_t, buf, size_t, count); strong_alias(__write,write) weak_alias(__write,__libc_write) -#if 0 -/* Stupid libgcc.a from gcc 2.95.x uses __write in pure.o - * which is a blatent GNU libc-ism... */ -weak_alias(__libc_write, __write) -#endif |