* include/aio.h: Remove __THROW from internal interfaces.  __THROW
	is only need in external header files that might be compiled by a
	C++ compiler.
	* include/alloca.h: Likewise.
	* include/db.h: Likewise.
	* include/dirent.h: Likewise.
	* include/execinfo.h: Likewise.
	* include/fpu_control.h: Likewise.
	* include/glob.h: Likewise.
	* include/grp.h: Likewise.
	* include/libintl.h: Likewise.
	* include/math.h: Likewise.
	* include/math.h: Likewise.
	* include/mntent.h: Likewise.
	* include/mntent.h: Likewise.
	* include/netdb.h: Likewise.
	* include/pwd.h: Likewise.
	* include/sched.h: Likewise.
	* include/shadow.h: Likewise.
	* include/stdlib.h: Likewise.
	* include/sys/file.h: Likewise.
	* include/sys/gmon.h: Likewise.
	* include/sys/ioctl.h: Likewise.
	* include/sys/socket.h: Likewise.
	* include/sys/stat.h: Likewise.
	* include/sys/sysinfo.h: Likewise.
	* include/sys/time.h: Likewise.
	* include/sys/times.h: Likewise.
	* include/sys/uio.h: Likewise.
	* include/sys/wait.h: Likewise.
	* include/termios.h: Likewise.
	* include/time.h: Likewise.
	* include/ulimit.h: Likewise.
	* include/utmp.h: Likewise.
	* include/wchar.h: Likewise.

1999-11-22  Andreas Jaeger  <aj@suse.de>

	* sunrpc/rpc_clntout.c (printbody): Fix -CLMNab output.
	Patch by Jerry Perkins 	<jrperkins@iname.com>, closes PR
	libc/1456+1457.

1999-11-22  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/generic/siglist.h: Avoid declaring the same field
	twice if SIGPWR is defined to SIGLOST.
	* sysdeps/sparc/sparc32/memcpy.S: bcopy takes size_t argument,
	not signed, so we should not special case it for negative args.
	* sysdeps/sparc/sparc32/sparcv9/memmove.c: Don't use generic
	memmove, use the one provided in memcpy.S.
	* sysdeps/sparc/sparc64/memcpy.S: bcopy should handle overlapping
	copies like memmove, while the previous version worked like memcpy.
	Implement optimized assembly memmove.
	* sysdeps/sparc/sparc64/memmove.c: New file.

1999-11-23  Ulrich Drepper  <drepper@cygnus.com>

	* po/cs.po: Update from translators.

1999-11-23  Andreas Jaeger  <aj@suse.de>
This commit is contained in:
Ulrich Drepper 1999-11-23 17:22:17 +00:00
parent 4d8d74583a
commit c19559b0bc
35 changed files with 228 additions and 168 deletions

View File

@ -1,3 +1,64 @@
1999-11-23 Andreas Jaeger <aj@suse.de>
* include/aio.h: Remove __THROW from internal interfaces. __THROW
is only need in external header files that might be compiled by a
C++ compiler.
* include/alloca.h: Likewise.
* include/db.h: Likewise.
* include/dirent.h: Likewise.
* include/execinfo.h: Likewise.
* include/fpu_control.h: Likewise.
* include/glob.h: Likewise.
* include/grp.h: Likewise.
* include/libintl.h: Likewise.
* include/math.h: Likewise.
* include/math.h: Likewise.
* include/mntent.h: Likewise.
* include/mntent.h: Likewise.
* include/netdb.h: Likewise.
* include/pwd.h: Likewise.
* include/sched.h: Likewise.
* include/shadow.h: Likewise.
* include/stdlib.h: Likewise.
* include/sys/file.h: Likewise.
* include/sys/gmon.h: Likewise.
* include/sys/ioctl.h: Likewise.
* include/sys/socket.h: Likewise.
* include/sys/stat.h: Likewise.
* include/sys/sysinfo.h: Likewise.
* include/sys/time.h: Likewise.
* include/sys/times.h: Likewise.
* include/sys/uio.h: Likewise.
* include/sys/wait.h: Likewise.
* include/termios.h: Likewise.
* include/time.h: Likewise.
* include/ulimit.h: Likewise.
* include/utmp.h: Likewise.
* include/wchar.h: Likewise.
1999-11-22 Andreas Jaeger <aj@suse.de>
* sunrpc/rpc_clntout.c (printbody): Fix -CLMNab output.
Patch by Jerry Perkins <jrperkins@iname.com>, closes PR
libc/1456+1457.
1999-11-22 Jakub Jelinek <jakub@redhat.com>
* sysdeps/generic/siglist.h: Avoid declaring the same field
twice if SIGPWR is defined to SIGLOST.
* sysdeps/sparc/sparc32/memcpy.S: bcopy takes size_t argument,
not signed, so we should not special case it for negative args.
* sysdeps/sparc/sparc32/sparcv9/memmove.c: Don't use generic
memmove, use the one provided in memcpy.S.
* sysdeps/sparc/sparc64/memcpy.S: bcopy should handle overlapping
copies like memmove, while the previous version worked like memcpy.
Implement optimized assembly memmove.
* sysdeps/sparc/sparc64/memmove.c: New file.
1999-11-23 Ulrich Drepper <drepper@cygnus.com>
* po/cs.po: Update from translators.
1999-11-23 Andreas Jaeger <aj@suse.de>
* sysdeps/mips/dl-machine.h (elf_machine_dynamic): New function.
@ -12,7 +73,7 @@
Ralf Baechle <baechle@uni-koblenz.de>.
* sysdeps/mips/mips64/dl-machine.h: Apply same patches.
1999-11-22 Ulrich Drepper <drepper@cygnus.com>
* wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Don't use the charset

