|
|
25845f |
commit f63f2bfdfaad591305863a79c4fd2c3f50015f26
|
|
|
25845f |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
25845f |
Date: Mon Oct 19 21:23:47 2015 +0000
|
|
|
25845f |
|
|
|
25845f |
Convert 69 more function definitions to prototype style (line wrap cases).
|
|
|
25845f |
|
|
|
25845f |
This automatically-generated patch converts 69 function definitions in
|
|
|
25845f |
glibc from old-style K&R to prototype-style.
|
|
|
25845f |
|
|
|
25845f |
This patch, covering both sysdeps and non-sysdeps files, deals with
|
|
|
25845f |
cases where the prototype needed to be wrapped over more than one
|
|
|
25845f |
line. Otherwise, exclusions and caveats are as for
|
|
|
25845f |
<https://sourceware.org/ml/libc-alpha/2015-10/msg00594.html> and
|
|
|
25845f |
<https://sourceware.org/ml/libc-alpha/2015-10/msg00599.html>.
|
|
|
25845f |
|
|
|
25845f |
Tested for x86_64 and x86 (testsuite, and that installed stripped
|
|
|
25845f |
shared libraries are unchanged by the patch).
|
|
|
25845f |
|
|
|
25845f |
* crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
|
|
|
25845f |
function definition.
|
|
|
25845f |
* crypt/crypt_util.c (__encrypt_r): Likewise.
|
|
|
25845f |
* libio/genops.c (_IO_no_init): Likewise.
|
|
|
25845f |
* libio/iofopncook.c (_IO_fopencookie): Likewise.
|
|
|
25845f |
(_IO_old_fopencookie): Likewise.
|
|
|
25845f |
* libio/iofwrite_u.c (fwrite_unlocked): Likewise.
|
|
|
25845f |
* libio/iogetline.c (_IO_getline): Likewise.
|
|
|
25845f |
(_IO_getline_info): Likewise.
|
|
|
25845f |
* libio/iogetwline.c (_IO_getwline): Likewise.
|
|
|
25845f |
(_IO_getwline_info): Likewise.
|
|
|
25845f |
* libio/vsnprintf.c (_IO_vsnprintf): Likewise.
|
|
|
25845f |
* libio/vswprintf.c (_IO_vswprintf): Likewise.
|
|
|
25845f |
* locale/programs/simple-hash.c (insert_entry_2): Likewise.
|
|
|
25845f |
(find_entry): Likewise.
|
|
|
25845f |
(iterate_table): Likewise.
|
|
|
25845f |
(lookup): Likewise.
|
|
|
25845f |
* login/forkpty.c (forkpty): Likewise.
|
|
|
25845f |
* misc/hsearch_r.c (__hsearch_r): Likewise.
|
|
|
25845f |
* misc/select.c (__select): Likewise.
|
|
|
25845f |
* nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
|
|
|
25845f |
Likewise.
|
|
|
25845f |
* nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
|
|
|
25845f |
Likewise.
|
|
|
25845f |
* nptl/old_pthread_cond_timedwait.c
|
|
|
25845f |
(__pthread_cond_timedwait_2_0): Likewise.
|
|
|
25845f |
* nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
|
|
|
25845f |
* nptl/pthread_barrierattr_getpshared.c
|
|
|
25845f |
(pthread_barrierattr_getpshared): Likewise.
|
|
|
25845f |
* nptl/pthread_getschedparam.c (__pthread_getschedparam):
|
|
|
25845f |
Likewise.
|
|
|
25845f |
* nptl/pthread_mutex_setprioceiling.c
|
|
|
25845f |
(pthread_mutex_setprioceiling): Likewise.
|
|
|
25845f |
* nptl/pthread_mutexattr_getprioceiling.c
|
|
|
25845f |
(pthread_mutexattr_getprioceiling): Likewise.
|
|
|
25845f |
* nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
|
|
|
25845f |
* nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
|
|
|
25845f |
Likewise.
|
|
|
25845f |
* nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
|
|
|
25845f |
Likewise.
|
|
|
25845f |
* nptl/pthread_setschedparam.c (__pthread_setschedparam):
|
|
|
25845f |
Likewise.
|
|
|
25845f |
* socket/recvfrom.c (__recvfrom): Likewise.
|
|
|
25845f |
* socket/sendto.c (__sendto): Likewise.
|
|
|
25845f |
* socket/setsockopt.c (__setsockopt): Likewise.
|
|
|
25845f |
* stdio-common/_itoa.c (_itoa): Likewise.
|
|
|
25845f |
* stdio-common/_itowa.c (_itowa): Likewise.
|
|
|
25845f |
* stdio-common/reg-printf.c (__register_printf_specifier):
|
|
|
25845f |
Likewise.
|
|
|
25845f |
(__register_printf_function): Likewise.
|
|
|
25845f |
* stdio-common/tempname.c (__path_search): Likewise.
|
|
|
25845f |
* stdlib/addmul_1.c (mpn_addmul_1): Likewise.
|
|
|
25845f |
* stdlib/mul_1.c (mpn_mul_1): Likewise.
|
|
|
25845f |
* stdlib/random_r.c (__initstate_r): Likewise.
|
|
|
25845f |
* stdlib/setenv.c (__add_to_environ): Likewise.
|
|
|
25845f |
* stdlib/submul_1.c (mpn_submul_1): Likewise.
|
|
|
25845f |
* streams/getpmsg.c (getpmsg): Likewise.
|
|
|
25845f |
* streams/putmsg.c (putmsg): Likewise.
|
|
|
25845f |
* streams/putpmsg.c (putpmsg): Likewise.
|
|
|
25845f |
* sunrpc/clnt_raw.c (clntraw_call): Likewise.
|
|
|
25845f |
* sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
|
|
|
25845f |
* sunrpc/clnt_udp.c (clntudp_create): Likewise.
|
|
|
25845f |
* sunrpc/clnt_unix.c (clntunix_call): Likewise.
|
|
|
25845f |
* sunrpc/pm_getport.c (pmap_getport): Likewise.
|
|
|
25845f |
* sunrpc/svc_udp.c (cache_get): Likewise.
|
|
|
25845f |
* sunrpc/xdr_array.c (xdr_vector): Likewise.
|
|
|
25845f |
* sysdeps/mach/hurd/getcwd.c
|
|
|
25845f |
(__canonicalize_directory_name_internal): Likewise.
|
|
|
25845f |
* sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
|
|
|
25845f |
* sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
|
|
|
25845f |
* sysdeps/mach/hurd/select.c (__select): Likewise.
|
|
|
25845f |
* sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
|
|
|
25845f |
* sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
|
|
|
25845f |
* sysdeps/sparc/nptl/pthread_barrier_init.c
|
|
|
25845f |
(__pthread_barrier_init): Likewise.
|
|
|
25845f |
* sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
|
|
|
25845f |
(__pthread_cond_timedwait): Likewise.
|
|
|
25845f |
* sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
|
|
|
25845f |
* sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
|
|
|
25845f |
Likewise.
|
|
|
25845f |
* sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
|
|
|
25845f |
* sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
|
|
|
25845f |
Likewise.
|
|
|
25845f |
* sysvipc/semtimedop.c (semtimedop): Likewise.
|
|
|
25845f |
* time/setitimer.c (__setitimer): Likewise.
|
|
|
25845f |
* time/strftime_l.c (emacs_strftime): Likewise.
|
|
|
25845f |
|
|
|
25845f |
Conflicts:
|
|
|
25845f |
misc/hsearch_r.c
|
|
|
25845f |
(Missing backport of fix for swbz#17996.)
|
|
|
25845f |
nptl/pthread_barrier_init.c
|
|
|
25845f |
(Missing backport of fix for swbz#18544.)
|
|
|
25845f |
sysdeps/pthread/timer_settime.c
|
|
|
25845f |
(Applied to nptl/sysdeps/pthread/timer_settime.c.)
|
|
|
25845f |
sysdeps/sparc/nptl/pthread_barrier_init.c
|
|
|
25845f |
(Missing fix for swbz#18544. Applied to
|
|
|
25845f |
nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c.)
|
|
|
25845f |
sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
|
|
|
25845f |
(Missing backport of d83f0734e1522a5e5ea2494565f4dcd25a86d6a0,
|
|
|
25845f |
HPPA: Transition to new non-addon NPTL; files removed manually.)
|
|
|
25845f |
sysdeps/unix/sysv/linux/timer_settime.c
|
|
|
25845f |
(Applied to nptl/sysdeps/unix/sysv/linux/timer_settime.c.)
|
|
|
25845f |
|
|
|
25845f |
diff --git a/crypt/crypt-entry.c b/crypt/crypt-entry.c
|
|
|
25845f |
index 1ad36c7d05e7b7c1..647debc9ec98f3fb 100644
|
|
|
25845f |
--- a/crypt/crypt-entry.c
|
|
|
25845f |
+++ b/crypt/crypt-entry.c
|
|
|
25845f |
@@ -81,10 +81,8 @@ extern struct crypt_data _ufc_foobar;
|
|
|
25845f |
*/
|
|
|
25845f |
|
|
|
25845f |
char *
|
|
|
25845f |
-__crypt_r (key, salt, data)
|
|
|
25845f |
- const char *key;
|
|
|
25845f |
- const char *salt;
|
|
|
25845f |
- struct crypt_data * __restrict data;
|
|
|
25845f |
+__crypt_r (const char *key, const char *salt,
|
|
|
25845f |
+ struct crypt_data * __restrict data)
|
|
|
25845f |
{
|
|
|
25845f |
ufc_long res[4];
|
|
|
25845f |
char ktab[9];
|
|
|
25845f |
diff --git a/crypt/crypt_util.c b/crypt/crypt_util.c
|
|
|
25845f |
index bbb2ca2b58490e35..954bbfcfebd169b6 100644
|
|
|
25845f |
--- a/crypt/crypt_util.c
|
|
|
25845f |
+++ b/crypt/crypt_util.c
|
|
|
25845f |
@@ -805,10 +805,8 @@ _ufc_output_conversion_r(v1, v2, salt, __data)
|
|
|
25845f |
*/
|
|
|
25845f |
|
|
|
25845f |
void
|
|
|
25845f |
-__encrypt_r(__block, __edflag, __data)
|
|
|
25845f |
- char *__block;
|
|
|
25845f |
- int __edflag;
|
|
|
25845f |
- struct crypt_data * __restrict __data;
|
|
|
25845f |
+__encrypt_r (char *__block, int __edflag,
|
|
|
25845f |
+ struct crypt_data * __restrict __data)
|
|
|
25845f |
{
|
|
|
25845f |
ufc_long l1, l2, r1, r2, res[4];
|
|
|
25845f |
int i;
|
|
|
25845f |
diff --git a/libio/genops.c b/libio/genops.c
|
|
|
25845f |
index bad6ec65e25de31b..09a9c2eacf1fcaea 100644
|
|
|
25845f |
--- a/libio/genops.c
|
|
|
25845f |
+++ b/libio/genops.c
|
|
|
25845f |
@@ -600,12 +600,8 @@ _IO_old_init (_IO_FILE *fp, int flags)
|
|
|
25845f |
}
|
|
|
25845f |
|
|
|
25845f |
void
|
|
|
25845f |
-_IO_no_init (fp, flags, orientation, wd, jmp)
|
|
|
25845f |
- _IO_FILE *fp;
|
|
|
25845f |
- int flags;
|
|
|
25845f |
- int orientation;
|
|
|
25845f |
- struct _IO_wide_data *wd;
|
|
|
25845f |
- const struct _IO_jump_t *jmp;
|
|
|
25845f |
+_IO_no_init (_IO_FILE *fp, int flags, int orientation,
|
|
|
25845f |
+ struct _IO_wide_data *wd, const struct _IO_jump_t *jmp)
|
|
|
25845f |
{
|
|
|
25845f |
_IO_old_init (fp, flags);
|
|
|
25845f |
fp->_mode = orientation;
|
|
|
25845f |
diff --git a/libio/iofopncook.c b/libio/iofopncook.c
|
|
|
25845f |
index d5c28f31c377905a..f1ac641ee6537fd6 100644
|
|
|
25845f |
--- a/libio/iofopncook.c
|
|
|
25845f |
+++ b/libio/iofopncook.c
|
|
|
25845f |
@@ -170,10 +170,8 @@ _IO_cookie_init (struct _IO_cookie_file *cfile, int read_write,
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
_IO_FILE *
|
|
|
25845f |
-_IO_fopencookie (cookie, mode, io_functions)
|
|
|
25845f |
- void *cookie;
|
|
|
25845f |
- const char *mode;
|
|
|
25845f |
- _IO_cookie_io_functions_t io_functions;
|
|
|
25845f |
+_IO_fopencookie (void *cookie, const char *mode,
|
|
|
25845f |
+ _IO_cookie_io_functions_t io_functions)
|
|
|
25845f |
{
|
|
|
25845f |
int read_write;
|
|
|
25845f |
struct locked_FILE
|
|
|
25845f |
@@ -264,10 +262,8 @@ static const struct _IO_jump_t _IO_old_cookie_jumps libio_vtable = {
|
|
|
25845f |
|
|
|
25845f |
_IO_FILE *
|
|
|
25845f |
attribute_compat_text_section
|
|
|
25845f |
-_IO_old_fopencookie (cookie, mode, io_functions)
|
|
|
25845f |
- void *cookie;
|
|
|
25845f |
- const char *mode;
|
|
|
25845f |
- _IO_cookie_io_functions_t io_functions;
|
|
|
25845f |
+_IO_old_fopencookie (void *cookie, const char *mode,
|
|
|
25845f |
+ _IO_cookie_io_functions_t io_functions)
|
|
|
25845f |
{
|
|
|
25845f |
_IO_FILE *ret;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/libio/iofwrite_u.c b/libio/iofwrite_u.c
|
|
|
25845f |
index a1077eeb922640d3..99b049cc37beb6de 100644
|
|
|
25845f |
--- a/libio/iofwrite_u.c
|
|
|
25845f |
+++ b/libio/iofwrite_u.c
|
|
|
25845f |
@@ -30,11 +30,8 @@
|
|
|
25845f |
#undef fwrite_unlocked
|
|
|
25845f |
|
|
|
25845f |
_IO_size_t
|
|
|
25845f |
-fwrite_unlocked (buf, size, count, fp)
|
|
|
25845f |
- const void *buf;
|
|
|
25845f |
- _IO_size_t size;
|
|
|
25845f |
- _IO_size_t count;
|
|
|
25845f |
- _IO_FILE *fp;
|
|
|
25845f |
+fwrite_unlocked (const void *buf, _IO_size_t size, _IO_size_t count,
|
|
|
25845f |
+ _IO_FILE *fp)
|
|
|
25845f |
{
|
|
|
25845f |
_IO_size_t request = size * count;
|
|
|
25845f |
_IO_size_t written = 0;
|
|
|
25845f |
diff --git a/libio/iogetline.c b/libio/iogetline.c
|
|
|
25845f |
index bdb35b30fbcf1bee..a521e94949c42d4e 100644
|
|
|
25845f |
--- a/libio/iogetline.c
|
|
|
25845f |
+++ b/libio/iogetline.c
|
|
|
25845f |
@@ -28,12 +28,8 @@
|
|
|
25845f |
#include <string.h>
|
|
|
25845f |
|
|
|
25845f |
_IO_size_t
|
|
|
25845f |
-_IO_getline (fp, buf, n, delim, extract_delim)
|
|
|
25845f |
- _IO_FILE *fp;
|
|
|
25845f |
- char *buf;
|
|
|
25845f |
- _IO_size_t n;
|
|
|
25845f |
- int delim;
|
|
|
25845f |
- int extract_delim;
|
|
|
25845f |
+_IO_getline (_IO_FILE *fp, char *buf, _IO_size_t n, int delim,
|
|
|
25845f |
+ int extract_delim)
|
|
|
25845f |
{
|
|
|
25845f |
return _IO_getline_info (fp, buf, n, delim, extract_delim, (int *) 0);
|
|
|
25845f |
}
|
|
|
25845f |
@@ -48,13 +44,8 @@ libc_hidden_def (_IO_getline)
|
|
|
25845f |
If extract_delim > 0, insert delim in output. */
|
|
|
25845f |
|
|
|
25845f |
_IO_size_t
|
|
|
25845f |
-_IO_getline_info (fp, buf, n, delim, extract_delim, eof)
|
|
|
25845f |
- _IO_FILE *fp;
|
|
|
25845f |
- char *buf;
|
|
|
25845f |
- _IO_size_t n;
|
|
|
25845f |
- int delim;
|
|
|
25845f |
- int extract_delim;
|
|
|
25845f |
- int *eof;
|
|
|
25845f |
+_IO_getline_info (_IO_FILE *fp, char *buf, _IO_size_t n, int delim,
|
|
|
25845f |
+ int extract_delim, int *eof)
|
|
|
25845f |
{
|
|
|
25845f |
char *ptr = buf;
|
|
|
25845f |
if (eof != NULL)
|
|
|
25845f |
diff --git a/libio/iogetwline.c b/libio/iogetwline.c
|
|
|
25845f |
index 63b7da67201b3f10..b14aa615e4537fda 100644
|
|
|
25845f |
--- a/libio/iogetwline.c
|
|
|
25845f |
+++ b/libio/iogetwline.c
|
|
|
25845f |
@@ -33,12 +33,8 @@
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
_IO_size_t
|
|
|
25845f |
-_IO_getwline (fp, buf, n, delim, extract_delim)
|
|
|
25845f |
- _IO_FILE *fp;
|
|
|
25845f |
- wchar_t *buf;
|
|
|
25845f |
- _IO_size_t n;
|
|
|
25845f |
- wint_t delim;
|
|
|
25845f |
- int extract_delim;
|
|
|
25845f |
+_IO_getwline (_IO_FILE *fp, wchar_t *buf, _IO_size_t n, wint_t delim,
|
|
|
25845f |
+ int extract_delim)
|
|
|
25845f |
{
|
|
|
25845f |
return _IO_getwline_info (fp, buf, n, delim, extract_delim, (wint_t *) 0);
|
|
|
25845f |
}
|
|
|
25845f |
@@ -52,13 +48,8 @@ _IO_getwline (fp, buf, n, delim, extract_delim)
|
|
|
25845f |
If extract_delim > 0, insert delim in output. */
|
|
|
25845f |
|
|
|
25845f |
_IO_size_t
|
|
|
25845f |
-_IO_getwline_info (fp, buf, n, delim, extract_delim, eof)
|
|
|
25845f |
- _IO_FILE *fp;
|
|
|
25845f |
- wchar_t *buf;
|
|
|
25845f |
- _IO_size_t n;
|
|
|
25845f |
- wint_t delim;
|
|
|
25845f |
- int extract_delim;
|
|
|
25845f |
- wint_t *eof;
|
|
|
25845f |
+_IO_getwline_info (_IO_FILE *fp, wchar_t *buf, _IO_size_t n, wint_t delim,
|
|
|
25845f |
+ int extract_delim, wint_t *eof)
|
|
|
25845f |
{
|
|
|
25845f |
wchar_t *ptr = buf;
|
|
|
25845f |
if (eof != NULL)
|
|
|
25845f |
diff --git a/libio/vsnprintf.c b/libio/vsnprintf.c
|
|
|
25845f |
index 4e76a8c8fc035430..8711767fb1df32e8 100644
|
|
|
25845f |
--- a/libio/vsnprintf.c
|
|
|
25845f |
+++ b/libio/vsnprintf.c
|
|
|
25845f |
@@ -90,11 +90,8 @@ const struct _IO_jump_t _IO_strn_jumps libio_vtable attribute_hidden =
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-_IO_vsnprintf (string, maxlen, format, args)
|
|
|
25845f |
- char *string;
|
|
|
25845f |
- _IO_size_t maxlen;
|
|
|
25845f |
- const char *format;
|
|
|
25845f |
- _IO_va_list args;
|
|
|
25845f |
+_IO_vsnprintf (char *string, _IO_size_t maxlen, const char *format,
|
|
|
25845f |
+ _IO_va_list args)
|
|
|
25845f |
{
|
|
|
25845f |
_IO_strnfile sf;
|
|
|
25845f |
int ret;
|
|
|
25845f |
diff --git a/libio/vswprintf.c b/libio/vswprintf.c
|
|
|
25845f |
index 5cd58de2e88939d9..b42333822052fda4 100644
|
|
|
25845f |
--- a/libio/vswprintf.c
|
|
|
25845f |
+++ b/libio/vswprintf.c
|
|
|
25845f |
@@ -89,11 +89,8 @@ const struct _IO_jump_t _IO_wstrn_jumps libio_vtable attribute_hidden =
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-_IO_vswprintf (string, maxlen, format, args)
|
|
|
25845f |
- wchar_t *string;
|
|
|
25845f |
- _IO_size_t maxlen;
|
|
|
25845f |
- const wchar_t *format;
|
|
|
25845f |
- _IO_va_list args;
|
|
|
25845f |
+_IO_vswprintf (wchar_t *string, _IO_size_t maxlen, const wchar_t *format,
|
|
|
25845f |
+ _IO_va_list args)
|
|
|
25845f |
{
|
|
|
25845f |
_IO_wstrnfile sf;
|
|
|
25845f |
int ret;
|
|
|
25845f |
diff --git a/locale/programs/simple-hash.c b/locale/programs/simple-hash.c
|
|
|
25845f |
index b08e60ac72185ad9..a7e2d2bb988686a7 100644
|
|
|
25845f |
--- a/locale/programs/simple-hash.c
|
|
|
25845f |
+++ b/locale/programs/simple-hash.c
|
|
|
25845f |
@@ -120,13 +120,8 @@ insert_entry (hash_table *htab, const void *key, size_t keylen, void *data)
|
|
|
25845f |
}
|
|
|
25845f |
|
|
|
25845f |
static void
|
|
|
25845f |
-insert_entry_2 (htab, key, keylen, hval, idx, data)
|
|
|
25845f |
- hash_table *htab;
|
|
|
25845f |
- const void *key;
|
|
|
25845f |
- size_t keylen;
|
|
|
25845f |
- unsigned long int hval;
|
|
|
25845f |
- size_t idx;
|
|
|
25845f |
- void *data;
|
|
|
25845f |
+insert_entry_2 (hash_table *htab, const void *key, size_t keylen,
|
|
|
25845f |
+ unsigned long int hval, size_t idx, void *data)
|
|
|
25845f |
{
|
|
|
25845f |
hash_entry *table = (hash_entry *) htab->table;
|
|
|
25845f |
|
|
|
25845f |
@@ -175,11 +170,8 @@ insert_entry_2 (htab, key, keylen, hval, idx, data)
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-find_entry (htab, key, keylen, result)
|
|
|
25845f |
- const hash_table *htab;
|
|
|
25845f |
- const void *key;
|
|
|
25845f |
- size_t keylen;
|
|
|
25845f |
- void **result;
|
|
|
25845f |
+find_entry (const hash_table *htab, const void *key, size_t keylen,
|
|
|
25845f |
+ void **result)
|
|
|
25845f |
{
|
|
|
25845f |
hash_entry *table = (hash_entry *) htab->table;
|
|
|
25845f |
size_t idx = lookup (htab, key, keylen, compute_hashval (key, keylen));
|
|
|
25845f |
@@ -207,12 +199,8 @@ set_entry (hash_table *htab, const void *key, size_t keylen, void *newval)
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-iterate_table (htab, ptr, key, keylen, data)
|
|
|
25845f |
- const hash_table *htab;
|
|
|
25845f |
- void **ptr;
|
|
|
25845f |
- const void **key;
|
|
|
25845f |
- size_t *keylen;
|
|
|
25845f |
- void **data;
|
|
|
25845f |
+iterate_table (const hash_table *htab, void **ptr, const void **key,
|
|
|
25845f |
+ size_t *keylen, void **data)
|
|
|
25845f |
{
|
|
|
25845f |
if (*ptr == NULL)
|
|
|
25845f |
{
|
|
|
25845f |
@@ -239,11 +227,8 @@ iterate_table (htab, ptr, key, keylen, data)
|
|
|
25845f |
[Knuth] The Art of Computer Programming, part3 (6.4) */
|
|
|
25845f |
|
|
|
25845f |
static size_t
|
|
|
25845f |
-lookup (htab, key, keylen, hval)
|
|
|
25845f |
- const hash_table *htab;
|
|
|
25845f |
- const void *key;
|
|
|
25845f |
- size_t keylen;
|
|
|
25845f |
- unsigned long int hval;
|
|
|
25845f |
+lookup (const hash_table *htab, const void *key, size_t keylen,
|
|
|
25845f |
+ unsigned long int hval)
|
|
|
25845f |
{
|
|
|
25845f |
unsigned long int hash;
|
|
|
25845f |
size_t idx;
|
|
|
25845f |
diff --git a/login/forkpty.c b/login/forkpty.c
|
|
|
25845f |
index e5e2873534801140..397d60dd63fc3171 100644
|
|
|
25845f |
--- a/login/forkpty.c
|
|
|
25845f |
+++ b/login/forkpty.c
|
|
|
25845f |
@@ -23,11 +23,8 @@
|
|
|
25845f |
#include <pty.h>
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-forkpty (amaster, name, termp, winp)
|
|
|
25845f |
- int *amaster;
|
|
|
25845f |
- char *name;
|
|
|
25845f |
- const struct termios *termp;
|
|
|
25845f |
- const struct winsize *winp;
|
|
|
25845f |
+forkpty (int *amaster, char *name, const struct termios *termp,
|
|
|
25845f |
+ const struct winsize *winp)
|
|
|
25845f |
{
|
|
|
25845f |
int master, slave, pid;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/misc/hsearch_r.c b/misc/hsearch_r.c
|
|
|
25845f |
index 3509fb7b20fe524e..a71bb7d3412bf242 100644
|
|
|
25845f |
--- a/misc/hsearch_r.c
|
|
|
25845f |
+++ b/misc/hsearch_r.c
|
|
|
25845f |
@@ -147,11 +147,8 @@ libc_hidden_def (hdestroy_r)
|
|
|
25845f |
equality of the stored and the parameter value. This helps to prevent
|
|
|
25845f |
unnecessary expensive calls of strcmp. */
|
|
|
25845f |
int
|
|
|
25845f |
-hsearch_r (item, action, retval, htab)
|
|
|
25845f |
- ENTRY item;
|
|
|
25845f |
- ACTION action;
|
|
|
25845f |
- ENTRY **retval;
|
|
|
25845f |
- struct hsearch_data *htab;
|
|
|
25845f |
+hsearch_r (ENTRY item, ACTION action, ENTRY **retval,
|
|
|
25845f |
+ struct hsearch_data *htab)
|
|
|
25845f |
{
|
|
|
25845f |
unsigned int hval;
|
|
|
25845f |
unsigned int count;
|
|
|
25845f |
diff --git a/misc/select.c b/misc/select.c
|
|
|
25845f |
index 8f5cb0d2af26b573..f134b0453d9be90c 100644
|
|
|
25845f |
--- a/misc/select.c
|
|
|
25845f |
+++ b/misc/select.c
|
|
|
25845f |
@@ -25,12 +25,8 @@
|
|
|
25845f |
after waiting the interval specified therein. Returns the number of ready
|
|
|
25845f |
descriptors, or -1 for errors. */
|
|
|
25845f |
int
|
|
|
25845f |
-__select (nfds, readfds, writefds, exceptfds, timeout)
|
|
|
25845f |
- int nfds;
|
|
|
25845f |
- fd_set *readfds;
|
|
|
25845f |
- fd_set *writefds;
|
|
|
25845f |
- fd_set *exceptfds;
|
|
|
25845f |
- struct timeval *timeout;
|
|
|
25845f |
+__select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
|
|
|
25845f |
+ struct timeval *timeout)
|
|
|
25845f |
{
|
|
|
25845f |
__set_errno (ENOSYS);
|
|
|
25845f |
return -1;
|
|
|
25845f |
diff --git a/nptl/cleanup_defer_compat.c b/nptl/cleanup_defer_compat.c
|
|
|
25845f |
index 88fd43ca8d8c45ab..e15723611c71d55a 100644
|
|
|
25845f |
--- a/nptl/cleanup_defer_compat.c
|
|
|
25845f |
+++ b/nptl/cleanup_defer_compat.c
|
|
|
25845f |
@@ -59,9 +59,8 @@ strong_alias (_pthread_cleanup_push_defer, __pthread_cleanup_push_defer)
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
void
|
|
|
25845f |
-_pthread_cleanup_pop_restore (buffer, execute)
|
|
|
25845f |
- struct _pthread_cleanup_buffer *buffer;
|
|
|
25845f |
- int execute;
|
|
|
25845f |
+_pthread_cleanup_pop_restore (struct _pthread_cleanup_buffer *buffer,
|
|
|
25845f |
+ int execute)
|
|
|
25845f |
{
|
|
|
25845f |
struct pthread *self = THREAD_SELF;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/nptl/old_pthread_cond_init.c b/nptl/old_pthread_cond_init.c
|
|
|
25845f |
index 5ec4cf2ea3137274..38873877107fec86 100644
|
|
|
25845f |
--- a/nptl/old_pthread_cond_init.c
|
|
|
25845f |
+++ b/nptl/old_pthread_cond_init.c
|
|
|
25845f |
@@ -23,9 +23,8 @@
|
|
|
25845f |
|
|
|
25845f |
#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_3_2)
|
|
|
25845f |
int
|
|
|
25845f |
-__pthread_cond_init_2_0 (cond, cond_attr)
|
|
|
25845f |
- pthread_cond_2_0_t *cond;
|
|
|
25845f |
- const pthread_condattr_t *cond_attr;
|
|
|
25845f |
+__pthread_cond_init_2_0 (pthread_cond_2_0_t *cond,
|
|
|
25845f |
+ const pthread_condattr_t *cond_attr)
|
|
|
25845f |
{
|
|
|
25845f |
struct pthread_condattr *icond_attr = (struct pthread_condattr *) cond_attr;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/nptl/old_pthread_cond_timedwait.c b/nptl/old_pthread_cond_timedwait.c
|
|
|
25845f |
index a8d113f9a5273c0c..fe95f96d1b8ef8e5 100644
|
|
|
25845f |
--- a/nptl/old_pthread_cond_timedwait.c
|
|
|
25845f |
+++ b/nptl/old_pthread_cond_timedwait.c
|
|
|
25845f |
@@ -25,10 +25,8 @@
|
|
|
25845f |
|
|
|
25845f |
#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_3_2)
|
|
|
25845f |
int
|
|
|
25845f |
-__pthread_cond_timedwait_2_0 (cond, mutex, abstime)
|
|
|
25845f |
- pthread_cond_2_0_t *cond;
|
|
|
25845f |
- pthread_mutex_t *mutex;
|
|
|
25845f |
- const struct timespec *abstime;
|
|
|
25845f |
+__pthread_cond_timedwait_2_0 (pthread_cond_2_0_t *cond, pthread_mutex_t *mutex,
|
|
|
25845f |
+ const struct timespec *abstime)
|
|
|
25845f |
{
|
|
|
25845f |
if (cond->cond == NULL)
|
|
|
25845f |
{
|
|
|
25845f |
diff --git a/nptl/pthread_barrier_init.c b/nptl/pthread_barrier_init.c
|
|
|
25845f |
index 8cd6f0e56ee6be1b..55849b7948e34fac 100644
|
|
|
25845f |
--- a/nptl/pthread_barrier_init.c
|
|
|
25845f |
+++ b/nptl/pthread_barrier_init.c
|
|
|
25845f |
@@ -29,10 +29,8 @@ static const struct pthread_barrierattr default_barrierattr =
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-pthread_barrier_init (barrier, attr, count)
|
|
|
25845f |
- pthread_barrier_t *barrier;
|
|
|
25845f |
- const pthread_barrierattr_t *attr;
|
|
|
25845f |
- unsigned int count;
|
|
|
25845f |
+pthread_barrier_init (pthread_barrier_t *barrier,
|
|
|
25845f |
+ const pthread_barrierattr_t *attr, unsigned int count)
|
|
|
25845f |
{
|
|
|
25845f |
struct pthread_barrier *ibarrier;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/nptl/pthread_barrierattr_getpshared.c b/nptl/pthread_barrierattr_getpshared.c
|
|
|
25845f |
index 937d02428e52718a..dbe4893619cb17ef 100644
|
|
|
25845f |
--- a/nptl/pthread_barrierattr_getpshared.c
|
|
|
25845f |
+++ b/nptl/pthread_barrierattr_getpshared.c
|
|
|
25845f |
@@ -20,9 +20,8 @@
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-pthread_barrierattr_getpshared (attr, pshared)
|
|
|
25845f |
- const pthread_barrierattr_t *attr;
|
|
|
25845f |
- int *pshared;
|
|
|
25845f |
+pthread_barrierattr_getpshared (const pthread_barrierattr_t *attr,
|
|
|
25845f |
+ int *pshared)
|
|
|
25845f |
{
|
|
|
25845f |
*pshared = ((const struct pthread_barrierattr *) attr)->pshared;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/nptl/pthread_getschedparam.c b/nptl/pthread_getschedparam.c
|
|
|
25845f |
index de81dbc068148ad5..dbff8a984196e6e4 100644
|
|
|
25845f |
--- a/nptl/pthread_getschedparam.c
|
|
|
25845f |
+++ b/nptl/pthread_getschedparam.c
|
|
|
25845f |
@@ -23,10 +23,8 @@
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-__pthread_getschedparam (threadid, policy, param)
|
|
|
25845f |
- pthread_t threadid;
|
|
|
25845f |
- int *policy;
|
|
|
25845f |
- struct sched_param *param;
|
|
|
25845f |
+__pthread_getschedparam (pthread_t threadid, int *policy,
|
|
|
25845f |
+ struct sched_param *param)
|
|
|
25845f |
{
|
|
|
25845f |
struct pthread *pd = (struct pthread *) threadid;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/nptl/pthread_mutex_setprioceiling.c b/nptl/pthread_mutex_setprioceiling.c
|
|
|
25845f |
index a0dcc7896305daeb..f9b5609bf10cd81a 100644
|
|
|
25845f |
--- a/nptl/pthread_mutex_setprioceiling.c
|
|
|
25845f |
+++ b/nptl/pthread_mutex_setprioceiling.c
|
|
|
25845f |
@@ -23,10 +23,8 @@
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-pthread_mutex_setprioceiling (mutex, prioceiling, old_ceiling)
|
|
|
25845f |
- pthread_mutex_t *mutex;
|
|
|
25845f |
- int prioceiling;
|
|
|
25845f |
- int *old_ceiling;
|
|
|
25845f |
+pthread_mutex_setprioceiling (pthread_mutex_t *mutex, int prioceiling,
|
|
|
25845f |
+ int *old_ceiling)
|
|
|
25845f |
{
|
|
|
25845f |
/* The low bits of __kind aren't ever changed after pthread_mutex_init,
|
|
|
25845f |
so we don't need a lock yet. */
|
|
|
25845f |
diff --git a/nptl/pthread_mutexattr_getprioceiling.c b/nptl/pthread_mutexattr_getprioceiling.c
|
|
|
25845f |
index 56d103278dc44c83..2fa97d9024686e24 100644
|
|
|
25845f |
--- a/nptl/pthread_mutexattr_getprioceiling.c
|
|
|
25845f |
+++ b/nptl/pthread_mutexattr_getprioceiling.c
|
|
|
25845f |
@@ -21,9 +21,8 @@
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-pthread_mutexattr_getprioceiling (attr, prioceiling)
|
|
|
25845f |
- const pthread_mutexattr_t *attr;
|
|
|
25845f |
- int *prioceiling;
|
|
|
25845f |
+pthread_mutexattr_getprioceiling (const pthread_mutexattr_t *attr,
|
|
|
25845f |
+ int *prioceiling)
|
|
|
25845f |
{
|
|
|
25845f |
const struct pthread_mutexattr *iattr;
|
|
|
25845f |
int ceiling;
|
|
|
25845f |
diff --git a/nptl/pthread_rwlock_init.c b/nptl/pthread_rwlock_init.c
|
|
|
25845f |
index 2f6c8fad0f262778..0acd59b223984c37 100644
|
|
|
25845f |
--- a/nptl/pthread_rwlock_init.c
|
|
|
25845f |
+++ b/nptl/pthread_rwlock_init.c
|
|
|
25845f |
@@ -29,9 +29,8 @@ static const struct pthread_rwlockattr default_rwlockattr =
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-__pthread_rwlock_init (rwlock, attr)
|
|
|
25845f |
- pthread_rwlock_t *rwlock;
|
|
|
25845f |
- const pthread_rwlockattr_t *attr;
|
|
|
25845f |
+__pthread_rwlock_init (pthread_rwlock_t *rwlock,
|
|
|
25845f |
+ const pthread_rwlockattr_t *attr)
|
|
|
25845f |
{
|
|
|
25845f |
const struct pthread_rwlockattr *iattr;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/nptl/pthread_rwlock_timedrdlock.c b/nptl/pthread_rwlock_timedrdlock.c
|
|
|
25845f |
index b7622abfa2478283..59f871d0eebb1202 100644
|
|
|
25845f |
--- a/nptl/pthread_rwlock_timedrdlock.c
|
|
|
25845f |
+++ b/nptl/pthread_rwlock_timedrdlock.c
|
|
|
25845f |
@@ -25,9 +25,8 @@
|
|
|
25845f |
|
|
|
25845f |
/* Try to acquire read lock for RWLOCK or return after specfied time. */
|
|
|
25845f |
int
|
|
|
25845f |
-pthread_rwlock_timedrdlock (rwlock, abstime)
|
|
|
25845f |
- pthread_rwlock_t *rwlock;
|
|
|
25845f |
- const struct timespec *abstime;
|
|
|
25845f |
+pthread_rwlock_timedrdlock (pthread_rwlock_t *rwlock,
|
|
|
25845f |
+ const struct timespec *abstime)
|
|
|
25845f |
{
|
|
|
25845f |
int result = 0;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/nptl/pthread_rwlock_timedwrlock.c b/nptl/pthread_rwlock_timedwrlock.c
|
|
|
25845f |
index 5f2399f91e884b78..e344005f1017384e 100644
|
|
|
25845f |
--- a/nptl/pthread_rwlock_timedwrlock.c
|
|
|
25845f |
+++ b/nptl/pthread_rwlock_timedwrlock.c
|
|
|
25845f |
@@ -25,9 +25,8 @@
|
|
|
25845f |
|
|
|
25845f |
/* Try to acquire write lock for RWLOCK or return after specfied time. */
|
|
|
25845f |
int
|
|
|
25845f |
-pthread_rwlock_timedwrlock (rwlock, abstime)
|
|
|
25845f |
- pthread_rwlock_t *rwlock;
|
|
|
25845f |
- const struct timespec *abstime;
|
|
|
25845f |
+pthread_rwlock_timedwrlock (pthread_rwlock_t *rwlock,
|
|
|
25845f |
+ const struct timespec *abstime)
|
|
|
25845f |
{
|
|
|
25845f |
int result = 0;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/nptl/pthread_setschedparam.c b/nptl/pthread_setschedparam.c
|
|
|
25845f |
index 15d26b4116bfc1c5..a0fa578821ceea51 100644
|
|
|
25845f |
--- a/nptl/pthread_setschedparam.c
|
|
|
25845f |
+++ b/nptl/pthread_setschedparam.c
|
|
|
25845f |
@@ -24,10 +24,8 @@
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-__pthread_setschedparam (threadid, policy, param)
|
|
|
25845f |
- pthread_t threadid;
|
|
|
25845f |
- int policy;
|
|
|
25845f |
- const struct sched_param *param;
|
|
|
25845f |
+__pthread_setschedparam (pthread_t threadid, int policy,
|
|
|
25845f |
+ const struct sched_param *param)
|
|
|
25845f |
{
|
|
|
25845f |
struct pthread *pd = (struct pthread *) threadid;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/nptl/sysdeps/pthread/timer_settime.c b/nptl/sysdeps/pthread/timer_settime.c
|
|
|
25845f |
index da0908b0bcad6da7..e86d0a3d231faf09 100644
|
|
|
25845f |
--- a/nptl/sysdeps/pthread/timer_settime.c
|
|
|
25845f |
+++ b/nptl/sysdeps/pthread/timer_settime.c
|
|
|
25845f |
@@ -25,11 +25,8 @@
|
|
|
25845f |
|
|
|
25845f |
/* Set timer TIMERID to VALUE, returning old value in OVLAUE. */
|
|
|
25845f |
int
|
|
|
25845f |
-timer_settime (timerid, flags, value, ovalue)
|
|
|
25845f |
- timer_t timerid;
|
|
|
25845f |
- int flags;
|
|
|
25845f |
- const struct itimerspec *value;
|
|
|
25845f |
- struct itimerspec *ovalue;
|
|
|
25845f |
+timer_settime (timer_t timerid, int flags, const struct itimerspec *value,
|
|
|
25845f |
+ struct itimerspec *ovalue)
|
|
|
25845f |
{
|
|
|
25845f |
struct timer_node *timer;
|
|
|
25845f |
struct thread_node *thread = NULL;
|
|
|
25845f |
diff --git a/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c b/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c
|
|
|
25845f |
index 5e3774fbd4ed3754..2782e93411ce01b8 100644
|
|
|
25845f |
--- a/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c
|
|
|
25845f |
+++ b/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c
|
|
|
25845f |
@@ -21,10 +21,8 @@
|
|
|
25845f |
#include <lowlevellock.h>
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-pthread_barrier_init (barrier, attr, count)
|
|
|
25845f |
- pthread_barrier_t *barrier;
|
|
|
25845f |
- const pthread_barrierattr_t *attr;
|
|
|
25845f |
- unsigned int count;
|
|
|
25845f |
+pthread_barrier_init (pthread_barrier_t *barrier,
|
|
|
25845f |
+ const pthread_barrierattr_t *attr, unsigned int count)
|
|
|
25845f |
{
|
|
|
25845f |
union sparc_pthread_barrier *ibarrier;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/nptl/sysdeps/unix/sysv/linux/timer_settime.c b/nptl/sysdeps/unix/sysv/linux/timer_settime.c
|
|
|
25845f |
index 5b522ec75040f12c..94acc60a0f86b72c 100644
|
|
|
25845f |
--- a/nptl/sysdeps/unix/sysv/linux/timer_settime.c
|
|
|
25845f |
+++ b/nptl/sysdeps/unix/sysv/linux/timer_settime.c
|
|
|
25845f |
@@ -30,11 +30,8 @@
|
|
|
25845f |
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-timer_settime (timerid, flags, value, ovalue)
|
|
|
25845f |
- timer_t timerid;
|
|
|
25845f |
- int flags;
|
|
|
25845f |
- const struct itimerspec *value;
|
|
|
25845f |
- struct itimerspec *ovalue;
|
|
|
25845f |
+timer_settime (timer_t timerid, int flags, const struct itimerspec *value,
|
|
|
25845f |
+ struct itimerspec *ovalue)
|
|
|
25845f |
{
|
|
|
25845f |
#undef timer_settime
|
|
|
25845f |
struct timer *kt = (struct timer *) timerid;
|
|
|
25845f |
diff --git a/socket/recvfrom.c b/socket/recvfrom.c
|
|
|
25845f |
index b99774f368501b55..f652b1478b7a6e32 100644
|
|
|
25845f |
--- a/socket/recvfrom.c
|
|
|
25845f |
+++ b/socket/recvfrom.c
|
|
|
25845f |
@@ -22,13 +22,8 @@
|
|
|
25845f |
at address ADDR (which is ADDR_LEN bytes long).
|
|
|
25845f |
Returns the number read or -1 for errors. */
|
|
|
25845f |
ssize_t
|
|
|
25845f |
-__recvfrom (fd, buf, n, flags, addr, addr_len)
|
|
|
25845f |
- int fd;
|
|
|
25845f |
- void *buf;
|
|
|
25845f |
- size_t n;
|
|
|
25845f |
- int flags;
|
|
|
25845f |
- __SOCKADDR_ARG addr;
|
|
|
25845f |
- socklen_t *addr_len;
|
|
|
25845f |
+__recvfrom (int fd, void *buf, size_t n, int flags, __SOCKADDR_ARG addr,
|
|
|
25845f |
+ socklen_t *addr_len)
|
|
|
25845f |
{
|
|
|
25845f |
__set_errno (ENOSYS);
|
|
|
25845f |
return -1;
|
|
|
25845f |
diff --git a/socket/sendto.c b/socket/sendto.c
|
|
|
25845f |
index ae06a54cc6947a7f..090fd000799c9347 100644
|
|
|
25845f |
--- a/socket/sendto.c
|
|
|
25845f |
+++ b/socket/sendto.c
|
|
|
25845f |
@@ -21,13 +21,8 @@
|
|
|
25845f |
/* Send N bytes of BUF on socket FD to peer at address ADDR (which is
|
|
|
25845f |
ADDR_LEN bytes long). Returns the number sent, or -1 for errors. */
|
|
|
25845f |
ssize_t
|
|
|
25845f |
-__sendto (fd, buf, n, flags, addr, addr_len)
|
|
|
25845f |
- int fd;
|
|
|
25845f |
- const __ptr_t buf;
|
|
|
25845f |
- size_t n;
|
|
|
25845f |
- int flags;
|
|
|
25845f |
- __CONST_SOCKADDR_ARG addr;
|
|
|
25845f |
- socklen_t addr_len;
|
|
|
25845f |
+__sendto (int fd, const __ptr_t buf, size_t n, int flags,
|
|
|
25845f |
+ __CONST_SOCKADDR_ARG addr, socklen_t addr_len)
|
|
|
25845f |
{
|
|
|
25845f |
__set_errno (ENOSYS);
|
|
|
25845f |
return -1;
|
|
|
25845f |
diff --git a/socket/setsockopt.c b/socket/setsockopt.c
|
|
|
25845f |
index 9e1e7a3d800b4bdb..bf08491d63ff2292 100644
|
|
|
25845f |
--- a/socket/setsockopt.c
|
|
|
25845f |
+++ b/socket/setsockopt.c
|
|
|
25845f |
@@ -22,12 +22,8 @@
|
|
|
25845f |
to *OPTVAL (which is OPTLEN bytes long).
|
|
|
25845f |
Returns 0 on success, -1 for errors. */
|
|
|
25845f |
int
|
|
|
25845f |
-__setsockopt (fd, level, optname, optval, optlen)
|
|
|
25845f |
- int fd;
|
|
|
25845f |
- int level;
|
|
|
25845f |
- int optname;
|
|
|
25845f |
- const __ptr_t optval;
|
|
|
25845f |
- socklen_t optlen;
|
|
|
25845f |
+__setsockopt (int fd, int level, int optname, const __ptr_t optval,
|
|
|
25845f |
+ socklen_t optlen)
|
|
|
25845f |
{
|
|
|
25845f |
__set_errno (ENOSYS);
|
|
|
25845f |
return -1;
|
|
|
25845f |
diff --git a/stdio-common/_itoa.c b/stdio-common/_itoa.c
|
|
|
25845f |
index 67592318866b553e..dbf4c7c72f1173c8 100644
|
|
|
25845f |
--- a/stdio-common/_itoa.c
|
|
|
25845f |
+++ b/stdio-common/_itoa.c
|
|
|
25845f |
@@ -191,11 +191,8 @@ _itoa_word (_ITOA_WORD_TYPE value, char *buflim,
|
|
|
25845f |
|
|
|
25845f |
#if _ITOA_NEEDED
|
|
|
25845f |
char *
|
|
|
25845f |
-_itoa (value, buflim, base, upper_case)
|
|
|
25845f |
- unsigned long long int value;
|
|
|
25845f |
- char *buflim;
|
|
|
25845f |
- unsigned int base;
|
|
|
25845f |
- int upper_case;
|
|
|
25845f |
+_itoa (unsigned long long int value, char *buflim, unsigned int base,
|
|
|
25845f |
+ int upper_case)
|
|
|
25845f |
{
|
|
|
25845f |
const char *digits = (upper_case
|
|
|
25845f |
? _itoa_upper_digits
|
|
|
25845f |
diff --git a/stdio-common/_itowa.c b/stdio-common/_itowa.c
|
|
|
25845f |
index f50893dfcd79ea33..0cf3f773806dfc67 100644
|
|
|
25845f |
--- a/stdio-common/_itowa.c
|
|
|
25845f |
+++ b/stdio-common/_itowa.c
|
|
|
25845f |
@@ -87,11 +87,8 @@ extern const wchar_t _itowa_upper_digits[] attribute_hidden;
|
|
|
25845f |
|
|
|
25845f |
#if _ITOA_NEEDED
|
|
|
25845f |
wchar_t *
|
|
|
25845f |
-_itowa (value, buflim, base, upper_case)
|
|
|
25845f |
- unsigned long long int value;
|
|
|
25845f |
- wchar_t *buflim;
|
|
|
25845f |
- unsigned int base;
|
|
|
25845f |
- int upper_case;
|
|
|
25845f |
+_itowa (unsigned long long int value, wchar_t *buflim, unsigned int base,
|
|
|
25845f |
+ int upper_case)
|
|
|
25845f |
{
|
|
|
25845f |
const wchar_t *digits = (upper_case
|
|
|
25845f |
? _itowa_upper_digits : _itowa_lower_digits);
|
|
|
25845f |
diff --git a/stdio-common/reg-printf.c b/stdio-common/reg-printf.c
|
|
|
25845f |
index 30bf7dadd6343874..90d8558fca86196e 100644
|
|
|
25845f |
--- a/stdio-common/reg-printf.c
|
|
|
25845f |
+++ b/stdio-common/reg-printf.c
|
|
|
25845f |
@@ -38,10 +38,8 @@ int __register_printf_function (int, printf_function,
|
|
|
25845f |
|
|
|
25845f |
/* Register FUNC to be called to format SPEC specifiers. */
|
|
|
25845f |
int
|
|
|
25845f |
-__register_printf_specifier (spec, converter, arginfo)
|
|
|
25845f |
- int spec;
|
|
|
25845f |
- printf_function converter;
|
|
|
25845f |
- printf_arginfo_size_function arginfo;
|
|
|
25845f |
+__register_printf_specifier (int spec, printf_function converter,
|
|
|
25845f |
+ printf_arginfo_size_function arginfo)
|
|
|
25845f |
{
|
|
|
25845f |
if (spec < 0 || spec > (int) UCHAR_MAX)
|
|
|
25845f |
{
|
|
|
25845f |
@@ -79,10 +77,8 @@ weak_alias (__register_printf_specifier, register_printf_specifier)
|
|
|
25845f |
|
|
|
25845f |
/* Register FUNC to be called to format SPEC specifiers. */
|
|
|
25845f |
int
|
|
|
25845f |
-__register_printf_function (spec, converter, arginfo)
|
|
|
25845f |
- int spec;
|
|
|
25845f |
- printf_function converter;
|
|
|
25845f |
- printf_arginfo_function arginfo;
|
|
|
25845f |
+__register_printf_function (int spec, printf_function converter,
|
|
|
25845f |
+ printf_arginfo_function arginfo)
|
|
|
25845f |
{
|
|
|
25845f |
return __register_printf_specifier (spec, converter,
|
|
|
25845f |
(printf_arginfo_size_function*) arginfo);
|
|
|
25845f |
diff --git a/stdio-common/tempname.c b/stdio-common/tempname.c
|
|
|
25845f |
index d600e3708d86be6c..23b64e624b11765e 100644
|
|
|
25845f |
--- a/stdio-common/tempname.c
|
|
|
25845f |
+++ b/stdio-common/tempname.c
|
|
|
25845f |
@@ -24,12 +24,8 @@
|
|
|
25845f |
template suitable for use in __gen_tempname into TMPL, bounded
|
|
|
25845f |
by TMPL_LEN. */
|
|
|
25845f |
int
|
|
|
25845f |
-__path_search (tmpl, tmpl_len, dir, pfx, try_tmpdir)
|
|
|
25845f |
- char *tmpl;
|
|
|
25845f |
- size_t tmpl_len;
|
|
|
25845f |
- const char *dir;
|
|
|
25845f |
- const char *pfx;
|
|
|
25845f |
- int try_tmpdir;
|
|
|
25845f |
+__path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx,
|
|
|
25845f |
+ int try_tmpdir)
|
|
|
25845f |
{
|
|
|
25845f |
__set_errno (ENOSYS);
|
|
|
25845f |
return -1;
|
|
|
25845f |
diff --git a/stdlib/addmul_1.c b/stdlib/addmul_1.c
|
|
|
25845f |
index 8e8342a07ff3ad5f..276a379bef7d9bf0 100644
|
|
|
25845f |
--- a/stdlib/addmul_1.c
|
|
|
25845f |
+++ b/stdlib/addmul_1.c
|
|
|
25845f |
@@ -26,11 +26,8 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
|
|
|
25845f |
#include "longlong.h"
|
|
|
25845f |
|
|
|
25845f |
mp_limb_t
|
|
|
25845f |
-mpn_addmul_1 (res_ptr, s1_ptr, s1_size, s2_limb)
|
|
|
25845f |
- register mp_ptr res_ptr;
|
|
|
25845f |
- register mp_srcptr s1_ptr;
|
|
|
25845f |
- mp_size_t s1_size;
|
|
|
25845f |
- register mp_limb_t s2_limb;
|
|
|
25845f |
+mpn_addmul_1 (register mp_ptr res_ptr, register mp_srcptr s1_ptr,
|
|
|
25845f |
+ mp_size_t s1_size, register mp_limb_t s2_limb)
|
|
|
25845f |
{
|
|
|
25845f |
register mp_limb_t cy_limb;
|
|
|
25845f |
register mp_size_t j;
|
|
|
25845f |
diff --git a/stdlib/mul_1.c b/stdlib/mul_1.c
|
|
|
25845f |
index 87ab98189aef442a..9e7fcf6f27ec779e 100644
|
|
|
25845f |
--- a/stdlib/mul_1.c
|
|
|
25845f |
+++ b/stdlib/mul_1.c
|
|
|
25845f |
@@ -24,11 +24,8 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
|
|
|
25845f |
#include "longlong.h"
|
|
|
25845f |
|
|
|
25845f |
mp_limb_t
|
|
|
25845f |
-mpn_mul_1 (res_ptr, s1_ptr, s1_size, s2_limb)
|
|
|
25845f |
- register mp_ptr res_ptr;
|
|
|
25845f |
- register mp_srcptr s1_ptr;
|
|
|
25845f |
- mp_size_t s1_size;
|
|
|
25845f |
- register mp_limb_t s2_limb;
|
|
|
25845f |
+mpn_mul_1 (register mp_ptr res_ptr, register mp_srcptr s1_ptr,
|
|
|
25845f |
+ mp_size_t s1_size, register mp_limb_t s2_limb)
|
|
|
25845f |
{
|
|
|
25845f |
register mp_limb_t cy_limb;
|
|
|
25845f |
register mp_size_t j;
|
|
|
25845f |
diff --git a/stdlib/random_r.c b/stdlib/random_r.c
|
|
|
25845f |
index 5fdf56275601075d..1c9addd32395a99c 100644
|
|
|
25845f |
--- a/stdlib/random_r.c
|
|
|
25845f |
+++ b/stdlib/random_r.c
|
|
|
25845f |
@@ -227,11 +227,8 @@ weak_alias (__srandom_r, srandom_r)
|
|
|
25845f |
setstate so that it doesn't matter when initstate is called.
|
|
|
25845f |
Returns 0 on success, non-zero on failure. */
|
|
|
25845f |
int
|
|
|
25845f |
-__initstate_r (seed, arg_state, n, buf)
|
|
|
25845f |
- unsigned int seed;
|
|
|
25845f |
- char *arg_state;
|
|
|
25845f |
- size_t n;
|
|
|
25845f |
- struct random_data *buf;
|
|
|
25845f |
+__initstate_r (unsigned int seed, char *arg_state, size_t n,
|
|
|
25845f |
+ struct random_data *buf)
|
|
|
25845f |
{
|
|
|
25845f |
if (buf == NULL)
|
|
|
25845f |
goto fail;
|
|
|
25845f |
diff --git a/stdlib/setenv.c b/stdlib/setenv.c
|
|
|
25845f |
index 1a4d3c203e90ff83..45efe2e3f2b157ab 100644
|
|
|
25845f |
--- a/stdlib/setenv.c
|
|
|
25845f |
+++ b/stdlib/setenv.c
|
|
|
25845f |
@@ -106,11 +106,8 @@ static char **last_environ;
|
|
|
25845f |
to reuse values once generated for a `setenv' call since we can never
|
|
|
25845f |
free the strings. */
|
|
|
25845f |
int
|
|
|
25845f |
-__add_to_environ (name, value, combined, replace)
|
|
|
25845f |
- const char *name;
|
|
|
25845f |
- const char *value;
|
|
|
25845f |
- const char *combined;
|
|
|
25845f |
- int replace;
|
|
|
25845f |
+__add_to_environ (const char *name, const char *value, const char *combined,
|
|
|
25845f |
+ int replace)
|
|
|
25845f |
{
|
|
|
25845f |
char **ep;
|
|
|
25845f |
size_t size;
|
|
|
25845f |
diff --git a/stdlib/submul_1.c b/stdlib/submul_1.c
|
|
|
25845f |
index 9eafe7e00b93bff3..8cad60307c3d8c75 100644
|
|
|
25845f |
--- a/stdlib/submul_1.c
|
|
|
25845f |
+++ b/stdlib/submul_1.c
|
|
|
25845f |
@@ -26,11 +26,8 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
|
|
|
25845f |
#include "longlong.h"
|
|
|
25845f |
|
|
|
25845f |
mp_limb_t
|
|
|
25845f |
-mpn_submul_1 (res_ptr, s1_ptr, s1_size, s2_limb)
|
|
|
25845f |
- register mp_ptr res_ptr;
|
|
|
25845f |
- register mp_srcptr s1_ptr;
|
|
|
25845f |
- mp_size_t s1_size;
|
|
|
25845f |
- register mp_limb_t s2_limb;
|
|
|
25845f |
+mpn_submul_1 (register mp_ptr res_ptr, register mp_srcptr s1_ptr,
|
|
|
25845f |
+ mp_size_t s1_size, register mp_limb_t s2_limb)
|
|
|
25845f |
{
|
|
|
25845f |
register mp_limb_t cy_limb;
|
|
|
25845f |
register mp_size_t j;
|
|
|
25845f |
diff --git a/streams/getpmsg.c b/streams/getpmsg.c
|
|
|
25845f |
index acb25b585f5aedb2..05d90d0801c8590d 100644
|
|
|
25845f |
--- a/streams/getpmsg.c
|
|
|
25845f |
+++ b/streams/getpmsg.c
|
|
|
25845f |
@@ -19,12 +19,8 @@
|
|
|
25845f |
#include <stropts.h>
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-getpmsg (fildes, ctlptr, dataptr, bandp, flagsp)
|
|
|
25845f |
- int fildes;
|
|
|
25845f |
- struct strbuf *ctlptr;
|
|
|
25845f |
- struct strbuf *dataptr;
|
|
|
25845f |
- int *bandp;
|
|
|
25845f |
- int *flagsp;
|
|
|
25845f |
+getpmsg (int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *bandp,
|
|
|
25845f |
+ int *flagsp)
|
|
|
25845f |
{
|
|
|
25845f |
__set_errno (ENOSYS);
|
|
|
25845f |
return -1;
|
|
|
25845f |
diff --git a/streams/putmsg.c b/streams/putmsg.c
|
|
|
25845f |
index 2d776bc96ab737b6..814e2a7e8c7d61a0 100644
|
|
|
25845f |
--- a/streams/putmsg.c
|
|
|
25845f |
+++ b/streams/putmsg.c
|
|
|
25845f |
@@ -19,11 +19,8 @@
|
|
|
25845f |
#include <stropts.h>
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-putmsg (fildes, ctlptr, dataptr, flags)
|
|
|
25845f |
- int fildes;
|
|
|
25845f |
- const struct strbuf *ctlptr;
|
|
|
25845f |
- const struct strbuf *dataptr;
|
|
|
25845f |
- int flags;
|
|
|
25845f |
+putmsg (int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr,
|
|
|
25845f |
+ int flags)
|
|
|
25845f |
{
|
|
|
25845f |
__set_errno (ENOSYS);
|
|
|
25845f |
return -1;
|
|
|
25845f |
diff --git a/streams/putpmsg.c b/streams/putpmsg.c
|
|
|
25845f |
index c2fa820e6f2adf5b..fb9bfebf2072ecf9 100644
|
|
|
25845f |
--- a/streams/putpmsg.c
|
|
|
25845f |
+++ b/streams/putpmsg.c
|
|
|
25845f |
@@ -19,12 +19,8 @@
|
|
|
25845f |
#include <stropts.h>
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-putpmsg (fildes, ctlptr, dataptr, band, flags)
|
|
|
25845f |
- int fildes;
|
|
|
25845f |
- const struct strbuf *ctlptr;
|
|
|
25845f |
- const struct strbuf *dataptr;
|
|
|
25845f |
- int band;
|
|
|
25845f |
- int flags;
|
|
|
25845f |
+putpmsg (int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr,
|
|
|
25845f |
+ int band, int flags)
|
|
|
25845f |
{
|
|
|
25845f |
__set_errno (ENOSYS);
|
|
|
25845f |
return -1;
|
|
|
25845f |
diff --git a/sunrpc/clnt_raw.c b/sunrpc/clnt_raw.c
|
|
|
25845f |
index 6653ee42fbc9edbe..a149bf419b1b1d09 100644
|
|
|
25845f |
--- a/sunrpc/clnt_raw.c
|
|
|
25845f |
+++ b/sunrpc/clnt_raw.c
|
|
|
25845f |
@@ -132,14 +132,8 @@ clntraw_create (u_long prog, u_long vers)
|
|
|
25845f |
libc_hidden_nolink_sunrpc (clntraw_create, GLIBC_2_0)
|
|
|
25845f |
|
|
|
25845f |
static enum clnt_stat
|
|
|
25845f |
-clntraw_call (h, proc, xargs, argsp, xresults, resultsp, timeout)
|
|
|
25845f |
- CLIENT *h;
|
|
|
25845f |
- u_long proc;
|
|
|
25845f |
- xdrproc_t xargs;
|
|
|
25845f |
- caddr_t argsp;
|
|
|
25845f |
- xdrproc_t xresults;
|
|
|
25845f |
- caddr_t resultsp;
|
|
|
25845f |
- struct timeval timeout;
|
|
|
25845f |
+clntraw_call (CLIENT *h, u_long proc, xdrproc_t xargs, caddr_t argsp,
|
|
|
25845f |
+ xdrproc_t xresults, caddr_t resultsp, struct timeval timeout)
|
|
|
25845f |
{
|
|
|
25845f |
struct clntraw_private_s *clp = clntraw_private;
|
|
|
25845f |
XDR *xdrs = &clp->xdr_stream;
|
|
|
25845f |
diff --git a/sunrpc/clnt_tcp.c b/sunrpc/clnt_tcp.c
|
|
|
25845f |
index 901820397dd56cd6..99a7101d3ac816fb 100644
|
|
|
25845f |
--- a/sunrpc/clnt_tcp.c
|
|
|
25845f |
+++ b/sunrpc/clnt_tcp.c
|
|
|
25845f |
@@ -224,14 +224,9 @@ libc_hidden_nolink_sunrpc (clnttcp_create, GLIBC_2_0)
|
|
|
25845f |
#endif
|
|
|
25845f |
|
|
|
25845f |
static enum clnt_stat
|
|
|
25845f |
-clnttcp_call (h, proc, xdr_args, args_ptr, xdr_results, results_ptr, timeout)
|
|
|
25845f |
- CLIENT *h;
|
|
|
25845f |
- u_long proc;
|
|
|
25845f |
- xdrproc_t xdr_args;
|
|
|
25845f |
- caddr_t args_ptr;
|
|
|
25845f |
- xdrproc_t xdr_results;
|
|
|
25845f |
- caddr_t results_ptr;
|
|
|
25845f |
- struct timeval timeout;
|
|
|
25845f |
+clnttcp_call (CLIENT *h, u_long proc, xdrproc_t xdr_args, caddr_t args_ptr,
|
|
|
25845f |
+ xdrproc_t xdr_results, caddr_t results_ptr,
|
|
|
25845f |
+ struct timeval timeout)
|
|
|
25845f |
{
|
|
|
25845f |
struct ct_data *ct = (struct ct_data *) h->cl_private;
|
|
|
25845f |
XDR *xdrs = &(ct->ct_xdrs);
|
|
|
25845f |
diff --git a/sunrpc/clnt_udp.c b/sunrpc/clnt_udp.c
|
|
|
25845f |
index 808603c827af6f98..1e0c7d45d33d23a1 100644
|
|
|
25845f |
--- a/sunrpc/clnt_udp.c
|
|
|
25845f |
+++ b/sunrpc/clnt_udp.c
|
|
|
25845f |
@@ -256,12 +256,8 @@ clntudp_bufcreate (struct sockaddr_in *raddr, u_long program, u_long version,
|
|
|
25845f |
libc_hidden_nolink_sunrpc (clntudp_bufcreate, GLIBC_2_0)
|
|
|
25845f |
|
|
|
25845f |
CLIENT *
|
|
|
25845f |
-clntudp_create (raddr, program, version, wait, sockp)
|
|
|
25845f |
- struct sockaddr_in *raddr;
|
|
|
25845f |
- u_long program;
|
|
|
25845f |
- u_long version;
|
|
|
25845f |
- struct timeval wait;
|
|
|
25845f |
- int *sockp;
|
|
|
25845f |
+clntudp_create (struct sockaddr_in *raddr, u_long program, u_long version,
|
|
|
25845f |
+ struct timeval wait, int *sockp)
|
|
|
25845f |
{
|
|
|
25845f |
return __libc_clntudp_bufcreate (raddr, program, version, wait,
|
|
|
25845f |
sockp, UDPMSGSIZE, UDPMSGSIZE, 0);
|
|
|
25845f |
diff --git a/sunrpc/clnt_unix.c b/sunrpc/clnt_unix.c
|
|
|
25845f |
index 084669dea6819e7c..3e008353b56cf437 100644
|
|
|
25845f |
--- a/sunrpc/clnt_unix.c
|
|
|
25845f |
+++ b/sunrpc/clnt_unix.c
|
|
|
25845f |
@@ -203,14 +203,9 @@ fooy:
|
|
|
25845f |
libc_hidden_nolink_sunrpc (clntunix_create, GLIBC_2_1)
|
|
|
25845f |
|
|
|
25845f |
static enum clnt_stat
|
|
|
25845f |
-clntunix_call (h, proc, xdr_args, args_ptr, xdr_results, results_ptr, timeout)
|
|
|
25845f |
- CLIENT *h;
|
|
|
25845f |
- u_long proc;
|
|
|
25845f |
- xdrproc_t xdr_args;
|
|
|
25845f |
- caddr_t args_ptr;
|
|
|
25845f |
- xdrproc_t xdr_results;
|
|
|
25845f |
- caddr_t results_ptr;
|
|
|
25845f |
- struct timeval timeout;
|
|
|
25845f |
+clntunix_call (CLIENT *h, u_long proc, xdrproc_t xdr_args, caddr_t args_ptr,
|
|
|
25845f |
+ xdrproc_t xdr_results, caddr_t results_ptr,
|
|
|
25845f |
+ struct timeval timeout)
|
|
|
25845f |
{
|
|
|
25845f |
struct ct_data *ct = (struct ct_data *) h->cl_private;
|
|
|
25845f |
XDR *xdrs = &(ct->ct_xdrs);
|
|
|
25845f |
diff --git a/sunrpc/pm_getport.c b/sunrpc/pm_getport.c
|
|
|
25845f |
index f10f87250d2784d7..5c43acc0609d7377 100644
|
|
|
25845f |
--- a/sunrpc/pm_getport.c
|
|
|
25845f |
+++ b/sunrpc/pm_getport.c
|
|
|
25845f |
@@ -152,11 +152,8 @@ libc_hidden_nolink_sunrpc (__libc_rpc_getport, GLIBC_PRIVATE)
|
|
|
25845f |
* Returns 0 if no map exists.
|
|
|
25845f |
*/
|
|
|
25845f |
u_short
|
|
|
25845f |
-pmap_getport (address, program, version, protocol)
|
|
|
25845f |
- struct sockaddr_in *address;
|
|
|
25845f |
- u_long program;
|
|
|
25845f |
- u_long version;
|
|
|
25845f |
- u_int protocol;
|
|
|
25845f |
+pmap_getport (struct sockaddr_in *address, u_long program, u_long version,
|
|
|
25845f |
+ u_int protocol)
|
|
|
25845f |
{
|
|
|
25845f |
return __libc_rpc_getport (address, program, version, protocol, 5, 60);
|
|
|
25845f |
}
|
|
|
25845f |
diff --git a/sunrpc/svc_udp.c b/sunrpc/svc_udp.c
|
|
|
25845f |
index e99c97680676f509..d1c8788d20b6805c 100644
|
|
|
25845f |
--- a/sunrpc/svc_udp.c
|
|
|
25845f |
+++ b/sunrpc/svc_udp.c
|
|
|
25845f |
@@ -585,11 +585,8 @@ cache_set (SVCXPRT *xprt, u_long replylen)
|
|
|
25845f |
* return 1 if found, 0 if not found
|
|
|
25845f |
*/
|
|
|
25845f |
static int
|
|
|
25845f |
-cache_get (xprt, msg, replyp, replylenp)
|
|
|
25845f |
- SVCXPRT *xprt;
|
|
|
25845f |
- struct rpc_msg *msg;
|
|
|
25845f |
- char **replyp;
|
|
|
25845f |
- u_long *replylenp;
|
|
|
25845f |
+cache_get (SVCXPRT *xprt, struct rpc_msg *msg, char **replyp,
|
|
|
25845f |
+ u_long *replylenp)
|
|
|
25845f |
{
|
|
|
25845f |
u_int loc;
|
|
|
25845f |
cache_ptr ent;
|
|
|
25845f |
diff --git a/sunrpc/xdr_array.c b/sunrpc/xdr_array.c
|
|
|
25845f |
index a6348612788cf338..fd9d1fb42f744844 100644
|
|
|
25845f |
--- a/sunrpc/xdr_array.c
|
|
|
25845f |
+++ b/sunrpc/xdr_array.c
|
|
|
25845f |
@@ -141,12 +141,8 @@ libc_hidden_nolink_sunrpc (xdr_array, GLIBC_2_0)
|
|
|
25845f |
* > xdr_elem: routine to XDR each element
|
|
|
25845f |
*/
|
|
|
25845f |
bool_t
|
|
|
25845f |
-xdr_vector (xdrs, basep, nelem, elemsize, xdr_elem)
|
|
|
25845f |
- XDR *xdrs;
|
|
|
25845f |
- char *basep;
|
|
|
25845f |
- u_int nelem;
|
|
|
25845f |
- u_int elemsize;
|
|
|
25845f |
- xdrproc_t xdr_elem;
|
|
|
25845f |
+xdr_vector (XDR *xdrs, char *basep, u_int nelem, u_int elemsize,
|
|
|
25845f |
+ xdrproc_t xdr_elem)
|
|
|
25845f |
{
|
|
|
25845f |
u_int i;
|
|
|
25845f |
char *elptr;
|
|
|
25845f |
diff --git a/sysdeps/mach/hurd/getcwd.c b/sysdeps/mach/hurd/getcwd.c
|
|
|
25845f |
index 6945e4d1c5c12237..16a3a6e3a112d9fd 100644
|
|
|
25845f |
--- a/sysdeps/mach/hurd/getcwd.c
|
|
|
25845f |
+++ b/sysdeps/mach/hurd/getcwd.c
|
|
|
25845f |
@@ -285,10 +285,8 @@ _hurd_canonicalize_directory_name_internal (file_t thisdir,
|
|
|
25845f |
}
|
|
|
25845f |
|
|
|
25845f |
char *
|
|
|
25845f |
-__canonicalize_directory_name_internal (thisdir, buf, size)
|
|
|
25845f |
- const char *thisdir;
|
|
|
25845f |
- char *buf;
|
|
|
25845f |
- size_t size;
|
|
|
25845f |
+__canonicalize_directory_name_internal (const char *thisdir, char *buf,
|
|
|
25845f |
+ size_t size)
|
|
|
25845f |
{
|
|
|
25845f |
char *result;
|
|
|
25845f |
file_t port = __file_name_lookup (thisdir, 0, 0);
|
|
|
25845f |
diff --git a/sysdeps/mach/hurd/pselect.c b/sysdeps/mach/hurd/pselect.c
|
|
|
25845f |
index ada99094e4e0a44d..90287f6a6dd898db 100644
|
|
|
25845f |
--- a/sysdeps/mach/hurd/pselect.c
|
|
|
25845f |
+++ b/sysdeps/mach/hurd/pselect.c
|
|
|
25845f |
@@ -30,13 +30,8 @@
|
|
|
25845f |
SIGMASK for this call. Returns the number of ready descriptors, or -1 for
|
|
|
25845f |
errors. */
|
|
|
25845f |
int
|
|
|
25845f |
-__pselect (nfds, readfds, writefds, exceptfds, timeout, sigmask)
|
|
|
25845f |
- int nfds;
|
|
|
25845f |
- fd_set *readfds;
|
|
|
25845f |
- fd_set *writefds;
|
|
|
25845f |
- fd_set *exceptfds;
|
|
|
25845f |
- const struct timespec *timeout;
|
|
|
25845f |
- const sigset_t *sigmask;
|
|
|
25845f |
+__pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
|
|
|
25845f |
+ const struct timespec *timeout, const sigset_t *sigmask)
|
|
|
25845f |
{
|
|
|
25845f |
return _hurd_select (nfds, NULL,
|
|
|
25845f |
readfds, writefds, exceptfds, timeout, sigmask);
|
|
|
25845f |
diff --git a/sysdeps/mach/hurd/recvfrom.c b/sysdeps/mach/hurd/recvfrom.c
|
|
|
25845f |
index 3a094aa0d2c9fda1..cde89fdcfb56ca0b 100644
|
|
|
25845f |
--- a/sysdeps/mach/hurd/recvfrom.c
|
|
|
25845f |
+++ b/sysdeps/mach/hurd/recvfrom.c
|
|
|
25845f |
@@ -27,13 +27,8 @@
|
|
|
25845f |
the sender, and store the actual size of the address in *ADDR_LEN.
|
|
|
25845f |
Returns the number of bytes read or -1 for errors. */
|
|
|
25845f |
ssize_t
|
|
|
25845f |
-__recvfrom (fd, buf, n, flags, addrarg, addr_len)
|
|
|
25845f |
- int fd;
|
|
|
25845f |
- void *buf;
|
|
|
25845f |
- size_t n;
|
|
|
25845f |
- int flags;
|
|
|
25845f |
- __SOCKADDR_ARG addrarg;
|
|
|
25845f |
- socklen_t *addr_len;
|
|
|
25845f |
+__recvfrom (int fd, void *buf, size_t n, int flags, __SOCKADDR_ARG addrarg,
|
|
|
25845f |
+ socklen_t *addr_len)
|
|
|
25845f |
{
|
|
|
25845f |
error_t err;
|
|
|
25845f |
mach_port_t addrport;
|
|
|
25845f |
diff --git a/sysdeps/mach/hurd/select.c b/sysdeps/mach/hurd/select.c
|
|
|
25845f |
index e679637d95b18033..22f6e3b221fb8d82 100644
|
|
|
25845f |
--- a/sysdeps/mach/hurd/select.c
|
|
|
25845f |
+++ b/sysdeps/mach/hurd/select.c
|
|
|
25845f |
@@ -26,12 +26,8 @@
|
|
|
25845f |
after waiting the interval specified therein. Returns the number of ready
|
|
|
25845f |
descriptors, or -1 for errors. */
|
|
|
25845f |
int
|
|
|
25845f |
-__select (nfds, readfds, writefds, exceptfds, timeout)
|
|
|
25845f |
- int nfds;
|
|
|
25845f |
- fd_set *readfds;
|
|
|
25845f |
- fd_set *writefds;
|
|
|
25845f |
- fd_set *exceptfds;
|
|
|
25845f |
- struct timeval *timeout;
|
|
|
25845f |
+__select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
|
|
|
25845f |
+ struct timeval *timeout)
|
|
|
25845f |
{
|
|
|
25845f |
struct timespec ts, *to;
|
|
|
25845f |
|
|
|
25845f |
diff --git a/sysdeps/posix/ttyname_r.c b/sysdeps/posix/ttyname_r.c
|
|
|
25845f |
index bf8399d36d0e4541..7d2701da33c08624 100644
|
|
|
25845f |
--- a/sysdeps/posix/ttyname_r.c
|
|
|
25845f |
+++ b/sysdeps/posix/ttyname_r.c
|
|
|
25845f |
@@ -37,14 +37,8 @@ static int getttyname_r (int fd, char *buf, size_t buflen,
|
|
|
25845f |
|
|
|
25845f |
static int
|
|
|
25845f |
internal_function
|
|
|
25845f |
-getttyname_r (fd, buf, buflen, mydev, myino, save, dostat)
|
|
|
25845f |
- int fd;
|
|
|
25845f |
- char *buf;
|
|
|
25845f |
- size_t buflen;
|
|
|
25845f |
- dev_t mydev;
|
|
|
25845f |
- ino_t myino;
|
|
|
25845f |
- int save;
|
|
|
25845f |
- int *dostat;
|
|
|
25845f |
+getttyname_r (int fd, char *buf, size_t buflen, dev_t mydev, ino_t myino,
|
|
|
25845f |
+ int save, int *dostat)
|
|
|
25845f |
{
|
|
|
25845f |
struct stat st;
|
|
|
25845f |
DIR *dirstream;
|
|
|
25845f |
diff --git a/sysdeps/unix/sysv/linux/i386/putmsg.c b/sysdeps/unix/sysv/linux/i386/putmsg.c
|
|
|
25845f |
index a413d8ce77d2f35d..84d54744c6d38c9f 100644
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/i386/putmsg.c
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/i386/putmsg.c
|
|
|
25845f |
@@ -24,11 +24,8 @@
|
|
|
25845f |
|
|
|
25845f |
#ifdef __NR_putpmsg
|
|
|
25845f |
int
|
|
|
25845f |
-putmsg (fildes, ctlptr, dataptr, flags)
|
|
|
25845f |
- int fildes;
|
|
|
25845f |
- const struct strbuf *ctlptr;
|
|
|
25845f |
- const struct strbuf *dataptr;
|
|
|
25845f |
- int flags;
|
|
|
25845f |
+putmsg (int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr,
|
|
|
25845f |
+ int flags)
|
|
|
25845f |
{
|
|
|
25845f |
return INLINE_SYSCALL (putpmsg, 5, fildes, ctlptr, dataptr, -1, flags);
|
|
|
25845f |
}
|
|
|
25845f |
diff --git a/sysdeps/unix/sysv/linux/s390/semtimedop.c b/sysdeps/unix/sysv/linux/s390/semtimedop.c
|
|
|
25845f |
index 53b82324dcb9f7e4..5628171762561c2e 100644
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/s390/semtimedop.c
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/s390/semtimedop.c
|
|
|
25845f |
@@ -26,11 +26,8 @@
|
|
|
25845f |
/* Perform user-defined atomical operation of array of semaphores. */
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-semtimedop (semid, sops, nsops, timeout)
|
|
|
25845f |
- int semid;
|
|
|
25845f |
- struct sembuf *sops;
|
|
|
25845f |
- size_t nsops;
|
|
|
25845f |
- const struct timespec *timeout;
|
|
|
25845f |
+semtimedop (int semid, struct sembuf *sops, size_t nsops,
|
|
|
25845f |
+ const struct timespec *timeout)
|
|
|
25845f |
{
|
|
|
25845f |
return INLINE_SYSCALL (ipc, 5, IPCOP_semtimedop,
|
|
|
25845f |
semid, (int) nsops, timeout, sops);
|
|
|
25845f |
diff --git a/sysdeps/unix/sysv/linux/semtimedop.c b/sysdeps/unix/sysv/linux/semtimedop.c
|
|
|
25845f |
index 5a43f53975aeafcc..f9f04f5d28def4e1 100644
|
|
|
25845f |
--- a/sysdeps/unix/sysv/linux/semtimedop.c
|
|
|
25845f |
+++ b/sysdeps/unix/sysv/linux/semtimedop.c
|
|
|
25845f |
@@ -26,11 +26,8 @@
|
|
|
25845f |
/* Perform user-defined atomical operation of array of semaphores. */
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-semtimedop (semid, sops, nsops, timeout)
|
|
|
25845f |
- int semid;
|
|
|
25845f |
- struct sembuf *sops;
|
|
|
25845f |
- size_t nsops;
|
|
|
25845f |
- const struct timespec *timeout;
|
|
|
25845f |
+semtimedop (int semid, struct sembuf *sops, size_t nsops,
|
|
|
25845f |
+ const struct timespec *timeout)
|
|
|
25845f |
{
|
|
|
25845f |
return INLINE_SYSCALL (ipc, 6, IPCOP_semtimedop,
|
|
|
25845f |
semid, (int) nsops, 0, sops,
|
|
|
25845f |
diff --git a/sysvipc/semtimedop.c b/sysvipc/semtimedop.c
|
|
|
25845f |
index e7c631ac94e12f6a..5d776fe2d01f8438 100644
|
|
|
25845f |
--- a/sysvipc/semtimedop.c
|
|
|
25845f |
+++ b/sysvipc/semtimedop.c
|
|
|
25845f |
@@ -22,11 +22,8 @@
|
|
|
25845f |
/* Perform user-defined atomical operation of array of semaphores. */
|
|
|
25845f |
|
|
|
25845f |
int
|
|
|
25845f |
-semtimedop (semid, sops, nsops, timeout)
|
|
|
25845f |
- int semid;
|
|
|
25845f |
- struct sembuf *sops;
|
|
|
25845f |
- size_t nsops;
|
|
|
25845f |
- const struct timespec *timeout;
|
|
|
25845f |
+semtimedop (int semid, struct sembuf *sops, size_t nsops,
|
|
|
25845f |
+ const struct timespec *timeout)
|
|
|
25845f |
{
|
|
|
25845f |
__set_errno (ENOSYS);
|
|
|
25845f |
return -1;
|
|
|
25845f |
diff --git a/time/setitimer.c b/time/setitimer.c
|
|
|
25845f |
index 40880f8210adc6b8..903558767fbad824 100644
|
|
|
25845f |
--- a/time/setitimer.c
|
|
|
25845f |
+++ b/time/setitimer.c
|
|
|
25845f |
@@ -23,10 +23,8 @@
|
|
|
25845f |
set *OLD to the old value of timer WHICH.
|
|
|
25845f |
Returns 0 on success, -1 on errors. */
|
|
|
25845f |
int
|
|
|
25845f |
-__setitimer (which, new, old)
|
|
|
25845f |
- enum __itimer_which which;
|
|
|
25845f |
- const struct itimerval *new;
|
|
|
25845f |
- struct itimerval *old;
|
|
|
25845f |
+__setitimer (enum __itimer_which which, const struct itimerval *new,
|
|
|
25845f |
+ struct itimerval *old)
|
|
|
25845f |
{
|
|
|
25845f |
if (new == NULL)
|
|
|
25845f |
{
|
|
|
25845f |
diff --git a/time/strftime_l.c b/time/strftime_l.c
|
|
|
25845f |
index 873605720b837b15..0f6ac83d34d43755 100644
|
|
|
25845f |
--- a/time/strftime_l.c
|
|
|
25845f |
+++ b/time/strftime_l.c
|
|
|
25845f |
@@ -1438,11 +1438,8 @@ __strftime_internal (s, maxsize, format, tp, tzset_called ut_argument
|
|
|
25845f |
strftime function and does not have the extra information whether the
|
|
|
25845f |
TP arguments comes from a `gmtime' call or not. */
|
|
|
25845f |
size_t
|
|
|
25845f |
-emacs_strftime (s, maxsize, format, tp)
|
|
|
25845f |
- char *s;
|
|
|
25845f |
- size_t maxsize;
|
|
|
25845f |
- const char *format;
|
|
|
25845f |
- const struct tm *tp;
|
|
|
25845f |
+emacs_strftime (char *s, size_t maxsize, const char *format,
|
|
|
25845f |
+ const struct tm *tp)
|
|
|
25845f |
{
|
|
|
25845f |
return my_strftime (s, maxsize, format, tp, 0);
|
|
|
25845f |
}
|