1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Convert 69 more function definitions to prototype style (line wrap cases).

This automatically-generated patch converts 69 function definitions in
glibc from old-style K&R to prototype-style.

This patch, covering both sysdeps and non-sysdeps files, deals with
cases where the prototype needed to be wrapped over more than one
line.  Otherwise, exclusions and caveats are as for
<https://sourceware.org/ml/libc-alpha/2015-10/msg00594.html> and
<https://sourceware.org/ml/libc-alpha/2015-10/msg00599.html>.

Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).

	* crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
	function definition.
	* crypt/crypt_util.c (__encrypt_r): Likewise.
	* libio/genops.c (_IO_no_init): Likewise.
	* libio/iofopncook.c (_IO_fopencookie): Likewise.
	(_IO_old_fopencookie): Likewise.
	* libio/iofwrite_u.c (fwrite_unlocked): Likewise.
	* libio/iogetline.c (_IO_getline): Likewise.
	(_IO_getline_info): Likewise.
	* libio/iogetwline.c (_IO_getwline): Likewise.
	(_IO_getwline_info): Likewise.
	* libio/vsnprintf.c (_IO_vsnprintf): Likewise.
	* libio/vswprintf.c (_IO_vswprintf): Likewise.
	* locale/programs/simple-hash.c (insert_entry_2): Likewise.
	(find_entry): Likewise.
	(iterate_table): Likewise.
	(lookup): Likewise.
	* login/forkpty.c (forkpty): Likewise.
	* misc/hsearch_r.c (__hsearch_r): Likewise.
	* misc/select.c (__select): Likewise.
	* nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
	Likewise.
	* nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
	Likewise.
	* nptl/old_pthread_cond_timedwait.c
	(__pthread_cond_timedwait_2_0): Likewise.
	* nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
	* nptl/pthread_barrierattr_getpshared.c
	(pthread_barrierattr_getpshared): Likewise.
	* nptl/pthread_getschedparam.c (__pthread_getschedparam):
	Likewise.
	* nptl/pthread_mutex_setprioceiling.c
	(pthread_mutex_setprioceiling): Likewise.
	* nptl/pthread_mutexattr_getprioceiling.c
	(pthread_mutexattr_getprioceiling): Likewise.
	* nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
	* nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
	Likewise.
	* nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
	Likewise.
	* nptl/pthread_setschedparam.c (__pthread_setschedparam):
	Likewise.
	* socket/recvfrom.c (__recvfrom): Likewise.
	* socket/sendto.c (__sendto): Likewise.
	* socket/setsockopt.c (__setsockopt): Likewise.
	* stdio-common/_itoa.c (_itoa): Likewise.
	* stdio-common/_itowa.c (_itowa): Likewise.
	* stdio-common/reg-printf.c (__register_printf_specifier):
	Likewise.
	(__register_printf_function): Likewise.
	* stdio-common/tempname.c (__path_search): Likewise.
	* stdlib/addmul_1.c (mpn_addmul_1): Likewise.
	* stdlib/mul_1.c (mpn_mul_1): Likewise.
	* stdlib/random_r.c (__initstate_r): Likewise.
	* stdlib/setenv.c (__add_to_environ): Likewise.
	* stdlib/submul_1.c (mpn_submul_1): Likewise.
	* streams/getpmsg.c (getpmsg): Likewise.
	* streams/putmsg.c (putmsg): Likewise.
	* streams/putpmsg.c (putpmsg): Likewise.
	* sunrpc/clnt_raw.c (clntraw_call): Likewise.
	* sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
	* sunrpc/clnt_udp.c (clntudp_create): Likewise.
	* sunrpc/clnt_unix.c (clntunix_call): Likewise.
	* sunrpc/pm_getport.c (pmap_getport): Likewise.
	* sunrpc/svc_udp.c (cache_get): Likewise.
	* sunrpc/xdr_array.c (xdr_vector): Likewise.
	* sysdeps/mach/hurd/getcwd.c
	(__canonicalize_directory_name_internal): Likewise.
	* sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
	* sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
	* sysdeps/mach/hurd/select.c (__select): Likewise.
	* sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
	* sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
	* sysdeps/sparc/nptl/pthread_barrier_init.c
	(__pthread_barrier_init): Likewise.
	* sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
	(__pthread_cond_timedwait): Likewise.
	* sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
	* sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
	Likewise.
	* sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
	* sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
	Likewise.
	* sysvipc/semtimedop.c (semtimedop): Likewise.
	* time/setitimer.c (__setitimer): Likewise.
	* time/strftime_l.c (emacs_strftime): Likewise.
This commit is contained in:
Joseph Myers
2015-10-19 21:23:47 +00:00
parent 6ab674ebff
commit f63f2bfdfa
63 changed files with 229 additions and 354 deletions

View File

