1998-08-12 17:03:37 +00:00
|
|
|
#ifndef _UNISTD_H
|
|
|
|
# include <posix/unistd.h>
|
1998-08-09 17:39:48 +00:00
|
|
|
|
|
|
|
/* Now define the internal interfaces. */
|
1999-11-23 17:31:31 +00:00
|
|
|
extern int __access (__const char *__name, int __type);
|
|
|
|
extern int __euidaccess (__const char *__name, int __type);
|
|
|
|
extern __off64_t __lseek64 (int __fd, __off64_t __offset, int __whence);
|
2000-08-24 08:32:13 +00:00
|
|
|
extern __off_t __lseek (int __fd, __off_t __offset, int __whence);
|
1999-12-21 16:25:25 +00:00
|
|
|
extern __off_t __libc_lseek (int __fd, __off_t __offset, int __whence);
|
1999-12-19 05:29:07 +00:00
|
|
|
extern __off64_t __libc_lseek64 (int __fd, __off64_t __offset, int __whence);
|
1999-11-23 17:31:31 +00:00
|
|
|
extern ssize_t __pread (int __fd, void *__buf, size_t __nbytes,
|
|
|
|
__off_t __offset);
|
1999-12-19 05:29:07 +00:00
|
|
|
extern ssize_t __libc_pread (int __fd, void *__buf, size_t __nbytes,
|
|
|
|
__off_t __offset);
|
2000-08-24 08:32:13 +00:00
|
|
|
extern ssize_t __pread64 (int __fd, void *__buf, size_t __nbytes,
|
|
|
|
__off64_t __offset);
|
1999-12-19 05:29:07 +00:00
|
|
|
extern ssize_t __libc_pread64 (int __fd, void *__buf, size_t __nbytes,
|
|
|
|
__off64_t __offset);
|
1999-11-23 17:31:31 +00:00
|
|
|
extern ssize_t __pwrite (int __fd, __const void *__buf, size_t __n,
|
|
|
|
__off_t __offset);
|
1999-12-19 05:29:07 +00:00
|
|
|
extern ssize_t __libc_pwrite (int __fd, __const void *__buf, size_t __n,
|
|
|
|
__off_t __offset);
|
2000-08-24 08:32:13 +00:00
|
|
|
extern ssize_t __pwrite64 (int __fd, __const void *__buf, size_t __n,
|
|
|
|
__off64_t __offset);
|
1999-12-19 05:29:07 +00:00
|
|
|
extern ssize_t __libc_pwrite64 (int __fd, __const void *__buf, size_t __n,
|
|
|
|
__off64_t __offset);
|
Update.
* misc/sys/cdefs.h: Define __attribute_malloc__ according to
available gcc version.
* string/string.h: Mark strdup, __strdup, and strndup with
__attribute_malloc__.
* stdlib/stdlib.h: Make malloc, calloc, realloc, and valloc with
__attribute_malloc__.
* malloc/malloc.h: Make malloc, calloc, realloc, valloc, pvallc,
__morecore, and __default_morecore with __attribute_malloc__.
Provide default definition for __attribute_malloc__.
* libio/stdio.h: Make tempnam with __attribute_malloc__.
1999-12-19 08:08:59 +00:00
|
|
|
extern ssize_t __libc_read (int __fd, void *__buf, size_t __n);
|
|
|
|
extern ssize_t __libc_write (int __fd, __const void *__buf, size_t __n);
|
1999-11-23 17:31:31 +00:00
|
|
|
extern int __pipe (int __pipedes[2]);
|
|
|
|
extern unsigned int __sleep (unsigned int __seconds);
|
|
|
|
extern int __chown (__const char *__file,
|
|
|
|
__uid_t __owner, __gid_t __group);
|
2002-06-11 23:04:51 +00:00
|
|
|
extern int __chown_internal (__const char *__file,
|
|
|
|
__uid_t __owner, __gid_t __group)
|
|
|
|
attribute_hidden;
|
1999-11-23 17:31:31 +00:00
|
|
|
extern int __fchown (int __fd,
|
|
|
|
__uid_t __owner, __gid_t __group);
|
|
|
|
extern int __lchown (__const char *__file, __uid_t __owner,
|
|
|
|
__gid_t __group);
|
|
|
|
extern int __chdir (__const char *__path);
|
|
|
|
extern int __fchdir (int __fd);
|
|
|
|
extern char *__getcwd (char *__buf, size_t __size);
|
2000-02-29 01:13:44 +00:00
|
|
|
extern int __rmdir (const char *__path);
|
1998-08-09 17:39:48 +00:00
|
|
|
|
|
|
|
/* Get the canonical absolute name of the named directory, and put it in SIZE
|
|
|
|
bytes of BUF. Returns NULL if the directory couldn't be determined or
|
|
|
|
SIZE was too small. If successful, returns BUF. In GNU, if BUF is
|
|
|
|
NULL, an array is allocated with `malloc'; the array is SIZE bytes long,
|
|
|
|
unless SIZE <= 0, in which case it is as big as necessary. */
|
|
|
|
|
1999-11-23 17:31:31 +00:00
|
|
|
char *__canonicalize_directory_name_internal (__const char *__thisdir,
|
|
|
|
char *__buf,
|
2002-04-14 17:55:43 +00:00
|
|
|
size_t __size) attribute_hidden;
|
1998-08-09 17:39:48 +00:00
|
|
|
|
1999-11-23 17:31:31 +00:00
|
|
|
extern int __dup (int __fd);
|
|
|
|
extern int __dup2 (int __fd, int __fd2);
|
Update.
* sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
* sysdeps/unix/sysv/aix/chown.c: Likewise.
* sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
* sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
* sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
__chown_internal.
* sysdeps/unix/sysv/linux/s390/s390-32//chown.c: Likewise.
* intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
* intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
* intl/ngettext.c: Likewise.
* include/sys/socket.h: Declare __connect_internal and define
__connect macro if not NOT_IN_libc.
* sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
* sysdeps/unix/sysv/aix/connect.c: Likewise.
* sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
* include/unistd.h: Declare __close_internal and define __close macro
if not NOT_IN_libc.
* libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
WJUMP3): Add extra parenthesis to avoid expanding element names with
macors like __close.
* sysdeps/unix/syscalls.list: Add __close_internal alias.
* include/unistd.h: Declare __dup2_internal and define __dup2 macro
if not NOT_IN_libc.
* sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
* sysdeps/posix/dup2.c: Use INTDEF for __dup2.
* sysdeps/unix/syscalls.list: Add __dup2_internal alias.
* include/unistd.h: Declare __fork_internal and define __fork macro
if not NOT_IN_libc.
* sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
* sysdeps/unix/sysv/aix/fork.c: Likewise.
* sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
* include/stdio_ext.h: Declare __fsetlocking_internal and define
__fsetlocking macro to use it if not NOT_IN_libc.
* libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
* libio/__fbufsize.c: Correct copyright.
* libio/__flbf.c: Likewise.
* libio/__fpending.c: Likewise.
* libio/__fpurge.c: Likewise.
* libio/__freadable.c: Likewise.
* libio/__freading.c: Likewise.
* libio/__fsetlocking.c: Likewise.
* libio/__fwritable.c: Likewise.
* libio/__fwriting.c: Likewise.
* include/stdio.h: Declare __asprintf_internal and define __asprintf
macro to use it if not NOT_IN_libc.
* stdio-common/asprintf.c: Use INTDEF for __asprintf.
* include/mntent.h: Declare __setmntent_internal,
__getmntent_r_internal, __endmntent_internal. Define __setmntent,
__getmntent_r, and __endmntent macros to use these functions if not
NOT_IN_libc.
* misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
__endmntent.
* include/math.h: Declare __finite_internal, __finitef_internal, and
__finitel_internal. Redefine isfinite macro if in libc or libm using
these functions.
* sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
* sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
* sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
* sysdeps/i386/fpu/s_finite.S: Define _internal alias.
* sysdeps/i386/fpu/s_finitef.S: Likewise.
* sysdeps/i386/fpu/s_finitel.S: Likewise.
* sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
* sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
* sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
* include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
to use this function if not NOT_IN_libc.
* libio/iofdopen.c (_IO_fcntl): Use INTUSE.
* sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
* sysdeps/mach/hurd/fcntl.c: Likewise.
* sysdeps/unix/sysv/aix/fcntl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
* include/argz.h: Declare __argz_count_internal and
__argz_stringify_internal.
* intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
__argz_stringify.
* string/argz-count.c: Use INTDEF for __argz_count.
* string/argz-stringify.c: Use INTDEF for __argz_stringify.
* include/stdlib.h: Declare __cxa_atexit_internal and define
__cxa_atexit macro if not NOT_IN_libc.
* stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
* dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
* assert/assert.c: Use INTDEF for __assert_fail.
* assert/__assert.c: Use INTUSE for call to __assert_fail.
* include/assert.h: Declare __assert_fail_internal.
2002-04-09 20:36:24 +00:00
|
|
|
extern int __dup2_internal (int __fd, int __fd2) attribute_hidden;
|
1999-11-23 17:31:31 +00:00
|
|
|
extern int __execve (__const char *__path, char *__const __argv[],
|
|
|
|
char *__const __envp[]);
|
|
|
|
extern long int __pathconf (__const char *__path, int __name);
|
|
|
|
extern long int __fpathconf (int __fd, int __name);
|
|
|
|
extern long int __sysconf (int __name);
|
2000-08-24 08:32:13 +00:00
|
|
|
extern __pid_t __getpid (void);
|
2002-04-14 17:55:43 +00:00
|
|
|
extern __pid_t __getpid_internal (void) attribute_hidden;
|
1999-11-23 17:31:31 +00:00
|
|
|
extern __pid_t __getppid (void);
|
|
|
|
extern __pid_t __setsid (void);
|
|
|
|
extern __uid_t __getuid (void);
|
|
|
|
extern __uid_t __geteuid (void);
|
|
|
|
extern __gid_t __getgid (void);
|
|
|
|
extern __gid_t __getegid (void);
|
|
|
|
extern int __getgroups (int __size, __gid_t __list[]);
|
2002-04-14 17:55:43 +00:00
|
|
|
extern __pid_t __getpgid_internal (__pid_t __pid) attribute_hidden;
|
1999-11-23 17:31:31 +00:00
|
|
|
extern int __group_member (__gid_t __gid);
|
|
|
|
extern int __setuid (__uid_t __uid);
|
|
|
|
extern int __setreuid (__uid_t __ruid, __uid_t __euid);
|
|
|
|
extern int __setgid (__gid_t __gid);
|
2000-08-24 08:32:13 +00:00
|
|
|
extern int __setpgid (__pid_t __pid, __pid_t __pgid);
|
1999-11-23 17:31:31 +00:00
|
|
|
extern int __setregid (__gid_t __rgid, __gid_t __egid);
|
|
|
|
extern __pid_t __vfork (void);
|
|
|
|
extern int __ttyname_r (int __fd, char *__buf, size_t __buflen);
|
|
|
|
extern int __isatty (int __fd);
|
|
|
|
extern int __link (__const char *__from, __const char *__to);
|
|
|
|
extern int __symlink (__const char *__from, __const char *__to);
|
|
|
|
extern int __readlink (__const char *__path, char *__buf, size_t __len);
|
|
|
|
extern int __unlink (__const char *__name);
|
2001-03-21 18:53:05 +00:00
|
|
|
extern int __gethostname (char *__name, size_t __len);
|
1999-11-23 17:31:31 +00:00
|
|
|
extern int __profil (unsigned short int *__sample_buffer, size_t __size,
|
|
|
|
size_t __offset, unsigned int __scale);
|
|
|
|
extern int __getdtablesize (void);
|
|
|
|
extern int __brk (void *__addr);
|
2000-08-24 08:32:13 +00:00
|
|
|
extern int __close (int __fd);
|
Update.
* sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
* sysdeps/unix/sysv/aix/chown.c: Likewise.
* sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
* sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
* sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
__chown_internal.
* sysdeps/unix/sysv/linux/s390/s390-32//chown.c: Likewise.
* intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
* intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
* intl/ngettext.c: Likewise.
* include/sys/socket.h: Declare __connect_internal and define
__connect macro if not NOT_IN_libc.
* sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
* sysdeps/unix/sysv/aix/connect.c: Likewise.
* sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
* include/unistd.h: Declare __close_internal and define __close macro
if not NOT_IN_libc.
* libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
WJUMP3): Add extra parenthesis to avoid expanding element names with
macors like __close.
* sysdeps/unix/syscalls.list: Add __close_internal alias.
* include/unistd.h: Declare __dup2_internal and define __dup2 macro
if not NOT_IN_libc.
* sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
* sysdeps/posix/dup2.c: Use INTDEF for __dup2.
* sysdeps/unix/syscalls.list: Add __dup2_internal alias.
* include/unistd.h: Declare __fork_internal and define __fork macro
if not NOT_IN_libc.
* sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
* sysdeps/unix/sysv/aix/fork.c: Likewise.
* sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
* include/stdio_ext.h: Declare __fsetlocking_internal and define
__fsetlocking macro to use it if not NOT_IN_libc.
* libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
* libio/__fbufsize.c: Correct copyright.
* libio/__flbf.c: Likewise.
* libio/__fpending.c: Likewise.
* libio/__fpurge.c: Likewise.
* libio/__freadable.c: Likewise.
* libio/__freading.c: Likewise.
* libio/__fsetlocking.c: Likewise.
* libio/__fwritable.c: Likewise.
* libio/__fwriting.c: Likewise.
* include/stdio.h: Declare __asprintf_internal and define __asprintf
macro to use it if not NOT_IN_libc.
* stdio-common/asprintf.c: Use INTDEF for __asprintf.
* include/mntent.h: Declare __setmntent_internal,
__getmntent_r_internal, __endmntent_internal. Define __setmntent,
__getmntent_r, and __endmntent macros to use these functions if not
NOT_IN_libc.
* misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
__endmntent.
* include/math.h: Declare __finite_internal, __finitef_internal, and
__finitel_internal. Redefine isfinite macro if in libc or libm using
these functions.
* sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
* sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
* sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
* sysdeps/i386/fpu/s_finite.S: Define _internal alias.
* sysdeps/i386/fpu/s_finitef.S: Likewise.
* sysdeps/i386/fpu/s_finitel.S: Likewise.
* sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
* sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
* sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
* include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
to use this function if not NOT_IN_libc.
* libio/iofdopen.c (_IO_fcntl): Use INTUSE.
* sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
* sysdeps/mach/hurd/fcntl.c: Likewise.
* sysdeps/unix/sysv/aix/fcntl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
* include/argz.h: Declare __argz_count_internal and
__argz_stringify_internal.
* intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
__argz_stringify.
* string/argz-count.c: Use INTDEF for __argz_count.
* string/argz-stringify.c: Use INTDEF for __argz_stringify.
* include/stdlib.h: Declare __cxa_atexit_internal and define
__cxa_atexit macro if not NOT_IN_libc.
* stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
* dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
* assert/assert.c: Use INTDEF for __assert_fail.
* assert/__assert.c: Use INTUSE for call to __assert_fail.
* include/assert.h: Declare __assert_fail_internal.
2002-04-09 20:36:24 +00:00
|
|
|
extern int __close_internal (int __fd) attribute_hidden;
|
2000-08-24 08:32:13 +00:00
|
|
|
extern ssize_t __read (int __fd, void *__buf, size_t __nbytes);
|
|
|
|
extern ssize_t __write (int __fd, __const void *__buf, size_t __n);
|
2002-04-15 05:35:10 +00:00
|
|
|
extern ssize_t __write_internal (int __fd, __const void *__buf, size_t __n)
|
|
|
|
attribute_hidden;
|
2000-08-24 08:32:13 +00:00
|
|
|
extern __pid_t __fork (void);
|
|
|
|
extern int __getpagesize (void) __attribute__ ((__const__));
|
2002-04-14 17:55:43 +00:00
|
|
|
extern int __getpagesize_internal (void)
|
|
|
|
__attribute__ ((__const__)) attribute_hidden;
|
2000-08-24 08:32:13 +00:00
|
|
|
extern int __ftruncate (int __fd, __off_t __length);
|
2001-02-13 22:17:17 +00:00
|
|
|
extern int __ftruncate64 (int __fd, __off64_t __length);
|
2000-08-24 08:32:13 +00:00
|
|
|
extern void *__sbrk (intptr_t __delta);
|
1999-07-23 22:58:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* This variable is set nonzero at startup if the process's effective
|
|
|
|
IDs differ from its real IDs, or it is otherwise indicated that
|
|
|
|
extra security should be used. When this is set the dynamic linker
|
|
|
|
and some functions contained in the C library ignore various
|
|
|
|
environment variables that normally affect them. */
|
|
|
|
extern int __libc_enable_secure;
|
2002-04-08 18:50:41 +00:00
|
|
|
#ifdef IS_IN_rtld
|
2002-03-01 09:44:29 +00:00
|
|
|
/* XXX The #ifdef should go. */
|
|
|
|
extern int __libc_enable_secure_internal attribute_hidden;
|
|
|
|
#endif
|
1999-07-23 22:58:50 +00:00
|
|
|
|
2000-11-20 09:16:41 +00:00
|
|
|
|
|
|
|
/* Various internal function. */
|
|
|
|
extern void __libc_check_standard_fds (void);
|
|
|
|
|
|
|
|
|
Update.
* sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
* sysdeps/unix/sysv/aix/chown.c: Likewise.
* sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
* sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
* sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
__chown_internal.
* sysdeps/unix/sysv/linux/s390/s390-32//chown.c: Likewise.
* intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
* intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
* intl/ngettext.c: Likewise.
* include/sys/socket.h: Declare __connect_internal and define
__connect macro if not NOT_IN_libc.
* sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
* sysdeps/unix/sysv/aix/connect.c: Likewise.
* sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
* include/unistd.h: Declare __close_internal and define __close macro
if not NOT_IN_libc.
* libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
WJUMP3): Add extra parenthesis to avoid expanding element names with
macors like __close.
* sysdeps/unix/syscalls.list: Add __close_internal alias.
* include/unistd.h: Declare __dup2_internal and define __dup2 macro
if not NOT_IN_libc.
* sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
* sysdeps/posix/dup2.c: Use INTDEF for __dup2.
* sysdeps/unix/syscalls.list: Add __dup2_internal alias.
* include/unistd.h: Declare __fork_internal and define __fork macro
if not NOT_IN_libc.
* sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
* sysdeps/unix/sysv/aix/fork.c: Likewise.
* sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
* include/stdio_ext.h: Declare __fsetlocking_internal and define
__fsetlocking macro to use it if not NOT_IN_libc.
* libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
* libio/__fbufsize.c: Correct copyright.
* libio/__flbf.c: Likewise.
* libio/__fpending.c: Likewise.
* libio/__fpurge.c: Likewise.
* libio/__freadable.c: Likewise.
* libio/__freading.c: Likewise.
* libio/__fsetlocking.c: Likewise.
* libio/__fwritable.c: Likewise.
* libio/__fwriting.c: Likewise.
* include/stdio.h: Declare __asprintf_internal and define __asprintf
macro to use it if not NOT_IN_libc.
* stdio-common/asprintf.c: Use INTDEF for __asprintf.
* include/mntent.h: Declare __setmntent_internal,
__getmntent_r_internal, __endmntent_internal. Define __setmntent,
__getmntent_r, and __endmntent macros to use these functions if not
NOT_IN_libc.
* misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
__endmntent.
* include/math.h: Declare __finite_internal, __finitef_internal, and
__finitel_internal. Redefine isfinite macro if in libc or libm using
these functions.
* sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
* sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
* sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
* sysdeps/i386/fpu/s_finite.S: Define _internal alias.
* sysdeps/i386/fpu/s_finitef.S: Likewise.
* sysdeps/i386/fpu/s_finitel.S: Likewise.
* sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
* sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
* sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
* include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
to use this function if not NOT_IN_libc.
* libio/iofdopen.c (_IO_fcntl): Use INTUSE.
* sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
* sysdeps/mach/hurd/fcntl.c: Likewise.
* sysdeps/unix/sysv/aix/fcntl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
* include/argz.h: Declare __argz_count_internal and
__argz_stringify_internal.
* intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
__argz_stringify.
* string/argz-count.c: Use INTDEF for __argz_count.
* string/argz-stringify.c: Use INTDEF for __argz_stringify.
* include/stdlib.h: Declare __cxa_atexit_internal and define
__cxa_atexit macro if not NOT_IN_libc.
* stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
* dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
* assert/assert.c: Use INTDEF for __assert_fail.
* assert/__assert.c: Use INTUSE for call to __assert_fail.
* include/assert.h: Declare __assert_fail_internal.
2002-04-09 20:36:24 +00:00
|
|
|
#ifndef NOT_IN_libc
|
|
|
|
# define __close(fd) INTUSE(__close) (fd)
|
|
|
|
# define __dup2(fd, fd2) INTUSE(__dup2) (fd, fd2)
|
2002-04-14 08:32:15 +00:00
|
|
|
# define __getpagesize() INTUSE(__getpagesize) ()
|
|
|
|
# define __getpgid(pid) INTUSE(__getpgid) (pid)
|
|
|
|
# define __getpid() INTUSE(__getpid) ()
|
2002-04-15 05:35:10 +00:00
|
|
|
# ifdef SHARED
|
|
|
|
# define __libc_write(fd, buf, n) INTUSE(__write) (fd, buf, n)
|
|
|
|
# endif
|
Update.
* sysdeps/mach/hurd/chown.c: Use INTDEF for __chown.
* sysdeps/unix/sysv/aix/chown.c: Likewise.
* sysdeps/unix/grantpt.c: Use INTUSE for __chown calls.
* sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
* sysdeps/unix/sysv/linux/i386/chown.c: Use INTDEF2 to define
__chown_internal.
* sysdeps/unix/sysv/linux/s390/s390-32//chown.c: Likewise.
* intl/dcngettext.c [_LIBC]: Use INTUSE for __dcngettext.
* intl/dngettext.c [_LIBC] (DCNGETTEXT): Use INTUSE.
* intl/ngettext.c: Likewise.
* include/sys/socket.h: Declare __connect_internal and define
__connect macro if not NOT_IN_libc.
* sysdeps/mach/hurd/connect.c: Use INTDEF for __connect.
* sysdeps/unix/sysv/aix/connect.c: Likewise.
* sysdeps/unix/sysv/linux/connect.S: Add __connect_internal alias.
* include/unistd.h: Declare __close_internal and define __close macro
if not NOT_IN_libc.
* libio/libioP.h (JUMO0, JUMP1, JUMP2, JUMP3, WJUMP0, WJUMP1, WJUMP2,
WJUMP3): Add extra parenthesis to avoid expanding element names with
macors like __close.
* sysdeps/unix/syscalls.list: Add __close_internal alias.
* include/unistd.h: Declare __dup2_internal and define __dup2 macro
if not NOT_IN_libc.
* sysdeps/mach/hurd/dup2.c: Use INTDEF for __dup2.
* sysdeps/posix/dup2.c: Use INTDEF for __dup2.
* sysdeps/unix/syscalls.list: Add __dup2_internal alias.
* include/unistd.h: Declare __fork_internal and define __fork macro
if not NOT_IN_libc.
* sysdeps/mach/hurd/fork.c: Use INTDEF for __fork.
* sysdeps/unix/sysv/aix/fork.c: Likewise.
* sysdeps/unix/sysv/linux/syscalls.list: Add __fork_internal alias.
* include/stdio_ext.h: Declare __fsetlocking_internal and define
__fsetlocking macro to use it if not NOT_IN_libc.
* libio/__fsetlocking.c: Use INTDEF for __fsetlocking.
* libio/__fbufsize.c: Correct copyright.
* libio/__flbf.c: Likewise.
* libio/__fpending.c: Likewise.
* libio/__fpurge.c: Likewise.
* libio/__freadable.c: Likewise.
* libio/__freading.c: Likewise.
* libio/__fsetlocking.c: Likewise.
* libio/__fwritable.c: Likewise.
* libio/__fwriting.c: Likewise.
* include/stdio.h: Declare __asprintf_internal and define __asprintf
macro to use it if not NOT_IN_libc.
* stdio-common/asprintf.c: Use INTDEF for __asprintf.
* include/mntent.h: Declare __setmntent_internal,
__getmntent_r_internal, __endmntent_internal. Define __setmntent,
__getmntent_r, and __endmntent macros to use these functions if not
NOT_IN_libc.
* misc/mntent_r.c: Use INTDEF for __setmntent, __getmntent_r, and
__endmntent.
* include/math.h: Declare __finite_internal, __finitef_internal, and
__finitel_internal. Redefine isfinite macro if in libc or libm using
these functions.
* sysdeps/generic/s_ldexp.c: Use INTUSE for __finite calls.
* sysdeps/generic/s_ldexpf.c: Use INTUSE for __finitef calls.
* sysdeps/generic/s_ldexpl.c: Use INTUSE for __finitel calls.
* sysdeps/i386/fpu/s_finite.S: Define _internal alias.
* sysdeps/i386/fpu/s_finitef.S: Likewise.
* sysdeps/i386/fpu/s_finitel.S: Likewise.
* sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
* sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
* sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
* sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
* include/fcntl.h: Declare __fcntl_internal. Define __fcntl macro
to use this function if not NOT_IN_libc.
* libio/iofdopen.c (_IO_fcntl): Use INTUSE.
* sysdeps/generic/fcntl.c: Use INTDEF for __fcntl.
* sysdeps/mach/hurd/fcntl.c: Likewise.
* sysdeps/unix/sysv/aix/fcntl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise.
* include/argz.h: Declare __argz_count_internal and
__argz_stringify_internal.
* intl/l10nflist.c [_LIBC]: Use INTUSE for __argz_count and
__argz_stringify.
* string/argz-count.c: Use INTDEF for __argz_count.
* string/argz-stringify.c: Use INTDEF for __argz_stringify.
* include/stdlib.h: Declare __cxa_atexit_internal and define
__cxa_atexit macro if not NOT_IN_libc.
* stdlib/cxa_atexit.c: Use INTDEF for __cxa_atexit.
* dlfcn/Makefile: Define NOT_IN_libc when compiling modcxaatexit.c.
* assert/assert.c: Use INTDEF for __assert_fail.
* assert/__assert.c: Use INTUSE for call to __assert_fail.
* include/assert.h: Declare __assert_fail_internal.
2002-04-09 20:36:24 +00:00
|
|
|
#endif
|
|
|
|
|
1998-08-12 17:03:37 +00:00
|
|
|
#endif
|