10
FAQ
View File

@ -1097,11 +1097,11 @@ shadow_compat: nis
that have been linked against glibc 2.0 will continue to work.
If you compile your own binaries against glibc 2.1, you also need to
recompile some other libraries. The problem is that libio had to be
changed and therefore libraries that are based or depend on the libio
of glibc, e.g. ncurses or slang, need to be recompiled. If you
experience strange segmentation faults in your programs linked against
glibc 2.1, you might need to recompile your libraries.
recompile some other libraries. The problem is that libio had to be changed
and therefore libraries that are based or depend on the libio of glibc,
e.g. ncurses, slang and most C++ libraries, need to be recompiled. If you
experience strange segmentation faults in your programs linked against glibc
2.1, you might need to recompile your libraries.
Another problem is that older binaries that were linked statically against
glibc 2.0 will reference the older nss modules (libnss_files.so.1 instead of

View File

@ -2,5 +2,5 @@
#include <rt/aio.h>
/* Now define the internal interfaces. */
extern void __aio_init (__const struct aioinit *__init) __THROW;
extern void __aio_init (__const struct aioinit *__init);
#endif

View File

@ -5,7 +5,7 @@
#undef __alloca
/* Now define the internal interfaces. */
extern void *__alloca (size_t __size) __THROW;
extern void *__alloca (size_t __size);
#ifdef __GNUC__
# define __alloca(size) __builtin_alloca (size)

View File

@ -4,7 +4,7 @@ __BEGIN_DECLS
/* The actual system call: all functions are multiplexed by this. */
extern int __syscall_ipc (int __call, int __first, int __second,
int __third, void *__ptr) __THROW;
int __third, void *__ptr);
__END_DECLS

View File

@ -7,8 +7,7 @@
/* Internal interface for NSS. */
extern int __nss_db_open (const char *,
DBTYPE, u_int32_t, int, DB_ENV *, DB_INFO *, DB **)
__THROW;
DBTYPE, u_int32_t, int, DB_ENV *, DB_INFO *, DB **);
#endif
#endif

View File

@ -2,12 +2,12 @@
# include <dirent/dirent.h>
/* Now define the internal interfaces. */
extern DIR *__opendir (__const char *__name) __THROW;
extern int __closedir (DIR *__dirp) __THROW;
extern struct dirent *__readdir (DIR *__dirp) __THROW;
extern struct dirent64 *__readdir64 (DIR *__dirp) __THROW;
extern DIR *__opendir (__const char *__name);
extern int __closedir (DIR *__dirp);
extern struct dirent *__readdir (DIR *__dirp);
extern struct dirent64 *__readdir64 (DIR *__dirp);
extern int __readdir_r (DIR *__dirp, struct dirent *__entry,
struct dirent **__result) __THROW;
struct dirent **__result);
extern __ssize_t __getdents (int __fd, char *__buf, size_t __nbytes)
internal_function;
extern __ssize_t __getdents64 (int __fd, char *__buf, size_t __nbytes)

View File

