aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-04-14 08:32:15 +0000
committerUlrich Drepper <drepper@redhat.com>2002-04-14 08:32:15 +0000
commited59a1e5f3e684d1a4564d772cceca91991dbed0 (patch)
tree6a3133b978ad274ab117c34264134577bbe68c2c /include
parentf69e66d6bbbe109345e2f608268a4048015316c5 (diff)
downloadglibc-ed59a1e5f3e684d1a4564d772cceca91991dbed0.tar
glibc-ed59a1e5f3e684d1a4564d772cceca91991dbed0.tar.gz
glibc-ed59a1e5f3e684d1a4564d772cceca91991dbed0.tar.bz2
glibc-ed59a1e5f3e684d1a4564d772cceca91991dbed0.zip
Declare __getpid_internaland define __getpid macro if not NOT_IN_libc.
Declare __getpgid_internaland define __getpgid macro if not NOT_IN_libc. Declare __getpagesize_internaland define __getpagesize macro if not NOT_IN_libc.
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index f2d31a195c..29a6041043 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -58,6 +58,7 @@ extern long int __pathconf (__const char *__path, int __name);
extern long int __fpathconf (int __fd, int __name);
extern long int __sysconf (int __name);
extern __pid_t __getpid (void);
+extern __pid_t __getpid_internal (void);
extern __pid_t __getppid (void);
extern __pid_t __setsid (void);
extern __uid_t __getuid (void);
@@ -65,6 +66,7 @@ extern __uid_t __geteuid (void);
extern __gid_t __getgid (void);
extern __gid_t __getegid (void);
extern int __getgroups (int __size, __gid_t __list[]);
+extern __pid_t __getpgid_internal (__pid_t __pid);
extern int __group_member (__gid_t __gid);
extern int __setuid (__uid_t __uid);
extern int __setreuid (__uid_t __ruid, __uid_t __euid);
@@ -90,6 +92,7 @@ extern ssize_t __write (int __fd, __const void *__buf, size_t __n);
extern __pid_t __fork (void);
extern __pid_t __fork_internal (void) attribute_hidden;
extern int __getpagesize (void) __attribute__ ((__const__));
+extern int __getpagesize_internal (void) __attribute__ ((__const__));
extern int __ftruncate (int __fd, __off_t __length);
extern int __ftruncate64 (int __fd, __off64_t __length);
extern void *__sbrk (intptr_t __delta);
@@ -115,6 +118,9 @@ extern void __libc_check_standard_fds (void);
# define __close(fd) INTUSE(__close) (fd)
# define __dup2(fd, fd2) INTUSE(__dup2) (fd, fd2)
# define __fork() INTUSE(__fork) ()
+# define __getpagesize() INTUSE(__getpagesize) ()
+# define __getpgid(pid) INTUSE(__getpgid) (pid)
+# define __getpid() INTUSE(__getpid) ()
#endif
#endif