diff options
Diffstat (limited to 'misc')
50 files changed, 55 insertions, 154 deletions
diff --git a/misc/acct.c b/misc/acct.c index c5569e5afa..54233170ab 100644 --- a/misc/acct.c +++ b/misc/acct.c @@ -22,8 +22,7 @@ a record for each process as it terminates, to this file. If NAME is NULL, turn accounting off. This call is restricted to the super-user. */ int -acct (name) - const char *name; +acct (const char *name) { __set_errno (ENOSYS); return -1; diff --git a/misc/brk.c b/misc/brk.c index 28c4203399..e3d4fa373c 100644 --- a/misc/brk.c +++ b/misc/brk.c @@ -24,8 +24,7 @@ void *__curbrk; /* Set the end of the process's data space to ADDR. Return 0 if successful, -1 if not. */ int -__brk (addr) - void *addr; +__brk (void *addr) { __set_errno (ENOSYS); return -1; diff --git a/misc/chflags.c b/misc/chflags.c index 241be86be7..84cc606e00 100644 --- a/misc/chflags.c +++ b/misc/chflags.c @@ -24,9 +24,7 @@ int chflags (const char *file, unsigned long int flags) __THROW; int -chflags (file, flags) - const char *file; - unsigned long int flags; +chflags (const char *file, unsigned long int flags) { if (file == NULL) { diff --git a/misc/chroot.c b/misc/chroot.c index 232a29f363..4c0fe7d637 100644 --- a/misc/chroot.c +++ b/misc/chroot.c @@ -21,8 +21,7 @@ /* Make PATH be the root directory (the starting point for absolute paths). This call is restricted to the super-user. */ int -chroot (path) - const char *path; +chroot (const char *path) { __set_errno (ENOSYS); return -1; diff --git a/misc/fchflags.c b/misc/fchflags.c index b9f267583b..ad0d728aa0 100644 --- a/misc/fchflags.c +++ b/misc/fchflags.c @@ -24,9 +24,7 @@ int fchflags (int fd, unsigned long int flags) __THROW; int -fchflags (fd, flags) - int fd; - unsigned long int flags; +fchflags (int fd, unsigned long int flags) { if (fd < 0) { diff --git a/misc/fstab.c b/misc/fstab.c index 97c62feb5d..244db81e47 100644 --- a/misc/fstab.c +++ b/misc/fstab.c @@ -61,8 +61,7 @@ getfsent (void) struct fstab * -getfsspec (name) - const char *name; +getfsspec (const char *name) { struct fstab_state *state; struct mntent *m; @@ -78,8 +77,7 @@ getfsspec (name) struct fstab * -getfsfile (name) - const char *name; +getfsfile (const char *name) { struct fstab_state *state; struct mntent *m; diff --git a/misc/fsync.c b/misc/fsync.c index 05f3acfc0a..8f1d95909e 100644 --- a/misc/fsync.c +++ b/misc/fsync.c @@ -20,8 +20,7 @@ /* Make all changes done to FD actually appear on disk. */ int -fsync (fd) - int fd; +fsync (int fd) { __set_errno (ENOSYS); return -1; diff --git a/misc/ftruncate.c b/misc/ftruncate.c index 2d43c76a37..a015c6e990 100644 --- a/misc/ftruncate.c +++ b/misc/ftruncate.c @@ -21,9 +21,7 @@ /* Truncate the file referenced by FD to LENGTH bytes. */ int -__ftruncate (fd, length) - int fd; - off_t length; +__ftruncate (int fd, off_t length) { __set_errno (ENOSYS); return -1; diff --git a/misc/ftruncate64.c b/misc/ftruncate64.c index 1c41fea5a5..2e71bed6e1 100644 --- a/misc/ftruncate64.c +++ b/misc/ftruncate64.c @@ -21,9 +21,7 @@ /* Truncate the file referenced by FD to LENGTH bytes. */ int -__ftruncate64 (fd, length) - int fd; - off64_t length; +__ftruncate64 (int fd, off64_t length) { if ((off_t) length != length) { diff --git a/misc/getdomain.c b/misc/getdomain.c index c5ab3a5e5e..db57c3dd55 100644 --- a/misc/getdomain.c +++ b/misc/getdomain.c @@ -29,9 +29,7 @@ /* The `uname' information includes the domain name. */ int -getdomainname (name, len) - char *name; - size_t len; +getdomainname (char *name, size_t len) { struct utsname u; size_t u_len; @@ -47,9 +45,7 @@ getdomainname (name, len) #else int -getdomainname (name, len) - char *name; - size_t len; +getdomainname (char *name, size_t len) { __set_errno (ENOSYS); return -1; diff --git a/misc/gethostname.c b/misc/gethostname.c index 15097a80ce..ca682b4cb1 100644 --- a/misc/gethostname.c +++ b/misc/gethostname.c @@ -22,9 +22,7 @@ The result is null-terminated if LEN is large enough for the full name and the terminator. */ int -__gethostname (name, len) - char *name; - size_t len; +__gethostname (char *name, size_t len) { __set_errno (ENOSYS); return -1; diff --git a/misc/getpass.c b/misc/getpass.c index 78fe8f2b53..a6d1c88975 100644 --- a/misc/getpass.c +++ b/misc/getpass.c @@ -43,8 +43,7 @@ call_fclose (void *arg) } char * -getpass (prompt) - const char *prompt; +getpass (const char *prompt) { FILE *in, *out; struct termios s, t; diff --git a/misc/getttyent.c b/misc/getttyent.c index fcdbc2274c..d2af870123 100644 --- a/misc/getttyent.c +++ b/misc/getttyent.c @@ -142,8 +142,7 @@ weak_alias (__getttyent, getttyent) */ static char * internal_function -skip(p) - char *p; +skip (char *p) { char *t; int c, q; @@ -177,8 +176,7 @@ skip(p) static char * internal_function -value(p) - char *p; +value (char *p) { return ((p = index(p, '=')) ? ++p : NULL); diff --git a/misc/gtty.c b/misc/gtty.c index 9a64a9a0dc..798185ebb7 100644 --- a/misc/gtty.c +++ b/misc/gtty.c @@ -21,9 +21,7 @@ /* Fill in *PARAMS with terminal parameters associated with FD. */ int -gtty (fd, params) - int fd; - struct sgttyb *params; +gtty (int fd, struct sgttyb *params) { if (params == NULL) { diff --git a/misc/hsearch.c b/misc/hsearch.c index 7a0b0dc406..9442f69a61 100644 --- a/misc/hsearch.c +++ b/misc/hsearch.c @@ -24,9 +24,7 @@ static struct hsearch_data htab; /* Define the non-reentrant function using the reentrant counterparts. */ ENTRY * -hsearch (item, action) - ENTRY item; - ACTION action; +hsearch (ENTRY item, ACTION action) { ENTRY *result; @@ -37,8 +35,7 @@ hsearch (item, action) int -hcreate (nel) - size_t nel; +hcreate (size_t nel) { return __hcreate_r (nel, &htab); } diff --git a/misc/hsearch_r.c b/misc/hsearch_r.c index 559df29cf7..9d6cd81c95 100644 --- a/misc/hsearch_r.c +++ b/misc/hsearch_r.c @@ -62,9 +62,7 @@ isprime (unsigned int number) The contents of the table is zeroed, especially the field used becomes zero. */ int -__hcreate_r (nel, htab) - size_t nel; - struct hsearch_data *htab; +__hcreate_r (size_t nel, struct hsearch_data *htab) { /* Test for correct arguments. */ if (htab == NULL) @@ -111,8 +109,7 @@ weak_alias (__hcreate_r, hcreate_r) /* After using the hash table it has to be destroyed. The used memory can be freed and the local static variable can be marked as not used. */ void -__hdestroy_r (htab) - struct hsearch_data *htab; +__hdestroy_r (struct hsearch_data *htab) { /* Test for correct arguments. */ if (htab == NULL) diff --git a/misc/ioctl.c b/misc/ioctl.c index f75f3e41b2..d07c3d9994 100644 --- a/misc/ioctl.c +++ b/misc/ioctl.c @@ -21,9 +21,7 @@ /* Perform the I/O control operation specified by REQUEST on FD. The actual type and use of ARG and the return value depend on REQUEST. */ int -__ioctl (fd, request) - int fd; - unsigned long int request; +__ioctl (int fd, unsigned long int request) { __set_errno (ENOSYS); return -1; diff --git a/misc/mkdtemp.c b/misc/mkdtemp.c index 1f733cdfaa..1da10629ce 100644 --- a/misc/mkdtemp.c +++ b/misc/mkdtemp.c @@ -24,8 +24,7 @@ The directory is created, mode 700, and its name is returned. (This function comes from OpenBSD.) */ char * -mkdtemp (template) - char *template; +mkdtemp (char *template) { if (__gen_tempname (template, 0, 0, __GT_DIR)) return NULL; diff --git a/misc/mkostemp.c b/misc/mkostemp.c index 807e4770a0..73d952b259 100644 --- a/misc/mkostemp.c +++ b/misc/mkostemp.c @@ -27,9 +27,7 @@ they are replaced with a string that makes the filename unique. Then open the file and return a fd. */ int -mkostemp (template, flags) - char *template; - int flags; +mkostemp (char *template, int flags) { return __gen_tempname (template, 0, flags, __GT_FILE); } diff --git a/misc/mkostemp64.c b/misc/mkostemp64.c index 2b9c868cd0..0581553bc8 100644 --- a/misc/mkostemp64.c +++ b/misc/mkostemp64.c @@ -27,9 +27,7 @@ they are replaced with a string that makes the filename unique. Then open the file and return a fd. */ int -mkostemp64 (template, flags) - char *template; - int flags; +mkostemp64 (char *template, int flags) { return __gen_tempname (template, 0, flags | O_LARGEFILE, __GT_FILE); } diff --git a/misc/mkostemps.c b/misc/mkostemps.c index 892dc69ba2..a7ef17b5f8 100644 --- a/misc/mkostemps.c +++ b/misc/mkostemps.c @@ -28,10 +28,7 @@ "XXXXXX"; they are replaced with a string that makes the filename unique. Then open the file and return a fd. */ int -mkostemps (template, suffixlen, flags) - char *template; - int suffixlen; - int flags; +mkostemps (char *template, int suffixlen, int flags) { if (suffixlen < 0) { diff --git a/misc/mkostemps64.c b/misc/mkostemps64.c index 7b48b5c8c0..02ab259f03 100644 --- a/misc/mkostemps64.c +++ b/misc/mkostemps64.c @@ -28,10 +28,7 @@ "XXXXXX"; they are replaced with a string that makes the filename unique. Then open the file and return a fd. */ int -mkostemps64 (template, suffixlen, flags) - char *template; - int suffixlen; - int flags; +mkostemps64 (char *template, int suffixlen, int flags) { if (suffixlen < 0) { diff --git a/misc/mkstemp.c b/misc/mkstemp.c index c5018d154a..638115f73a 100644 --- a/misc/mkstemp.c +++ b/misc/mkstemp.c @@ -27,8 +27,7 @@ they are replaced with a string that makes the filename unique. Then open the file and return a fd. */ int -mkstemp (template) - char *template; +mkstemp (char *template) { return __gen_tempname (template, 0, 0, __GT_FILE); } diff --git a/misc/mkstemp64.c b/misc/mkstemp64.c index e4b8605950..340171bb93 100644 --- a/misc/mkstemp64.c +++ b/misc/mkstemp64.c @@ -27,8 +27,7 @@ they are replaced with a string that makes the filename uniq |