@ -1,11 +1,11 @@
#ifndef _EXECINFO_H
#include <debug/execinfo.h>
extern int __backtrace (void **__array, int __size) __THROW;
extern int __backtrace (void **__array, int __size);
extern char **__backtrace_symbols (void *__const *__array, int __size) __THROW;
extern char **__backtrace_symbols (void *__const *__array, int __size);
extern void __backtrace_symbols_fd (void *__const *__array, int __size,
int __fd) __THROW;
int __fd);
#endif

View File

@ -2,5 +2,5 @@
#include <io/fcntl.h>
/* Now define the internal interfaces. */
extern int __open64 (__const char *__file, int __oflag, ...) __THROW;
extern int __open64 (__const char *__file, int __oflag, ...);
#endif

View File

@ -1,4 +1,4 @@
#include_next <fpu_control.h>
/* Called at startup. It can be used to manipulate fpu control register. */
extern void __setfpucw (fpu_control_t) __THROW;
extern void __setfpucw (fpu_control_t);

View File

@ -2,6 +2,6 @@
#include <posix/glob.h>
/* Now define the internal interfaces. */
extern int __glob_pattern_p (__const char *__pattern, int __quote) __THROW;
extern int __glob_pattern_p (__const char *__pattern, int __quote);
#endif

View File

@ -3,18 +3,18 @@
/* Now define the internal interfaces. */
extern int __getgrent_r (struct group *__resultbuf, char *buffer,
size_t __buflen, struct group **__result) __THROW;
size_t __buflen, struct group **__result);
extern int __fgetgrent_r (FILE * __stream, struct group *__resultbuf,
char *buffer, size_t __buflen,
struct group **__result) __THROW;
struct group **__result);
/* Search for an entry with a matching group ID. */
extern int __getgrgid_r (__gid_t __gid, struct group *__resultbuf,
char *__buffer, size_t __buflen,
struct group **__result) __THROW;
struct group **__result);
/* Search for an entry with a matching group name. */
extern int __getgrnam_r (__const char *__name, struct group *__resultbuf,
char *__buffer, size_t __buflen,
struct group **__result) __THROW;
struct group **__result);
#endif

View File

@ -2,14 +2,14 @@
#include <intl/libintl.h>
/* Now define the internal interfaces. */
extern char *__gettext (__const char *__msgid) __THROW;
extern char *__gettext (__const char *__msgid);
extern char *__dgettext (__const char *__domainname,
__const char *__msgid) __THROW;
__const char *__msgid);
extern char *__dcgettext (__const char *__domainname,
__const char *__msgid, int __category) __THROW;
extern char *__textdomain (__const char *__domainname) __THROW;
__const char *__msgid, int __category);
extern char *__textdomain (__const char *__domainname);
extern char *__bindtextdomain (__const char *__domainname,
__const char *__dirname) __THROW;
__const char *__dirname);
extern const char _libc_intl_domainname[];
/* Define the macros `_' and `N_' for conveniently marking translatable

View File

@ -3,6 +3,6 @@
#include <math/math.h>
/* Now define the internal interfaces. */
extern int __matherr (struct exception *__exc) __THROW;
extern int __matherr (struct exception *__exc);
#endif

View File

@ -2,12 +2,12 @@
#include <misc/mntent.h>
/* Now define the internal interfaces. */
extern FILE *__setmntent (__const char *__file, __const char *__mode) __THROW;
extern FILE *__setmntent (__const char *__file, __const char *__mode);
extern struct mntent *__getmntent_r (FILE *__stream,
struct mntent *__result,
char *__buffer, int __bufsize) __THROW;
extern int __addmntent (FILE *__stream, __const struct mntent *__mnt) __THROW;
extern int __endmntent (FILE *__stream) __THROW;
char *__buffer, int __bufsize);
extern int __addmntent (FILE *__stream, __const struct mntent *__mnt);
extern int __endmntent (FILE *__stream);
extern char *__hasmntopt (__const struct mntent *__mnt,
__const char *__opt) __THROW;
__const char *__opt);
#endif

View File

