Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
1998-08-09 09:40  Ulrich Drepper  <drepper@cygnus.com>

	* nss/nss_files/files-XXX.c (internal_getent): In case of an read
	error do not trust errno value, set it to ENOENT.

	* db2/db_185.h: Move __ prototypes into include/* header.
	* dirent/dirent.h: Likewise.
	* elf/dlfcn.h: Likewise.
	* gmon/sys/gmon.h: Likewise.
	* grp/grp.h: Likewise.
	* intl/libintl.h: Likewise.
	* io/fcntl.h: Likewise.
	* io/sys/stat.h: Likewise.
	* io/sys/statfs.h: Likewise.
	* io/sys/statvfs.h: Likewise.
	* libio/stdio.h: Likewise.
	* login/utmp.h: Likewise.
	* misc/mntent.h: Likewise.
	* misc/search.h: Likewise.
	* misc/sys/file.h: Likewise.
	* misc/sys/ioctl.h: Likewise.
	* misc/sys/select.h: Likewise.
	* misc/sys/uio.h: Likewise.
	* misc/sys/ustat.h: Likewise.
	* posix/unistd.h: Likewise.
	* posix/sys/times.h: Likewise.
	* posix/sys/wait.h: Likewise.
	* pwd/pwd.h: Likewise.
	* resource/ulimit.h: Likewise.
	* resource/sys/resource.h: Likewise.
	* setjmp/setjmp.h: Likewise.
	* shadow/shadow.h: Likewise.
	* signal/signal.h: Likewise.
	* socket/sys/socket.h: Likewise.
	* stdlib/alloca.h: Likewise.
	* stdlib/stdlib.h: Likewise.
	* string/string.h: Likewise.
	* sysdeps/generic/sys/mman.h: Likewise.
	* sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
	* sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
	* sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
	* sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
	* sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
	* sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
	* termios/termios.h: Likewise.
	* time/time.h: Likewise.
	* time/sys/time.h: Likewise.
	* wcsmbs/wchar.h: Likewise.

	* include/alloca.h: Add __ prototypes here.
	* include/db_185.h: Likewise.
	* include/dirent.h: Likewise.
	* include/dlfcn.h: Likewise.
	* include/fcntl.h: Likewise.
	* include/grp.h: Likewise.
	* include/libintl.h: Likewise.
	* include/mntent.h: Likewise.
	* include/pwd.h: Likewise.
	* include/sched.h: Likewise.
	* include/search.h: Likewise.
	* include/setjmp.h: Likewise.
	* include/shadow.h: Likewise.
	* include/signal.h: Likewise.
	* include/stdio.h: Likewise.
	* include/stdlib.h: Likewise.
	* include/string.h: Likewise.
	* include/termios.h: Likewise.
	* include/time.h: Likewise.
	* include/ulimit.h: Likewise.
	* include/unistd.h: Likewise.
	* include/utmp.h: Likewise.
	* include/wchar.h: Likewise.
	* include/sys/file.h: Likewise.
	* include/sys/gmon.h: Likewise.
	* include/sys/ioctl.h: Likewise.
	* include/sys/mman.h: Likewise.
	* include/sys/resource.h: Likewise.
	* include/sys/select.h: Likewise.
	* include/sys/socket.h: Likewise.
	* include/sys/stat.h: Likewise.
	* include/sys/statfs.h: Likewise.
	* include/sys/time.h: Likewise.
	* include/sys/times.h: Likewise.
	* include/sys/uio.h: Likewise.
	* include/sys/wait.h: Likewise.

	* Makeconfig (+includes): Search in $(..)include first.

	* io/fstat.c: Undefine __fstat.
	* io/lstat.c: Undefine __lstat.

	* wcsmbs/Versions: Add __mbrlen.
  • Loading branch information
Ulrich Drepper committed Aug 9, 1998
1 parent cf0fd01 commit bdbf022
Show file tree
Hide file tree
Showing 87 changed files with 617 additions and 432 deletions.
93 changes: 93 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,96 @@
1998-08-09 09:40 Ulrich Drepper <drepper@cygnus.com>

* nss/nss_files/files-XXX.c (internal_getent): In case of an read
error do not trust errno value, set it to ENOENT.

* db2/db_185.h: Move __ prototypes into include/* header.
* dirent/dirent.h: Likewise.
* elf/dlfcn.h: Likewise.
* gmon/sys/gmon.h: Likewise.
* grp/grp.h: Likewise.
* intl/libintl.h: Likewise.
* io/fcntl.h: Likewise.
* io/sys/stat.h: Likewise.
* io/sys/statfs.h: Likewise.
* io/sys/statvfs.h: Likewise.
* libio/stdio.h: Likewise.
* login/utmp.h: Likewise.
* misc/mntent.h: Likewise.
* misc/search.h: Likewise.
* misc/sys/file.h: Likewise.
* misc/sys/ioctl.h: Likewise.
* misc/sys/select.h: Likewise.
* misc/sys/uio.h: Likewise.
* misc/sys/ustat.h: Likewise.
* posix/unistd.h: Likewise.
* posix/sys/times.h: Likewise.
* posix/sys/wait.h: Likewise.
* pwd/pwd.h: Likewise.
* resource/ulimit.h: Likewise.
* resource/sys/resource.h: Likewise.
* setjmp/setjmp.h: Likewise.
* shadow/shadow.h: Likewise.
* signal/signal.h: Likewise.
* socket/sys/socket.h: Likewise.
* stdlib/alloca.h: Likewise.
* stdlib/stdlib.h: Likewise.
* string/string.h: Likewise.
* sysdeps/generic/sys/mman.h: Likewise.
* sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
* sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
* sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
* sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
* sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
* sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
* termios/termios.h: Likewise.
* time/time.h: Likewise.
* time/sys/time.h: Likewise.
* wcsmbs/wchar.h: Likewise.

* include/alloca.h: Add __ prototypes here.
* include/db_185.h: Likewise.
* include/dirent.h: Likewise.
* include/dlfcn.h: Likewise.
* include/fcntl.h: Likewise.
* include/grp.h: Likewise.
* include/libintl.h: Likewise.
* include/mntent.h: Likewise.
* include/pwd.h: Likewise.
* include/sched.h: Likewise.
* include/search.h: Likewise.
* include/setjmp.h: Likewise.
* include/shadow.h: Likewise.
* include/signal.h: Likewise.
* include/stdio.h: Likewise.
* include/stdlib.h: Likewise.
* include/string.h: Likewise.
* include/termios.h: Likewise.
* include/time.h: Likewise.
* include/ulimit.h: Likewise.
* include/unistd.h: Likewise.
* include/utmp.h: Likewise.
* include/wchar.h: Likewise.
* include/sys/file.h: Likewise.
* include/sys/gmon.h: Likewise.
* include/sys/ioctl.h: Likewise.
* include/sys/mman.h: Likewise.
* include/sys/resource.h: Likewise.
* include/sys/select.h: Likewise.
* include/sys/socket.h: Likewise.
* include/sys/stat.h: Likewise.
* include/sys/statfs.h: Likewise.
* include/sys/time.h: Likewise.
* include/sys/times.h: Likewise.
* include/sys/uio.h: Likewise.
* include/sys/wait.h: Likewise.

* Makeconfig (+includes): Search in $(..)include first.

* io/fstat.c: Undefine __fstat.
* io/lstat.c: Undefine __lstat.

* wcsmbs/Versions: Add __mbrlen.

1998-08-09 Ulrich Drepper <drepper@cygnus.com>

* elf/dl-reloc.c (_dl_relocate_object): Implement DT_BIND_NOW.
Expand Down
2 changes: 1 addition & 1 deletion FAQ
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ ypbind. ypbind 3.3 and older versions don't always remove these files, so
glibc will continue to use them. Other BSD versions seem to work correctly.
Until ypbind 3.4 is released, you can find a patch at

ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypbind-3.3-glibc3.diff.
ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypbind-3.3-glibc3.diff.gz


2.13. Under Linux/Alpha, I always get "do_ypcall: clnt_call:
Expand Down
2 changes: 1 addition & 1 deletion FAQ.in
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ ypbind. ypbind 3.3 and older versions don't always remove these files, so
glibc will continue to use them. Other BSD versions seem to work correctly.
Until ypbind 3.4 is released, you can find a patch at

ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypbind-3.3-glibc3.diff.
ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypbind-3.3-glibc3.diff.gz

?? Under Linux/Alpha, I always get "do_ypcall: clnt_call:
RPC: Unable to receive; errno = Connection refused" when using NIS.
Expand Down
5 changes: 3 additions & 2 deletions Makeconfig
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,9 @@ endif # $(+cflags) == ""
# files (including ones given in angle brackets) in the current directory,
# in the parent library source directory and in the include directory.
# `+sysdep-includes' will be defined by Makerules.
+includes = -I. $(patsubst %/,-I%,$(objpfx)) $(patsubst %/,-I%,$(..)) \
-I$(..)include $($(stdio)-include) $(includes) \
+includes = -I$(..)include -I. \
$(patsubst %/,-I%,$(objpfx)) $(patsubst %/,-I%,$(..)) \
$($(stdio)-include) $(includes) \
$(+sysdep-includes) $(last-includes) $(sysincludes)

# Since libio has several internal header files, we use a -I instead
Expand Down
1 change: 0 additions & 1 deletion db2/db_185.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ typedef struct {
#if defined(__cplusplus)
extern "C" {
#endif
DB *__dbopen __P((const char *, int, int, DBTYPE, const void *));
DB *dbopen __P((const char *, int, int, DBTYPE, const void *));

#if defined(__cplusplus)
Expand Down
8 changes: 0 additions & 8 deletions dirent/dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,10 @@ typedef struct __dirstream DIR;

/* Open a directory stream on NAME.
Return a DIR stream on the directory, or NULL if it could not be opened. */
extern DIR *__opendir __P ((__const char *__name));
extern DIR *opendir __P ((__const char *__name));

