+2013-06-08 Joseph Myers <joseph@codesourcery.com>
+
+ * catgets/gencat.c (error_print): Use (void) in function
+ definition.
+ * crypt/crypt_util.c (__init_des): Likewise.
+ * crypt/speeds.c (Stop): Likewise.
+ (main): Likewise.
+ * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
+ * inet/ruserpass.c (token): Likewise.
+ * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
+ * intl/localealias.c (extend_alias_table): Likewise.
+ * intl/plural-exp.c (init_germanic_plural): Likewise.
+ * libio/fcloseall.c (__fcloseall): Likewise.
+ * libio/genops.c (_IO_flush_all): Likewise.
+ (_IO_flush_all_linebuffered): Likewise.
+ (_IO_cleanup): Likewise.
+ (_IO_iter_begin): Likewise.
+ (_IO_iter_end): Likewise.
+ (_IO_list_lock): Likewise.
+ (_IO_list_unlock): Likewise.
+ (_IO_list_resetlock): Likewise.
+ * libio/getchar.c (getchar): Likewise.
+ * libio/getchar_u.c (getchar_unlocked): Likewise.
+ * libio/getwchar.c (getwchar): Likewise.
+ * libio/getwchar_u.c (getwchar_unlocked): Likewise.
+ * libio/oldstdfiles.c (_IO_check_libio): Likewise.
+ * login/getpt.c (__getpt): Likewise.
+ * login/tst-utmp.c (main): Likewise.
+ * malloc/hooks.c (__malloc_check_init): Likewise.
+ * malloc/malloc.c (__malloc_stats): Likewise.
+ * malloc/mtrace.c (tr_break): Likewise.
+ (mtrace): Likewise.
+ (muntrace): Likewise.
+ * misc/fstab.c (endfsent): Likewise.
+ * misc/getclktck.c (__getclktck): Likewise.
+ * misc/getdtsz.c (__getdtablesize): Likewise.
+ * misc/gethostid.c (gethostid): Likewise.
+ * misc/getpagesize.c (__getpagesize): Likewise.
+ * misc/getsysstats.c (__get_nprocs_conf): Likewise.
+ (__get_nprocs): Likewise.
+ (__get_phys_pages): Likewise.
+ (__get_avphys_pages): Likewise.
+ * misc/getttyent.c (getttyent): Likewise.
+ (setttyent): Likewise.
+ (endttyent): Likewise.
+ * misc/getusershell.c (getusershell): Likewise.
+ (endusershell): Likewise.
+ (setusershell): Likewise.
+ (initshells): Likewise.
+ * misc/hsearch.c (__hdestroy): Likewise.
+ * misc/sync.c (sync): Likewise.
+ * misc/syslog.c (closelog_internal): Likewise.
+ (closelog): Likewise.
+ * misc/ttyslot.c (ttyslot): Likewise.
+ * misc/vhangup.c (vhangup): Likewise.
+ * posix/fork.c (__fork): Likewise.
+ * posix/getegid.c (__getegid): Likewise.
+ * posix/geteuid.c (__geteuid): Likewise.
+ * posix/getgid.c (__getgid): Likewise.
+ * posix/getpid.c (__getpid): Likewise.
+ * posix/getppid.c (__getppid): Likewise.
+ * posix/getuid.c (__getuid): Likewise.
+ * posix/pause.c (pause): Likewise.
+ * posix/setpgrp.c (setpgrp): Likewise.
+ * posix/setsid.c (__setsid): Likewise.
+ * posix/test-vfork.c (noop): Likewise.
+ * resolv/gethnamaddr.c (_endhtent): Likewise.
+ (_gethtent): Likewise.
+ (ht_endhostent): Likewise.
+ (gethostent): Likewise.
+ (dns_service): Likewise.
+ * stdlib/drand48.c (drand48): Likewise.
+ * stdlib/lrand48.c (lrand48): Likewise.
+ * stdlib/mrand48.c (mrand48): Likewise.
+ * stdlib/rand.c (rand): Likewise.
+ * stdlib/random.c (__random): Likewise.
+ * stdlib/setenv.c (clearenv): Likewise.
+ * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
+ * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
+ * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
+ * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
+ (__get_nprocs): Likewise.
+ (__get_phys_pages): Likewise.
+ (__get_avphys_pages): Likewise.
+ * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
+ * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
+ * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
+ * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
+ * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
+ * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
+ * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
+ * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
+ * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
+ * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
+ * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
+ * sysdeps/mach/hurd/sync.c (sync): Likewise.
+ * sysdeps/posix/clock.c (clock): Likewise.
+ * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
+ * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
+ * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
+ * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
+ * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
+ * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
+ (__get_nprocs_conf): Likewise.
+ (__get_phys_pages): Likewise.
+ (__get_avphys_pages): Likewise.
+ * time/clock.c (clock): Likewise.
+ * time/tzset.c (__tzname_max): Likewise.
+
2013-06-07 Joseph Myers <joseph@codesourcery.com>
* bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
/* The address of this function will be assigned to the hook in the
error functions. */
static void
-error_print ()
+error_print (void)
{
/* We don't want the program name to be printed in messages. Emacs'
compile.el does not like this. */
}
void
-__init_des()
+__init_des (void)
{
__init_des_r(&_ufc_foobar);
}
char *crypt(), *fcrypt();
void
-Stop ()
+Stop (void)
{
double elapsed;
#ifdef NO_ITIMER
*start++ = '\0';
}
-main ()
+main (void)
{
char *s;
#ifdef NO_ITIMER
#ifdef DEBUG
void
-print_malloc_free_list()
+print_malloc_free_list (void)
{
int i, size;
free_list_t fl;
libc_hidden_def (ruserpass)
static int
-token()
+token (void)
{
char *cp;
int c;
/* This is called from iconv/gconv_db.c's free_mem, as locales must
be freed before freeing gconv steps arrays. */
void __libc_freeres_fn_section
-_nl_finddomain_subfreeres ()
+_nl_finddomain_subfreeres (void)
{
struct loaded_l10nfile *runp = _nl_loaded_domains;
static int
-extend_alias_table ()
+extend_alias_table (void)
{
size_t new_size;
struct alias_map *new_map;
struct expression GERMANIC_PLURAL;
static void
-init_germanic_plural ()
+init_germanic_plural (void)
{
if (plone.val.num == 0)
{
#include <stdio.h>
int
-__fcloseall ()
+__fcloseall (void)
{
/* Close all streams. */
return _IO_cleanup ();
int
-_IO_flush_all ()
+_IO_flush_all (void)
{
/* We want locking. */
return _IO_flush_all_lockp (1);
libc_hidden_def (_IO_flush_all)
void
-_IO_flush_all_linebuffered ()
+_IO_flush_all_linebuffered (void)
{
struct _IO_FILE *fp;
int last_stamp;
int
-_IO_cleanup ()
+_IO_cleanup (void)
{
/* We do *not* want locking. Some threads might use streams but
that is their problem, we flush them underneath them. */
}
_IO_ITER
-_IO_iter_begin()
+_IO_iter_begin (void)
{
return (_IO_ITER) _IO_list_all;
}
libc_hidden_def (_IO_iter_begin)
_IO_ITER
-_IO_iter_end()
+_IO_iter_end (void)
{
return NULL;
}
libc_hidden_def (_IO_iter_file)
void
-_IO_list_lock()
+_IO_list_lock (void)
{
#ifdef _IO_MTSAFE_IO
_IO_lock_lock (list_all_lock);
libc_hidden_def (_IO_list_lock)
void
-_IO_list_unlock()
+_IO_list_unlock (void)
{
#ifdef _IO_MTSAFE_IO
_IO_lock_unlock (list_all_lock);
libc_hidden_def (_IO_list_unlock)
void
-_IO_list_resetlock()
+_IO_list_resetlock (void)
{
#ifdef _IO_MTSAFE_IO
_IO_lock_init (list_all_lock);
#undef getchar
int
-getchar ()
+getchar (void)
{
int result;
_IO_acquire_lock (_IO_stdin);
#undef getchar_unlocked
int
-getchar_unlocked ()
+getchar_unlocked (void)
{
return _IO_getc_unlocked (_IO_stdin);
}
#undef getwchar
wint_t
-getwchar ()
+getwchar (void)
{
wint_t result;
_IO_acquire_lock (_IO_stdin);
#undef getwchar_unlocked
wint_t
-getwchar_unlocked ()
+getwchar_unlocked (void)
{
return _IO_getwc_unlocked (_IO_stdin);
}
_IO_list_all accordingly. */
static void
-_IO_check_libio ()
+_IO_check_libio (void)
{
if (&_IO_stdin_used == NULL)
{
/* Open the master side of a pseudoterminal and return its file
descriptor, or -1 on error. */
int
-__getpt ()
+__getpt (void)
{
__set_errno (ENOSYS);
return -1;
/* No field 'ut_type' in struct utmp. */
int
-main ()
+main (void)
{
return 0;
}
/* Activate a standard set of debugging hooks. */
void
-__malloc_check_init()
+__malloc_check_init (void)
{
if (disallow_malloc_check) {
disallow_malloc_check = 0;
*/
void
-__malloc_stats()
+__malloc_stats (void)
{
int i;
mstate ar_ptr;
extern void tr_break (void) __THROW;
libc_hidden_proto (tr_break)
void
-tr_break ()
+tr_break (void)
{
}
libc_hidden_def (tr_break)
don't forget to set a breakpoint on tr_break! */
void
-mtrace ()
+mtrace (void)
{
#ifdef _LIBC
static int added_atexit_handler;
}
void
-muntrace ()
+muntrace (void)
{
if (mallstream == NULL)
return;
void
-endfsent ()
+endfsent (void)
{
struct fstab_state *state;
/* Return frequency of times(). */
int
-__getclktck ()
+__getclktck (void)
{
#ifdef CLK_TCK
return CLK_TCK;
/* Return the maximum number of file descriptors
the current process could possibly have. */
int
-__getdtablesize ()
+__getdtablesize (void)
{
__set_errno (ENOSYS);
return -1;
/* Return the current machine's Internet number. */
long int
-gethostid ()
+gethostid (void)
{
__set_errno (ENOSYS);
return -1L;
/* Return the system page size. */
int
-__getpagesize ()
+__getpagesize (void)
{
__set_errno (ENOSYS);
return 0;
#include <sys/sysinfo.h>
int
-__get_nprocs_conf ()
+__get_nprocs_conf (void)
{
/* We don't know how to determine the number. Simply return always 1. */
return 1;
int
-__get_nprocs ()
+__get_nprocs (void)
{
/* We don't know how to determine the number. Simply return always 1. */
return 1;
long int
-__get_phys_pages ()
+__get_phys_pages (void)
{
/* We have no general way to determine this value. */
__set_errno (ENOSYS);
long int
-__get_avphys_pages ()
+__get_avphys_pages (void)
{
/* We have no general way to determine this value. */
__set_errno (ENOSYS);
static char *value (char *) __THROW internal_function;
struct ttyent *
-getttyent()
+getttyent (void)
{
static struct ttyent tty;
int c;
}
int
-setttyent()
+setttyent (void)
{
if (tf) {
libc_hidden_def (setttyent)
int
-endttyent()
+endttyent (void)
{
int rval;
* Get a list of shells from _PATH_SHELLS, if it exists.
*/
char *
-getusershell()
+getusershell (void)
{
char *ret;
}
void
-endusershell()
+endusershell (void)
{
free(shells);
}
void
-setusershell()
+setusershell (void)
{
curshell = initshells();
}
static char **
-initshells()
+initshells (void)
{
char **sp, *cp;
FILE *fp;
void
-__hdestroy ()
+__hdestroy (void)
{
hdestroy_r (&htab);
}
/* Make all changes done to all files actually appear on disk. */
void
-sync ()
+sync (void)
{
__set_errno (ENOSYS);
}
#endif
static void
-closelog_internal()
+closelog_internal (void)
{
if (!connected)
return;
}
void
-closelog ()
+closelog (void)
{
/* Protect against multiple users and cancellation. */
__libc_cleanup_push (cancel_handler, NULL);
#include <unistd.h>
int
-ttyslot()
+ttyslot (void)
{
struct ttyent *ttyp;
int slot;
with the control terminal, and then send a SIGHUP signal to the process
group of the control terminal. */
int
-vhangup ()
+vhangup (void)
{
__set_errno (ENOSYS);
return -1;
+2013-06-08 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize): Use
+ (void) in function definition.
+
2013-06-07 Joseph Myers <joseph@codesourcery.com>
* sysdeps/ia64/bits/byteswap-16.h [__GNUC__ && __GNUC__ >= 2]
+2013-06-08 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/unix/sysv/linux/m68k/getpagesize.c (__getpagesize): Use
+ (void) in function definition.
+
2013-06-05 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/m68k/socket.S: Remove trailing
as mmap and friends. --davidm 99/11/30 */
int
-__getpagesize ()
+__getpagesize (void)
{
assert (GLRO(dl_pagesize) != 0);
return GLRO(dl_pagesize);
/* Return the system page size. */
int
-__getpagesize ()
+__getpagesize (void)
{
#ifdef __NR_getpagesize
int result;
Return -1 for errors, 0 to the new process,
and the process ID of the new process to the old process. */
int
-__fork ()
+__fork (void)
{
__set_errno (ENOSYS);
return -1;
/* Get the effective group ID of the calling process. */
__gid_t
-__getegid ()
+__getegid (void)
{
__set_errno (ENOSYS);
return -1;
/* Get the effective user ID of the calling process. */
__uid_t
-__geteuid ()
+__geteuid (void)
{
__set_errno (ENOSYS);
return -1;
/* Get the real group ID of the calling process. */
gid_t
-__getgid ()
+__getgid (void)
{
__set_errno (ENOSYS);
return -1;
/* Get the process ID of the calling process. */
int
-__getpid ()
+__getpid (void)
{
__set_errno (ENOSYS);
return -1;
/* Get the parent process ID of the calling process. */
int
-__getppid ()
+__getppid (void)
{
__set_errno (ENOSYS);
return -1;
/* Get the real user ID of the calling process. */
uid_t
-__getuid ()
+__getuid (void)
{
__set_errno (ENOSYS);
return -1;
This is supposed to always return -1 and set errno to EINTR,
but rules were meant to be broken. */
int
-pause ()
+pause (void)
{
__set_errno (ENOSYS);
return -1;
#include <unistd.h>
int
-setpgrp ()
+setpgrp (void)
{
return __setpgid (0, 0);
}
The process group IDs of the session and the calling process
are set to the process ID of the calling process, which is returned. */
int
-__setsid ()
+__setsid (void)
{
__set_errno (ENOSYS);
return -1;
}
void
-noop ()
+noop (void)
{
}
libresolv_hidden_def (_sethtent)
void
-_endhtent()
+_endhtent (void)
{
if (hostf && !stayopen) {
(void) fclose(hostf);
}
struct hostent *
-_gethtent()
+_gethtent (void)
{
char *p;
char *cp, **q;
}
void
-ht_endhostent()
+ht_endhostent (void)
{
_endhtent();
}
}
struct hostent *
-gethostent()
+gethostent (void)
{
return (_gethtent());
}
void
-dns_service()
+dns_service (void)
{
return;
}
double
-drand48 ()
+drand48 (void)
{
double result;
long int
-lrand48 ()
+lrand48 (void)
{
long int result;
long int
-mrand48 ()
+mrand48 (void)
{
long int result;
/* Return a random integer between 0 and RAND_MAX. */
int
-rand ()
+rand (void)
{
return (int) __random ();
}
pointer if the front one has wrapped. Returns a 31-bit random number. */
long int
-__random ()
+__random (void)
{
int32_t retval;
never made it. Nevertheless the POSIX.9 standard (POSIX bindings
for Fortran 77) requires this function. */
int
-clearenv ()
+clearenv (void)
{
LOCK;
}
static void
-clnttcp_abort ()
+clnttcp_abort (void)
{
}
}
static void
-clntunix_abort ()
+clntunix_abort (void)
{
}
/* Return the system page size. */
int
-__getpagesize ()
+__getpagesize (void)
{
return __vm_page_size;
}
/* Return the number of processors configured on the system. */
int
-__get_nprocs_conf ()
+__get_nprocs_conf (void)
{
struct host_basic_info hbi;
kern_return_t err;
/* Return the number of processors currently available on the system. */
int
-__get_nprocs ()
+__get_nprocs (void)
{
struct host_basic_info hbi;
kern_return_t err;
/* Return the number of physical pages on the system. */
long int
-__get_phys_pages ()
+__get_phys_pages (void)
{
struct host_basic_info hbi;
kern_return_t err;
/* Return the number of available physical pages */
long int
-__get_avphys_pages ()
+__get_avphys_pages (void)
{
vm_statistics_data_t vs;
kern_return_t err;
}
pid_t weak_function
-__getpid ()
+__getpid (void)
{
pid_t pid, ppid;
int orphaned;
/* Return frequency of `times'.
Since Mach reports CPU times in microseconds, we always use 1 million. */
int
-__getclktck ()
+__getclktck (void)
{
return 1000000;
}
/* Return the maximum number of file descriptors the current process
could possibly have (until it raises the resource limit). */
int
-__getdtablesize ()
+__getdtablesize (void)
{
rlim_t limit;
/* Get the effective group ID of the calling process. */
gid_t
-__getegid ()
+__getegid (void)
{
error_t err;
gid_t egid;
/* Get the effective user ID of the calling process. */
uid_t
-__geteuid ()
+__geteuid (void)
{
error_t err;
uid_t euid;
/* Get the real group ID of the calling process. */
gid_t
-__getgid ()
+__getgid (void)
{
error_t err;
gid_t gid;
/* Return the current machine's Internet number. */
long int
-gethostid ()
+gethostid (void)
{
/* The hostid is just the contents of the file /etc/hostid,
kept as text of hexadecimal digits. */
/* Return the login name of the user, or NULL if it can't be determined.
The returned pointer, if not NULL, is good only until the next call. */
char *
-getlogin ()
+getlogin (void)
{
static char login[1024]; /* XXX */
error_t err;
/* Get the process ID of the calling process. */
pid_t
-__getpid ()
+__getpid (void)
{
/* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock. */
return _hurd_pid;
/* Get the parent process ID of the calling process. */
pid_t
-__getppid ()
+__getppid (void)
{
/* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock. */
return _hurd_ppid;
/* Get the real user ID of the calling process. */
uid_t
-__getuid ()
+__getuid (void)
{
error_t err;
uid_t uid;
/* Make all changes done to all files actually appear on disk. */
void
-sync ()
+sync (void)
{
/* This is not actually synchronous; we don't wait. */
error_t err = __USEPORT (CRDIR, __file_syncfs (port, 0, 1));
/* Return the time used by the program so far (user time + system time). */
clock_t
-clock ()
+clock (void)
{
struct tms buf;
The process group IDs of the session and the calling process
are set to the process ID of the calling process, which is returned. */
int
-__setsid ()
+__setsid (void)
{
pid_t pid = getpid ();
int tty;
/* Return the system page size. */
int
-__getpagesize ()
+__getpagesize (void)
{
#ifdef EXEC_PAGESIZE
return EXEC_PAGESIZE;
/* Return frequency of times(). */
int
-__getclktck ()
+__getclktck (void)
{
return GLRO(dl_clktck) ?: SYSTEM_CLK_TCK;
}
# include <netinet/in.h>
long int
-gethostid ()
+gethostid (void)
{
char hostname[MAXHOSTNAMELEN + 1];
size_t buflen;
/* Return the system page size. */
int
-__getpagesize ()
+__getpagesize (void)
{
assert (GLRO(dl_pagesize) != 0);
return GLRO(dl_pagesize);
int
-__get_nprocs ()
+__get_nprocs (void)
{
static int cached_result;
static time_t timestamp;
/* On some architectures it is possible to distinguish between configured
and active cpus. */
int
-__get_nprocs_conf ()
+__get_nprocs_conf (void)
{
/* XXX Here will come a test for the new system call. */
But not all systems have support for the /proc filesystem. If it
is not available we return -1 as an error signal. */
long int
-__get_phys_pages ()
+__get_phys_pages (void)
{
/* XXX Here will come a test for the new system call. */
But not all systems have support for the /proc filesystem. If it
is not available we return -1 as an error signal. */
long int
-__get_avphys_pages ()
+__get_avphys_pages (void)
{
/* XXX Here will come a test for the new system call. */
/* Return the time used by the program so far (user time + system time). */
clock_t
-clock ()
+clock (void)
{
__set_errno (ENOSYS);
return (clock_t) -1;
size_t __tzname_cur_max;
long int
-__tzname_max ()
+__tzname_max (void)
{
__libc_lock_lock (tzset_lock);