@ -5,76 +5,76 @@
extern int __gethostent_r (struct hostent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct hostent **__restrict __result,
int *__restrict __h_errnop) __THROW;
int *__restrict __h_errnop);
extern int __gethostbyaddr_r (__const char *__restrict __addr,
size_t __len, int __type,
struct hostent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct hostent **__restrict __result,
int *__restrict __h_errnop) __THROW;
int *__restrict __h_errnop);
extern int __gethostbyname_r (__const char *__restrict __name,
struct hostent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct hostent **__restrict __result,
int *__restrict __h_errnop) __THROW;
int *__restrict __h_errnop);
extern int __gethostbyname2_r (__const char *__restrict __name, int __af,
struct hostent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct hostent **__restrict __result,
int *__restrict __h_errnop) __THROW;
int *__restrict __h_errnop);
extern int __getnetent_r (struct netent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct netent **__restrict __result,
int *__restrict __h_errnop) __THROW;
int *__restrict __h_errnop);
extern int __getnetbyaddr_r (unsigned long int __net, int __type,
struct netent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct netent **__restrict __result,
int *__restrict __h_errnop) __THROW;
int *__restrict __h_errnop);
extern int __getnetbyname_r (__const char *__restrict __name,
struct netent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct netent **__restrict __result,
int *__restrict __h_errnop) __THROW;
int *__restrict __h_errnop);
extern int __getservent_r (struct servent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct servent **__restrict __result) __THROW;
struct servent **__restrict __result);
extern int __getservbyname_r (__const char *__restrict __name,
__const char *__restrict __proto,
struct servent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct servent **__restrict __result) __THROW;
struct servent **__restrict __result);
extern int __getservbyport_r (int __port,
__const char *__restrict __proto,
struct servent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct servent **__restrict __result) __THROW;
struct servent **__restrict __result);
extern int __getprotoent_r (struct protoent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct protoent **__restrict __result) __THROW;
struct protoent **__restrict __result);
extern int __getprotobyname_r (__const char *__restrict __name,
struct protoent *__restrict __result_buf,
char *__restrict __buf, size_t __buflen,
struct protoent **__restrict __result) __THROW;
struct protoent **__restrict __result);
extern int __getprotobynumber_r (int __proto,
struct protoent *__restrict __res_buf,
char *__restrict __buf, size_t __buflen,
struct protoent **__restrict __result) __THROW;
struct protoent **__restrict __result);
extern int __getnetgrent_r (char **__restrict __hostp,
char **__restrict __userp,
char **__restrict __domainp,
char *__restrict __buffer, size_t __buflen) __THROW;
char *__restrict __buffer, size_t __buflen);
#endif /* !_NETDB_H */

View File

@ -3,14 +3,14 @@
/* Now define the internal interfaces. */
extern int __getpwent_r (struct passwd *__resultbuf, char *__buffer,
size_t __buflen, struct passwd **__result) __THROW;
size_t __buflen, struct passwd **__result);
extern int __getpwuid_r (__uid_t __uid, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result) __THROW;
struct passwd **__result);
extern int __getpwnam_r (__const char *__name, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result) __THROW;
struct passwd **__result);
extern int __fgetpwent_r (FILE * __stream, struct passwd *__resultbuf,
char *__buffer, size_t __buflen,
struct passwd **__result) __THROW;
struct passwd **__result);
#endif

View File

@ -3,17 +3,17 @@
/* Now define the internal interfaces. */
extern int __sched_setparam (__pid_t __pid,
__const struct sched_param *__param) __THROW;
extern int __sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW;
__const struct sched_param *__param);
extern int __sched_getparam (__pid_t __pid, struct sched_param *__param);
extern int __sched_setscheduler (__pid_t __pid, int __policy,
__const struct sched_param *__param) __THROW;
extern int __sched_getscheduler (__pid_t __pid) __THROW;
extern int __sched_yield (void) __THROW;
extern int __sched_get_priority_max (int __algorithm) __THROW;
extern int __sched_get_priority_min (int __algorithm) __THROW;
extern int __sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW;
__const struct sched_param *__param);
extern int __sched_getscheduler (__pid_t __pid);
extern int __sched_yield (void);
extern int __sched_get_priority_max (int __algorithm);
extern int __sched_get_priority_min (int __algorithm);
extern int __sched_rr_get_interval (__pid_t __pid, struct timespec *__t);
/* This is Linux specific. */
extern int __clone (int (*__fn) (void *__arg), void *__child_stack,
int __flags, void *__arg) __THROW;
int __flags, void *__arg);
#endif

View File