/* Close the directory stream DIRP.
Return 0 if successful, -1 if not. */
extern int __closedir __P ((DIR *__dirp));
extern int closedir __P ((DIR *__dirp));

/* Read a directory entry from DIRP. Return a pointer to a `struct
Expand All @@ -127,8 +125,6 @@ extern int closedir __P ((DIR *__dirp));
If the Large File Support API is selected we have to use the
appropriate interface. */
extern struct dirent *__readdir __P ((DIR *__dirp));
extern struct dirent64 *__readdir64 __P ((DIR *__dirp));
#ifndef __USE_FILE_OFFSET64
extern struct dirent *readdir __P ((DIR *__dirp));
#else
Expand All @@ -146,8 +142,6 @@ extern struct dirent64 *readdir64 __P ((DIR *__dirp));
#if defined __USE_POSIX || defined __USE_MISC
/* Reentrant version of `readdir'. Return in RESULT a pointer to the
next entry. */
extern int __readdir_r __P ((DIR *__dirp, struct dirent *__entry,
struct dirent **__result));
# ifndef __USE_FILE_OFFSET64
extern int readdir_r __P ((DIR *__dirp, struct dirent *__entry,
struct dirent **__result));
Expand Down Expand Up @@ -273,8 +267,6 @@ extern int versionsort64 __P ((__const __ptr_t __e1, __const __ptr_t __e2));
Reading starts at offset *BASEP, and *BASEP is updated with the new
position after reading. Returns the number of bytes read; zero when at
end of directory; or -1 for errors. */
extern __ssize_t __getdirentries __P ((int __fd, char *__buf,
size_t __nbytes, __off_t *__basep));
extern __ssize_t getdirentries __P ((int __fd, char *__buf,
size_t __nbytes, __off_t *__basep));

