Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>

	* Makeconfig (+gccwarn): Remove -Wno-parentheses.

	* elf/dl-open.c: Quiet -Wparentheses warnings.
	* iconvdata/johab.c: Likewise.
	* iconvdata/uhc.c: Likewise.
	* inet/inet_net.c: Likewise.
	* io/fts.c: Likewise.
	* locale/newlocale.c: Likewise.
	* misc/getttyent.c: Likewise.
	* misc/mntent_r.c: Likewise.
	* misc/ttyslot.c: Likewise.
	* nscd/nscd_conf.c: Likewise.
	* nss/nsswitch.c: Likewise.
	* resolv/gethnamaddr.c: Likewise.
	* resolv/nsap_addr.c: Likewise.
	* resolv/res_debug.c: Likewise.
	* stdio-common/_itoa.c: Likewise.
	* stdlib/strtod.c: Likewise.
	* string/strverscmp.c: Likewise.
	* sunrpc/svc.c: Likewise.
	* sysdeps/libm-ieee754/e_cosh.c: Likewise.
	* sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
	* sysdeps/libm-ieee754/e_sinh.c: Likewise.
	* sysdeps/posix/getaddrinfo.c: Likewise.

	* include/dlfcn.h: Likewise.
	* elf/dlfcn.h: Declare dladdr only for __USE_GNU.
	Define RTLD_DEFAULT.
  • Loading branch information
Ulrich Drepper committed Sep 6, 1998
1 parent baa3334 commit 6796bc8
Show file tree
Hide file tree
Showing 65 changed files with 204 additions and 78 deletions.
35 changes: 31 additions & 4 deletions ChangeLog
@@ -1,3 +1,30 @@
1998-09-06 09:53 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>

* Makeconfig (+gccwarn): Remove -Wno-parentheses.

* elf/dl-open.c: Quiet -Wparentheses warnings.
* iconvdata/johab.c: Likewise.
* iconvdata/uhc.c: Likewise.
* inet/inet_net.c: Likewise.
* io/fts.c: Likewise.
* locale/newlocale.c: Likewise.
* misc/getttyent.c: Likewise.
* misc/mntent_r.c: Likewise.
* misc/ttyslot.c: Likewise.
* nscd/nscd_conf.c: Likewise.
* nss/nsswitch.c: Likewise.
* resolv/gethnamaddr.c: Likewise.
* resolv/nsap_addr.c: Likewise.
* resolv/res_debug.c: Likewise.
* stdio-common/_itoa.c: Likewise.
* stdlib/strtod.c: Likewise.
* string/strverscmp.c: Likewise.
* sunrpc/svc.c: Likewise.
* sysdeps/libm-ieee754/e_cosh.c: Likewise.
* sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
* sysdeps/libm-ieee754/e_sinh.c: Likewise.
* sysdeps/posix/getaddrinfo.c: Likewise.

1998-09-06 15:13 Ulrich Drepper <drepper@cygnus.com>

* elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
Expand Down Expand Up @@ -38,6 +65,7 @@
* include/alloca.h: Add multiple-inclusion guard.
* include/db.h: Likewise.
* include/db_185.h: Likewise.
* include/dlfcn.h: Likewise.
* include/fcntl.h: Likewise.
* include/grp.h: Likewise.
* include/libintl.h: Likewise.
Expand Down Expand Up @@ -68,9 +96,6 @@
* include/sys/times.h: Likewise.
* include/sys/wait.h: Likewise.

* include/dlfcn.h: Declare dladdr only for __USE_GNU.
Define RTLD_DEFAULT.

1998-09-06 09:00 Ulrich Drepper <drepper@cygnus.com>

* version.h (VERSION): Bump to 2.0.96.
Expand All @@ -95,7 +120,6 @@
* elf/dl-support.c: Likewise.
* elf/dl-symbol.c: Likewise.
* elf/dl-version.c: Likewise.
* elf/dlfcn.h: Likewise.
* elf/dlsym.c: Likewise.
* elf/dlvsym.c: Likewise.
* elf/ldsodefs.h: Likewise.
Expand All @@ -105,6 +129,9 @@
* sysdeps/i386/dl-machine.h: Likewise.
* sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.

* elf/dlfcn.h: Declare dladdr only for __USE_GNU.
Define RTLD_DEFAULT.

1998-09-05 Mark Kettenis <kettenis@phys.uva.nl>

* sysdeps/mach/hurd/i386/init-first.c (init1): Call
Expand Down
2 changes: 1 addition & 1 deletion Makeconfig
Expand Up @@ -489,7 +489,7 @@ RANLIB = ranlib
endif

# Extra flags to pass to GCC.
+gccwarn := -Wall -Wwrite-strings -Wno-parentheses -Winline -Wstrict-prototypes
+gccwarn := -Wall -Wwrite-strings -Winline -Wstrict-prototypes

