Blame include/unistd.h

Packit 6c4009
#ifndef _UNISTD_H
Packit 6c4009
# include <posix/unistd.h>
Packit 6c4009
Packit 6c4009
# ifndef _ISOMAC
Packit 6c4009
Packit 6c4009
libc_hidden_proto (_exit, __noreturn__)
Packit 6c4009
rtld_hidden_proto (_exit, __noreturn__)
Packit 6c4009
libc_hidden_proto (alarm)
Packit 6c4009
libc_hidden_proto (confstr)
Packit 6c4009
libc_hidden_proto (execl)
Packit 6c4009
libc_hidden_proto (execle)
Packit 6c4009
libc_hidden_proto (execlp)
Packit 6c4009
libc_hidden_proto (execvp)
Packit 6c4009
libc_hidden_proto (getpid)
Packit 6c4009
libc_hidden_proto (getsid)
Packit 6c4009
libc_hidden_proto (getdomainname)
Packit 6c4009
extern __typeof (getlogin_r) __getlogin_r  __nonnull ((1));
Packit 6c4009
libc_hidden_proto (__getlogin_r)
Packit 6c4009
libc_hidden_proto (getlogin_r)
Packit 6c4009
libc_hidden_proto (seteuid)
Packit 6c4009
libc_hidden_proto (setegid)
Packit 6c4009
libc_hidden_proto (tcgetpgrp)
Packit 6c4009
libc_hidden_proto (readlinkat)
Packit 6c4009
Packit 6c4009
/* Now define the internal interfaces.  */
Packit 6c4009
extern int __access (const char *__name, int __type) attribute_hidden;
Packit 6c4009
extern int __euidaccess (const char *__name, int __type);
Packit 6c4009
extern int __faccessat (int __fd, const char *__file, int __type, int __flag);
Packit 6c4009
extern int __faccessat_noerrno (int __fd, const char *__file, int __type,
Packit 6c4009
			        int __flag);
Packit 6c4009
extern __off64_t __lseek64 (int __fd, __off64_t __offset, int __whence)
Packit 6c4009
     attribute_hidden;
Packit 6c4009
extern __off_t __lseek (int __fd, __off_t __offset, int __whence);
Packit 6c4009
libc_hidden_proto (__lseek)
Packit 6c4009
extern __off_t __libc_lseek (int __fd, __off_t __offset, int __whence);
Packit 6c4009
extern __off64_t __libc_lseek64 (int __fd, __off64_t __offset, int __whence);
Packit 6c4009
extern ssize_t __pread (int __fd, void *__buf, size_t __nbytes,
Packit 6c4009
			__off_t __offset);
Packit 6c4009
libc_hidden_proto (__pread);
Packit 6c4009
extern ssize_t __libc_pread (int __fd, void *__buf, size_t __nbytes,
Packit 6c4009
			     __off_t __offset);
Packit 6c4009
extern ssize_t __pread64 (int __fd, void *__buf, size_t __nbytes,
Packit 6c4009
			  __off64_t __offset);
Packit 6c4009
libc_hidden_proto (__pread64);
Packit 6c4009
extern ssize_t __libc_pread64 (int __fd, void *__buf, size_t __nbytes,
Packit 6c4009
			       __off64_t __offset) attribute_hidden;
Packit 6c4009
extern ssize_t __pwrite (int __fd, const void *__buf, size_t __n,
Packit 6c4009
			 __off_t __offset);
Packit 6c4009
libc_hidden_proto (__pwrite)
Packit 6c4009
extern ssize_t __libc_pwrite (int __fd, const void *__buf, size_t __n,
Packit 6c4009
			      __off_t __offset);
Packit 6c4009
extern ssize_t __pwrite64 (int __fd, const void *__buf, size_t __n,
Packit 6c4009
			   __off64_t __offset);
Packit 6c4009
libc_hidden_proto (__pwrite64)
Packit 6c4009
extern ssize_t __libc_pwrite64 (int __fd, const void *__buf, size_t __n,
Packit 6c4009
				__off64_t __offset) attribute_hidden;
