mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 23:10:06 +00:00
Use (void) in no-arguments function definitions.
This commit is contained in:
parent
2e09a79ada
commit
60d2f8f3c7
109
ChangeLog
109
ChangeLog
@ -1,3 +1,112 @@
|
|||||||
|
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>
|
2013-06-07 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
|
* bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
|
||||||
|
@ -254,7 +254,7 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
|
|||||||
/* The address of this function will be assigned to the hook in the
|
/* The address of this function will be assigned to the hook in the
|
||||||
error functions. */
|
error functions. */
|
||||||
static void
|
static void
|
||||||
error_print ()
|
error_print (void)
|
||||||
{
|
{
|
||||||
/* We don't want the program name to be printed in messages. Emacs'
|
/* We don't want the program name to be printed in messages. Emacs'
|
||||||
compile.el does not like this. */
|
compile.el does not like this. */
|
||||||
|
@ -553,7 +553,7 @@ small_tables_done:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
__init_des()
|
__init_des (void)
|
||||||
{
|
{
|
||||||
__init_des_r(&_ufc_foobar);
|
__init_des_r(&_ufc_foobar);
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ struct tms tstart, tfinish;
|
|||||||
char *crypt(), *fcrypt();
|
char *crypt(), *fcrypt();
|
||||||
|
|
||||||
void
|
void
|
||||||
Stop ()
|
Stop (void)
|
||||||
{
|
{
|
||||||
double elapsed;
|
double elapsed;
|
||||||
#ifdef NO_ITIMER
|
#ifdef NO_ITIMER
|
||||||
@ -76,7 +76,7 @@ static void clearmem(start, cnt)
|
|||||||
*start++ = '\0';
|
*start++ = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
main ()
|
main (void)
|
||||||
{
|
{
|
||||||
char *s;
|
char *s;
|
||||||
#ifdef NO_ITIMER
|
#ifdef NO_ITIMER
|
||||||
|
@ -380,7 +380,7 @@ realloc(old_base, new_size)
|
|||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
void
|
void
|
||||||
print_malloc_free_list()
|
print_malloc_free_list (void)
|
||||||
{
|
{
|
||||||
int i, size;
|
int i, size;
|
||||||
free_list_t fl;
|
free_list_t fl;
|
||||||
|
@ -289,7 +289,7 @@ bad:
|
|||||||
libc_hidden_def (ruserpass)
|
libc_hidden_def (ruserpass)
|
||||||
|
|
||||||
static int
|
static int
|
||||||
token()
|
token (void)
|
||||||
{
|
{
|
||||||
char *cp;
|
char *cp;
|
||||||
int c;
|
int c;
|
||||||
|
@ -170,7 +170,7 @@ out:
|
|||||||
/* This is called from iconv/gconv_db.c's free_mem, as locales must
|
/* This is called from iconv/gconv_db.c's free_mem, as locales must
|
||||||
be freed before freeing gconv steps arrays. */
|
be freed before freeing gconv steps arrays. */
|
||||||
void __libc_freeres_fn_section
|
void __libc_freeres_fn_section
|
||||||
_nl_finddomain_subfreeres ()
|
_nl_finddomain_subfreeres (void)
|
||||||
{
|
{
|
||||||
struct loaded_l10nfile *runp = _nl_loaded_domains;
|
struct loaded_l10nfile *runp = _nl_loaded_domains;
|
||||||
|
|
||||||
|
@ -362,7 +362,7 @@ out:
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
extend_alias_table ()
|
extend_alias_table (void)
|
||||||
{
|
{
|
||||||
size_t new_size;
|
size_t new_size;
|
||||||
struct alias_map *new_map;
|
struct alias_map *new_map;
|
||||||
|
@ -72,7 +72,7 @@ static struct expression plone;
|
|||||||
struct expression GERMANIC_PLURAL;
|
struct expression GERMANIC_PLURAL;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
init_germanic_plural ()
|
init_germanic_plural (void)
|
||||||
{
|
{
|
||||||
if (plone.val.num == 0)
|
if (plone.val.num == 0)
|
||||||
{
|
{
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
__fcloseall ()
|
__fcloseall (void)
|
||||||
{
|
{
|
||||||
/* Close all streams. */
|
/* Close all streams. */
|
||||||
return _IO_cleanup ();
|
return _IO_cleanup ();
|
||||||
|
@ -873,7 +873,7 @@ _IO_flush_all_lockp (int do_lock)
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
_IO_flush_all ()
|
_IO_flush_all (void)
|
||||||
{
|
{
|
||||||
/* We want locking. */
|
/* We want locking. */
|
||||||
return _IO_flush_all_lockp (1);
|
return _IO_flush_all_lockp (1);
|
||||||
@ -881,7 +881,7 @@ _IO_flush_all ()
|
|||||||
libc_hidden_def (_IO_flush_all)
|
libc_hidden_def (_IO_flush_all)
|
||||||
|
|
||||||
void
|
void
|
||||||
_IO_flush_all_linebuffered ()
|
_IO_flush_all_linebuffered (void)
|
||||||
{
|
{
|
||||||
struct _IO_FILE *fp;
|
struct _IO_FILE *fp;
|
||||||
int last_stamp;
|
int last_stamp;
|
||||||
@ -1006,7 +1006,7 @@ libc_freeres_fn (buffer_free)
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
_IO_cleanup ()
|
_IO_cleanup (void)
|
||||||
{
|
{
|
||||||
/* We do *not* want locking. Some threads might use streams but
|
/* We do *not* want locking. Some threads might use streams but
|
||||||
that is their problem, we flush them underneath them. */
|
that is their problem, we flush them underneath them. */
|
||||||
@ -1266,14 +1266,14 @@ _IO_default_imbue (fp, locale)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_IO_ITER
|
_IO_ITER
|
||||||
_IO_iter_begin()
|
_IO_iter_begin (void)
|
||||||
{
|
{
|
||||||
return (_IO_ITER) _IO_list_all;
|
return (_IO_ITER) _IO_list_all;
|
||||||
}
|
}
|
||||||
libc_hidden_def (_IO_iter_begin)
|
libc_hidden_def (_IO_iter_begin)
|
||||||
|
|
||||||
_IO_ITER
|
_IO_ITER
|
||||||
_IO_iter_end()
|
_IO_iter_end (void)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -1296,7 +1296,7 @@ _IO_iter_file(iter)
|
|||||||
libc_hidden_def (_IO_iter_file)
|
libc_hidden_def (_IO_iter_file)
|
||||||
|
|
||||||
void
|
void
|
||||||
_IO_list_lock()
|
_IO_list_lock (void)
|
||||||
{
|
{
|
||||||
#ifdef _IO_MTSAFE_IO
|
#ifdef _IO_MTSAFE_IO
|
||||||
_IO_lock_lock (list_all_lock);
|
_IO_lock_lock (list_all_lock);
|
||||||
@ -1305,7 +1305,7 @@ _IO_list_lock()
|
|||||||
libc_hidden_def (_IO_list_lock)
|
libc_hidden_def (_IO_list_lock)
|
||||||
|
|
||||||
void
|
void
|
||||||
_IO_list_unlock()
|
_IO_list_unlock (void)
|
||||||
{
|
{
|
||||||
#ifdef _IO_MTSAFE_IO
|
#ifdef _IO_MTSAFE_IO
|
||||||
_IO_lock_unlock (list_all_lock);
|
_IO_lock_unlock (list_all_lock);
|
||||||
@ -1314,7 +1314,7 @@ _IO_list_unlock()
|
|||||||
libc_hidden_def (_IO_list_unlock)
|
libc_hidden_def (_IO_list_unlock)
|
||||||
|
|
||||||
void
|
void
|
||||||
_IO_list_resetlock()
|
_IO_list_resetlock (void)
|
||||||
{
|
{
|
||||||
#ifdef _IO_MTSAFE_IO
|
#ifdef _IO_MTSAFE_IO
|
||||||
_IO_lock_init (list_all_lock);
|
_IO_lock_init (list_all_lock);
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#undef getchar
|
#undef getchar
|
||||||
|
|
||||||
int
|
int
|
||||||
getchar ()
|
getchar (void)
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
_IO_acquire_lock (_IO_stdin);
|
_IO_acquire_lock (_IO_stdin);
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#undef getchar_unlocked
|
#undef getchar_unlocked
|
||||||
|
|
||||||
int
|
int
|
||||||
getchar_unlocked ()
|
getchar_unlocked (void)
|
||||||
{
|
{
|
||||||
return _IO_getc_unlocked (_IO_stdin);
|
return _IO_getc_unlocked (_IO_stdin);
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#undef getwchar
|
#undef getwchar
|
||||||
|
|
||||||
wint_t
|
wint_t
|
||||||
getwchar ()
|
getwchar (void)
|
||||||
{
|
{
|
||||||
wint_t result;
|
wint_t result;
|
||||||
_IO_acquire_lock (_IO_stdin);
|
_IO_acquire_lock (_IO_stdin);
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#undef getwchar_unlocked
|
#undef getwchar_unlocked
|
||||||
|
|
||||||
wint_t
|
wint_t
|
||||||
getwchar_unlocked ()
|
getwchar_unlocked (void)
|
||||||
{
|
{
|
||||||
return _IO_getwc_unlocked (_IO_stdin);
|
return _IO_getwc_unlocked (_IO_stdin);
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ static void _IO_check_libio (void) __THROW __attribute__ ((constructor));
|
|||||||
_IO_list_all accordingly. */
|
_IO_list_all accordingly. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_IO_check_libio ()
|
_IO_check_libio (void)
|
||||||
{
|
{
|
||||||
if (&_IO_stdin_used == NULL)
|
if (&_IO_stdin_used == NULL)
|
||||||
{
|
{
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
/* Open the master side of a pseudoterminal and return its file
|
/* Open the master side of a pseudoterminal and return its file
|
||||||
descriptor, or -1 on error. */
|
descriptor, or -1 on error. */
|
||||||
int
|
int
|
||||||
__getpt ()
|
__getpt (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -395,7 +395,7 @@ do_test (int argc, char *argv[])
|
|||||||
|
|
||||||
/* No field 'ut_type' in struct utmp. */
|
/* No field 'ut_type' in struct utmp. */
|
||||||
int
|
int
|
||||||
main ()
|
main (void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ static int disallow_malloc_check;
|
|||||||
|
|
||||||
/* Activate a standard set of debugging hooks. */
|
/* Activate a standard set of debugging hooks. */
|
||||||
void
|
void
|
||||||
__malloc_check_init()
|
__malloc_check_init (void)
|
||||||
{
|
{
|
||||||
if (disallow_malloc_check) {
|
if (disallow_malloc_check) {
|
||||||
disallow_malloc_check = 0;
|
disallow_malloc_check = 0;
|
||||||
|
@ -4602,7 +4602,7 @@ struct mallinfo __libc_mallinfo()
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
__malloc_stats()
|
__malloc_stats (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
mstate ar_ptr;
|
mstate ar_ptr;
|
||||||
|
@ -72,7 +72,7 @@ static __ptr_t (*tr_old_memalign_hook) (size_t __alignment, size_t __size,
|
|||||||
extern void tr_break (void) __THROW;
|
extern void tr_break (void) __THROW;
|
||||||
libc_hidden_proto (tr_break)
|
libc_hidden_proto (tr_break)
|
||||||
void
|
void
|
||||||
tr_break ()
|
tr_break (void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
libc_hidden_def (tr_break)
|
libc_hidden_def (tr_break)
|
||||||
@ -298,7 +298,7 @@ release_libc_mem (void)
|
|||||||
don't forget to set a breakpoint on tr_break! */
|
don't forget to set a breakpoint on tr_break! */
|
||||||
|
|
||||||
void
|
void
|
||||||
mtrace ()
|
mtrace (void)
|
||||||
{
|
{
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
static int added_atexit_handler;
|
static int added_atexit_handler;
|
||||||
@ -363,7 +363,7 @@ mtrace ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
muntrace ()
|
muntrace (void)
|
||||||
{
|
{
|
||||||
if (mallstream == NULL)
|
if (mallstream == NULL)
|
||||||
return;
|
return;
|
||||||
|
@ -95,7 +95,7 @@ getfsfile (name)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
endfsent ()
|
endfsent (void)
|
||||||
{
|
{
|
||||||
struct fstab_state *state;
|
struct fstab_state *state;
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/* Return frequency of times(). */
|
/* Return frequency of times(). */
|
||||||
int
|
int
|
||||||
__getclktck ()
|
__getclktck (void)
|
||||||
{
|
{
|
||||||
#ifdef CLK_TCK
|
#ifdef CLK_TCK
|
||||||
return CLK_TCK;
|
return CLK_TCK;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
/* Return the maximum number of file descriptors
|
/* Return the maximum number of file descriptors
|
||||||
the current process could possibly have. */
|
the current process could possibly have. */
|
||||||
int
|
int
|
||||||
__getdtablesize ()
|
__getdtablesize (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
/* Return the current machine's Internet number. */
|
/* Return the current machine's Internet number. */
|
||||||
long int
|
long int
|
||||||
gethostid ()
|
gethostid (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1L;
|
return -1L;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
/* Return the system page size. */
|
/* Return the system page size. */
|
||||||
int
|
int
|
||||||
__getpagesize ()
|
__getpagesize (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include <sys/sysinfo.h>
|
#include <sys/sysinfo.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
__get_nprocs_conf ()
|
__get_nprocs_conf (void)
|
||||||
{
|
{
|
||||||
/* We don't know how to determine the number. Simply return always 1. */
|
/* We don't know how to determine the number. Simply return always 1. */
|
||||||
return 1;
|
return 1;
|
||||||
@ -33,7 +33,7 @@ link_warning (get_nprocs_conf, "warning: get_nprocs_conf will always return 1")
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
__get_nprocs ()
|
__get_nprocs (void)
|
||||||
{
|
{
|
||||||
/* We don't know how to determine the number. Simply return always 1. */
|
/* We don't know how to determine the number. Simply return always 1. */
|
||||||
return 1;
|
return 1;
|
||||||
@ -44,7 +44,7 @@ link_warning (get_nprocs, "warning: get_nprocs will always return 1")
|
|||||||
|
|
||||||
|
|
||||||
long int
|
long int
|
||||||
__get_phys_pages ()
|
__get_phys_pages (void)
|
||||||
{
|
{
|
||||||
/* We have no general way to determine this value. */
|
/* We have no general way to determine this value. */
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
@ -56,7 +56,7 @@ stub_warning (get_phys_pages)
|
|||||||
|
|
||||||
|
|
||||||
long int
|
long int
|
||||||
__get_avphys_pages ()
|
__get_avphys_pages (void)
|
||||||
{
|
{
|
||||||
/* We have no general way to determine this value. */
|
/* We have no general way to determine this value. */
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
|
@ -61,7 +61,7 @@ static char *skip (char *) __THROW internal_function;
|
|||||||
static char *value (char *) __THROW internal_function;
|
static char *value (char *) __THROW internal_function;
|
||||||
|
|
||||||
struct ttyent *
|
struct ttyent *
|
||||||
getttyent()
|
getttyent (void)
|
||||||
{
|
{
|
||||||
static struct ttyent tty;
|
static struct ttyent tty;
|
||||||
int c;
|
int c;
|
||||||
@ -184,7 +184,7 @@ value(p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
setttyent()
|
setttyent (void)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (tf) {
|
if (tf) {
|
||||||
@ -200,7 +200,7 @@ setttyent()
|
|||||||
libc_hidden_def (setttyent)
|
libc_hidden_def (setttyent)
|
||||||
|
|
||||||
int
|
int
|
||||||
endttyent()
|
endttyent (void)
|
||||||
{
|
{
|
||||||
int rval;
|
int rval;
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ static char **initshells (void) __THROW;
|
|||||||
* Get a list of shells from _PATH_SHELLS, if it exists.
|
* Get a list of shells from _PATH_SHELLS, if it exists.
|
||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
getusershell()
|
getusershell (void)
|
||||||
{
|
{
|
||||||
char *ret;
|
char *ret;
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ getusershell()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
endusershell()
|
endusershell (void)
|
||||||
{
|
{
|
||||||
|
|
||||||
free(shells);
|
free(shells);
|
||||||
@ -86,14 +86,14 @@ endusershell()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
setusershell()
|
setusershell (void)
|
||||||
{
|
{
|
||||||
|
|
||||||
curshell = initshells();
|
curshell = initshells();
|
||||||
}
|
}
|
||||||
|
|
||||||
static char **
|
static char **
|
||||||
initshells()
|
initshells (void)
|
||||||
{
|
{
|
||||||
char **sp, *cp;
|
char **sp, *cp;
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
@ -45,7 +45,7 @@ hcreate (nel)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
__hdestroy ()
|
__hdestroy (void)
|
||||||
{
|
{
|
||||||
hdestroy_r (&htab);
|
hdestroy_r (&htab);
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
/* Make all changes done to all files actually appear on disk. */
|
/* Make all changes done to all files actually appear on disk. */
|
||||||
void
|
void
|
||||||
sync ()
|
sync (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
}
|
}
|
||||||
|
@ -425,7 +425,7 @@ sigpipe_handler (int signo)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
closelog_internal()
|
closelog_internal (void)
|
||||||
{
|
{
|
||||||
if (!connected)
|
if (!connected)
|
||||||
return;
|
return;
|
||||||
@ -436,7 +436,7 @@ closelog_internal()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
closelog ()
|
closelog (void)
|
||||||
{
|
{
|
||||||
/* Protect against multiple users and cancellation. */
|
/* Protect against multiple users and cancellation. */
|
||||||
__libc_cleanup_push (cancel_handler, NULL);
|
__libc_cleanup_push (cancel_handler, NULL);
|
||||||
|
@ -38,7 +38,7 @@ static char sccsid[] = "@(#)ttyslot.c 8.1 (Berkeley) 6/4/93";
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
ttyslot()
|
ttyslot (void)
|
||||||
{
|
{
|
||||||
struct ttyent *ttyp;
|
struct ttyent *ttyp;
|
||||||
int slot;
|
int slot;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
with the control terminal, and then send a SIGHUP signal to the process
|
with the control terminal, and then send a SIGHUP signal to the process
|
||||||
group of the control terminal. */
|
group of the control terminal. */
|
||||||
int
|
int
|
||||||
vhangup ()
|
vhangup (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2013-06-07 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* sysdeps/ia64/bits/byteswap-16.h [__GNUC__ && __GNUC__ >= 2]
|
* sysdeps/ia64/bits/byteswap-16.h [__GNUC__ && __GNUC__ >= 2]
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2013-06-05 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/m68k/socket.S: Remove trailing
|
* sysdeps/unix/sysv/linux/m68k/socket.S: Remove trailing
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
as mmap and friends. --davidm 99/11/30 */
|
as mmap and friends. --davidm 99/11/30 */
|
||||||
|
|
||||||
int
|
int
|
||||||
__getpagesize ()
|
__getpagesize (void)
|
||||||
{
|
{
|
||||||
assert (GLRO(dl_pagesize) != 0);
|
assert (GLRO(dl_pagesize) != 0);
|
||||||
return GLRO(dl_pagesize);
|
return GLRO(dl_pagesize);
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
/* Return the system page size. */
|
/* Return the system page size. */
|
||||||
int
|
int
|
||||||
__getpagesize ()
|
__getpagesize (void)
|
||||||
{
|
{
|
||||||
#ifdef __NR_getpagesize
|
#ifdef __NR_getpagesize
|
||||||
int result;
|
int result;
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
Return -1 for errors, 0 to the new process,
|
Return -1 for errors, 0 to the new process,
|
||||||
and the process ID of the new process to the old process. */
|
and the process ID of the new process to the old process. */
|
||||||
int
|
int
|
||||||
__fork ()
|
__fork (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
/* Get the effective group ID of the calling process. */
|
/* Get the effective group ID of the calling process. */
|
||||||
__gid_t
|
__gid_t
|
||||||
__getegid ()
|
__getegid (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/* Get the effective user ID of the calling process. */
|
/* Get the effective user ID of the calling process. */
|
||||||
__uid_t
|
__uid_t
|
||||||
__geteuid ()
|
__geteuid (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/* Get the real group ID of the calling process. */
|
/* Get the real group ID of the calling process. */
|
||||||
gid_t
|
gid_t
|
||||||
__getgid ()
|
__getgid (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
/* Get the process ID of the calling process. */
|
/* Get the process ID of the calling process. */
|
||||||
int
|
int
|
||||||
__getpid ()
|
__getpid (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/* Get the parent process ID of the calling process. */
|
/* Get the parent process ID of the calling process. */
|
||||||
int
|
int
|
||||||
__getppid ()
|
__getppid (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/* Get the real user ID of the calling process. */
|
/* Get the real user ID of the calling process. */
|
||||||
uid_t
|
uid_t
|
||||||
__getuid ()
|
__getuid (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
This is supposed to always return -1 and set errno to EINTR,
|
This is supposed to always return -1 and set errno to EINTR,
|
||||||
but rules were meant to be broken. */
|
but rules were meant to be broken. */
|
||||||
int
|
int
|
||||||
pause ()
|
pause (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
setpgrp ()
|
setpgrp (void)
|
||||||
{
|
{
|
||||||
return __setpgid (0, 0);
|
return __setpgid (0, 0);
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
The process group IDs of the session and the calling process
|
The process group IDs of the session and the calling process
|
||||||
are set to the process ID of the calling process, which is returned. */
|
are set to the process ID of the calling process, which is returned. */
|
||||||
int
|
int
|
||||||
__setsid ()
|
__setsid (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -37,6 +37,6 @@ main (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
noop ()
|
noop (void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -795,7 +795,7 @@ _sethtent(f)
|
|||||||
libresolv_hidden_def (_sethtent)
|
libresolv_hidden_def (_sethtent)
|
||||||
|
|
||||||
void
|
void
|
||||||
_endhtent()
|
_endhtent (void)
|
||||||
{
|
{
|
||||||
if (hostf && !stayopen) {
|
if (hostf && !stayopen) {
|
||||||
(void) fclose(hostf);
|
(void) fclose(hostf);
|
||||||
@ -804,7 +804,7 @@ _endhtent()
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct hostent *
|
struct hostent *
|
||||||
_gethtent()
|
_gethtent (void)
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
char *cp, **q;
|
char *cp, **q;
|
||||||
@ -1028,7 +1028,7 @@ ht_sethostent(stayopen)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ht_endhostent()
|
ht_endhostent (void)
|
||||||
{
|
{
|
||||||
_endhtent();
|
_endhtent();
|
||||||
}
|
}
|
||||||
@ -1050,13 +1050,13 @@ ht_gethostbyaddr(addr, len, af)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct hostent *
|
struct hostent *
|
||||||
gethostent()
|
gethostent (void)
|
||||||
{
|
{
|
||||||
return (_gethtent());
|
return (_gethtent());
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
dns_service()
|
dns_service (void)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
|
|
||||||
double
|
double
|
||||||
drand48 ()
|
drand48 (void)
|
||||||
{
|
{
|
||||||
double result;
|
double result;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
|
|
||||||
long int
|
long int
|
||||||
lrand48 ()
|
lrand48 (void)
|
||||||
{
|
{
|
||||||
long int result;
|
long int result;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
|
|
||||||
long int
|
long int
|
||||||
mrand48 ()
|
mrand48 (void)
|
||||||
{
|
{
|
||||||
long int result;
|
long int result;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
/* Return a random integer between 0 and RAND_MAX. */
|
/* Return a random integer between 0 and RAND_MAX. */
|
||||||
int
|
int
|
||||||
rand ()
|
rand (void)
|
||||||
{
|
{
|
||||||
return (int) __random ();
|
return (int) __random ();
|
||||||
}
|
}
|
||||||
|
@ -289,7 +289,7 @@ weak_alias (__setstate, setstate)
|
|||||||
pointer if the front one has wrapped. Returns a 31-bit random number. */
|
pointer if the front one has wrapped. Returns a 31-bit random number. */
|
||||||
|
|
||||||
long int
|
long int
|
||||||
__random ()
|
__random (void)
|
||||||
{
|
{
|
||||||
int32_t retval;
|
int32_t retval;
|
||||||
|
|
||||||
|
@ -349,7 +349,7 @@ unsetenv (name)
|
|||||||
never made it. Nevertheless the POSIX.9 standard (POSIX bindings
|
never made it. Nevertheless the POSIX.9 standard (POSIX bindings
|
||||||
for Fortran 77) requires this function. */
|
for Fortran 77) requires this function. */
|
||||||
int
|
int
|
||||||
clearenv ()
|
clearenv (void)
|
||||||
{
|
{
|
||||||
LOCK;
|
LOCK;
|
||||||
|
|
||||||
|
@ -356,7 +356,7 @@ clnttcp_freeres (cl, xdr_res, res_ptr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clnttcp_abort ()
|
clnttcp_abort (void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -330,7 +330,7 @@ clntunix_freeres (cl, xdr_res, res_ptr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clntunix_abort ()
|
clntunix_abort (void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
/* Return the system page size. */
|
/* Return the system page size. */
|
||||||
int
|
int
|
||||||
__getpagesize ()
|
__getpagesize (void)
|
||||||
{
|
{
|
||||||
return __vm_page_size;
|
return __vm_page_size;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
/* Return the number of processors configured on the system. */
|
/* Return the number of processors configured on the system. */
|
||||||
int
|
int
|
||||||
__get_nprocs_conf ()
|
__get_nprocs_conf (void)
|
||||||
{
|
{
|
||||||
struct host_basic_info hbi;
|
struct host_basic_info hbi;
|
||||||
kern_return_t err;
|
kern_return_t err;
|
||||||
@ -43,7 +43,7 @@ weak_alias (__get_nprocs_conf, get_nprocs_conf)
|
|||||||
|
|
||||||
/* Return the number of processors currently available on the system. */
|
/* Return the number of processors currently available on the system. */
|
||||||
int
|
int
|
||||||
__get_nprocs ()
|
__get_nprocs (void)
|
||||||
{
|
{
|
||||||
struct host_basic_info hbi;
|
struct host_basic_info hbi;
|
||||||
kern_return_t err;
|
kern_return_t err;
|
||||||
@ -62,7 +62,7 @@ weak_alias (__get_nprocs, get_nprocs)
|
|||||||
|
|
||||||
/* Return the number of physical pages on the system. */
|
/* Return the number of physical pages on the system. */
|
||||||
long int
|
long int
|
||||||
__get_phys_pages ()
|
__get_phys_pages (void)
|
||||||
{
|
{
|
||||||
struct host_basic_info hbi;
|
struct host_basic_info hbi;
|
||||||
kern_return_t err;
|
kern_return_t err;
|
||||||
@ -81,7 +81,7 @@ weak_alias (__get_phys_pages, get_phys_pages)
|
|||||||
|
|
||||||
/* Return the number of available physical pages */
|
/* Return the number of available physical pages */
|
||||||
long int
|
long int
|
||||||
__get_avphys_pages ()
|
__get_avphys_pages (void)
|
||||||
{
|
{
|
||||||
vm_statistics_data_t vs;
|
vm_statistics_data_t vs;
|
||||||
kern_return_t err;
|
kern_return_t err;
|
||||||
|
@ -553,7 +553,7 @@ __access (const char *file, int type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
pid_t weak_function
|
pid_t weak_function
|
||||||
__getpid ()
|
__getpid (void)
|
||||||
{
|
{
|
||||||
pid_t pid, ppid;
|
pid_t pid, ppid;
|
||||||
int orphaned;
|
int orphaned;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
/* Return frequency of `times'.
|
/* Return frequency of `times'.
|
||||||
Since Mach reports CPU times in microseconds, we always use 1 million. */
|
Since Mach reports CPU times in microseconds, we always use 1 million. */
|
||||||
int
|
int
|
||||||
__getclktck ()
|
__getclktck (void)
|
||||||
{
|
{
|
||||||
return 1000000;
|
return 1000000;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
/* Return the maximum number of file descriptors the current process
|
/* Return the maximum number of file descriptors the current process
|
||||||
could possibly have (until it raises the resource limit). */
|
could possibly have (until it raises the resource limit). */
|
||||||
int
|
int
|
||||||
__getdtablesize ()
|
__getdtablesize (void)
|
||||||
{
|
{
|
||||||
rlim_t limit;
|
rlim_t limit;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
/* Get the effective group ID of the calling process. */
|
/* Get the effective group ID of the calling process. */
|
||||||
gid_t
|
gid_t
|
||||||
__getegid ()
|
__getegid (void)
|
||||||
{
|
{
|
||||||
error_t err;
|
error_t err;
|
||||||
gid_t egid;
|
gid_t egid;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
/* Get the effective user ID of the calling process. */
|
/* Get the effective user ID of the calling process. */
|
||||||
uid_t
|
uid_t
|
||||||
__geteuid ()
|
__geteuid (void)
|
||||||
{
|
{
|
||||||
error_t err;
|
error_t err;
|
||||||
uid_t euid;
|
uid_t euid;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
/* Get the real group ID of the calling process. */
|
/* Get the real group ID of the calling process. */
|
||||||
gid_t
|
gid_t
|
||||||
__getgid ()
|
__getgid (void)
|
||||||
{
|
{
|
||||||
error_t err;
|
error_t err;
|
||||||
gid_t gid;
|
gid_t gid;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/* Return the current machine's Internet number. */
|
/* Return the current machine's Internet number. */
|
||||||
long int
|
long int
|
||||||
gethostid ()
|
gethostid (void)
|
||||||
{
|
{
|
||||||
/* The hostid is just the contents of the file /etc/hostid,
|
/* The hostid is just the contents of the file /etc/hostid,
|
||||||
kept as text of hexadecimal digits. */
|
kept as text of hexadecimal digits. */
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
/* Return the login name of the user, or NULL if it can't be determined.
|
/* 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. */
|
The returned pointer, if not NULL, is good only until the next call. */
|
||||||
char *
|
char *
|
||||||
getlogin ()
|
getlogin (void)
|
||||||
{
|
{
|
||||||
static char login[1024]; /* XXX */
|
static char login[1024]; /* XXX */
|
||||||
error_t err;
|
error_t err;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/* Get the process ID of the calling process. */
|
/* Get the process ID of the calling process. */
|
||||||
pid_t
|
pid_t
|
||||||
__getpid ()
|
__getpid (void)
|
||||||
{
|
{
|
||||||
/* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock. */
|
/* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock. */
|
||||||
return _hurd_pid;
|
return _hurd_pid;
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
/* Get the parent process ID of the calling process. */
|
/* Get the parent process ID of the calling process. */
|
||||||
pid_t
|
pid_t
|
||||||
__getppid ()
|
__getppid (void)
|
||||||
{
|
{
|
||||||
/* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock. */
|
/* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock. */
|
||||||
return _hurd_ppid;
|
return _hurd_ppid;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
/* Get the real user ID of the calling process. */
|
/* Get the real user ID of the calling process. */
|
||||||
uid_t
|
uid_t
|
||||||
__getuid ()
|
__getuid (void)
|
||||||
{
|
{
|
||||||
error_t err;
|
error_t err;
|
||||||
uid_t uid;
|
uid_t uid;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/* Make all changes done to all files actually appear on disk. */
|
/* Make all changes done to all files actually appear on disk. */
|
||||||
void
|
void
|
||||||
sync ()
|
sync (void)
|
||||||
{
|
{
|
||||||
/* This is not actually synchronous; we don't wait. */
|
/* This is not actually synchronous; we don't wait. */
|
||||||
error_t err = __USEPORT (CRDIR, __file_syncfs (port, 0, 1));
|
error_t err = __USEPORT (CRDIR, __file_syncfs (port, 0, 1));
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
/* Return the time used by the program so far (user time + system time). */
|
/* Return the time used by the program so far (user time + system time). */
|
||||||
clock_t
|
clock_t
|
||||||
clock ()
|
clock (void)
|
||||||
{
|
{
|
||||||
struct tms buf;
|
struct tms buf;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
The process group IDs of the session and the calling process
|
The process group IDs of the session and the calling process
|
||||||
are set to the process ID of the calling process, which is returned. */
|
are set to the process ID of the calling process, which is returned. */
|
||||||
int
|
int
|
||||||
__setsid ()
|
__setsid (void)
|
||||||
{
|
{
|
||||||
pid_t pid = getpid ();
|
pid_t pid = getpid ();
|
||||||
int tty;
|
int tty;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
/* Return the system page size. */
|
/* Return the system page size. */
|
||||||
int
|
int
|
||||||
__getpagesize ()
|
__getpagesize (void)
|
||||||
{
|
{
|
||||||
#ifdef EXEC_PAGESIZE
|
#ifdef EXEC_PAGESIZE
|
||||||
return EXEC_PAGESIZE;
|
return EXEC_PAGESIZE;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
/* Return frequency of times(). */
|
/* Return frequency of times(). */
|
||||||
int
|
int
|
||||||
__getclktck ()
|
__getclktck (void)
|
||||||
{
|
{
|
||||||
return GLRO(dl_clktck) ?: SYSTEM_CLK_TCK;
|
return GLRO(dl_clktck) ?: SYSTEM_CLK_TCK;
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ sethostid (id)
|
|||||||
# include <netinet/in.h>
|
# include <netinet/in.h>
|
||||||
|
|
||||||
long int
|
long int
|
||||||
gethostid ()
|
gethostid (void)
|
||||||
{
|
{
|
||||||
char hostname[MAXHOSTNAMELEN + 1];
|
char hostname[MAXHOSTNAMELEN + 1];
|
||||||
size_t buflen;
|
size_t buflen;
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
/* Return the system page size. */
|
/* Return the system page size. */
|
||||||
int
|
int
|
||||||
__getpagesize ()
|
__getpagesize (void)
|
||||||
{
|
{
|
||||||
assert (GLRO(dl_pagesize) != 0);
|
assert (GLRO(dl_pagesize) != 0);
|
||||||
return GLRO(dl_pagesize);
|
return GLRO(dl_pagesize);
|
||||||
|
@ -124,7 +124,7 @@ next_line (int fd, char *const buffer, char **cp, char **re,
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
__get_nprocs ()
|
__get_nprocs (void)
|
||||||
{
|
{
|
||||||
static int cached_result;
|
static int cached_result;
|
||||||
static time_t timestamp;
|
static time_t timestamp;
|
||||||
@ -234,7 +234,7 @@ weak_alias (__get_nprocs, get_nprocs)
|
|||||||
/* On some architectures it is possible to distinguish between configured
|
/* On some architectures it is possible to distinguish between configured
|
||||||
and active cpus. */
|
and active cpus. */
|
||||||
int
|
int
|
||||||
__get_nprocs_conf ()
|
__get_nprocs_conf (void)
|
||||||
{
|
{
|
||||||
/* XXX Here will come a test for the new system call. */
|
/* XXX Here will come a test for the new system call. */
|
||||||
|
|
||||||
@ -333,7 +333,7 @@ phys_pages_info (const char *format)
|
|||||||
But not all systems have support for the /proc filesystem. If it
|
But not all systems have support for the /proc filesystem. If it
|
||||||
is not available we return -1 as an error signal. */
|
is not available we return -1 as an error signal. */
|
||||||
long int
|
long int
|
||||||
__get_phys_pages ()
|
__get_phys_pages (void)
|
||||||
{
|
{
|
||||||
/* XXX Here will come a test for the new system call. */
|
/* XXX Here will come a test for the new system call. */
|
||||||
|
|
||||||
@ -354,7 +354,7 @@ weak_alias (__get_phys_pages, get_phys_pages)
|
|||||||
But not all systems have support for the /proc filesystem. If it
|
But not all systems have support for the /proc filesystem. If it
|
||||||
is not available we return -1 as an error signal. */
|
is not available we return -1 as an error signal. */
|
||||||
long int
|
long int
|
||||||
__get_avphys_pages ()
|
__get_avphys_pages (void)
|
||||||
{
|
{
|
||||||
/* XXX Here will come a test for the new system call. */
|
/* XXX Here will come a test for the new system call. */
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
/* Return the time used by the program so far (user time + system time). */
|
/* Return the time used by the program so far (user time + system time). */
|
||||||
clock_t
|
clock_t
|
||||||
clock ()
|
clock (void)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return (clock_t) -1;
|
return (clock_t) -1;
|
||||||
|
@ -125,7 +125,7 @@ __tzstring (const char *s)
|
|||||||
size_t __tzname_cur_max;
|
size_t __tzname_cur_max;
|
||||||
|
|
||||||
long int
|
long int
|
||||||
__tzname_max ()
|
__tzname_max (void)
|
||||||
{
|
{
|
||||||
__libc_lock_lock (tzset_lock);
|
__libc_lock_lock (tzset_lock);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user