diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-10-25 20:18:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-10-25 20:18:27 +0000 |
commit | a9b5d2eeb1b525235f0137280e1ab73851dae6fe (patch) | |
tree | db1d76ae730bec18d888cea5c017cf257912d584 /linuxthreads | |
parent | 3a8e65a0a7914ad670774161c8e0bc781e09500a (diff) | |
download | glibc-a9b5d2eeb1b525235f0137280e1ab73851dae6fe.tar.gz glibc-a9b5d2eeb1b525235f0137280e1ab73851dae6fe.tar.xz glibc-a9b5d2eeb1b525235f0137280e1ab73851dae6fe.zip |
Update.
1999-10-25 Thorsten Kukuk <kukuk@suse.de> * md5-crypt/md5.h: Remove prototypes for public interface. md5 is used only internal. * md5-crypt/md5-crypt.c: Use internal names for md5 functions, remove weak alias for public names. * md5-crypt/md5.c: Remove weak aliase. 1999-10-25 Andreas Jaeger <aj@suse.de> * math/README.libm-test: New file, documents libm-test.inc. 1999-10-25 Andreas Jaeger <aj@suse.de> * math/gen-libm-test.pl: Only generate a new ulps file when -n is given. (print_ulps_file): Fix loops to not read @tests and @functions since those are not initialized with -n now. (parse_ulps): Set $results{..}{"kind"}.
Diffstat (limited to 'linuxthreads')
-rw-r--r-- | linuxthreads/internals.h | 34 | ||||
-rw-r--r-- | linuxthreads/no-tsd.c | 10 | ||||
-rw-r--r-- | linuxthreads/semaphore.h | 18 | ||||
-rw-r--r-- | linuxthreads/signals.c | 2 | ||||
-rw-r--r-- | linuxthreads/sysdeps/pthread/bits/libc-tsd.h | 8 | ||||
-rw-r--r-- | linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h | 8 | ||||
-rw-r--r-- | linuxthreads/weaks.c | 6 |
7 files changed, 43 insertions, 43 deletions
diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h index 4fa3381c72..08512233d1 100644 --- a/linuxthreads/internals.h +++ b/linuxthreads/internals.h @@ -335,23 +335,23 @@ void __pthread_reset_main_thread(void); void __fresetlockfiles(void); void __pthread_manager_adjust_prio(int thread_prio); -extern int __pthread_attr_setguardsize __P ((pthread_attr_t *__attr, - size_t __guardsize)); -extern int __pthread_attr_getguardsize __P ((__const pthread_attr_t *__attr, - size_t *__guardsize)); -extern int __pthread_attr_setstackaddr __P ((pthread_attr_t *__attr, - void *__stackaddr)); -extern int __pthread_attr_getstackaddr __P ((__const pthread_attr_t *__attr, - void **__stackaddr)); -extern int __pthread_attr_setstacksize __P ((pthread_attr_t *__attr, - size_t __stacksize)); -extern int __pthread_attr_getstacksize __P ((__const pthread_attr_t *__attr, - size_t *__stacksize)); -extern int __pthread_getconcurrency __P ((void)); -extern int __pthread_setconcurrency __P ((int __level)); -extern int __pthread_mutexattr_gettype __P ((__const pthread_mutexattr_t *__attr, - int *__kind)); -extern void __pthread_kill_other_threads_np __P ((void)); +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; +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; +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; /* Prototypes for the function without cancelation support when the normal version has it. */ diff --git a/linuxthreads/no-tsd.c b/linuxthreads/no-tsd.c index f852ce01a7..84abb6f405 100644 --- a/linuxthreads/no-tsd.c +++ b/linuxthreads/no-tsd.c @@ -1,5 +1,5 @@ /* libc-internal interface for thread-specific data. - 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 @@ -17,7 +17,7 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <sys/cdefs.h> /* for __P */ +#include <sys/cdefs.h> /* for __const */ #include <bits/libc-tsd.h> /* This file provides uinitialized (common) definitions for the @@ -29,6 +29,6 @@ If -lpthread is not used, these uninitialized variables default to zero, which the __libc_tsd_* macros check for. */ -void *(*__libc_internal_tsd_get) __P ((enum __libc_tsd_key_t)); -int (*__libc_internal_tsd_set) __P ((enum __libc_tsd_key_t, - __const void *)); +void *(*__libc_internal_tsd_get) (enum __libc_tsd_key_t); +int (*__libc_internal_tsd_set) (enum __libc_tsd_key_t, + __const void *); diff --git a/linuxthreads/semaphore.h b/linuxthreads/semaphore.h index 1d5f933da3..a3cc422377 100644 --- a/linuxthreads/semaphore.h +++ b/linuxthreads/semaphore.h @@ -49,31 +49,31 @@ __BEGIN_DECLS /* Initialize semaphore object SEM to VALUE. If PSHARED then share it with other processes. */ -extern int sem_init __P ((sem_t *__sem, int __pshared, unsigned int __value)); +extern int sem_init (sem_t *__sem, int __pshared, unsigned int __value) __THROW; /* Free resources associated with semaphore object SEM. */ -extern int sem_destroy __P ((sem_t *__sem)); +extern int sem_destroy (sem_t *__sem) __THROW; /* Open a named semaphore NAME with open flaot OFLAG. */ -extern sem_t *sem_open __P ((__const char *__name, int __oflag, ...)); +extern sem_t *sem_open (__const char *__name, int __oflag, ...) __THROW; /* Close descriptor for named semaphore SEM. */ -extern int sem_close __P ((sem_t *__sem)); +extern int sem_close (sem_t *__sem) __THROW; /* Remove named semaphore NAME. */ -extern int sem_unlink __P ((__const char *__name)); +extern int sem_unlink (__const char *__name) __THROW; /* Wait for SEM being posted. */ -extern int sem_wait __P ((sem_t *__sem)); +extern int sem_wait (sem_t *__sem) __THROW; /* Test whether SEM is posted. */ -extern int sem_trywait __P ((sem_t *__sem)); +extern int sem_trywait (sem_t *__sem) __THROW; /* Post SEM. */ -extern int sem_post __P ((sem_t *__sem)); +extern int sem_post (sem_t *__sem) __THROW; /* Get current value of SEM and store it in *SVAL. */ -extern int sem_getvalue __P ((sem_t *__sem, int *__sval)); +extern int sem_getvalue (sem_t *__sem, int *__sval) __THROW; __END_DECLS diff --git a/linuxthreads/signals.c b/linuxthreads/signals.c index 5a4d4f5db4..be221d7a99 100644 --- a/linuxthreads/signals.c +++ b/linuxthreads/signals.c @@ -69,7 +69,7 @@ int pthread_kill(pthread_t thread, int signo) } /* User-provided signal handlers */ -typedef void (*arch_sighandler_t) __PMT ((int, SIGCONTEXT)); +typedef void (*arch_sighandler_t) (int, SIGCONTEXT); static union { arch_sighandler_t old; diff --git a/linuxthreads/sysdeps/pthread/bits/libc-tsd.h b/linuxthreads/sysdeps/pthread/bits/libc-tsd.h index 42a8b802c9..e18c63c108 100644 --- a/linuxthreads/sysdeps/pthread/bits/libc-tsd.h +++ b/linuxthreads/sysdeps/pthread/bits/libc-tsd.h @@ -1,5 +1,5 @@ /* libc-internal interface for thread-specific data. LinuxThreads version. - 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 @@ -26,9 +26,9 @@ enum __libc_tsd_key_t { _LIBC_TSD_KEY_MALLOC = 0, _LIBC_TSD_KEY_DL_ERROR, _LIBC_TSD_KEY_N }; -extern void *(*__libc_internal_tsd_get) __P ((enum __libc_tsd_key_t)); -extern int (*__libc_internal_tsd_set) __P ((enum __libc_tsd_key_t, - __const void *)); +extern void *(*__libc_internal_tsd_get) (enum __libc_tsd_key_t) __THROW; +extern int (*__libc_internal_tsd_set) (enum __libc_tsd_key_t, + __const void *) __THROW; #define __libc_tsd_define(CLASS, KEY) CLASS void *__libc_tsd_##KEY##_data; #define __libc_tsd_get(KEY) \ diff --git a/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h b/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h index c9b1dcf1be..40238561df 100644 --- a/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h +++ b/linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h @@ -1,5 +1,5 @@ /* Signal handling function for threaded programs. - 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 @@ -28,10 +28,10 @@ /* Modify the signal mask for the calling thread. The arguments have the same meaning as for sigprocmask(2). */ -extern int pthread_sigmask __P ((int __how, __const __sigset_t *__newmask, - __sigset_t *__oldmask)); +extern int pthread_sigmask (int __how, __const __sigset_t *__newmask, + __sigset_t *__oldmask)__THROW; /* Send signal SIGNO to the given thread. */ -extern int pthread_kill __P ((pthread_t __thread, int __signo)); +extern int pthread_kill (pthread_t __thread, int __signo) __THROW; #endif /* bits/sigthread.h */ diff --git a/linuxthreads/weaks.c b/linuxthreads/weaks.c index 0ce058bb5c..d142b3d7b1 100644 --- a/linuxthreads/weaks.c +++ b/linuxthreads/weaks.c @@ -21,9 +21,9 @@ #include <limits.h> #include <stdlib.h> -extern int __pthread_return_0 __P ((void)); -extern int __pthread_return_1 __P ((void)); -extern void __pthread_return_void __P ((void)); +extern int __pthread_return_0 (void) __THROW; +extern int __pthread_return_1 (void) __THROW; +extern void __pthread_return_void (void) __THROW; /* Those are pthread functions which return 0 if successful. */ #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING |