diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-09 19:21:56 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-09 19:21:56 +0200 |
commit | 525c181a5a9a95e24d2111b7792608151a40eb84 (patch) | |
tree | 8ba16eeb3fb7327e5c3c5bba9c5786d4bb6ccec1 /sysdeps/posix | |
parent | 4dd9e35bfd35d3138bc44169baba098005bad51e (diff) | |
parent | 7bb5f8a836b916d6ebf7b6921b136e99cea2442d (diff) |
Merge commit 'refs/top-bases/t/bigmem' into t/bigmem
Diffstat (limited to 'sysdeps/posix')
84 files changed, 131 insertions, 212 deletions
diff --git a/sysdeps/posix/alarm.c b/sysdeps/posix/alarm.c index 002366462c..47b7477e6d 100644 --- a/sysdeps/posix/alarm.c +++ b/sysdeps/posix/alarm.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -26,8 +26,7 @@ to 0 and check its value after calling `alarm', and this might tell you. The signal may come late due to processor scheduling. */ unsigned int -alarm (seconds) - unsigned int seconds; +alarm (unsigned int seconds) { struct itimerval old, new; unsigned int retval; diff --git a/sysdeps/posix/clock.c b/sysdeps/posix/clock.c index d425190bdc..04ac806410 100644 --- a/sysdeps/posix/clock.c +++ b/sysdeps/posix/clock.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/clock_getres.c b/sysdeps/posix/clock_getres.c index 7202b9b07d..fb328d78a9 100644 --- a/sysdeps/posix/clock_getres.c +++ b/sysdeps/posix/clock_getres.c @@ -1,5 +1,5 @@ /* clock_getres -- Get the resolution of a POSIX clockid_t. - Copyright (C) 1999-2015 Free Software Foundation, Inc. + Copyright (C) 1999-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/closedir.c b/sysdeps/posix/closedir.c index e352c0b1af..960cdec8d3 100644 --- a/sysdeps/posix/closedir.c +++ b/sysdeps/posix/closedir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/ctermid.c b/sysdeps/posix/ctermid.c index 5a6ff02d78..5efdab6a39 100644 --- a/sysdeps/posix/ctermid.c +++ b/sysdeps/posix/ctermid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/cuserid.c b/sysdeps/posix/cuserid.c index acdd20cd5e..5f5ea3a8f7 100644 --- a/sysdeps/posix/cuserid.c +++ b/sysdeps/posix/cuserid.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -25,8 +25,7 @@ If S is not NULL, it points to a buffer of at least L_cuserid bytes into which the name is copied; otherwise, a static buffer is used. */ char * -cuserid (s) - char *s; +cuserid (char *s) { static char name[L_cuserid]; char buf[NSS_BUFLEN_PASSWD]; diff --git a/sysdeps/posix/dirfd.c b/sysdeps/posix/dirfd.c index 1630f8987b..f47aafd83a 100644 --- a/sysdeps/posix/dirfd.c +++ b/sysdeps/posix/dirfd.c @@ -1,5 +1,5 @@ /* Return the file descriptor used by a DIR stream. Unix version. - Copyright (C) 1995-2015 Free Software Foundation, Inc. + Copyright (C) 1995-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,8 +22,7 @@ #undef dirfd int -dirfd (dirp) - DIR *dirp; +dirfd (DIR *dirp) { return dirp->fd; } diff --git a/sysdeps/posix/dirstream.h b/sysdeps/posix/dirstream.h index c7e1a5af5c..87a930d7fe 100644 --- a/sysdeps/posix/dirstream.h +++ b/sysdeps/posix/dirstream.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1993-2015 Free Software Foundation, Inc. +/* Copyright (C) 1993-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,7 +20,7 @@ #include <sys/types.h> -#include <bits/libc-lock.h> +#include <libc-lock.h> /* Directory stream type. diff --git a/sysdeps/posix/dl-fileid.h b/sysdeps/posix/dl-fileid.h index d0d5436641..c56e324e65 100644 --- a/sysdeps/posix/dl-fileid.h +++ b/sysdeps/posix/dl-fileid.h @@ -1,5 +1,5 @@ /* File identity for the dynamic linker. Generic POSIX.1 version. - Copyright (C) 2015 Free Software Foundation, Inc. + Copyright (C) 2015-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/dup.c b/sysdeps/posix/dup.c index 02d7097b4c..9525e76749 100644 --- a/sysdeps/posix/dup.c +++ b/sysdeps/posix/dup.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,8 +22,7 @@ /* Duplicate FD, returning a new file descriptor open on the same file. */ int -__dup (fd) - int fd; +__dup (int fd) { return fcntl (fd, F_DUPFD, 0); } diff --git a/sysdeps/posix/dup2.c b/sysdeps/posix/dup2.c index ab983bcf74..9fc65029a8 100644 --- a/sysdeps/posix/dup2.c +++ b/sysdeps/posix/dup2.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,9 +23,7 @@ /* Duplicate FD to FD2, closing the old FD2 and making FD2 be open the same file as FD is. Return FD2 or -1. */ int -__dup2 (fd, fd2) - int fd; - int fd2; +__dup2 (int fd, int fd2) { int save; diff --git a/sysdeps/posix/euidaccess.c b/sysdeps/posix/euidaccess.c index 15340572c3..d8878aa28f 100644 --- a/sysdeps/posix/euidaccess.c +++ b/sysdeps/posix/euidaccess.c @@ -1,5 +1,5 @@ /* Check if effective user id can access file - Copyright (C) 1990-2015 Free Software Foundation, Inc. + Copyright (C) 1990-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -117,9 +117,7 @@ int group_member (); filesystem, text busy, etc. */ int -euidaccess (path, mode) - const char *path; - int mode; +euidaccess (const char *path, int mode) { struct stat64 stats; int granted; @@ -196,9 +194,7 @@ weak_alias (__euidaccess, eaccess) char *program_name; int -main (argc, argv) - int argc; - char **argv; +main (int argc, char **argv) { char *file; int mode; diff --git a/sysdeps/posix/fdopendir.c b/sysdeps/posix/fdopendir.c index 3dc50a38a4..227174ec54 100644 --- a/sysdeps/posix/fdopendir.c +++ b/sysdeps/posix/fdopendir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2005-2015 Free Software Foundation, Inc. +/* Copyright (C) 2005-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/flock.c b/sysdeps/posix/flock.c index ba7078bdbc..c621a5b03e 100644 --- a/sysdeps/posix/flock.c +++ b/sysdeps/posix/flock.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2015 Free Software Foundation, Inc. +/* Copyright (C) 1992-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -27,9 +27,7 @@ /* Apply or remove an advisory lock, according to OPERATION, on the file FD refers to. */ int -__flock (fd, operation) - int fd; - int operation; +__flock (int fd, int operation) { struct flock lbuf; diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c index 25f632ee84..4aaded14be 100644 --- a/sysdeps/posix/fpathconf.c +++ b/sysdeps/posix/fpathconf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -26,9 +26,7 @@ /* Get file-specific information about descriptor FD. */ long int -__fpathconf (fd, name) - int fd; - int name; +__fpathconf (int fd, int name) { if (fd < 0) { @@ -66,10 +64,10 @@ __fpathconf (fd, name) case _PC_NAME_MAX: #ifdef NAME_MAX { - struct statfs buf; + struct statvfs64 sv; int save_errno = errno; - if (__fstatfs (fd, &buf) < 0) + if (__fstatvfs64 (fd, &sv) < 0) { if (errno == ENOSYS) { @@ -83,15 +81,7 @@ __fpathconf (fd, name) } else { -#ifdef _STATFS_F_NAMELEN - return buf.f_namelen; -#else -# ifdef _STATFS_F_NAME_MAX - return buf.f_name_max; -# else - return NAME_MAX; -# endif -#endif + return sv.f_namemax; } } #else diff --git a/sysdeps/posix/gai_strerror.c b/sysdeps/posix/gai_strerror.c index e6d1283414..151ee08c29 100644 --- a/sysdeps/posix/gai_strerror.c +++ b/sysdeps/posix/gai_strerror.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997-2015 Free Software Foundation, Inc. +/* Copyright (C) 1997-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Philip Blundell <pjb27@cam.ac.uk>, 1997. diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 31bb7e66dc..1ef3f20d98 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -58,7 +58,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <sys/utsname.h> #include <unistd.h> #include <nsswitch.h> -#include <bits/libc-lock.h> +#include <libc-lock.h> #include <not-cancel.h> #include <nscd/nscd-client.h> #include <nscd/nscd_proto.h> diff --git a/sysdeps/posix/getcwd.c b/sysdeps/posix/getcwd.c index afe696767a..38cf4e7fc8 100644 --- a/sysdeps/posix/getcwd.c +++ b/sysdeps/posix/getcwd.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -222,9 +222,7 @@ static int __rtld_have_atfcts; unless SIZE == 0, in which case it is as big as necessary. */ GETCWD_RETURN_TYPE -__getcwd (buf, size) - char *buf; - size_t size; +__getcwd (char *buf, size_t size) { #ifndef __ASSUME_ATFCTS static const char dots[] diff --git a/sysdeps/posix/getdtsz.c b/sysdeps/posix/getdtsz.c index 431b5d666e..ea1c66ca0b 100644 --- a/sysdeps/posix/getdtsz.c +++ b/sysdeps/posix/getdtsz.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/gethostname.c b/sysdeps/posix/gethostname.c index 49177059c6..6ce54e933b 100644 --- a/sysdeps/posix/gethostname.c +++ b/sysdeps/posix/gethostname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2015 Free Software Foundation, Inc. +/* Copyright (C) 1992-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -24,9 +24,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) { struct utsname buf; size_t node_len; diff --git a/sysdeps/posix/getpagesize.c b/sysdeps/posix/getpagesize.c index 112b59b325..11963ac7a6 100644 --- a/sysdeps/posix/getpagesize.c +++ b/sysdeps/posix/getpagesize.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993-2015 Free Software Foundation, Inc. +/* Copyright (C) 1993-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Brendan Kehoe (brendan@cygnus.com). diff --git a/sysdeps/posix/gettimeofday.c b/sysdeps/posix/gettimeofday.c index 018acdfd0a..e6e343c23d 100644 --- a/sysdeps/posix/gettimeofday.c +++ b/sysdeps/posix/gettimeofday.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,9 +23,7 @@ putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled. Returns 0 on success, -1 on errors. */ int -__gettimeofday (tv, tz) - struct timeval *tv; - struct timezone *tz; +__gettimeofday (struct timeval *tv, struct timezone *tz) { if (tv == NULL) { diff --git a/sysdeps/posix/isatty.c b/sysdeps/posix/isatty.c index 807631a484..aaed61af74 100644 --- a/sysdeps/posix/isatty.c +++ b/sysdeps/posix/isatty.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,8 +20,7 @@ /* Return 1 if FD is a terminal, 0 if not. */ int -__isatty (fd) - int fd; +__isatty (int fd) { struct termios term; diff --git a/sysdeps/posix/isfdtype.c b/sysdeps/posix/isfdtype.c index 98d424f7d6..e3779b4530 100644 --- a/sysdeps/posix/isfdtype.c +++ b/sysdeps/posix/isfdtype.c @@ -1,5 +1,5 @@ /* Determine whether descriptor has given property. - Copyright (C) 1996-2015 Free Software Foundation, Inc. + Copyright (C) 1996-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/killpg.c b/sysdeps/posix/killpg.c index 77ffc7c1d8..dc3a7f1433 100644 --- a/sysdeps/posix/killpg.c +++ b/sysdeps/posix/killpg.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,9 +23,7 @@ If PGRP is zero, send SIG to all processes in the current process's process group. */ int -killpg (pgrp, sig) - __pid_t pgrp; - int sig; +killpg (__pid_t pgrp, int sig) { if (pgrp < 0) { diff --git a/sysdeps/posix/libc_fatal.c b/sysdeps/posix/libc_fatal.c index 2d99c46cf8..3c820dab11 100644 --- a/sysdeps/posix/libc_fatal.c +++ b/sysdeps/posix/libc_fatal.c @@ -1,5 +1,5 @@ /* Catastrophic failure reports. Generic POSIX.1 version. - Copyright (C) 1993-2015 Free Software Foundation, Inc. + Copyright (C) 1993-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -178,8 +178,7 @@ __libc_message (int do_abort, const char *fmt, ...) void -__libc_fatal (message) - const char *message; +__libc_fatal (const char *message) { /* The loop is added only to keep gcc happy. */ while (1) diff --git a/sysdeps/posix/mkfifo.c b/sysdeps/posix/mkfifo.c index 31fac04c65..7eea6572ca 100644 --- a/sysdeps/posix/mkfifo.c +++ b/sysdeps/posix/mkfifo.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/mkfifoat.c b/sysdeps/posix/mkfifoat.c index c7770eb60d..0f910d7441 100644 --- a/sysdeps/posix/mkfifoat.c +++ b/sysdeps/posix/mkfifoat.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2005-2015 Free Software Foundation, Inc. +/* Copyright (C) 2005-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,10 +21,7 @@ /* Create a new FIFO with permission bits MODE. But interpret relative PATH names relative to the directory associated with FD. */ int -mkfifoat (fd, file, mode) - int fd; - const char *file; - mode_t mode; +mkfifoat (int fd, const char *file, mode_t mode) { dev_t dev = 0; return __xmknodat (_MKNOD_VER, fd, file, mode | S_IFIFO, &dev); diff --git a/sysdeps/posix/nice.c b/sysdeps/posix/nice.c index 42bb99b7e1..ae82618767 100644 --- a/sysdeps/posix/nice.c +++ b/sysdeps/posix/nice.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2015 Free Software Foundation, Inc. +/* Copyright (C) 1992-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -36,16 +36,16 @@ nice (int incr) { if (errno != 0) return -1; - else - __set_errno (save); } result = __setpriority (PRIO_PROCESS, 0, prio + incr); if (result == -1) { if (errno == EACCES) - errno = EPERM; + __set_errno (EPERM); return -1; } + + __set_errno (save); return __getpriority (PRIO_PROCESS, 0); } diff --git a/sysdeps/posix/open64.c b/sysdeps/posix/open64.c index 74f669f408..dc0387b44a 100644 --- a/sysdeps/posix/open64.c +++ b/sysdeps/posix/open64.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/opendir.c b/sysdeps/posix/opendir.c index 6509f5c05c..3e09deb805 100644 --- a/sysdeps/posix/opendir.c +++ b/sysdeps/posix/opendir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -105,7 +105,7 @@ need_isdir_precheck (void) tryopen_o_directory (); /* We can skip the expensive `stat' call if O_DIRECTORY works. */ - return o_directory_works > 0; + return o_directory_works < 0; #endif return true; } diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c index ff77f0662c..f65d5018ea 100644 --- a/sysdeps/posix/pathconf.c +++ b/sysdeps/posix/pathconf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/pause.c b/sysdeps/posix/pause.c index 6ba4d42281..f1ecc4f98b 100644 --- a/sysdeps/posix/pause.c +++ b/sysdeps/posix/pause.c @@ -1,5 +1,5 @@ /* pause -- suspend the process until a signal arrives. POSIX.1 version. - Copyright (C) 2003-2015 Free Software Foundation, Inc. + Copyright (C) 2003-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/posix_fallocate.c b/sysdeps/posix/posix_fallocate.c index e7fe201b68..970e7d80e8 100644 --- a/sysdeps/posix/posix_fallocate.c +++ b/sysdeps/posix/posix_fallocate.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000-2015 Free Software Foundation, Inc. +/* Copyright (C) 2000-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -37,7 +37,7 @@ posix_fallocate (int fd, __off_t offset, __off_t len) /* Perform overflow check. The outer cast relies on a GCC extension. */ - if ((__off_t) ((uint64_t) offset) + ((uint64_t) len) < 0) + if ((__off_t) ((uint64_t) offset + (uint64_t) len) < 0) return EFBIG; /* pwrite below will not do the right thing in O_APPEND mode. */ diff --git a/sysdeps/posix/posix_fallocate64.c b/sysdeps/posix/posix_fallocate64.c index ee32679a05..0c094ff9b8 100644 --- a/sysdeps/posix/posix_fallocate64.c +++ b/sysdeps/posix/posix_fallocate64.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000-2015 Free Software Foundation, Inc. +/* Copyright (C) 2000-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -37,7 +37,7 @@ __posix_fallocate64_l64 (int fd, __off64_t offset, __off64_t len) /* Perform overflow check. The outer cast relies on a GCC extension. */ - if ((__off64_t) ((uint64_t) offset) + ((uint64_t) len) < 0) + if ((__off64_t) ((uint64_t) offset + (uint64_t) len) < 0) return EFBIG; /* pwrite64 below will not do the right thing in O_APPEND mode. */ diff --git a/sysdeps/posix/pread.c b/sysdeps/posix/pread.c index 84bce25288..aa8e8901fd 100644 --- a/sysdeps/posix/pread.c +++ b/sysdeps/posix/pread.c @@ -1,6 +1,6 @@ /* Read block from given position in file without changing file pointer. POSIX version. - Copyright (C) 1997-2015 Free Software Foundation, Inc. + Copyright (C) 1997-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. diff --git a/sysdeps/posix/pread64.c b/sysdeps/posix/pread64.c index c17e97676e..b7a2808c07 100644 --- a/sysdeps/posix/pread64.c +++ b/sysdeps/posix/pread64.c @@ -1,6 +1,6 @@ /* Read block from given position in file without changing file pointer. POSIX version. - Copyright (C) 1997-2015 Free Software Foundation, Inc. + Copyright (C) 1997-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. diff --git a/sysdeps/posix/preadv.c b/sysdeps/posix/preadv.c index 4540bd1e2d..fb7586c0a6 100644 --- a/sysdeps/posix/preadv.c +++ b/sysdeps/posix/preadv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2009-2015 Free Software Foundation, Inc. +/* Copyright (C) 2009-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/profil.c b/sysdeps/posix/profil.c index 5210470d5c..23e601c6c2 100644 --- a/sysdeps/posix/profil.c +++ b/sysdeps/posix/profil.c @@ -1,5 +1,5 @@ /* Low-level statistical profiling support function. Mostly POSIX.1 version. - Copyright (C) 1996-2015 Free Software Foundation, Inc. + Copyright (C) 1996-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/pwrite.c b/sysdeps/posix/pwrite.c index 143ba86146..c3aa7c084a 100644 --- a/sysdeps/posix/pwrite.c +++ b/sysdeps/posix/pwrite.c @@ -1,6 +1,6 @@ /* Write block to given position in file without changing file pointer. POSIX version. - Copyright (C) 1997-2015 Free Software Foundation, Inc. + Copyright (C) 1997-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. diff --git a/sysdeps/posix/pwrite64.c b/sysdeps/posix/pwrite64.c index f501d5175e..721c733c3f 100644 --- a/sysdeps/posix/pwrite64.c +++ b/sysdeps/posix/pwrite64.c @@ -1,6 +1,6 @@ /* Write block to given position in file without changing file pointer. POSIX version. - Copyright (C) 1997-2015 Free Software Foundation, Inc. + Copyright (C) 1997-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. diff --git a/sysdeps/posix/pwritev.c b/sysdeps/posix/pwritev.c index 772e3cb105..8c483f1b47 100644 --- a/sysdeps/posix/pwritev.c +++ b/sysdeps/posix/pwritev.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2009-2015 Free Software Foundation, Inc. +/* Copyright (C) 2009-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/raise.c b/sysdeps/posix/raise.c index 008f87b556..d438fcb87e 100644 --- a/sysdeps/posix/raise.c +++ b/sysdeps/posix/raise.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,8 +20,7 @@ /* Raise the signal SIG. */ int -raise (sig) - int sig; +raise (int sig) { return __kill (__getpid (), sig); } diff --git a/sysdeps/posix/readdir.c b/sysdeps/posix/readdir.c index dbd552b902..e1e63f6157 100644 --- a/sysdeps/posix/readdir.c +++ b/sysdeps/posix/readdir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/readdir_r.c b/sysdeps/posix/readdir_r.c index 0dd87651c3..4c7b3701fe 100644 --- a/sysdeps/posix/readdir_r.c +++ b/sysdeps/posix/readdir_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/readv.c b/sysdeps/posix/readv.c index 2d11d191b5..17a864d2fa 100644 --- a/sysdeps/posix/readv.c +++ b/sysdeps/posix/readv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/remove.c b/sysdeps/posix/remove.c index 4ae3cfb4ba..8d331fa171 100644 --- a/sysdeps/posix/remove.c +++ b/sysdeps/posix/remove.c @@ -1,5 +1,5 @@ /* ANSI C `remove' function to delete a file or directory. POSIX.1 version. - Copyright (C) 1995-2015 Free Software Foundation, Inc. + Copyright (C) 1995-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -27,8 +27,7 @@ int -remove (file) - const char *file; +remove (const char *file) { /* First try to unlink since this is more frequently the necessary action. */ if (__unlink (file) != 0 diff --git a/sysdeps/posix/rename.c b/sysdeps/posix/rename.c index 0f13abbf5d..df34f0949d 100644 --- a/sysdeps/posix/rename.c +++ b/sysdeps/posix/rename.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,9 +21,7 @@ /* Rename the file OLD to NEW. */ int -rename (old, new) - const char *old; - const char *new; +rename (const char *old, const char *new) { int save = errno; if (__link (old, new) < 0) diff --git a/sysdeps/posix/rewinddir.c b/sysdeps/posix/rewinddir.c index 5ac4897f7d..1fa4c94a04 100644 --- a/sysdeps/posix/rewinddir.c +++ b/sysdeps/posix/rewinddir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,8 +23,7 @@ /* Rewind DIRP to the beginning of the directory. */ void -__rewinddir (dirp) - DIR *dirp; +__rewinddir (DIR *dirp) { #if IS_IN (libc) __libc_lock_lock (dirp->lock); diff --git a/sysdeps/posix/seekdir.c b/sysdeps/posix/seekdir.c index f15a57cf70..5e774a16e8 100644 --- a/sysdeps/posix/seekdir.c +++ b/sysdeps/posix/seekdir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -24,9 +24,7 @@ /* Seek to position POS in DIRP. */ /* XXX should be __seekdir ? */ void -seekdir (dirp, pos) - DIR *dirp; - long int pos; +seekdir (DIR *dirp, long int pos) { __libc_lock_lock (dirp->lock); (void) __lseek (dirp->fd, pos, SEEK_SET); diff --git a/sysdeps/posix/shm-directory.c b/sysdeps/posix/shm-directory.c index 2c0f918d9f..953085b7ce 100644 --- a/sysdeps/posix/shm-directory.c +++ b/sysdeps/posix/shm-directory.c @@ -1,5 +1,5 @@ /* Determine directory for shm/sem files. Generic POSIX version. - Copyright (C) 2014-2015 Free Software Foundation, Inc. + Copyright (C) 2014-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/shm-directory.h b/sysdeps/posix/shm-directory.h index d209425c77..76c528d8be 100644 --- a/sysdeps/posix/shm-directory.h +++ b/sysdeps/posix/shm-directory.h @@ -1,5 +1,5 @@ /* Header for directory for shm/sem files. - Copyright (C) 2014-2015 Free Software Foundation, Inc. + Copyright (C) 2014-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/shm_open.c b/sysdeps/posix/shm_open.c index 3a5f07bbac..f2961620b4 100644 --- a/sysdeps/posix/shm_open.c +++ b/sysdeps/posix/shm_open.c @@ -1,5 +1,5 @@ /* shm_open -- open a POSIX shared memory object. Generic POSIX file version. - Copyright (C) 2001-2015 Free Software Foundation, Inc. + Copyright (C) 2001-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/shm_unlink.c b/sysdeps/posix/shm_unlink.c index fae8d99525..ae742d3fcb 100644 --- a/sysdeps/posix/shm_unlink.c +++ b/sysdeps/posix/shm_unlink.c @@ -1,5 +1,5 @@ /* shm_unlink -- remove a POSIX shared memory object. Generic POSIX version. - Copyright (C) 2001-2015 Free Software Foundation, Inc. + Copyright (C) 2001-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/sigblock.c b/sysdeps/posix/sigblock.c index 3392fbf3ea..c28b819376 100644 --- a/sysdeps/posix/sigblock.c +++ b/sysdeps/posix/sigblock.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,8 +22,7 @@ /* Block signals in MASK, returning the old mask. */ int -__sigblock (mask) - int mask; +__sigblock (int mask) { sigset_t set, oset; diff --git a/sysdeps/posix/sigignore.c b/sysdeps/posix/sigignore.c index 0c8c10dbc5..28d3eeb706 100644 --- a/sysdeps/posix/sigignore.c +++ b/sysdeps/posix/sigignore.c @@ -1,5 +1,5 @@ /* Set the disposition of SIG to SIG_IGN. - Copyright (C) 1998-2015 Free Software Foundation, Inc. + Copyright (C) 1998-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. @@ -25,8 +25,7 @@ int -sigignore (sig) - int sig; +sigignore (int sig) { struct sigaction act; diff --git a/sysdeps/posix/sigintr.c b/sysdeps/posix/sigintr.c index 28c9052d47..bce75b7cf9 100644 --- a/sysdeps/posix/sigintr.c +++ b/sysdeps/posix/sigintr.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2015 Free Software Foundation, Inc. +/* Copyright (C) 1992-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,9 +23,7 @@ (causing them to fail with EINTR); if INTERRUPT is zero, make system calls be restarted after signal SIG. */ int -siginterrupt (sig, interrupt) - int sig; - int interrupt; +siginterrupt (int sig, int interrupt) { #ifdef SA_RESTART extern sigset_t _sigintr attribute_hidden; /* Defined in signal.c. */ diff --git a/sysdeps/posix/signal.c b/sysdeps/posix/signal.c index 0c588238f3..6884fc742d 100644 --- a/sysdeps/posix/signal.c +++ b/sysdeps/posix/signal.c @@ -1,5 +1,5 @@ /* BSD-like signal function. - Copyright (C) 1991-2015 Free Software Foundation, Inc. + Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -26,9 +26,7 @@ sigset_t _sigintr attribute_hidden; /* Set by siginterrupt. */ /* Set the handler for the signal SIG to HANDLER, returning the old handler, or SIG_ERR on error. */ __sighandler_t -__bsd_signal (sig, handler) - int sig; - __sighandler_t handler; +__bsd_signal (int sig, __sighandler_t handler) { struct sigaction act, oact; diff --git a/sysdeps/posix/sigpause.c b/sysdeps/posix/sigpause.c index 662640dc26..bbe8bde324 100644 --- a/sysdeps/posix/sigpause.c +++ b/sysdeps/posix/sigpause.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/sigset.c b/sysdeps/posix/sigset.c index 35c9fcd607..765fe637f1 100644 --- a/sysdeps/posix/sigset.c +++ b/sysdeps/posix/sigset.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998-2015 Free Software Foundation, Inc. +/* Copyright (C) 1998-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -24,9 +24,7 @@ /* Set the disposition for SIG. */ __sighandler_t -sigset (sig, disp) - int sig; - __sighandler_t disp; +sigset (int sig, __sighandler_t disp) { struct sigaction act; struct sigaction oact; diff --git a/sysdeps/posix/sigsetmask.c b/sysdeps/posix/sigsetmask.c index 94af0baf2c..bb16262ece 100644 --- a/sysdeps/posix/sigsetmask.c +++ b/sysdeps/posix/sigsetmask.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/sigsuspend.c b/sysdeps/posix/sigsuspend.c index 1ac689f6fb..090edc208c 100644 --- a/sysdeps/posix/sigsuspend.c +++ b/sysdeps/posix/sigsuspend.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -24,8 +24,7 @@ /* Change the set of blocked signals to SET, wait until a signal arrives, and restore the set of blocked signals. */ int -__sigsuspend (set) - const sigset_t *set; +__sigsuspend (const sigset_t *set) { sigset_t oset; int save; diff --git a/sysdeps/posix/sigwait.c b/sysdeps/posix/sigwait.c index 8dc550bfb7..b9b328176d 100644 --- a/sysdeps/posix/sigwait.c +++ b/sysdeps/posix/sigwait.c @@ -1,5 +1,5 @@ /* Implementation of sigwait function from POSIX.1c. - Copyright (C) 1996-2015 Free Software Foundation, Inc. + Copyright (C) 1996-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. diff --git a/sysdeps/posix/sleep.c b/sysdeps/posix/sleep.c index 75d9c18cd3..f15028bd1a 100644 --- a/sysdeps/posix/sleep.c +++ b/sysdeps/posix/sleep.c @@ -1,5 +1,5 @@ /* Sleep for a given number of seconds. POSIX.1 version. - Copyright (C) 1991-2015 Free Software Foundation, Inc. + Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -32,15 +32,6 @@ unsigned int __sleep (unsigned int seconds) { - /* This is not necessary but some buggy programs depend on it. */ - if (__glibc_unlikely (seconds == 0)) - { -#ifdef CANCELLATION_P - CANCELLATION_P (THREAD_SELF); -#endif - return 0; - } - int save_errno = errno; const unsigned int max diff --git a/sysdeps/posix/spawni.c b/sysdeps/posix/spawni.c index eee9331ecf..043266dcd3 100644 --- a/sysdeps/posix/spawni.c +++ b/sysdeps/posix/spawni.c @@ -1,5 +1,5 @@ /* Guts of POSIX spawn interface. Generic POSIX.1 version. - Copyright (C) 2000-2015 Free Software Foundation, Inc. + Copyright (C) 2000-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/sprofil.c b/sysdeps/posix/sprofil.c index abd59d5d0a..b46721a7ce 100644 --- a/sysdeps/posix/sprofil.c +++ b/sysdeps/posix/sprofil.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2015 Free Software Foundation, Inc. +/* Copyright (C) 2001-2016 Free Software Foundation, Inc. Contributed by David Mosberger-Tang <davidm@hpl.hp.com>. This file is part of the GNU C Library. diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c index 502fe94909..892f76d55c 100644 --- a/sysdeps/posix/sysconf.c +++ b/sysdeps/posix/sysconf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -48,8 +48,7 @@ static long int __sysconf_check_spec (const char *spec); /* Get the value of the system variable NAME. */ long int -__sysconf (name) - int name; +__sysconf (int name) { switch (name) { diff --git a/sysdeps/posix/system.c b/sysdeps/posix/system.c index 95b91abec4..8ed01aa9fb 100644 --- a/sysdeps/posix/system.c +++ b/sysdeps/posix/system.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,7 +22,7 @@ #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> -#include <bits/libc-lock.h> +#include <libc-lock.h> #include <sysdep-cancel.h> diff --git a/sysdeps/posix/sysv_signal.c b/sysdeps/posix/sysv_signal.c index 434a3e3176..c70f50d01e 100644 --- a/sysdeps/posix/sysv_signal.c +++ b/sysdeps/posix/sysv_signal.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -34,9 +34,7 @@ /* Set the handler for the signal SIG to HANDLER, returning the old handler, or SIG_ERR on error. */ __sighandler_t -__sysv_signal (sig, handler) - int sig; - __sighandler_t handler; +__sysv_signal (int sig, __sighandler_t handler) { struct sigaction act, oact; diff --git a/sysdeps/posix/telldir.c b/sysdeps/posix/telldir.c index 91daddb0a2..85dc58bd8a 100644 --- a/sysdeps/posix/telldir.c +++ b/sysdeps/posix/telldir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/tempname.c b/sysdeps/posix/tempname.c index 88dc0bf44a..93be738e12 100644 --- a/sysdeps/posix/tempname.c +++ b/sysdeps/posix/tempname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/time.c b/sysdeps/posix/time.c index 52bc14acaf..2afe174788 100644 --- a/sysdeps/posix/time.c +++ b/sysdeps/posix/time.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,8 +23,7 @@ /* Return the current time as a `time_t' and also put it in *T if T is not NULL. Time is represented as seconds from Jan 1 00:00:00 1970. */ time_t -time (t) - time_t *t; +time (time_t *t) { struct timeval tv; time_t result; diff --git a/sysdeps/posix/timespec_get.c b/sysdeps/posix/timespec_get.c index 2609b2e729..01346ab1a9 100644 --- a/sysdeps/posix/timespec_get.c +++ b/sysdeps/posix/timespec_get.c @@ -1,5 +1,5 @@ /* timespec_get -- C11 interface to sample a clock. Generic POSIX.1 version. - Copyright (C) 2013-2015 Free Software Foundation, Inc. + Copyright (C) 2013-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/truncate.c b/sysdeps/posix/truncate.c index 0120459623..82a77b5a9a 100644 --- a/sysdeps/posix/truncate.c +++ b/sysdeps/posix/truncate.c @@ -1,5 +1,5 @@ /* Truncate a file given by name. Generic POSIX.1 version. - Copyright (C) 1995-2015 Free Software Foundation, Inc. + Copyright (C) 1995-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/ttyname.c b/sysdeps/posix/ttyname.c index e2f17ac394..23a250cd9b 100644 --- a/sysdeps/posix/ttyname.c +++ b/sysdeps/posix/ttyname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -35,12 +35,7 @@ libc_freeres_ptr (static char *getttyname_name); static char * internal_function -getttyname (fd, mydev, myino, save, dostat) - int fd; - dev_t mydev; - ino_t myino; - int save; - int *dostat; +getttyname (int fd, dev_t mydev, ino_t myino, int save, int *dostat) { static const char dev[] = "/dev"; static size_t namelen; @@ -101,8 +96,7 @@ getttyname (fd, mydev, myino, save, dostat) /* Return the pathname of the terminal FD is open on, or NULL on errors. The returned storage is good only until the next call to this function. */ char * -ttyname (fd) - int fd; +ttyname (int fd) { struct stat st; int dostat = 0; diff --git a/sysdeps/posix/ttyname_r.c b/sysdeps/posix/ttyname_r.c index 483b78516e..6da98b3510 100644 --- a/sysdeps/posix/ttyname_r.c +++ b/sysdeps/posix/ttyname_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -37,14 +37,8 @@ static int getttyname_r (int fd, char *buf, size_t buflen, static int internal_function -getttyname_r (fd, buf, buflen, mydev, myino, save, dostat) - int fd; - char *buf; - size_t buflen; - dev_t mydev; - ino_t myino; - int save; - int *dostat; +getttyname_r (int fd, char *buf, size_t buflen, dev_t mydev, ino_t myino, + int save, int *dostat) { struct stat st; DIR *dirstream; @@ -101,10 +95,7 @@ getttyname_r (fd, buf, buflen, mydev, myino, save, dostat) /* Store at most BUFLEN character of the pathname of the terminal FD is open on in BUF. Return 0 on success, otherwise an error number. */ int -__ttyname_r (fd, buf, buflen) - int fd; - char *buf; - size_t buflen; +__ttyname_r (int fd, char *buf, size_t buflen) { struct stat st; int dostat = 0; diff --git a/sysdeps/posix/ulimit.c b/sysdeps/posix/ulimit.c index d4a48cab58..47c9ff2e41 100644 --- a/sysdeps/posix/ulimit.c +++ b/sysdeps/posix/ulimit.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/usleep.c b/sysdeps/posix/usleep.c index 841f1fa1b1..f0e28f2d7a 100644 --- a/sysdeps/posix/usleep.c +++ b/sysdeps/posix/usleep.c @@ -1,5 +1,5 @@ /* Implementation of the BSD usleep function using nanosleep. - Copyright (C) 1996-2015 Free Software Foundation, Inc. + Copyright (C) 1996-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. diff --git a/sysdeps/posix/utime.c b/sysdeps/posix/utime.c index d618bf2814..c0d2736ae2 100644 --- a/sysdeps/posix/utime.c +++ b/sysdeps/posix/utime.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -26,9 +26,7 @@ /* Set the access and modification times of FILE to those given in TIMES. If TIMES is NULL, set them to the current time. */ int -utime (file, times) - const char *file; - const struct utimbuf *times; +utime (const char *file, const struct utimbuf *times) { struct timeval timevals[2]; struct timeval *tvp; diff --git a/sysdeps/posix/utimes.c b/sysdeps/posix/utimes.c index bb6826baf1..4dc2946b18 100644 --- a/sysdeps/posix/utimes.c +++ b/sysdeps/posix/utimes.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995-2015 Free Software Foundation, Inc. +/* Copyright (C) 1995-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/wait.c b/sysdeps/posix/wait.c index 5e52d19496..7f1d71a45f 100644 --- a/sysdeps/posix/wait.c +++ b/sysdeps/posix/wait.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/wait3.c b/sysdeps/posix/wait3.c index faec545f75..2e76892bff 100644 --- a/sysdeps/posix/wait3.c +++ b/sysdeps/posix/wait3.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2015 Free Software Foundation, Inc. +/* Copyright (C) 1992-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or diff --git a/sysdeps/posix/waitid.c b/sysdeps/posix/waitid.c index de41227916..14bf15e735 100644 --- a/sysdeps/posix/waitid.c +++ b/sysdeps/posix/waitid.c @@ -1,5 +1,5 @@ /* Pseudo implementation of waitid. - Copyright (C) 1997-2015 Free Software Foundation, Inc. + Copyright (C) 1997-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1997. diff --git a/sysdeps/posix/writev.c b/sysdeps/posix/writev.c index f35c593c46..99edfdfade 100644 --- a/sysdeps/posix/writev.c +++ b/sysdeps/posix/writev.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or |