Packit 6c4009
extern ssize_t __libc_read (int __fd, void *__buf, size_t __n);
Packit 6c4009
libc_hidden_proto (__libc_read)
Packit 6c4009
libc_hidden_proto (read)
Packit 6c4009
extern ssize_t __libc_write (int __fd, const void *__buf, size_t __n);
Packit 6c4009
libc_hidden_proto (__libc_write)
Packit 6c4009
libc_hidden_proto (write)
Packit 6c4009
extern int __pipe (int __pipedes[2]);
Packit 6c4009
libc_hidden_proto (__pipe)
Packit 6c4009
extern int __pipe2 (int __pipedes[2], int __flags) attribute_hidden;
Packit 6c4009
extern unsigned int __sleep (unsigned int __seconds) attribute_hidden;
Packit 6c4009
extern int __chown (const char *__file,
Packit 6c4009
		    __uid_t __owner, __gid_t __group);
Packit 6c4009
libc_hidden_proto (__chown)
Packit 6c4009
extern int __fchown (int __fd,
Packit 6c4009
		     __uid_t __owner, __gid_t __group);
Packit 6c4009
extern int __lchown (const char *__file, __uid_t __owner,
Packit 6c4009
		     __gid_t __group);
Packit 6c4009
extern int __chdir (const char *__path) attribute_hidden;
Packit 6c4009
extern int __fchdir (int __fd) attribute_hidden;
Packit 6c4009
extern char *__getcwd (char *__buf, size_t __size) attribute_hidden;
Packit 6c4009
extern int __rmdir (const char *__path) attribute_hidden;
Packit 6c4009
extern int __execvpe (const char *file, char *const argv[],
Packit 6c4009
		      char *const envp[]) attribute_hidden;
Packit 6c4009
extern int __execvpex (const char *file, char *const argv[],
Packit 6c4009
		       char *const envp[]) attribute_hidden;
Packit 6c4009
Packit 6c4009
/* Get the canonical absolute name of the named directory, and put it in SIZE
Packit 6c4009
   bytes of BUF.  Returns NULL if the directory couldn't be determined or
Packit 6c4009
   SIZE was too small.  If successful, returns BUF.  In GNU, if BUF is
Packit 6c4009
   NULL, an array is allocated with `malloc'; the array is SIZE bytes long,
Packit 6c4009
   unless SIZE <= 0, in which case it is as big as necessary.  */
Packit 6c4009
Packit 6c4009
char *__canonicalize_directory_name_internal (const char *__thisdir,
Packit 6c4009
					      char *__buf,
Packit 6c4009
					      size_t __size) attribute_hidden;
Packit 6c4009
Packit 6c4009
extern int __dup (int __fd);
Packit 6c4009
libc_hidden_proto (__dup)
Packit 6c4009
extern int __dup2 (int __fd, int __fd2);
Packit 6c4009
libc_hidden_proto (__dup2)
Packit 6c4009
extern int __dup3 (int __fd, int __fd2, int flags);
Packit 6c4009
libc_hidden_proto (__dup3)
Packit 6c4009
extern int __execve (const char *__path, char *const __argv[],
Packit 6c4009
		     char *const __envp[]) attribute_hidden;
Packit 6c4009
extern long int __pathconf (const char *__path, int __name);
Packit 6c4009
extern long int __fpathconf (int __fd, int __name);
Packit 6c4009
extern long int __sysconf (int __name);
Packit 6c4009
libc_hidden_proto (__sysconf)
Packit 6c4009
extern __pid_t __getpid (void);
Packit 6c4009
libc_hidden_proto (__getpid)
Packit 6c4009
extern __pid_t __getppid (void);
Packit 6c4009
extern __pid_t __setsid (void) attribute_hidden;
Packit 6c4009
extern __uid_t __getuid (void) attribute_hidden;
Packit 6c4009
extern __uid_t __geteuid (void) attribute_hidden;
Packit 6c4009
extern __gid_t __getgid (void) attribute_hidden;
Packit 6c4009
extern __gid_t __getegid (void) attribute_hidden;
Packit 6c4009
extern int __getgroups (int __size, __gid_t __list[]) attribute_hidden;
Packit 6c4009
libc_hidden_proto (__getpgid)
Packit 6c4009
extern int __group_member (__gid_t __gid) attribute_hidden;
Packit 6c4009
extern int __setuid (__uid_t __uid);
Packit 6c4009
extern int __setreuid (__uid_t __ruid, __uid_t __euid);
Packit 6c4009
extern int __setgid (__gid_t __gid);
Packit 6c4009
extern int __setpgid (__pid_t __pid, __pid_t __pgid);
Packit 6c4009
libc_hidden_proto (__setpgid)
Packit 6c4009
extern int __setregid (__gid_t __rgid, __gid_t __egid);
Packit 6c4009
extern int __getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid);
Packit 6c4009
extern int __getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid);
Packit 6c4009
extern int __setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid);
Packit 6c4009
extern int __setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid);
Packit 6c4009
libc_hidden_proto (__getresuid)
Packit 6c4009
libc_hidden_proto (__getresgid)
Packit 6c4009
libc_hidden_proto (__setresuid)
Packit 6c4009
libc_hidden_proto (__setresgid)
Packit 6c4009
extern __pid_t __vfork (void);
Packit 6c4009
libc_hidden_proto (__vfork)
Packit 6c4009
extern int __ttyname_r (int __fd, char *__buf, size_t __buflen)
Packit 6c4009
     attribute_hidden;