@ -1,3 +1,92 @@
2015-10-19 Joseph Myers <joseph@codesourcery.com>
* crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
function definition.
* crypt/crypt_util.c (__encrypt_r): Likewise.
* libio/genops.c (_IO_no_init): Likewise.
* libio/iofopncook.c (_IO_fopencookie): Likewise.
(_IO_old_fopencookie): Likewise.
* libio/iofwrite_u.c (fwrite_unlocked): Likewise.
* libio/iogetline.c (_IO_getline): Likewise.
(_IO_getline_info): Likewise.
* libio/iogetwline.c (_IO_getwline): Likewise.
(_IO_getwline_info): Likewise.
* libio/vsnprintf.c (_IO_vsnprintf): Likewise.
* libio/vswprintf.c (_IO_vswprintf): Likewise.
* locale/programs/simple-hash.c (insert_entry_2): Likewise.
(find_entry): Likewise.
(iterate_table): Likewise.
(lookup): Likewise.
* login/forkpty.c (forkpty): Likewise.
* misc/hsearch_r.c (__hsearch_r): Likewise.
* misc/select.c (__select): Likewise.
* nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
Likewise.
* nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
Likewise.
* nptl/old_pthread_cond_timedwait.c
(__pthread_cond_timedwait_2_0): Likewise.
* nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
* nptl/pthread_barrierattr_getpshared.c
(pthread_barrierattr_getpshared): Likewise.
* nptl/pthread_getschedparam.c (__pthread_getschedparam):
Likewise.
* nptl/pthread_mutex_setprioceiling.c
(pthread_mutex_setprioceiling): Likewise.
* nptl/pthread_mutexattr_getprioceiling.c
(pthread_mutexattr_getprioceiling): Likewise.
* nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
* nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
Likewise.
* nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
Likewise.
* nptl/pthread_setschedparam.c (__pthread_setschedparam):
Likewise.
* socket/recvfrom.c (__recvfrom): Likewise.
* socket/sendto.c (__sendto): Likewise.
* socket/setsockopt.c (__setsockopt): Likewise.
* stdio-common/_itoa.c (_itoa): Likewise.
* stdio-common/_itowa.c (_itowa): Likewise.
* stdio-common/reg-printf.c (__register_printf_specifier):
Likewise.
(__register_printf_function): Likewise.
* stdio-common/tempname.c (__path_search): Likewise.
* stdlib/addmul_1.c (mpn_addmul_1): Likewise.
* stdlib/mul_1.c (mpn_mul_1): Likewise.
* stdlib/random_r.c (__initstate_r): Likewise.
* stdlib/setenv.c (__add_to_environ): Likewise.
* stdlib/submul_1.c (mpn_submul_1): Likewise.
* streams/getpmsg.c (getpmsg): Likewise.
* streams/putmsg.c (putmsg): Likewise.
* streams/putpmsg.c (putpmsg): Likewise.
* sunrpc/clnt_raw.c (clntraw_call): Likewise.
* sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
* sunrpc/clnt_udp.c (clntudp_create): Likewise.
* sunrpc/clnt_unix.c (clntunix_call): Likewise.
* sunrpc/pm_getport.c (pmap_getport): Likewise.
* sunrpc/svc_udp.c (cache_get): Likewise.
* sunrpc/xdr_array.c (xdr_vector): Likewise.
* sysdeps/mach/hurd/getcwd.c
(__canonicalize_directory_name_internal): Likewise.
* sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
* sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
* sysdeps/mach/hurd/select.c (__select): Likewise.
* sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
* sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
* sysdeps/sparc/nptl/pthread_barrier_init.c
(__pthread_barrier_init): Likewise.
* sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
(__pthread_cond_timedwait): Likewise.
* sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
* sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
Likewise.
* sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
* sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
Likewise.
* sysvipc/semtimedop.c (semtimedop): Likewise.
* time/setitimer.c (__setitimer): Likewise.
* time/strftime_l.c (emacs_strftime): Likewise.
2015-10-19 Mike Frysinger <vapier@gentoo.org> 2015-10-19 Mike Frysinger <vapier@gentoo.org>
* config.make.in (have-ssp): Delete. * config.make.in (have-ssp): Delete.

View File