@ -3,16 +3,16 @@
/* Now define the internal interfaces. */
extern int __getspent_r (struct spwd *__result_buf, char *__buffer,
size_t __buflen, struct spwd **__result) __THROW;
size_t __buflen, struct spwd **__result);
extern int __getspnam_r (__const char *__name, struct spwd *__result_buf,
char *__buffer, size_t __buflen,
struct spwd **__result) __THROW;
struct spwd **__result);
extern int __sgetspent_r (__const char *__string,
struct spwd *__result_buf, char *__buffer,
size_t __buflen, struct spwd **__result) __THROW;
size_t __buflen, struct spwd **__result);
extern int __fgetspent_r (FILE *__stream, struct spwd *__result_buf,
char *__buffer, size_t __buflen,
struct spwd **__result) __THROW;
extern int __lckpwdf (void) __THROW;
extern int __ulckpwdf (void) __THROW;
struct spwd **__result);
extern int __lckpwdf (void);
extern int __ulckpwdf (void);
#endif

View File

@ -8,44 +8,44 @@
/* Now define the internal interfaces. */
#ifndef __Need_M_And_C
extern int32_t __random (void) __THROW;
extern void __srandom (unsigned int __seed) __THROW;
extern int32_t __random (void);
extern void __srandom (unsigned int __seed);
extern void *__initstate (unsigned int __seed, void *__statebuf,
size_t __statelen) __THROW;
extern void *__setstate (void *__statebuf) __THROW;
extern int __random_r (struct random_data *__buf, int32_t *__result) __THROW;
extern int __srandom_r (unsigned int __seed, struct random_data *__buf) __THROW;
size_t __statelen);
extern void *__setstate (void *__statebuf);
extern int __random_r (struct random_data *__buf, int32_t *__result);
extern int __srandom_r (unsigned int __seed, struct random_data *__buf);
extern int __initstate_r (unsigned int __seed, void *__statebuf,
size_t __statelen, struct random_data *__buf) __THROW;
extern int __setstate_r (void *__statebuf, struct random_data *__buf) __THROW;
extern int __rand_r (unsigned int *__seed) __THROW;
size_t __statelen, struct random_data *__buf);
extern int __setstate_r (void *__statebuf, struct random_data *__buf);
extern int __rand_r (unsigned int *__seed);
extern int __erand48_r (unsigned short int __xsubi[3],
struct drand48_data *__buffer, double *__result) __THROW;
struct drand48_data *__buffer, double *__result);
extern int __nrand48_r (unsigned short int __xsubi[3],
struct drand48_data *__buffer,
long int *__result) __THROW;
long int *__result);
extern int __jrand48_r (unsigned short int __xsubi[3],
struct drand48_data *__buffer,
long int *__result) __THROW;
long int *__result);
extern int __srand48_r (long int __seedval,
struct drand48_data *__buffer) __THROW;
struct drand48_data *__buffer);
extern int __seed48_r (unsigned short int __seed16v[3],
struct drand48_data *__buffer) __THROW;
struct drand48_data *__buffer);
extern int __lcong48_r (unsigned short int __param[7],
struct drand48_data *__buffer) __THROW;
struct drand48_data *__buffer);
/* Internal function to compute next state of the generator. */
extern int __drand48_iterate (unsigned short int __xsubi[3],
struct drand48_data *__buffer) __THROW;
struct drand48_data *__buffer);
extern int __setenv (__const char *__name, __const char *__value,
int __replace) __THROW;
extern void __unsetenv (__const char *__name) __THROW;
extern int __clearenv (void) __THROW;
extern char *__canonicalize_file_name (__const char *__name) __THROW;
extern char *__realpath (__const char *__name, char *__resolved) __THROW;
extern int __ptsname_r (int __fd, char *__buf, size_t __buflen) __THROW;
extern int __getpt (void) __THROW;
int __replace);
extern void __unsetenv (__const char *__name);
extern int __clearenv (void);
extern char *__canonicalize_file_name (__const char *__name);
extern char *__realpath (__const char *__name, char *__resolved);
extern int __ptsname_r (int __fd, char *__buf, size_t __buflen);
extern int __getpt (void);
extern int __add_to_environ (const char *name, const char *value,
const char *combines, int replace);

View File

@ -2,5 +2,5 @@
#include <misc/sys/file.h>
/* Now define the internal interfaces. */
extern int __flock (int __fd, int __operation) __THROW;
extern int __flock (int __fd, int __operation);
#endif

View File