# This is the program that generates makefile
# dependencies from C source files.
Expand Down
2 changes: 1 addition & 1 deletion elf/dl-open.c
Expand Up @@ -192,7 +192,7 @@ dl_open_worker (void *a)
_dl_debug_state ();

/* Run the initializer functions of new objects. */
while (init = _dl_init_next (&new->l_searchlist))
while ((init = _dl_init_next (&new->l_searchlist)))
(*(void (*) (int, char **, char **)) init) (__libc_argc, __libc_argv,
__environ);

Expand Down
6 changes: 3 additions & 3 deletions iconvdata/johab.c
Expand Up @@ -220,11 +220,11 @@ johab_sym_hanja_to_ucs (uint_fast32_t idx, uint_fast32_t c1, uint_fast32_t c2)
} \
else if (i > 0 && m > 0) \
ch = ((i - 1) * 21 + (m - 1)) * 28 + f + 0xac00; \
else if (i > 0 && m == 0 & f == 0) \
else if (i > 0 && m == 0 && f == 0) \
ch = init_to_ucs[i - 1]; \
else if (i == 0 && m > 0 & f == 0) \
else if (i == 0 && m > 0 && f == 0) \
ch = 0x314e + m; /* 0x314f + m - 1 */ \
else if (i == 0 && m == 0 & f > 0) \
else if (i == 0 && m == 0 && f > 0) \
ch = final_to_ucs[f - 1]; /* round trip?? */ \
else \
{ \
Expand Down
2 changes: 1 addition & 1 deletion iconvdata/uhc.c
Expand Up @@ -3170,7 +3170,7 @@ static const char uhc_hangul_from_ucs[11172][2] =
*outptr++ = s[0]; \
*outptr++ = s[1]; \
} \
else if (ch >= 0x4e00 && ch <= 0x9fa5 || ch >= 0xf900 && ch <= 0xfa0b) \
else if ((ch >= 0x4e00 && ch <= 0x9fa5) || (ch >= 0xf900 && ch <= 0xfa0b))\
{ \
size_t written = ucs4_to_ksc5601_hanja (ch, outptr, \
(NEED_LENGTH_TEST \
Expand Down
4 changes: 4 additions & 0 deletions include/alloca.h
@@ -1,3 +1,5 @@
#ifndef _ALLOCA_H

#include <stdlib/alloca.h>

#undef __alloca
Expand All @@ -8,3 +10,5 @@ extern __ptr_t __alloca __P ((size_t __size));
#ifdef __GNUC__
# define __alloca(size) __builtin_alloca (size)
#endif /* GCC. */

#endif
4 changes: 4 additions & 0 deletions include/db.h
@@ -1,5 +1,9 @@
#ifndef _DB_H_

#include <db2/db.h>

/* Internal interface for NSS. */
int __nss_db_open __P((const char *,
DBTYPE, u_int32_t, int, DB_ENV *, DB_INFO *, DB **));

#endif
2 changes: 2 additions & 0 deletions include/db_185.h
@@ -1,4 +1,6 @@
#ifndef _DB_185_H_
#include <db2/db_185.h>

/* Now define the internal interfaces. */
DB *__dbopen __P((const char *, int, int, DBTYPE, const void *));
#endif
2 changes: 2 additions & 0 deletions include/dlfcn.h
@@ -1,5 +1,7 @@
#ifndef _DLFCN_H
#include <elf/dlfcn.h>

/* Now define the internal interfaces. */
extern void *__dlvsym __P ((void *__handle, __const char *__name,
__const char *__version));
#endif
2 changes: 2 additions & 0 deletions include/fcntl.h
@@ -1,4 +1,6 @@
#ifndef _FCNTL_H
#include <io/fcntl.h>

/* Now define the internal interfaces. */
extern int __open64 __P ((__const char *__file, int __oflag, ...));
#endif
2 changes: 2 additions & 0 deletions include/grp.h
@@ -1,3 +1,4 @@
#ifndef _GRP_H
#include <grp/grp.h>

/* Now define the internal interfaces. */
Expand All @@ -6,3 +7,4 @@ extern int __getgrent_r __P ((struct group *__resultbuf, char *buffer,
extern int __fgetgrent_r __P ((FILE * __stream, struct group *__resultbuf,
char *buffer, size_t __buflen,
struct group **__result));
#endif
2 changes: 2 additions & 0 deletions include/libintl.h
@@ -1,7 +1,9 @@
#ifndef _LIBINTL_H
#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));
#endif
2 changes: 2 additions & 0 deletions include/mntent.h
@@ -1,3 +1,4 @@
#ifndef _MNTENT_H
#include <misc/mntent.h>

/* Now define the internal interfaces. */
Expand All @@ -9,3 +10,4 @@ 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));
#endif
2 changes: 2 additions & 0 deletions include/pwd.h
@@ -1,3 +1,4 @@
#ifndef _PWD_H
#include <pwd/pwd.h>

/* Now define the internal interfaces. */
Expand All @@ -12,3 +13,4 @@ extern int __getpwnam_r __P ((__const char *__name, struct passwd *__resultbuf,
extern int __fgetpwent_r __P ((FILE * __stream, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result));
#endif
4 changes: 3 additions & 1 deletion include/sched.h
@@ -1,7 +1,9 @@
#include "posix/sched.h"
#ifndef _SCHED_H
#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));
#endif
2 changes: 2 additions & 0 deletions include/search.h
@@ -1,3 +1,4 @@
#ifndef _SEARCH_H
#include <misc/search.h>

/* Now define the internal interfaces. */
Expand All @@ -10,3 +11,4 @@ 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));
#endif
2 changes: 2 additions & 0 deletions include/setjmp.h
@@ -1,3 +1,4 @@
#ifndef _SETJMP_H
#include <setjmp/setjmp.h>

/* Now define the internal interfaces. */
Expand All @@ -11,3 +12,4 @@ extern void __longjmp __P ((__jmp_buf __env, int __val))
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));
#endif
2 changes: 2 additions & 0 deletions include/shadow.h
@@ -1,3 +1,4 @@
#ifndef _SHADOW_H
#include <shadow/shadow.h>

/* Now define the internal interfaces. */
Expand All @@ -14,3 +15,4 @@ extern int __fgetspent_r __P ((FILE *__stream, struct spwd *__result_buf,
struct spwd **__result));
extern int __lckpwdf __P ((void));
extern int __ulckpwdf __P ((void));
#endif
2 changes: 2 additions & 0 deletions include/signal.h
@@ -1,3 +1,4 @@
#ifndef _SIGNAL_H
#if defined __need_sig_atomic_t || defined __need_sigset_t
# include <signal/signal.h>
#else
Expand All @@ -23,3 +24,4 @@ extern int __sigreturn __P ((struct sigcontext *__scp));
extern int __sigaltstack __P ((__const struct sigaltstack *__ss,
struct sigaltstack *__oss));
#endif
#endif
2 changes: 2 additions & 0 deletions include/stdio.h
@@ -1,3 +1,4 @@
#ifndef _STDIO_H
#ifdef USE_IN_LIBIO
#ifdef __need_FILE
# include <libio/stdio.h>
Expand Down Expand Up @@ -27,3 +28,4 @@ extern int __vsscanf __P ((__const char *__restrict __s,
#else
#include <stdio/stdio.h>
#endif
#endif
2 changes: 2 additions & 0 deletions include/stdlib.h
@@ -1,3 +1,4 @@
#ifndef _STDLIB_H
#include <stdlib/stdlib.h>

/* Now define the internal interfaces. */
Expand Down Expand Up @@ -39,3 +40,4 @@ extern char *__canonicalize_file_name __P ((__const char *__name));
extern char *__realpath __P ((__const char *__name, char *__resolved));
extern int __ptsname_r __P ((int __fd, char *__buf, size_t __buflen));
extern int __getpt __P ((void));
#endif
2 changes: 2 additions & 0 deletions include/string.h
@@ -1,3 +1,4 @@
#ifndef _STRING_H
#include <string/string.h>

/* Now define the internal interfaces. */
Expand All @@ -6,3 +7,4 @@ extern __ptr_t __memccpy __P ((__ptr_t __dest, __const __ptr_t __src,
extern size_t __strnlen __P ((__const char *__string, size_t __maxlen));
extern char *__strsep __P ((char **__stringp, __const char *__delim));
extern int __strverscmp __P ((__const char *__s1, __const char *__s2));
#endif
2 changes: 2 additions & 0 deletions include/sys/file.h
@@ -1,4 +1,6 @@
#ifndef _SYS_FILE_H
#include <misc/sys/file.h>

/* Now define the internal interfaces. */
extern int __flock __P ((int __fd, int __operation));
#endif
2 changes: 2 additions & 0 deletions include/sys/gmon.h
@@ -1,7 +1,9 @@
#ifndef _SYS_GMON_H
#include <gmon/sys/gmon.h>

/* Now define the internal interfaces. */

/* Write current profiling data to file. */
extern void __write_profiling __P ((void));
extern void write_profiling __P ((void));
#endif
2 changes: 2 additions & 0 deletions include/sys/ioctl.h
@@ -1,4 +1,6 @@
#ifndef _SYS_IOCTL_H
#include <misc/sys/ioctl.h>

/* Now define the internal interfaces. */
extern int __ioctl __P ((int __fd, unsigned long int __request, ...));
#endif
2 changes: 2 additions & 0 deletions include/sys/mman.h
@@ -1,3 +1,4 @@
#ifndef _SYS_MMAN_H
#include_next <sys/mman.h>

/* Now define the internal interfaces. */
Expand All @@ -11,3 +12,4 @@ extern int __mprotect __P ((__ptr_t __addr, size_t __len, int __prot));
/* This one is Linux specific. */
extern __ptr_t __mremap __P ((__ptr_t __addr, size_t __old_len,
size_t __new_len, int __may_move));
#endif
2 changes: 2 additions & 0 deletions include/sys/resource.h
@@ -1,6 +1,8 @@
#ifndef _SYS_RESOURCE_H
#include <resource/sys/resource.h>

/* Now define the internal interfaces. */
extern int __getrlimit __P ((enum __rlimit_resource __resource,
struct rlimit *__rlimits));
extern int __getrusage __P ((enum __rusage_who __who, struct rusage *__usage));
#endif
2 changes: 2 additions & 0 deletions include/sys/select.h
@@ -1,6 +1,8 @@
#ifndef _SYS_SELECT_H
#include <misc/sys/select.h>

/* Now define the internal interfaces. */
extern int __pselect __P ((int __nfds, __fd_set *__readfds,
__fd_set *__writefds, __fd_set *__exceptfds,
struct timespec *__timeout));
#endif
2 changes: 2 additions & 0 deletions include/sys/socket.h
@@ -1,4 +1,6 @@
#ifndef _SYS_SOCKET_H
#include <socket/sys/socket.h>

/* Now define the internal interfaces. */
extern int __socket __P ((int __domain, int __type, int __protocol));
#endif
2 changes: 2 additions & 0 deletions include/sys/statfs.h
@@ -1,5 +1,7 @@
#ifndef _SYS_STATFS_H
#include <io/sys/statfs.h>

/* Now define the internal interfaces. */
extern int __statfs __P ((__const char *__file, struct statfs *__buf));
extern int __fstatfs __P ((int __fildes, struct statfs *__buf));
#endif
2 changes: 2 additions & 0 deletions include/sys/time.h
@@ -1,3 +1,4 @@
#ifndef _SYS_TIME_H
#include <time/sys/time.h>

/* Now document the internal interfaces. */
Expand All @@ -11,3 +12,4 @@ extern int __setitimer __P ((enum __itimer_which __which,
__const struct itimerval *__new,
struct itimerval *__old));
extern int __utimes __P ((__const char *__file, struct timeval __tvp[2]));
#endif
2 changes: 2 additions & 0 deletions include/sys/times.h
@@ -1,4 +1,6 @@
#ifndef _SYS_TIMES_H
#include <posix/sys/times.h>

/* Now define the internal interfaces. */
extern clock_t __times __P ((struct tms *__buffer));
#endif
2 changes: 2 additions & 0 deletions include/sys/wait.h
@@ -1,3 +1,4 @@
#ifndef _SYS_WAIT_H
#include <posix/sys/wait.h>

/* Now define the internal interfaces. */
Expand All @@ -7,3 +8,4 @@ extern __pid_t __wait3 __P ((__WAIT_STATUS __stat_loc,
int __options, struct rusage * __usage));
extern __pid_t __wait4 __P ((__pid_t __pid, __WAIT_STATUS __stat_loc,
int __options, struct rusage *__usage));
#endif
2 changes: 2 additions & 0 deletions include/termios.h
@@ -1,4 +1,6 @@
#ifndef _TERMIOS_H
#include <termios/termios.h>

/* Now define the internal interfaces. */
extern int __tcgetattr __P ((int __fd, struct termios *__termios_p));
#endif
1 change: 1 addition & 0 deletions include/tgmath.h
@@ -0,0 +1 @@
#include <math/tgmath.h>
2 changes: 2 additions & 0 deletions include/time.h
@@ -1,3 +1,4 @@
#ifndef _TIME_H
#if defined __need_time_t || defined __need_clock_t || defined __need_timespec
# include <time/time.h>
#else
Expand Down Expand Up @@ -35,3 +36,4 @@ extern int __nanosleep __P ((__const struct timespec *__requested_time,
struct timespec *__remaining));
extern int __getdate_r __P ((__const char *__string, struct tm *__resbufp));
#endif
#endif
2 changes: 2 additions & 0 deletions include/ulimit.h
@@ -1,4 +1,6 @@
#ifndef _ULIMIT_H
#include <resource/ulimit.h>

/* Now define the internal interfaces. */
extern long int __ulimit __P ((int __cmd, ...));
#endif

0 comments on commit 6796bc8

Please sign in to comment.