aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-12-31 18:51:25 +0000
committerUlrich Drepper <drepper@redhat.com>1999-12-31 18:51:25 +0000
commitd8cf93f489282ed4dd0b727e9efd9efef192e952 (patch)
tree18872eaa470b0651e1071fb9c2b187cc1745f566
parent3216711f5d4cdfcafd10377f479937cf360e2c69 (diff)
downloadglibc-d8cf93f489282ed4dd0b727e9efd9efef192e952.tar.xz
glibc-d8cf93f489282ed4dd0b727e9efd9efef192e952.zip
Update.
1999-12-31 Andreas Jaeger <aj@suse.de> * libio/strfile.h: Remove K&R compatibility. * locale/langinfo.h: Likewise. * locale/localeconv.c (localeconv): Likewise. * locale/programs/simple-hash.h: Likewise. * nis/nis_xdr.h: Likewise. * nis/rpcsvc/nislib.h: Likewise. * nis/rpcsvc/nis_callback.h: Likewise. * nis/rpcsvc/nis.h: Likewise. * nis/ypclnt.c: Likewise. * nscd/nscd_proto.h: Likewise. * nscd/nscd.c: Likewise. * sysdeps/generic/inttypes.h: Likewise. * sysdeps/gnu/utmpx.h: Likewise. * nis/nis_intern.h: Remove K&R compatibility; add missing ints. * sunrpc/rpcsvc/rusers.x: Likewise. * nis/rpcsvc/ypclnt.h: Remove K&R compatibility; reformat. * elf/dl-misc.c: Remove __libc_write prototype since it's already in include/unistd.h. * elf/dl-profile.c: Likewise. * elf/dl-load.c: Likewise for __libc_read. * elf/dl-profile.c: Remove __P. * elf/sprof.c: Likewise. * elf/sln.c: Likewise.
-rw-r--r--ChangeLog30
-rw-r--r--elf/dl-load.c3
-rw-r--r--elf/dl-misc.c6
-rw-r--r--elf/dl-profile.c8
-rw-r--r--elf/sln.c6
-rw-r--r--elf/sprof.c2
-rw-r--r--libio/strfile.h6
-rw-r--r--linuxthreads/internals.h30
-rw-r--r--linuxthreads/sysdeps/pthread/bits/libc-lock.h37
-rw-r--r--linuxthreads/sysdeps/pthread/pthread.h21
-rw-r--r--linuxthreads/weaks.c8
-rw-r--r--locale/langinfo.h2
-rw-r--r--locale/localeconv.c4
-rw-r--r--locale/programs/simple-hash.h25
-rw-r--r--nis/nis_intern.h34
-rw-r--r--nis/nis_xdr.h34
-rw-r--r--nis/rpcsvc/nis.h99
-rw-r--r--nis/rpcsvc/nis_callback.h18
-rw-r--r--nis/rpcsvc/nislib.h226
-rw-r--r--nis/rpcsvc/ypclnt.h98
-rw-r--r--nis/ypclnt.c4
-rw-r--r--nscd/nscd.c2
-rw-r--r--nscd/nscd_proto.h42
-rw-r--r--sunrpc/rpcsvc/rusers.x8
-rw-r--r--sysdeps/generic/inttypes.h110
-rw-r--r--sysdeps/gnu/utmpx.h26
26 files changed, 465 insertions, 424 deletions
diff --git a/ChangeLog b/ChangeLog
index 47132bdea2..8f3c3f2057 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,33 @@
+1999-12-31 Andreas Jaeger <aj@suse.de>
+
+ * libio/strfile.h: Remove K&R compatibility.
+ * locale/langinfo.h: Likewise.
+ * locale/localeconv.c (localeconv): Likewise.
+ * locale/programs/simple-hash.h: Likewise.
+ * nis/nis_xdr.h: Likewise.
+ * nis/rpcsvc/nislib.h: Likewise.
+ * nis/rpcsvc/nis_callback.h: Likewise.
+ * nis/rpcsvc/nis.h: Likewise.
+ * nis/ypclnt.c: Likewise.
+ * nscd/nscd_proto.h: Likewise.
+ * nscd/nscd.c: Likewise.
+ * sysdeps/generic/inttypes.h: Likewise.
+ * sysdeps/gnu/utmpx.h: Likewise.
+
+ * nis/nis_intern.h: Remove K&R compatibility; add missing ints.
+ * sunrpc/rpcsvc/rusers.x: Likewise.
+
+ * nis/rpcsvc/ypclnt.h: Remove K&R compatibility; reformat.
+
+ * elf/dl-misc.c: Remove __libc_write prototype since it's already
+ in include/unistd.h.
+ * elf/dl-profile.c: Likewise.
+ * elf/dl-load.c: Likewise for __libc_read.
+
+ * elf/dl-profile.c: Remove __P.
+ * elf/sprof.c: Likewise.
+ * elf/sln.c: Likewise.
+
1999-12-31 Ulrich Drepper <drepper@cygnus.com>
* locale/langinfo.h: Add constants for wide character collation
diff --git a/elf/dl-load.c b/elf/dl-load.c
index cf015a2d3d..4651a45265 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -128,9 +128,6 @@ static const size_t system_dirs_len[] =
SYSTEM_DIRS_LEN
};
-/* This function has no public prototype. */
-extern ssize_t __libc_read (int, void *, size_t);
-
/* Local version of `strdup' function. */
static inline char *
diff --git a/elf/dl-misc.c b/elf/dl-misc.c
index 8a441c0a3a..63f9266422 100644
--- a/elf/dl-misc.c
+++ b/elf/dl-misc.c
@@ -1,5 +1,5 @@
/* Miscellaneous support functions for dynamic linker
- Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -27,10 +27,6 @@
#include <sys/stat.h>
#include <stdio-common/_itoa.h>
-/* We have prototype anywhere. */
-extern ssize_t __libc_write __P ((int __fd, __const __ptr_t __buf,
- size_t __n));
-
#ifndef MAP_ANON
/* This is the only dl-sysdep.c function that is actually needed at run-time
by _dl_map_object. */
diff --git a/elf/dl-profile.c b/elf/dl-profile.c
index a9f8dd6226..2ee2dd5aa3 100644
--- a/elf/dl-profile.c
+++ b/elf/dl-profile.c
@@ -1,5 +1,5 @@
/* Profiling of shared libraries.
- Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
Based on the BSD mcount implementation.
@@ -35,10 +35,6 @@
#include <sys/stat.h>
#include <atomicity.h>
-/* We have prototype anywhere. */
-extern ssize_t __libc_write __P ((int __fd, __const __ptr_t __buf,
- size_t __n));
-
/* The LD_PROFILE feature has to be implemented different to the
normal profiling using the gmon/ functions. The problem is that an
arbitrary amount of processes simulataneously can be run using
@@ -124,7 +120,7 @@ extern ssize_t __libc_write __P ((int __fd, __const __ptr_t __buf,
data structures at the program start. To do this we'll simply visit all
entries in the call graph table and add it to the appropriate list. */
-extern int __profile_frequency __P ((void));
+extern int __profile_frequency (void);
/* We define a special type to address the elements of the arc table.
This is basically the `gmon_cg_arc_record' format but it includes
diff --git a/elf/sln.c b/elf/sln.c
index f9344692e6..e13b6d97b1 100644
--- a/elf/sln.c
+++ b/elf/sln.c
@@ -1,5 +1,5 @@
/* `sln' program to create symboblic links between files.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -30,8 +30,8 @@
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
-static int makesymlink __P ((const char *src, const char *dest));
-static int makesymlinks __P ((const char *file));
+static int makesymlink (const char *src, const char *dest);
+static int makesymlinks (const char *file);
int
main (int argc, char **argv)
diff --git a/elf/sprof.c b/elf/sprof.c
index 7e1d8c4297..79c315291d 100644
--- a/elf/sprof.c
+++ b/elf/sprof.c
@@ -58,7 +58,7 @@
#endif
-extern int __profile_frequency __P ((void));
+extern int __profile_frequency (void);
/* Name and version of program. */
static void print_version (FILE *stream, struct argp_state *state);
diff --git a/libio/strfile.h b/libio/strfile.h
index baf25f7097..04f19bcf74 100644
--- a/libio/strfile.h
+++ b/libio/strfile.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU IO Library.
This library is free software; you can redistribute it and/or
@@ -28,8 +28,8 @@
Merge into libio.h ?
#endif
-typedef void *(*_IO_alloc_type) __PMT ((_IO_size_t));
-typedef void (*_IO_free_type) __PMT ((void*));
+typedef void *(*_IO_alloc_type) (_IO_size_t);
+typedef void (*_IO_free_type) (void*);
struct _IO_str_fields
{
diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h
index 2e4b4b79b7..c5fde1f883 100644
--- a/linuxthreads/internals.h
+++ b/linuxthreads/internals.h
@@ -355,31 +355,29 @@ void __fresetlockfiles(void);
void __pthread_manager_adjust_prio(int thread_prio);
extern int __pthread_attr_setguardsize (pthread_attr_t *__attr,
- size_t __guardsize) __THROW;
-extern int __pthread_attr_getguardsize (__const pthread_attr_t *__attr,
- size_t *__guardsize) __THROW;
+ size_t __guardsize);
+extern int __pthread_attr_getguardsize (const pthread_attr_t *__attr,
+ size_t *__guardsize);
extern int __pthread_attr_setstackaddr (pthread_attr_t *__attr,
- void *__stackaddr) __THROW;
-extern int __pthread_attr_getstackaddr (__const pthread_attr_t *__attr,
- void **__stackaddr) __THROW;
+ void *__stackaddr);
+extern int __pthread_attr_getstackaddr (const pthread_attr_t *__attr,
+ void **__stackaddr);
extern int __pthread_attr_setstacksize (pthread_attr_t *__attr,
- size_t __stacksize) __THROW;
-extern int __pthread_attr_getstacksize (__const pthread_attr_t *__attr,
- size_t *__stacksize) __THROW;
-extern int __pthread_getconcurrency (void) __THROW;
-extern int __pthread_setconcurrency (int __level) __THROW;
-extern int __pthread_mutexattr_gettype (__const pthread_mutexattr_t *__attr,
- int *__kind) __THROW;
-extern void __pthread_kill_other_threads_np (void) __THROW;
+ size_t __stacksize);
+extern int __pthread_attr_getstacksize (const pthread_attr_t *__attr,
+ size_t *__stacksize);
+extern int __pthread_getconcurrency (void);
+extern int __pthread_setconcurrency (int __level);
+extern int __pthread_mutexattr_gettype (const pthread_mutexattr_t *__attr,
+ int *__kind);
+extern void __pthread_kill_other_threads_np (void);
/* Prototypes for the function without cancelation support when the
normal version has it. */
extern int __libc_close (int fd);
extern int __libc_nanosleep (const struct timespec *requested_time,
struct timespec *remaining);
-extern ssize_t __libc_read (int fd, void *buf, size_t count);
extern pid_t __libc_waitpid (pid_t pid, int *stat_loc, int options);
-extern ssize_t __libc_write (int fd, const void *buf, size_t count);
/* Prototypes for some of the new semaphore functions. */
extern int __new_sem_post (sem_t * sem);
diff --git a/linuxthreads/sysdeps/pthread/bits/libc-lock.h b/linuxthreads/sysdeps/pthread/bits/libc-lock.h
index a14cea1aa7..0f412bb9e2 100644
--- a/linuxthreads/sysdeps/pthread/bits/libc-lock.h
+++ b/linuxthreads/sysdeps/pthread/bits/libc-lock.h
@@ -166,6 +166,43 @@ typedef pthread_key_t __libc_key_t;
#define __libc_atfork(PREPARE, PARENT, CHILD) \
(__pthread_atfork != NULL ? __pthread_atfork (PREPARE, PARENT, CHILD) : 0)
+/* Functions that are used by this file and are internal to the GNU C
+ library. */
+
+extern int __pthread_mutex_init (pthread_mutex_t *__mutex,
+ __const pthread_mutexattr_t *__mutex_attr);
+
+extern int __pthread_mutex_destroy (pthread_mutex_t *__mutex);
+
+extern int __pthread_mutex_trylock (pthread_mutex_t *__mutex);
+
+extern int __pthread_mutex_lock (pthread_mutex_t *__mutex);
+
+extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex);
+
+extern int __pthread_mutexattr_init (pthread_mutexattr_t *__attr);
+
+extern int __pthread_mutexattr_destroy (pthread_mutexattr_t *__attr);
+
+extern int __pthread_mutexattr_settype (pthread_mutexattr_t *__attr,
+ int __kind);
+
+extern int __pthread_key_create (pthread_key_t *__key,
+ void (*__destr_function) (void *));
+
+extern int __pthread_setspecific (pthread_key_t __key,
+ __const void *__pointer);
+
+extern void *__pthread_getspecific (pthread_key_t __key);
+
+extern int __pthread_once (pthread_once_t *__once_control,
+ void (*__init_routine) (void));
+
+extern int __pthread_atfork (void (*__prepare) (void),
+ void (*__parent) (void),
+ void (*__child) (void));
+
+
/* Make the pthread functions weak so that we can elide them from
single-threaded processes. */
diff --git a/linuxthreads/sysdeps/pthread/pthread.h b/linuxthreads/sysdeps/pthread/pthread.h
index 5ce052b17f..b3606f7d08 100644
--- a/linuxthreads/sysdeps/pthread/pthread.h
+++ b/linuxthreads/sysdeps/pthread/pthread.h
@@ -270,27 +270,20 @@ extern int pthread_setconcurrency (int __level) __THROW;
/* Initialize MUTEX using attributes in *MUTEX_ATTR, or use the
default values if later is NULL. */
-extern int __pthread_mutex_init (pthread_mutex_t *__mutex,
- __const pthread_mutexattr_t *__mutex_attr)
- __THROW;
extern int pthread_mutex_init (pthread_mutex_t *__mutex,
__const pthread_mutexattr_t *__mutex_attr)
__THROW;
/* Destroy MUTEX. */
-extern int __pthread_mutex_destroy (pthread_mutex_t *__mutex) __THROW;
extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) __THROW;
/* Try to lock MUTEX. */
-extern int __pthread_mutex_trylock (pthread_mutex_t *__mutex) __THROW;
extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) __THROW;
/* Wait until lock for MUTEX becomes available and lock it. */
-extern int __pthread_mutex_lock (pthread_mutex_t *__mutex) __THROW;
extern int pthread_mutex_lock (pthread_mutex_t *__mutex) __THROW;
/* Unlock MUTEX. */
-extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex) __THROW;
extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) __THROW;
@@ -298,19 +291,15 @@ extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) __THROW;
/* Initialize mutex attribute object ATTR with default attributes
(kind is PTHREAD_MUTEX_FAST_NP). */
-extern int __pthread_mutexattr_init (pthread_mutexattr_t *__attr) __THROW;
extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) __THROW;
/* Destroy mutex attribute object ATTR. */
-extern int __pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) __THROW;
extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) __THROW;
#ifdef __USE_UNIX98
/* Set the mutex kind attribute in *ATTR to KIND (either PTHREAD_MUTEX_NORMAL,
PTHREAD_MUTEX_RECURSIVE, PTHREAD_MUTEX_ERRORCHECK, or
PTHREAD_MUTEX_DEFAULT). */
-extern int __pthread_mutexattr_settype (pthread_mutexattr_t *__attr,
- int __kind) __THROW;
extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)
__THROW;
@@ -419,8 +408,6 @@ extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr,
associated to that key when the key is destroyed.
DESTR_FUNCTION is not called if the value associated is NULL when
the key is destroyed. */
-extern int __pthread_key_create (pthread_key_t *__key,
- void (*__destr_function) (void *)) __THROW;
extern int pthread_key_create (pthread_key_t *__key,
void (*__destr_function) (void *)) __THROW;
@@ -428,13 +415,10 @@ extern int pthread_key_create (pthread_key_t *__key,
extern int pthread_key_delete (pthread_key_t __key) __THROW;
/* Store POINTER in the thread-specific data slot identified by KEY. */
-extern int __pthread_setspecific (pthread_key_t __key,
- __const void *__pointer) __THROW;
extern int pthread_setspecific (pthread_key_t __key,
__const void *__pointer) __THROW;
/* Return current value of the thread-specific data slot identified by KEY. */
-extern void *__pthread_getspecific (pthread_key_t __key) __THROW;
extern void *pthread_getspecific (pthread_key_t __key) __THROW;
@@ -444,8 +428,6 @@ extern void *pthread_getspecific (pthread_key_t __key) __THROW;
only once, even if pthread_once is executed several times with the
same ONCE_CONTROL argument. ONCE_CONTROL must point to a static or
extern variable initialized to PTHREAD_ONCE_INIT. */
-extern int __pthread_once (pthread_once_t *__once_control,
- void (*__init_routine) (void)) __THROW;
extern int pthread_once (pthread_once_t *__once_control,
void (*__init_routine) (void)) __THROW;
@@ -533,9 +515,6 @@ extern void _pthread_cleanup_pop_restore (struct _pthread_cleanup_buffer *__buff
first called before FORK), and the PARENT and CHILD handlers are called
in FIFO (first added, first called). */
-extern int __pthread_atfork (void (*__prepare) (void),
- void (*__parent) (void),
- void (*__child) (void)) __THROW;
extern int pthread_atfork (void (*__prepare) (void),
void (*__parent) (void),
void (*__child) (void)) __THROW;
diff --git a/linuxthreads/weaks.c b/linuxthreads/weaks.c
index d142b3d7b1..d6d028f2ec 100644
--- a/linuxthreads/weaks.c
+++ b/linuxthreads/weaks.c
@@ -1,5 +1,5 @@
/* The weak pthread functions for Linux.
- Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,9 +21,9 @@
#include <limits.h>
#include <stdlib.h>
-extern int __pthread_return_0 (void) __THROW;
-extern int __pthread_return_1 (void) __THROW;
-extern void __pthread_return_void (void) __THROW;
+extern int __pthread_return_0 (void);
+extern int __pthread_return_1 (void);
+extern void __pthread_return_void (void);
/* Those are pthread functions which return 0 if successful. */
#if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
diff --git a/locale/langinfo.h b/locale/langinfo.h
index 8ba42fa036..69341223cb 100644
--- a/locale/langinfo.h
+++ b/locale/langinfo.h
@@ -474,7 +474,7 @@ enum
The string returned will not change until `setlocale' is called;
it is usually in read-only memory and cannot be modified. */
-extern char *nl_langinfo __P ((nl_item __item));
+extern char *nl_langinfo (nl_item __item) __THROW;
__END_DECLS
diff --git a/locale/localeconv.c b/locale/localeconv.c
index 06f12dbfaf..9b8061ad1c 100644
--- a/locale/localeconv.c
+++ b/locale/localeconv.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1995, 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,7 +21,7 @@
/* Return monetary and numeric information about the current locale. */
struct lconv *
-localeconv __P ((void))
+localeconv (void)
{
static struct lconv result;
diff --git a/locale/programs/simple-hash.h b/locale/programs/simple-hash.h
index b72e3acaca..8494cb2638 100644
--- a/locale/programs/simple-hash.h
+++ b/locale/programs/simple-hash.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
@@ -33,18 +33,19 @@ typedef struct hash_table
hash_table;
-extern int init_hash __P ((hash_table *htab, unsigned long int init_size));
-extern int delete_hash __P ((hash_table *htab));
-extern int insert_entry __P ((hash_table *htab, const void *key, size_t keylen,
- void *data));
-extern int find_entry __P ((hash_table *htab, const void *key, size_t keylen,
- void **result));
-extern int set_entry __P ((hash_table *htab, const void *key, size_t keylen,
- void *newval));
+extern int init_hash (hash_table *htab, unsigned long int init_size) __THROW;
+extern int delete_hash (hash_table *htab) __THROW;
+extern int insert_entry (hash_table *htab, const void *key, size_t keylen,
+ void *data) __THROW;
+extern int find_entry (hash_table *htab, const void *key, size_t keylen,
+