@ -4,6 +4,6 @@
/* Now define the internal interfaces. */
/* Write current profiling data to file. */
extern void __write_profiling (void) __THROW;
extern void write_profiling (void) __THROW;
extern void __write_profiling (void);
extern void write_profiling (void);
#endif

View File

@ -2,5 +2,5 @@
#include <misc/sys/ioctl.h>
/* Now define the internal interfaces. */
extern int __ioctl (int __fd, unsigned long int __request, ...) __THROW;
extern int __ioctl (int __fd, unsigned long int __request, ...);
#endif

View File

@ -2,7 +2,7 @@
#include <socket/sys/socket.h>
/* Now define the internal interfaces. */
extern int __socket (int __domain, int __type, int __protocol) __THROW;
extern int __socket (int __domain, int __type, int __protocol);
/* Return a socket of any type. The socket can be used in subsequent
ioctl calls to talk to the kernel. */

View File

@ -2,15 +2,15 @@
#include <io/sys/stat.h>
/* Now define the internal interfaces. */
extern int __stat (__const char *__file, struct stat *__buf) __THROW;
extern int __fstat (int __fd, struct stat *__buf) __THROW;
extern int __lstat (__const char *__file, struct stat *__buf) __THROW;
extern int __chmod (__const char *__file, __mode_t __mode) __THROW;
extern int __fchmod (int __fd, __mode_t __mode) __THROW;
extern __mode_t __umask (__mode_t __mask) __THROW;
extern int __mkdir (__const char *__path, __mode_t __mode) __THROW;
extern int __stat (__const char *__file, struct stat *__buf);
extern int __fstat (int __fd, struct stat *__buf);
extern int __lstat (__const char *__file, struct stat *__buf);
extern int __chmod (__const char *__file, __mode_t __mode);
extern int __fchmod (int __fd, __mode_t __mode);
extern __mode_t __umask (__mode_t __mask);
extern int __mkdir (__const char *__path, __mode_t __mode);
extern int __mknod (__const char *__path,
__mode_t __mode, __dev_t __dev) __THROW;
__mode_t __mode, __dev_t __dev);
extern __inline__ int __stat (__const char *__path, struct stat *__statbuf)
{
return __xstat (_STAT_VER, __path, __statbuf);

View File

@ -4,15 +4,15 @@
/* Now we define the internal interface. */
/* Return number of configured processors. */
extern int __get_nprocs_conf (void) __THROW;
extern int __get_nprocs_conf (void);
/* Return number of available processors. */
extern int __get_nprocs (void) __THROW;
extern int __get_nprocs (void);
/* Return number of physical pages of memory in the system. */
extern int __get_phys_pages (void) __THROW;
extern int __get_phys_pages (void);
/* Return number of available physical pages of memory in the system. */
extern int __get_avphys_pages (void) __THROW;
extern int __get_avphys_pages (void);
#endif /* sys/sysinfo.h */

View File

@ -3,15 +3,15 @@
/* Now document the internal interfaces. */
extern int __gettimeofday (struct timeval *__tv,
struct timezone *__tz) __THROW;
struct timezone *__tz);
extern int __settimeofday (__const struct timeval *__tv,
__const struct timezone *__tz) __THROW;
__const struct timezone *__tz);
extern int __adjtime (__const struct timeval *__delta,
struct timeval *__olddelta) __THROW;
struct timeval *__olddelta);
extern int __getitimer (enum __itimer_which __which,
struct itimerval *__value) __THROW;
struct itimerval *__value);
extern int __setitimer (enum __itimer_which __which,
__const struct itimerval *__new,
struct itimerval *__old) __THROW;
extern int __utimes (__const char *__file, struct timeval __tvp[2]) __THROW;
struct itimerval *__old);
extern int __utimes (__const char *__file, struct timeval __tvp[2]);
#endif

View File

@ -2,5 +2,5 @@
#include <posix/sys/times.h>
/* Now define the internal interfaces. */
extern clock_t __times (struct tms *__buffer) __THROW;
extern clock_t __times (struct tms *__buffer);
#endif

View File

@ -3,7 +3,7 @@
/* Now define the internal interfaces. */
extern ssize_t __readv (int __fd, __const struct iovec *__vector,
int __count) __THROW;
int __count);
extern ssize_t __writev (int __fd, __const struct iovec *__vector,
int __count) __THROW;
int __count);
#endif

View File