Expand Down
2 changes: 0 additions & 2 deletions elf/dlfcn.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ extern void *dlsym __P ((void *__handle, __const char *__name));
#ifdef __USE_GNU
/* Find the run-time address in the shared object HANDLE refers to
of the symbol called NAME with VERSION. */
extern void *__dlvsym __P ((void *__handle, __const char *__name,
__const char *__version));
extern void *dlvsym __P ((void *__handle, __const char *__name,
__const char *__version));
#endif
Expand Down
4 changes: 0 additions & 4 deletions gmon/sys/gmon.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,6 @@ extern void monstartup __P ((u_long __lowpc, u_long __highpc));
/* Clean up profiling and write out gmon.out. */
extern void _mcleanup __P ((void));

/* Write current profiling data to file. */
extern void __write_profiling __P ((void));
extern void write_profiling __P ((void));

__END_DECLS

#endif /* sys/gmon.h */
5 changes: 0 additions & 5 deletions grp/grp.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ extern struct group *getgrnam __P ((__const char *__name));
POSIX people would choose. */

# if defined __USE_SVID || defined __USE_BSD || defined __USE_XOPEN_EXTENDED
extern int __getgrent_r __P ((struct group *__resultbuf, char *buffer,
size_t __buflen, struct group **__result));
extern int getgrent_r __P ((struct group *__resultbuf, char *buffer,
size_t __buflen, struct group **__result));
# endif
Expand All @@ -118,9 +116,6 @@ extern int getgrnam_r __P ((__const char *__name, struct group *__resultbuf,
# ifdef __USE_SVID
/* Read a group entry from STREAM. This function is not standardized
an probably never will. */
extern int __fgetgrent_r __P ((FILE * __stream, struct group *__resultbuf,
char *buffer, size_t __buflen,
struct group **__result));
extern int fgetgrent_r __P ((FILE * __stream, struct group *__resultbuf,
char *buffer, size_t __buflen,
struct group **__result));
Expand Down
9 changes: 9 additions & 0 deletions include/alloca.h
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
#include <stdlib/alloca.h>

#undef __alloca

/* Now define the internal interfaces. */
extern __ptr_t __alloca __P ((size_t __size));

#ifdef __GNUC__
# define __alloca(size) __builtin_alloca (size)
#endif /* GCC. */
3 changes: 3 additions & 0 deletions include/db_185.h
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
#include <db2/db_185.h>

/* Now define the internal interfaces. */
DB *__dbopen __P((const char *, int, int, DBTYPE, const void *));
10 changes: 10 additions & 0 deletions include/dirent.h
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#include <dirent/dirent.h>

/* Now define the internal interfaces. */
extern DIR *__opendir __P ((__const char *__name));
extern int __closedir __P ((DIR *__dirp));
extern struct dirent *__readdir __P ((DIR *__dirp));
extern struct dirent64 *__readdir64 __P ((DIR *__dirp));
extern int __readdir_r __P ((DIR *__dirp, struct dirent *__entry,
struct dirent **__result));
extern __ssize_t __getdirentries __P ((int __fd, char *__buf,
size_t __nbytes, __off_t *__basep));
4 changes: 4 additions & 0 deletions include/dlfcn.h
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
#include <elf/dlfcn.h>

/* Now define the internal interfaces. */
extern void *__dlvsym __P ((void *__handle, __const char *__name,
__const char *__version));
3 changes: 3 additions & 0 deletions include/fcntl.h
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
#include <io/fcntl.h>

/* Now define the internal interfaces. */
extern int __open64 __P ((__const char *__file, int __oflag, ...));
7 changes: 7 additions & 0 deletions include/grp.h
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
#include <grp/grp.h>

/* Now define the internal interfaces. */
extern int __getgrent_r __P ((struct group *__resultbuf, char *buffer,
size_t __buflen, struct group **__result));
extern int __fgetgrent_r __P ((FILE * __stream, struct group *__resultbuf,
char *buffer, size_t __buflen,
struct group **__result));
6 changes: 6 additions & 0 deletions include/libintl.h
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
#include <intl/libintl.h>

/* Now define the internal interfaces. */
extern char *__gettext __P ((__const char *__msgid));
extern char *__textdomain __P ((__const char *__domainname));
extern char *__bindtextdomain __P ((__const char *__domainname,
__const char *__dirname));
10 changes: 10 additions & 0 deletions include/mntent.h
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#include <misc/mntent.h>

/* Now define the internal interfaces. */
extern FILE *__setmntent __P ((__const char *__file, __const char *__mode));
extern struct mntent *__getmntent_r __P ((FILE *__stream,
struct mntent *__result,
char *__buffer, int __bufsize));
extern int __addmntent __P ((FILE *__stream, __const struct mntent *__mnt));
extern int __endmntent __P ((FILE *__stream));
extern char *__hasmntopt __P ((__const struct mntent *__mnt,
__const char *__opt));
13 changes: 13 additions & 0 deletions include/pwd.h
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
#include <pwd/pwd.h>

/* Now define the internal interfaces. */
extern int __getpwent_r __P ((struct passwd *__resultbuf, char *__buffer,
size_t __buflen, struct passwd **__result));
extern int __getpwuid_r __P ((__uid_t __uid, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result));
extern int __getpwnam_r __P ((__const char *__name, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result));
extern int __fgetpwent_r __P ((FILE * __stream, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result));
6 changes: 6 additions & 0 deletions include/sched.h
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
#include "posix/sched.h"

/* Now define the internal interfaces. */

/* This is Linux specific. */
extern int __clone __P ((int (*__fn) (void *__arg), void *__child_stack,
int __flags, void *__arg));
11 changes: 11 additions & 0 deletions include/search.h
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
#include <misc/search.h>

/* Now define the internal interfaces. */
extern void __hdestroy __P ((void));
extern void *__tsearch __PMT ((__const void *__key, void **__rootp,
__compar_fn_t compar));
extern void *__tfind __PMT ((__const void *__key, void *__const *__rootp,
__compar_fn_t compar));
extern void *__tdelete __PMT ((__const void *__key, void **__rootp,
__compar_fn_t compar));
extern void __twalk __PMT ((__const void *__root, __action_fn_t action));
extern void __tdestroy __PMT ((void *__root, __free_fn_t freefct));
12 changes: 12 additions & 0 deletions include/setjmp.h
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
#include <setjmp/setjmp.h>

/* Now define the internal interfaces. */

/* Internal machine-dependent function to restore context sans signal mask. */
extern void __longjmp __P ((__jmp_buf __env, int __val))
__attribute__ ((__noreturn__));

/* Internal function to possibly save the current mask of blocked signals
in ENV, and always set the flag saying whether or not it was saved.
This is used by the machine-dependent definition of `__sigsetjmp'.
Always returns zero, for convenience. */
extern int __sigjmp_save __P ((jmp_buf __env, int __savemask));
15 changes: 15 additions & 0 deletions include/shadow.h
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
#include <shadow/shadow.h>

/* Now define the internal interfaces. */
extern int __getspent_r __P ((struct spwd *__result_buf, char *__buffer,
size_t __buflen, struct spwd **__result));
extern int __getspnam_r __P ((__const char *__name, struct spwd *__result_buf,
char *__buffer, size_t __buflen,
struct spwd **__result));
extern int __sgetspent_r __P ((__const char *__string,
struct spwd *__result_buf, char *__buffer,
size_t __buflen, struct spwd **__result));
extern int __fgetspent_r __P ((FILE *__stream, struct spwd *__result_buf,
char *__buffer, size_t __buflen,
struct spwd **__result));
extern int __lckpwdf __P ((void));
extern int __ulckpwdf __P ((void));
26 changes: 25 additions & 1 deletion include/signal.h
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
#include <signal/signal.h>
#if defined __need_sig_atomic_t || defined __need_sigset_t
# include <signal/signal.h>
#else
# include <signal/signal.h>

/* Now define the internal interfaces. */
extern __sighandler_t __bsd_signal __P ((int __sig, __sighandler_t __handler));
extern int __kill __P ((__pid_t __pid, int __sig));
extern int __sigblock __P ((int __mask));
extern int __sigsetmask __P ((int __mask));
extern int __sigprocmask __P ((int __how,
__const sigset_t *__set, sigset_t *__oset));
extern int __sigsuspend __P ((__const sigset_t *__set));
extern int __sigwait __P ((__const sigset_t *__set, int *__sig));
extern int __sigwaitinfo __P ((__const sigset_t *__set, siginfo_t *__info));
extern int __sigtimedwait __P ((__const sigset_t *__set, siginfo_t *__info,
__const struct timespec *__timeout));
extern int __sigqueue __P ((__pid_t __pid, int __sig,
__const union sigval __val));
extern int __sigvec __P ((int __sig, __const struct sigvec *__vec,
struct sigvec *__ovec));
extern int __sigreturn __P ((struct sigcontext *__scp));
extern int __sigaltstack __P ((__const struct sigaltstack *__ss,
struct sigaltstack *__oss));
#endif
Loading

0 comments on commit bdbf022

Please sign in to comment.