diff options
author | Roland McGrath <roland@gnu.org> | 1996-06-23 01:31:00 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-06-23 01:31:00 +0000 |
commit | 7f8116797fdb967571c00ec1d5b19d9d06813445 (patch) | |
tree | 495028d64d6496045a2da2af2176ef29d2e9d1e6 /sysdeps | |
parent | 072ebcefb24864ff922bc83f8aa270b799c73ba6 (diff) | |
download | glibc-7f8116797fdb967571c00ec1d5b19d9d06813445.zip glibc-7f8116797fdb967571c00ec1d5b19d9d06813445.tar.gz glibc-7f8116797fdb967571c00ec1d5b19d9d06813445.tar.bz2 |
Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>glibc-1.92cvs/libc-960624cvs/libc-960623cvs/libc-1-92
* Version 1.92 test release.
Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
to klogctl to match prototype in sys/klog.h.
* sysdeps/posix/libc_fatal.c: Add include of <string.h>.
* sysdeps/unix/sysv/linux/gethostid.c: Ditto.
* sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
Remove. Code is now part of __getcwd again. The old function
never really worked for anything but THISDIR==".".
* sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
only when building ELF version of library.
* libio/libioP.h (_IO_vscanf): Add prototype.
* posix/unistd.h (syscall): Change sysno arg and return value
to int long.
* version.h (VERSION): Updated to 1.92.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/alpha/Makefile | 2 | ||||
-rw-r--r-- | sysdeps/posix/getcwd.c | 29 | ||||
-rw-r--r-- | sysdeps/posix/libc_fatal.c | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/gethostid.c | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/syscalls.list | 2 |
5 files changed, 12 insertions, 23 deletions
diff --git a/sysdeps/alpha/Makefile b/sysdeps/alpha/Makefile index a9f12d1..6aaedea 100644 --- a/sysdeps/alpha/Makefile +++ b/sysdeps/alpha/Makefile @@ -30,7 +30,9 @@ endif # gnulib ifeq ($(subdir),elf) # The ld.so code cannot use literals until it self-relocates. + ifeq ($(elf),yes) CFLAGS-rtld.c = -mbuild-constants + endif # The rest of ld.so shouldn't use FP regs for block moves so # that the lazy link trampoline doesn't have to save them. sysdep-CFLAGS += -mno-fp-regs diff --git a/sysdeps/posix/getcwd.c b/sysdeps/posix/getcwd.c index 05f626f..af858a2 100644 --- a/sysdeps/posix/getcwd.c +++ b/sysdeps/posix/getcwd.c @@ -180,15 +180,18 @@ extern char *alloca (); #define __lstat stat #endif -/* Get the canonical absolute name of the named directory, and put it in SIZE +#ifndef _LIBC +#define __getcwd getcwd +#endif + +/* Get the pathname of the current working directory, and put it in SIZE bytes of BUF. Returns NULL if the directory couldn't be determined or SIZE was too small. If successful, returns BUF. In GNU, if BUF is NULL, an array is allocated with `malloc'; the array is SIZE bytes long, unless SIZE <= 0, in which case it is as big as necessary. */ char * -__canonicalize_directory_name_internal (thisdir, buf, size) - const char *thisdir; +__getcwd (buf, size) char *buf; size_t size; { @@ -227,7 +230,7 @@ __canonicalize_directory_name_internal (thisdir, buf, size) pathp = path + size; *--pathp = '\0'; - if (__lstat (thisdir, &st) < 0) + if (__lstat (".", &st) < 0) return NULL; thisdev = st.st_dev; thisino = st.st_ino; @@ -366,24 +369,6 @@ __canonicalize_directory_name_internal (thisdir, buf, size) free ((__ptr_t) dotlist); return NULL; } - -/* Get the pathname of the current working directory, and put it in SIZE - bytes of BUF. Returns NULL if the directory couldn't be determined or - SIZE was too small. If successful, returns BUF. In GNU, if BUF is - NULL, an array is allocated with `malloc'; the array is SIZE bytes long, - unless SIZE <= 0, in which case it is as big as necessary. */ - -#ifndef _LIBC -#define __getcwd getcwd -#endif - -char * -__getcwd (buf, size) - char *buf; - size_t size; -{ - return __canonicalize_directory_name_internal (".", buf, size); -} #ifdef _LIBC weak_alias (__getcwd, getcwd) diff --git a/sysdeps/posix/libc_fatal.c b/sysdeps/posix/libc_fatal.c index 5539516..22f6c4c 100644 --- a/sysdeps/posix/libc_fatal.c +++ b/sysdeps/posix/libc_fatal.c @@ -21,6 +21,7 @@ Cambridge, MA 02139, USA. */ #include <unistd.h> #include <errno.h> #include <sysdep.h> +#include <string.h> #ifdef FATAL_PREPARE_INCLUDE #include FATAL_PREPARE_INCLUDE diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c index 5fd25ba..2883441 100644 --- a/sysdeps/unix/sysv/linux/gethostid.c +++ b/sysdeps/unix/sysv/linux/gethostid.c @@ -49,6 +49,7 @@ sethostid (id) } #else +# include <string.h> # include <sys/param.h> # include <resolv/netdb.h> # include <netinet/in.h> diff --git a/sysdeps/unix/sysv/linux/syscalls.list b/sysdeps/unix/sysv/linux/syscalls.list index e57acc8..317dec2 100644 --- a/sysdeps/unix/sysv/linux/syscalls.list +++ b/sysdeps/unix/sysv/linux/syscalls.list @@ -49,7 +49,7 @@ sigprocmask - sigprocmask 3 __sigprocmask sigprocmask s_sysctl sysctl _sysctl 1 __syscall__sysctl sysinfo - sysinfo 1 sysinfo swapon - swapon 2 swapon -ksyslog_ctl - syslog 3 ksyslog_ctl +klogctl - syslog 3 klogctl umount - umount 1 __umount umount uselib - uselib 1 uselib wait4 - wait4 4 __wait4 wait4 |