@ -3,9 +3,9 @@
/* Now define the internal interfaces. */
extern __pid_t __waitpid (__pid_t __pid, int *__stat_loc,
int __options) __THROW;
int __options);
extern __pid_t __wait3 (__WAIT_STATUS __stat_loc,
int __options, struct rusage * __usage) __THROW;
int __options, struct rusage * __usage);
extern __pid_t __wait4 (__pid_t __pid, __WAIT_STATUS __stat_loc,
int __options, struct rusage *__usage) __THROW;
int __options, struct rusage *__usage);
#endif

View File

@ -2,5 +2,5 @@
#include <termios/termios.h>
/* Now define the internal interfaces. */
extern int __tcgetattr (int __fd, struct termios *__termios_p) __THROW;
extern int __tcgetattr (int __fd, struct termios *__termios_p);
#endif

View File

@ -14,7 +14,7 @@ extern const unsigned short int __mon_yday[2][13];
extern struct tm _tmbuf;
/* Defined in tzset.c. */
extern char *__tzstring (const char *string) __THROW;
extern char *__tzstring (const char *string);
/* Defined in tzset.c. */
extern size_t __tzname_cur_max;
@ -23,12 +23,12 @@ extern size_t __tzname_cur_max;
extern int __use_tzfile;
extern void __tzfile_read (const char *file, size_t extra,
char **extrap) __THROW;
char **extrap);
extern int __tzfile_compute (time_t timer, int use_localtime,
long int *leap_correct, int *leap_hit,
struct tm *tp) __THROW;
struct tm *tp);
extern void __tzfile_default (const char *std, const char *dst,
long int stdoff, long int dstoff) __THROW;
long int stdoff, long int dstoff);
/* Subroutine of `mktime'. Return the `time_t' representation of TP and
normalize TP, given that a `struct tm *' maps to a `time_t' as performed
@ -36,12 +36,12 @@ extern void __tzfile_default (const char *std, const char *dst,
extern time_t __mktime_internal (struct tm *__tp,
struct tm *(*__func) (const time_t *,
struct tm *),
time_t *__offset) __THROW;
time_t *__offset);
extern struct tm *__localtime_r (__const time_t *__timer,
struct tm *__tp) __THROW;
struct tm *__tp);
extern struct tm *__gmtime_r (__const time_t *__restrict __timer,
struct tm *__restrict __tp) __THROW;
struct tm *__restrict __tp);
/* Compute the `struct tm' representation of *T,
offset OFFSET seconds east of UTC,
@ -49,20 +49,20 @@ extern struct tm *__gmtime_r (__const time_t *__restrict __timer,
Return nonzero if successful. */
extern int __offtime (__const time_t *__timer,
long int __offset,
struct tm *__tp) __THROW;
struct tm *__tp);
extern char *__asctime_r (__const struct tm *__tp, char *__buf) __THROW;
extern void __tzset (void) __THROW;
extern char *__asctime_r (__const struct tm *__tp, char *__buf);
extern void __tzset (void);
/* Prototype for the internal function to get information based on TZ. */
extern struct tm *__tz_convert (const time_t *timer, int use_localtime, struct tm *tp) __THROW;
extern struct tm *__tz_convert (const time_t *timer, int use_localtime, struct tm *tp);
/* Return the maximum length of a timezone name.
This is what `sysconf (_SC_TZNAME_MAX)' does. */
extern long int __tzname_max (void) __THROW;
extern long int __tzname_max (void);
extern int __nanosleep (__const struct timespec *__requested_time,
struct timespec *__remaining) __THROW;
extern int __getdate_r (__const char *__string, struct tm *__resbufp) __THROW;
struct timespec *__remaining);
extern int __getdate_r (__const char *__string, struct tm *__resbufp);
#endif
#endif

View File

@ -2,5 +2,5 @@
#include <resource/ulimit.h>
/* Now define the internal interfaces. */
extern long int __ulimit (int __cmd, ...) __THROW;
extern long int __ulimit (int __cmd, ...);
#endif

View File