Packit 6c4009
extern int __isatty (int __fd) attribute_hidden;
Packit 6c4009
extern int __link (const char *__from, const char *__to);
Packit 6c4009
extern int __symlink (const char *__from, const char *__to);
Packit 6c4009
extern ssize_t __readlink (const char *__path, char *__buf, size_t __len)
Packit 6c4009
     attribute_hidden;
Packit 6c4009
extern int __unlink (const char *__name) attribute_hidden;
Packit 6c4009
extern int __gethostname (char *__name, size_t __len) attribute_hidden;
Packit 6c4009
extern int __revoke (const char *__file);
Packit 6c4009
extern int __profil (unsigned short int *__sample_buffer, size_t __size,
Packit 6c4009
		     size_t __offset, unsigned int __scale)
Packit 6c4009
     attribute_hidden;
Packit 6c4009
extern int __getdtablesize (void) attribute_hidden;
Packit 6c4009
extern int __brk (void *__addr) attribute_hidden;
Packit 6c4009
extern int __close (int __fd);
Packit 6c4009
libc_hidden_proto (__close)
Packit 6c4009
extern int __libc_close (int __fd);
Packit 6c4009
extern ssize_t __read (int __fd, void *__buf, size_t __nbytes);
Packit 6c4009
libc_hidden_proto (__read)
Packit 6c4009
extern ssize_t __write (int __fd, const void *__buf, size_t __n);
Packit 6c4009
libc_hidden_proto (__write)
Packit 6c4009
extern __pid_t __fork (void);
Packit 6c4009
libc_hidden_proto (__fork)
Packit 6c4009
extern int __getpagesize (void) __attribute__ ((__const__));
Packit 6c4009
libc_hidden_proto (__getpagesize)
Packit 6c4009
extern int __ftruncate (int __fd, __off_t __length) attribute_hidden;
Packit 6c4009
extern int __ftruncate64 (int __fd, __off64_t __length) attribute_hidden;
Packit 6c4009
extern int __truncate (const char *path, __off_t __length);
Packit 6c4009
extern void *__sbrk (intptr_t __delta);
Packit 6c4009
libc_hidden_proto (__sbrk)
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* This variable is set nonzero at startup if the process's effective
Packit 6c4009
   IDs differ from its real IDs, or it is otherwise indicated that
Packit 6c4009
   extra security should be used.  When this is set the dynamic linker
Packit 6c4009
   and some functions contained in the C library ignore various
Packit 6c4009
   environment variables that normally affect them.  */
Packit 6c4009
extern int __libc_enable_secure attribute_relro;
Packit 6c4009
extern int __libc_enable_secure_decided;
Packit 6c4009
rtld_hidden_proto (__libc_enable_secure)
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Various internal function.  */
Packit 6c4009
extern void __libc_check_standard_fds (void) attribute_hidden;
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Internal name for fork function.  */
Packit 6c4009
extern __pid_t __libc_fork (void);
Packit 6c4009
Packit 6c4009
/* Suspend the process until a signal arrives.
Packit 6c4009
   This always returns -1 and sets `errno' to EINTR.  */
Packit 6c4009
extern int __libc_pause (void);
Packit 6c4009
Packit 6c4009
extern int __getlogin_r_loginuid (char *name, size_t namesize)
Packit 6c4009
     attribute_hidden;
Packit 6c4009
Packit 6c4009
#  if IS_IN (rtld)
Packit 6c4009
#   include <dl-unistd.h>
Packit 6c4009
#  endif
Packit 6c4009
Packit 6c4009
# endif
Packit 6c4009
#endif