@ -71,10 +71,8 @@ extern struct crypt_data _ufc_foobar;
*/ */
char * char *
__crypt_r (key, salt, data) __crypt_r (const char *key, const char *salt,
const char *key; struct crypt_data * __restrict data)
const char *salt;
struct crypt_data * __restrict data;
{ {
ufc_long res[4]; ufc_long res[4];
char ktab[9]; char ktab[9];

View File

@ -797,10 +797,8 @@ _ufc_output_conversion_r(v1, v2, salt, __data)
*/ */
void void
__encrypt_r(__block, __edflag, __data) __encrypt_r (char *__block, int __edflag,
char *__block; struct crypt_data * __restrict __data)
int __edflag;
struct crypt_data * __restrict __data;
{ {
ufc_long l1, l2, r1, r2, res[4]; ufc_long l1, l2, r1, r2, res[4];
int i; int i;

View File

@ -596,12 +596,8 @@ _IO_old_init (_IO_FILE *fp, int flags)
} }
void void
_IO_no_init (fp, flags, orientation, wd, jmp) _IO_no_init (_IO_FILE *fp, int flags, int orientation,
_IO_FILE *fp; struct _IO_wide_data *wd, const struct _IO_jump_t *jmp)
int flags;
int orientation;
struct _IO_wide_data *wd;
const struct _IO_jump_t *jmp;
{ {
_IO_old_init (fp, flags); _IO_old_init (fp, flags);
fp->_mode = orientation; fp->_mode = orientation;

View File

@ -149,10 +149,8 @@ _IO_cookie_init (struct _IO_cookie_file *cfile, int read_write,
_IO_FILE * _IO_FILE *
_IO_fopencookie (cookie, mode, io_functions) _IO_fopencookie (void *cookie, const char *mode,
void *cookie; _IO_cookie_io_functions_t io_functions)
const char *mode;
_IO_cookie_io_functions_t io_functions;
{ {
int read_write; int read_write;
struct locked_FILE struct locked_FILE
@ -244,10 +242,8 @@ static const struct _IO_jump_t _IO_old_cookie_jumps = {
_IO_FILE * _IO_FILE *
attribute_compat_text_section attribute_compat_text_section
_IO_old_fopencookie (cookie, mode, io_functions) _IO_old_fopencookie (void *cookie, const char *mode,
void *cookie; _IO_cookie_io_functions_t io_functions)
const char *mode;
_IO_cookie_io_functions_t io_functions;
{ {
_IO_FILE *ret; _IO_FILE *ret;

View File

@ -30,11 +30,8 @@
#undef fwrite_unlocked #undef fwrite_unlocked
_IO_size_t _IO_size_t
fwrite_unlocked (buf, size, count, fp) fwrite_unlocked (const void *buf, _IO_size_t size, _IO_size_t count,
const void *buf; _IO_FILE *fp)
_IO_size_t size;
_IO_size_t count;
_IO_FILE *fp;
{ {
_IO_size_t request = size * count; _IO_size_t request = size * count;
_IO_size_t written = 0; _IO_size_t written = 0;

View File

@ -28,12 +28,8 @@
#include <string.h> #include <string.h>
_IO_size_t _IO_size_t
_IO_getline (fp, buf, n, delim, extract_delim) _IO_getline (_IO_FILE *fp, char *buf, _IO_size_t n, int delim,
_IO_FILE *fp; int extract_delim)
char *buf;
_IO_size_t n;
int delim;
int extract_delim;
{ {
return _IO_getline_info (fp, buf, n, delim, extract_delim, (int *) 0); return _IO_getline_info (fp, buf, n, delim, extract_delim, (int *) 0);
} }
@ -48,13 +44,8 @@ libc_hidden_def (_IO_getline)
If extract_delim > 0, insert delim in output. */ If extract_delim > 0, insert delim in output. */
_IO_size_t _IO_size_t
_IO_getline_info (fp, buf, n, delim, extract_delim, eof) _IO_getline_info (_IO_FILE *fp, char *buf, _IO_size_t n, int delim,
_IO_FILE *fp; int extract_delim, int *eof)
char *buf;
_IO_size_t n;
int delim;
int extract_delim;
int *eof;
{ {
char *ptr = buf; char *ptr = buf;
if (eof != NULL) if (eof != NULL)

View File

@ -33,12 +33,8 @@
#endif #endif
_IO_size_t _IO_size_t
_IO_getwline (fp, buf, n, delim, extract_delim) _IO_getwline (_IO_FILE *fp, wchar_t *buf, _IO_size_t n, wint_t delim,
_IO_FILE *fp; int extract_delim)
wchar_t *buf;
_IO_size_t n;
wint_t delim;
int extract_delim;
{ {
return _IO_getwline_info (fp, buf, n, delim, extract_delim, (wint_t *) 0); return _IO_getwline_info (fp, buf, n, delim, extract_delim, (wint_t *) 0);
} }
@ -52,13 +48,8 @@ _IO_getwline (fp, buf, n, delim, extract_delim)
If extract_delim > 0, insert delim in output. */ If extract_delim > 0, insert delim in output. */
_IO_size_t _IO_size_t
_IO_getwline_info (fp, buf, n, delim, extract_delim, eof) _IO_getwline_info (_IO_FILE *fp, wchar_t *buf, _IO_size_t n, wint_t delim,
_IO_FILE *fp; int extract_delim, wint_t *eof)
wchar_t *buf;
_IO_size_t n;
wint_t delim;
int extract_delim;
wint_t *eof;
{ {
wchar_t *ptr = buf; wchar_t *ptr = buf;
if (eof != NULL) if (eof != NULL)

View File

@ -90,11 +90,8 @@ const struct _IO_jump_t _IO_strn_jumps attribute_hidden =
int int
_IO_vsnprintf (string, maxlen, format, args) _IO_vsnprintf (char *string, _IO_size_t maxlen, const char *format,
char *string; _IO_va_list args)
_IO_size_t maxlen;
const char *format;
_IO_va_list args;
{ {
_IO_strnfile sf; _IO_strnfile sf;
int ret; int ret;

View File

@ -89,11 +89,8 @@ const struct _IO_jump_t _IO_wstrn_jumps attribute_hidden =
int int
_IO_vswprintf (string, maxlen, format, args) _IO_vswprintf (wchar_t *string, _IO_size_t maxlen, const wchar_t *format,
wchar_t *string; _IO_va_list args)
_IO_size_t maxlen;
const wchar_t *format;
_IO_va_list args;
{ {
_IO_wstrnfile sf; _IO_wstrnfile sf;
int ret; int ret;

View File

@ -114,13 +114,8 @@ insert_entry (hash_table *htab, const void *key, size_t keylen, void *data)
} }
static void static void
insert_entry_2 (htab, key, keylen, hval, idx, data) insert_entry_2 (hash_table *htab, const void *key, size_t keylen,
hash_table *htab; unsigned long int hval, size_t idx, void *data)
const void *key;
size_t keylen;
unsigned long int hval;
size_t idx;
void *data;
{ {
hash_entry *table = (hash_entry *) htab->table; hash_entry *table = (hash_entry *) htab->table;
@ -169,11 +164,8 @@ insert_entry_2 (htab, key, keylen, hval, idx, data)
int int
find_entry (htab, key, keylen, result) find_entry (const hash_table *htab, const void *key, size_t keylen,
const hash_table *htab; void **result)
const void *key;
size_t keylen;
void **result;
{ {
hash_entry *table = (hash_entry *) htab->table; hash_entry *table = (hash_entry *) htab->table;
size_t idx = lookup (htab, key, keylen, compute_hashval (key, keylen)); size_t idx = lookup (htab, key, keylen, compute_hashval (key, keylen));
@ -201,12 +193,8 @@ set_entry (hash_table *htab, const void *key, size_t keylen, void *newval)
int int
iterate_table (htab, ptr, key, keylen, data) iterate_table (const hash_table *htab, void **ptr, const void **key,
const hash_table *htab; size_t *keylen, void **data)
void **ptr;
const void **key;
size_t *keylen;
void **data;
{ {
if (*ptr == NULL) if (*ptr == NULL)
{ {
@ -233,11 +221,8 @@ iterate_table (htab, ptr, key, keylen, data)
[Knuth] The Art of Computer Programming, part3 (6.4) */ [Knuth] The Art of Computer Programming, part3 (6.4) */
static size_t static size_t
lookup (htab, key, keylen, hval) lookup (const hash_table *htab, const void *key, size_t keylen,
const hash_table *htab; unsigned long int hval)
const void *key;
size_t keylen;
unsigned long int hval;
{ {
unsigned long int hash; unsigned long int hash;
size_t idx; size_t idx;

View File

@ -23,11 +23,8 @@
#include <pty.h> #include <pty.h>
int int
forkpty (amaster, name, termp, winp) forkpty (int *amaster, char *name, const struct termios *termp,
int *amaster; const struct winsize *winp)
char *name;
const struct termios *termp;
const struct winsize *winp;
{ {
int master, slave, pid; int master, slave, pid;

View File

@ -142,11 +142,8 @@ weak_alias (__hdestroy_r, hdestroy_r)
equality of the stored and the parameter value. This helps to prevent equality of the stored and the parameter value. This helps to prevent
unnecessary expensive calls of strcmp. */ unnecessary expensive calls of strcmp. */
int int
__hsearch_r (item, action, retval, htab) __hsearch_r (ENTRY item, ACTION action, ENTRY **retval,
ENTRY item; struct hsearch_data *htab)
ACTION action;
ENTRY **retval;
struct hsearch_data *htab;
{ {
unsigned int hval; unsigned int hval;
unsigned int count; unsigned int count;

View File

@ -25,12 +25,8 @@
after waiting the interval specified therein. Returns the number of ready after waiting the interval specified therein. Returns the number of ready
descriptors, or -1 for errors. */ descriptors, or -1 for errors. */
int int
__select (nfds, readfds, writefds, exceptfds, timeout) __select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
int nfds; struct timeval *timeout)
fd_set *readfds;
fd_set *writefds;
fd_set *exceptfds;
struct timeval *timeout;
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;

View File

@ -59,9 +59,8 @@ strong_alias (_pthread_cleanup_push_defer, __pthread_cleanup_push_defer)
void void
_pthread_cleanup_pop_restore (buffer, execute) _pthread_cleanup_pop_restore (struct _pthread_cleanup_buffer *buffer,
struct _pthread_cleanup_buffer *buffer; int execute)
int execute;
{ {
struct pthread *self = THREAD_SELF; struct pthread *self = THREAD_SELF;

View File

@ -23,9 +23,8 @@
#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_3_2) #if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_3_2)
int int
__pthread_cond_init_2_0 (cond, cond_attr) __pthread_cond_init_2_0 (pthread_cond_2_0_t *cond,
pthread_cond_2_0_t *cond; const pthread_condattr_t *cond_attr)
const pthread_condattr_t *cond_attr;
{ {
struct pthread_condattr *icond_attr = (struct pthread_condattr *) cond_attr; struct pthread_condattr *icond_attr = (struct pthread_condattr *) cond_attr;

View File

@ -25,10 +25,8 @@
#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_3_2) #if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_3_2)
int int
__pthread_cond_timedwait_2_0 (cond, mutex, abstime) __pthread_cond_timedwait_2_0 (pthread_cond_2_0_t *cond, pthread_mutex_t *mutex,
pthread_cond_2_0_t *cond; const struct timespec *abstime)
pthread_mutex_t *mutex;
const struct timespec *abstime;
{ {
if (cond->cond == NULL) if (cond->cond == NULL)
{ {

View File

@ -29,10 +29,8 @@ static const struct pthread_barrierattr default_barrierattr =
int int
__pthread_barrier_init (barrier, attr, count) __pthread_barrier_init (pthread_barrier_t *barrier,
pthread_barrier_t *barrier; const pthread_barrierattr_t *attr, unsigned int count)
const pthread_barrierattr_t *attr;
unsigned int count;
{ {
struct pthread_barrier *ibarrier; struct pthread_barrier *ibarrier;

View File

@ -20,9 +20,8 @@
int int
pthread_barrierattr_getpshared (attr, pshared) pthread_barrierattr_getpshared (const pthread_barrierattr_t *attr,
const pthread_barrierattr_t *attr; int *pshared)
int *pshared;
{ {
*pshared = ((const struct pthread_barrierattr *) attr)->pshared; *pshared = ((const struct pthread_barrierattr *) attr)->pshared;

View File

@ -23,10 +23,8 @@
int int
__pthread_getschedparam (threadid, policy, param) __pthread_getschedparam (pthread_t threadid, int *policy,
pthread_t threadid; struct sched_param *param)
int *policy;
struct sched_param *param;
{ {
struct pthread *pd = (struct pthread *) threadid; struct pthread *pd = (struct pthread *) threadid;

View File

@ -24,10 +24,8 @@
int int
pthread_mutex_setprioceiling (mutex, prioceiling, old_ceiling) pthread_mutex_setprioceiling (pthread_mutex_t *mutex, int prioceiling,
pthread_mutex_t *mutex; int *old_ceiling)
int prioceiling;
int *old_ceiling;
{ {
/* The low bits of __kind aren't ever changed after pthread_mutex_init, /* The low bits of __kind aren't ever changed after pthread_mutex_init,
so we don't need a lock yet. */ so we don't need a lock yet. */

View File

@ -22,9 +22,8 @@
int int
pthread_mutexattr_getprioceiling (attr, prioceiling) pthread_mutexattr_getprioceiling (const pthread_mutexattr_t *attr,
const pthread_mutexattr_t *attr; int *prioceiling)
int *prioceiling;
{ {
const struct pthread_mutexattr *iattr; const struct pthread_mutexattr *iattr;
int ceiling; int ceiling;

View File

@ -29,9 +29,8 @@ static const struct pthread_rwlockattr default_rwlockattr =
int int
__pthread_rwlock_init (rwlock, attr) __pthread_rwlock_init (pthread_rwlock_t *rwlock,
pthread_rwlock_t *rwlock; const pthread_rwlockattr_t *attr)
const pthread_rwlockattr_t *attr;
{ {
const struct pthread_rwlockattr *iattr; const struct pthread_rwlockattr *iattr;

View File

@ -28,9 +28,8 @@
/* Try to acquire read lock for RWLOCK or return after specfied time. */ /* Try to acquire read lock for RWLOCK or return after specfied time. */
int int
pthread_rwlock_timedrdlock (rwlock, abstime) pthread_rwlock_timedrdlock (pthread_rwlock_t *rwlock,
pthread_rwlock_t *rwlock; const struct timespec *abstime)
const struct timespec *abstime;
{ {
int result = 0; int result = 0;
bool wake = false; bool wake = false;

View File

@ -28,9 +28,8 @@
/* Try to acquire write lock for RWLOCK or return after specfied time. */ /* Try to acquire write lock for RWLOCK or return after specfied time. */
int int
pthread_rwlock_timedwrlock (rwlock, abstime) pthread_rwlock_timedwrlock (pthread_rwlock_t *rwlock,
pthread_rwlock_t *rwlock; const struct timespec *abstime)
const struct timespec *abstime;
{ {
int result = 0; int result = 0;
bool wake_readers = false; bool wake_readers = false;

View File

@ -24,10 +24,8 @@
int int
__pthread_setschedparam (threadid, policy, param) __pthread_setschedparam (pthread_t threadid, int policy,
pthread_t threadid; const struct sched_param *param)
int policy;
const struct sched_param *param;
{ {
struct pthread *pd = (struct pthread *) threadid; struct pthread *pd = (struct pthread *) threadid;

View File

@ -22,13 +22,8 @@
at address ADDR (which is ADDR_LEN bytes long). at address ADDR (which is ADDR_LEN bytes long).
Returns the number read or -1 for errors. */ Returns the number read or -1 for errors. */
ssize_t ssize_t
__recvfrom (fd, buf, n, flags, addr, addr_len) __recvfrom (int fd, void *buf, size_t n, int flags, __SOCKADDR_ARG addr,
int fd; socklen_t *addr_len)
void *buf;
size_t n;
int flags;
__SOCKADDR_ARG addr;
socklen_t *addr_len;
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;

View File

@ -21,13 +21,8 @@
/* Send N bytes of BUF on socket FD to peer at address ADDR (which is /* Send N bytes of BUF on socket FD to peer at address ADDR (which is
ADDR_LEN bytes long). Returns the number sent, or -1 for errors. */ ADDR_LEN bytes long). Returns the number sent, or -1 for errors. */
ssize_t ssize_t
__sendto (fd, buf, n, flags, addr, addr_len) __sendto (int fd, const __ptr_t buf, size_t n, int flags,
int fd; __CONST_SOCKADDR_ARG addr, socklen_t addr_len)
const __ptr_t buf;
size_t n;
int flags;
__CONST_SOCKADDR_ARG addr;
socklen_t addr_len;
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;

View File

@ -22,12 +22,8 @@
to *OPTVAL (which is OPTLEN bytes long). to *OPTVAL (which is OPTLEN bytes long).
Returns 0 on success, -1 for errors. */ Returns 0 on success, -1 for errors. */
int int
__setsockopt (fd, level, optname, optval, optlen) __setsockopt (int fd, int level, int optname, const __ptr_t optval,
int fd; socklen_t optlen)
int level;
int optname;
const __ptr_t optval;
socklen_t optlen;
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;

View File

@ -191,11 +191,8 @@ _itoa_word (_ITOA_WORD_TYPE value, char *buflim,
#if _ITOA_NEEDED #if _ITOA_NEEDED
char * char *
_itoa (value, buflim, base, upper_case) _itoa (unsigned long long int value, char *buflim, unsigned int base,
unsigned long long int value; int upper_case)
char *buflim;
unsigned int base;
int upper_case;
{ {
const char *digits = (upper_case const char *digits = (upper_case
? _itoa_upper_digits ? _itoa_upper_digits

View File

@ -87,11 +87,8 @@ extern const wchar_t _itowa_upper_digits[] attribute_hidden;
#if _ITOA_NEEDED #if _ITOA_NEEDED
wchar_t * wchar_t *
_itowa (value, buflim, base, upper_case) _itowa (unsigned long long int value, wchar_t *buflim, unsigned int base,
unsigned long long int value; int upper_case)
wchar_t *buflim;
unsigned int base;
int upper_case;
{ {
const wchar_t *digits = (upper_case const wchar_t *digits = (upper_case
? _itowa_upper_digits : _itowa_lower_digits); ? _itowa_upper_digits : _itowa_lower_digits);

View File

@ -38,10 +38,8 @@ int __register_printf_function (int, printf_function,
/* Register FUNC to be called to format SPEC specifiers. */ /* Register FUNC to be called to format SPEC specifiers. */
int int
__register_printf_specifier (spec, converter, arginfo) __register_printf_specifier (int spec, printf_function converter,
int spec; printf_arginfo_size_function arginfo)
printf_function converter;
printf_arginfo_size_function arginfo;
{ {
if (spec < 0 || spec > (int) UCHAR_MAX) if (spec < 0 || spec > (int) UCHAR_MAX)
{ {
@ -79,10 +77,8 @@ weak_alias (__register_printf_specifier, register_printf_specifier)
/* Register FUNC to be called to format SPEC specifiers. */ /* Register FUNC to be called to format SPEC specifiers. */
int int
__register_printf_function (spec, converter, arginfo) __register_printf_function (int spec, printf_function converter,
int spec; printf_arginfo_function arginfo)
printf_function converter;
printf_arginfo_function arginfo;
{ {
return __register_printf_specifier (spec, converter, return __register_printf_specifier (spec, converter,
(printf_arginfo_size_function*) arginfo); (printf_arginfo_size_function*) arginfo);

View File

@ -24,12 +24,8 @@
template suitable for use in __gen_tempname into TMPL, bounded template suitable for use in __gen_tempname into TMPL, bounded
by TMPL_LEN. */ by TMPL_LEN. */
int int
__path_search (tmpl, tmpl_len, dir, pfx, try_tmpdir) __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx,
char *tmpl; int try_tmpdir)
size_t tmpl_len;
const char *dir;
const char *pfx;
int try_tmpdir;
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;

View File

@ -26,11 +26,8 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
#include "longlong.h" #include "longlong.h"
mp_limb_t mp_limb_t
mpn_addmul_1 (res_ptr, s1_ptr, s1_size, s2_limb) mpn_addmul_1 (register mp_ptr res_ptr, register mp_srcptr s1_ptr,
register mp_ptr res_ptr; mp_size_t s1_size, register mp_limb_t s2_limb)
register mp_srcptr s1_ptr;
mp_size_t s1_size;
register mp_limb_t s2_limb;
{ {
register mp_limb_t cy_limb; register mp_limb_t cy_limb;
register mp_size_t j; register mp_size_t j;

View File

@ -24,11 +24,8 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
#include "longlong.h" #include "longlong.h"
mp_limb_t mp_limb_t
mpn_mul_1 (res_ptr, s1_ptr, s1_size, s2_limb) mpn_mul_1 (register mp_ptr res_ptr, register mp_srcptr s1_ptr,
register mp_ptr res_ptr; mp_size_t s1_size, register mp_limb_t s2_limb)
register mp_srcptr s1_ptr;
mp_size_t s1_size;
register mp_limb_t s2_limb;
{ {
register mp_limb_t cy_limb; register mp_limb_t cy_limb;
register mp_size_t j; register mp_size_t j;

View File

@ -227,11 +227,8 @@ weak_alias (__srandom_r, srandom_r)
setstate so that it doesn't matter when initstate is called. setstate so that it doesn't matter when initstate is called.
Returns 0 on success, non-zero on failure. */ Returns 0 on success, non-zero on failure. */
int int
__initstate_r (seed, arg_state, n, buf) __initstate_r (unsigned int seed, char *arg_state, size_t n,
unsigned int seed; struct random_data *buf)
char *arg_state;
size_t n;
struct random_data *buf;
{ {
if (buf == NULL) if (buf == NULL)
goto fail; goto fail;

View File

@ -117,11 +117,8 @@ static char **last_environ;
to reuse values once generated for a `setenv' call since we can never to reuse values once generated for a `setenv' call since we can never
free the strings. */ free the strings. */
int int
__add_to_environ (name, value, combined, replace) __add_to_environ (const char *name, const char *value, const char *combined,
const char *name; int replace)
const char *value;
const char *combined;
int replace;
{ {
char **ep; char **ep;
size_t size; size_t size;

View File

@ -26,11 +26,8 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
#include "longlong.h" #include "longlong.h"
mp_limb_t mp_limb_t
mpn_submul_1 (res_ptr, s1_ptr, s1_size, s2_limb) mpn_submul_1 (register mp_ptr res_ptr, register mp_srcptr s1_ptr,
register mp_ptr res_ptr; mp_size_t s1_size, register mp_limb_t s2_limb)
register mp_srcptr s1_ptr;
mp_size_t s1_size;
register mp_limb_t s2_limb;
{ {
register mp_limb_t cy_limb; register mp_limb_t cy_limb;
register mp_size_t j; register mp_size_t j;

View File

@ -19,12 +19,8 @@
#include <stropts.h> #include <stropts.h>
int int
getpmsg (fildes, ctlptr, dataptr, bandp, flagsp) getpmsg (int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *bandp,
int fildes; int *flagsp)
struct strbuf *ctlptr;
struct strbuf *dataptr;
int *bandp;
int *flagsp;
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;

View File

@ -19,11 +19,8 @@
#include <stropts.h> #include <stropts.h>
int int
putmsg (fildes, ctlptr, dataptr, flags) putmsg (int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr,
int fildes; int flags)
const struct strbuf *ctlptr;
const struct strbuf *dataptr;
int flags;
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;

View File

@ -19,12 +19,8 @@
#include <stropts.h> #include <stropts.h>
int int
putpmsg (fildes, ctlptr, dataptr, band, flags) putpmsg (int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr,
int fildes; int band, int flags)
const struct strbuf *ctlptr;
const struct strbuf *dataptr;
int band;
int flags;
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;

View File

@ -132,14 +132,8 @@ clntraw_create (u_long prog, u_long vers)
libc_hidden_nolink_sunrpc (clntraw_create, GLIBC_2_0) libc_hidden_nolink_sunrpc (clntraw_create, GLIBC_2_0)
static enum clnt_stat static enum clnt_stat
clntraw_call (h, proc, xargs, argsp, xresults, resultsp, timeout) clntraw_call (CLIENT *h, u_long proc, xdrproc_t xargs, caddr_t argsp,
CLIENT *h; xdrproc_t xresults, caddr_t resultsp, struct timeval timeout)
u_long proc;
xdrproc_t xargs;
caddr_t argsp;
xdrproc_t xresults;
caddr_t resultsp;
struct timeval timeout;
{ {
struct clntraw_private_s *clp = clntraw_private; struct clntraw_private_s *clp = clntraw_private;
XDR *xdrs = &clp->xdr_stream; XDR *xdrs = &clp->xdr_stream;

View File

@ -224,14 +224,9 @@ libc_hidden_nolink_sunrpc (clnttcp_create, GLIBC_2_0)
#endif #endif
static enum clnt_stat static enum clnt_stat
clnttcp_call (h, proc, xdr_args, args_ptr, xdr_results, results_ptr, timeout) clnttcp_call (CLIENT *h, u_long proc, xdrproc_t xdr_args, caddr_t args_ptr,
CLIENT *h; xdrproc_t xdr_results, caddr_t results_ptr,
u_long proc; struct timeval timeout)
xdrproc_t xdr_args;
caddr_t args_ptr;
xdrproc_t xdr_results;
caddr_t results_ptr;
struct timeval timeout;
{ {
struct ct_data *ct = (struct ct_data *) h->cl_private; struct ct_data *ct = (struct ct_data *) h->cl_private;
XDR *xdrs = &(ct->ct_xdrs); XDR *xdrs = &(ct->ct_xdrs);

View File

@ -220,12 +220,8 @@ clntudp_bufcreate (struct sockaddr_in *raddr, u_long program, u_long version,
libc_hidden_nolink_sunrpc (clntudp_bufcreate, GLIBC_2_0) libc_hidden_nolink_sunrpc (clntudp_bufcreate, GLIBC_2_0)
CLIENT * CLIENT *
clntudp_create (raddr, program, version, wait, sockp) clntudp_create (struct sockaddr_in *raddr, u_long program, u_long version,
struct sockaddr_in *raddr; struct timeval wait, int *sockp)
u_long program;
u_long version;
struct timeval wait;
int *sockp;
{ {
return __libc_clntudp_bufcreate (raddr, program, version, wait, return __libc_clntudp_bufcreate (raddr, program, version, wait,
sockp, UDPMSGSIZE, UDPMSGSIZE, 0); sockp, UDPMSGSIZE, UDPMSGSIZE, 0);

View File

@ -203,14 +203,9 @@ fooy:
libc_hidden_nolink_sunrpc (clntunix_create, GLIBC_2_1) libc_hidden_nolink_sunrpc (clntunix_create, GLIBC_2_1)
static enum clnt_stat static enum clnt_stat
clntunix_call (h, proc, xdr_args, args_ptr, xdr_results, results_ptr, timeout) clntunix_call (CLIENT *h, u_long proc, xdrproc_t xdr_args, caddr_t args_ptr,
CLIENT *h; xdrproc_t xdr_results, caddr_t results_ptr,
u_long proc; struct timeval timeout)
xdrproc_t xdr_args;
caddr_t args_ptr;
xdrproc_t xdr_results;
caddr_t results_ptr;
struct timeval timeout;
{ {
struct ct_data *ct = (struct ct_data *) h->cl_private; struct ct_data *ct = (struct ct_data *) h->cl_private;
XDR *xdrs = &(ct->ct_xdrs); XDR *xdrs = &(ct->ct_xdrs);

View File

@ -152,11 +152,8 @@ libc_hidden_nolink_sunrpc (__libc_rpc_getport, GLIBC_PRIVATE)
* Returns 0 if no map exists. * Returns 0 if no map exists.
*/ */
u_short u_short
pmap_getport (address, program, version, protocol) pmap_getport (struct sockaddr_in *address, u_long program, u_long version,
struct sockaddr_in *address; u_int protocol)
u_long program;
u_long version;
u_int protocol;
{ {
return __libc_rpc_getport (address, program, version, protocol, 5, 60); return __libc_rpc_getport (address, program, version, protocol, 5, 60);
} }

View File

@ -585,11 +585,8 @@ cache_set (SVCXPRT *xprt, u_long replylen)
* return 1 if found, 0 if not found * return 1 if found, 0 if not found
*/ */
static int static int
cache_get (xprt, msg, replyp, replylenp) cache_get (SVCXPRT *xprt, struct rpc_msg *msg, char **replyp,
SVCXPRT *xprt; u_long *replylenp)
struct rpc_msg *msg;
char **replyp;
u_long *replylenp;
{ {
u_int loc; u_int loc;
cache_ptr ent; cache_ptr ent;

View File

@ -141,12 +141,8 @@ libc_hidden_nolink_sunrpc (xdr_array, GLIBC_2_0)
* > xdr_elem: routine to XDR each element * > xdr_elem: routine to XDR each element
*/ */
bool_t bool_t
xdr_vector (xdrs, basep, nelem, elemsize, xdr_elem) xdr_vector (XDR *xdrs, char *basep, u_int nelem, u_int elemsize,
XDR *xdrs; xdrproc_t xdr_elem)
char *basep;
u_int nelem;
u_int elemsize;
xdrproc_t xdr_elem;
{ {
u_int i; u_int i;
char *elptr; char *elptr;

View File

@ -284,10 +284,8 @@ _hurd_canonicalize_directory_name_internal (file_t thisdir,
} }
char * char *
__canonicalize_directory_name_internal (thisdir, buf, size) __canonicalize_directory_name_internal (const char *thisdir, char *buf,
const char *thisdir; size_t size)
char *buf;
size_t size;
{ {
char *result; char *result;
file_t port = __file_name_lookup (thisdir, 0, 0); file_t port = __file_name_lookup (thisdir, 0, 0);

View File

@ -30,13 +30,8 @@
SIGMASK for this call. Returns the number of ready descriptors, or -1 for SIGMASK for this call. Returns the number of ready descriptors, or -1 for
errors. */ errors. */
int int
__pselect (nfds, readfds, writefds, exceptfds, timeout, sigmask) __pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
int nfds; const struct timespec *timeout, const sigset_t *sigmask)
fd_set *readfds;
fd_set *writefds;
fd_set *exceptfds;
const struct timespec *timeout;
const sigset_t *sigmask;
{ {
return _hurd_select (nfds, NULL, return _hurd_select (nfds, NULL,
readfds, writefds, exceptfds, timeout, sigmask); readfds, writefds, exceptfds, timeout, sigmask);

View File

@ -27,13 +27,8 @@
the sender, and store the actual size of the address in *ADDR_LEN. the sender, and store the actual size of the address in *ADDR_LEN.
Returns the number of bytes read or -1 for errors. */ Returns the number of bytes read or -1 for errors. */
ssize_t ssize_t
__recvfrom (fd, buf, n, flags, addrarg, addr_len) __recvfrom (int fd, void *buf, size_t n, int flags, __SOCKADDR_ARG addrarg,
int fd; socklen_t *addr_len)
void *buf;
size_t n;
int flags;
__SOCKADDR_ARG addrarg;
socklen_t *addr_len;
{ {
error_t err; error_t err;
mach_port_t addrport; mach_port_t addrport;

View File

@ -26,12 +26,8 @@
after waiting the interval specified therein. Returns the number of ready after waiting the interval specified therein. Returns the number of ready
descriptors, or -1 for errors. */ descriptors, or -1 for errors. */
int int
__select (nfds, readfds, writefds, exceptfds, timeout) __select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
int nfds; struct timeval *timeout)
fd_set *readfds;
fd_set *writefds;
fd_set *exceptfds;
struct timeval *timeout;
{ {
struct timespec ts, *to; struct timespec ts, *to;

View File

@ -37,14 +37,8 @@ static int getttyname_r (int fd, char *buf, size_t buflen,
static int static int
internal_function internal_function
getttyname_r (fd, buf, buflen, mydev, myino, save, dostat) getttyname_r (int fd, char *buf, size_t buflen, dev_t mydev, ino_t myino,
int fd; int save, int *dostat)
char *buf;
size_t buflen;
dev_t mydev;
ino_t myino;
int save;
int *dostat;
{ {
struct stat st; struct stat st;
DIR *dirstream; DIR *dirstream;

View File

@ -25,11 +25,8 @@
/* Set timer TIMERID to VALUE, returning old value in OVLAUE. */ /* Set timer TIMERID to VALUE, returning old value in OVLAUE. */
int int
timer_settime (timerid, flags, value, ovalue) timer_settime (timer_t timerid, int flags, const struct itimerspec *value,
timer_t timerid; struct itimerspec *ovalue)
int flags;
const struct itimerspec *value;
struct itimerspec *ovalue;
{ {
struct timer_node *timer; struct timer_node *timer;
struct thread_node *thread = NULL; struct thread_node *thread = NULL;

View File

@ -23,10 +23,8 @@
#include <sparc-nptl.h> #include <sparc-nptl.h>
int int
__pthread_barrier_init (barrier, attr, count) __pthread_barrier_init (pthread_barrier_t *barrier,
pthread_barrier_t *barrier; const pthread_barrierattr_t *attr, unsigned int count)
const pthread_barrierattr_t *attr;
unsigned int count;
{ {
union sparc_pthread_barrier *ibarrier; union sparc_pthread_barrier *ibarrier;

View File

@ -25,10 +25,8 @@
# include <internaltypes.h> # include <internaltypes.h>
# include <shlib-compat.h> # include <shlib-compat.h>
int int
__pthread_cond_timedwait (cond, mutex, abstime) __pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex,
pthread_cond_t *cond; const struct timespec *abstime)
pthread_mutex_t *mutex;
const struct timespec *abstime;
{ {
cond_compat_check_and_clear (cond); cond_compat_check_and_clear (cond);
return __pthread_cond_timedwait_internal (cond, mutex, abstime); return __pthread_cond_timedwait_internal (cond, mutex, abstime);

View File

@ -24,11 +24,8 @@
#ifdef __NR_putpmsg #ifdef __NR_putpmsg
int int
putmsg (fildes, ctlptr, dataptr, flags) putmsg (int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr,
int fildes; int flags)
const struct strbuf *ctlptr;
const struct strbuf *dataptr;
int flags;
{ {
return INLINE_SYSCALL (putpmsg, 5, fildes, ctlptr, dataptr, -1, flags); return INLINE_SYSCALL (putpmsg, 5, fildes, ctlptr, dataptr, -1, flags);
} }

View File

@ -26,11 +26,8 @@
/* Perform user-defined atomical operation of array of semaphores. */ /* Perform user-defined atomical operation of array of semaphores. */
int int
semtimedop (semid, sops, nsops, timeout) semtimedop (int semid, struct sembuf *sops, size_t nsops,
int semid; const struct timespec *timeout)
struct sembuf *sops;
size_t nsops;
const struct timespec *timeout;
{ {
return INLINE_SYSCALL (ipc, 5, IPCOP_semtimedop, return INLINE_SYSCALL (ipc, 5, IPCOP_semtimedop,
semid, (int) nsops, timeout, sops); semid, (int) nsops, timeout, sops);

View File

@ -26,11 +26,8 @@
/* Perform user-defined atomical operation of array of semaphores. */ /* Perform user-defined atomical operation of array of semaphores. */
int int
semtimedop (semid, sops, nsops, timeout) semtimedop (int semid, struct sembuf *sops, size_t nsops,
int semid; const struct timespec *timeout)
struct sembuf *sops;
size_t nsops;
const struct timespec *timeout;
{ {
return INLINE_SYSCALL (ipc, 6, IPCOP_semtimedop, return INLINE_SYSCALL (ipc, 6, IPCOP_semtimedop,
semid, (int) nsops, 0, sops, semid, (int) nsops, 0, sops,

View File

@ -29,11 +29,8 @@
int int
timer_settime (timerid, flags, value, ovalue) timer_settime (timer_t timerid, int flags, const struct itimerspec *value,
timer_t timerid; struct itimerspec *ovalue)
int flags;
const struct itimerspec *value;
struct itimerspec *ovalue;
{ {
#undef timer_settime #undef timer_settime
struct timer *kt = (struct timer *) timerid; struct timer *kt = (struct timer *) timerid;

View File

@ -22,11 +22,8 @@
/* Perform user-defined atomical operation of array of semaphores. */ /* Perform user-defined atomical operation of array of semaphores. */
int int
semtimedop (semid, sops, nsops, timeout) semtimedop (int semid, struct sembuf *sops, size_t nsops,
int semid; const struct timespec *timeout)
struct sembuf *sops;
size_t nsops;
const struct timespec *timeout;
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;

View File

@ -23,10 +23,8 @@
set *OLD to the old value of timer WHICH. set *OLD to the old value of timer WHICH.
Returns 0 on success, -1 on errors. */ Returns 0 on success, -1 on errors. */
int int
__setitimer (which, new, old) __setitimer (enum __itimer_which which, const struct itimerval *new,
enum __itimer_which which; struct itimerval *old)
const struct itimerval *new;
struct itimerval *old;
{ {
if (new == NULL) if (new == NULL)
{ {

View File

@ -1438,11 +1438,8 @@ __strftime_internal (s, maxsize, format, tp, tzset_called ut_argument
strftime function and does not have the extra information whether the strftime function and does not have the extra information whether the
TP arguments comes from a `gmtime' call or not. */ TP arguments comes from a `gmtime' call or not. */
size_t size_t
emacs_strftime (s, maxsize, format, tp) emacs_strftime (char *s, size_t maxsize, const char *format,
char *s; const struct tm *tp)
size_t maxsize;
const char *format;
const struct tm *tp;
{ {
return my_strftime (s, maxsize, format, tp, 0); return my_strftime (s, maxsize, format, tp, 0);
} }