@ -3,17 +3,17 @@
/* Now define the internal interfaces. */
extern void __updwtmp (__const char *__wtmp_file,
__const struct utmp *__utmp) __THROW;
extern int __utmpname (__const char *__file) __THROW;
extern struct utmp *__getutent (void) __THROW;
extern void __setutent (void) __THROW;
extern void __endutent (void) __THROW;
extern struct utmp *__getutid (__const struct utmp *__id) __THROW;
extern struct utmp *__getutline (__const struct utmp *__line) __THROW;
extern struct utmp *__pututline (__const struct utmp *__utmp_ptr) __THROW;
extern int __getutent_r (struct utmp *__buffer, struct utmp **__result) __THROW;
__const struct utmp *__utmp);
extern int __utmpname (__const char *__file);
extern struct utmp *__getutent (void);
extern void __setutent (void);
extern void __endutent (void);
extern struct utmp *__getutid (__const struct utmp *__id);
extern struct utmp *__getutline (__const struct utmp *__line);
extern struct utmp *__pututline (__const struct utmp *__utmp_ptr);
extern int __getutent_r (struct utmp *__buffer, struct utmp **__result);
extern int __getutid_r (__const struct utmp *__id, struct utmp *__buffer,
struct utmp **__result) __THROW;
struct utmp **__result);
extern int __getutline_r (__const struct utmp *__line,
struct utmp *__buffer, struct utmp **__result) __THROW;
struct utmp *__buffer, struct utmp **__result);
#endif

View File

@ -3,45 +3,45 @@
# ifdef _WCHAR_H
/* Now define the internal interfaces. */
extern int __wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) __THROW;
extern int __wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2);
extern int __wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
size_t __n) __THROW;
extern size_t __wcsnlen (__const wchar_t *__s, size_t __maxlen) __THROW;
extern wint_t __btowc (int __c) __THROW;
extern int __mbsinit (__const __mbstate_t *__ps) __THROW;
size_t __n);
extern size_t __wcsnlen (__const wchar_t *__s, size_t __maxlen);
extern wint_t __btowc (int __c);
extern int __mbsinit (__const __mbstate_t *__ps);
extern size_t __mbrtowc (wchar_t *__restrict __pwc,
__const char *__restrict __s, size_t __n,
__mbstate_t *__restrict __p) __THROW;
__mbstate_t *__restrict __p);
extern size_t __wcrtomb (char *__restrict __s, wchar_t __wc,
__mbstate_t *__restrict __ps) __THROW;
__mbstate_t *__restrict __ps);
extern size_t __mbsrtowcs (wchar_t *__restrict __dst,
__const char **__restrict __src,
size_t __len, __mbstate_t *__restrict __ps) __THROW;
size_t __len, __mbstate_t *__restrict __ps);
extern size_t __wcsrtombs (char *__restrict __dst,
__const wchar_t **__restrict __src,
size_t __len, __mbstate_t *__restrict __ps) __THROW;
size_t __len, __mbstate_t *__restrict __ps);
extern size_t __mbsnrtowcs (wchar_t *__restrict __dst,
__const char **__restrict __src, size_t __nmc,
size_t __len, __mbstate_t *__restrict __ps) __THROW;
size_t __len, __mbstate_t *__restrict __ps);
extern size_t __wcsnrtombs (char *__restrict __dst,
__const wchar_t **__restrict __src,
size_t __nwc, size_t __len,
__mbstate_t *__restrict __ps) __THROW;
extern wchar_t *__wcpcpy (wchar_t *__dest, __const wchar_t *__src) __THROW;
__mbstate_t *__restrict __ps);
extern wchar_t *__wcpcpy (wchar_t *__dest, __const wchar_t *__src);
extern wchar_t *__wcpncpy (wchar_t *__dest, __const wchar_t *__src,
size_t __n) __THROW;
size_t __n);
extern wchar_t *__wmemcpy (wchar_t *__s1, __const wchar_t *s2,
size_t __n) __THROW;
size_t __n);
extern wchar_t *__wmempcpy (wchar_t *__restrict __s1,
__const wchar_t *__restrict __s2,
size_t __n) __THROW;
size_t __n);
extern wchar_t *__wmemmove (wchar_t *__s1, __const wchar_t *__s2,
size_t __n) __THROW;
extern wchar_t *__wcschrnul (__const wchar_t *__s, wchar_t __wc) __THROW;
size_t __n);
extern wchar_t *__wcschrnul (__const wchar_t *__s, wchar_t __wc);
extern int __vfwscanf (FILE *__restrict __s,
__const wchar_t *__restrict __format,
__gnuc_va_list __arg) __THROW
/* __attribute__ ((__format__ (__wscanf__, 2, 0) __THROW) */;
__gnuc_va_list __arg)
/* __attribute__ ((__format__ (__wscanf__, 2, 0)) */;
# endif
#endif