Blame posix/unistd.h

Packit Service 82fcde
/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library; if not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
/*
Packit Service 82fcde
 *	POSIX Standard: 2.10 Symbolic Constants		<unistd.h>
Packit Service 82fcde
 */
Packit Service 82fcde
Packit Service 82fcde
#ifndef	_UNISTD_H
Packit Service 82fcde
#define	_UNISTD_H	1
Packit Service 82fcde
Packit Service 82fcde
#include <features.h>
Packit Service 82fcde
Packit Service 82fcde
__BEGIN_DECLS
Packit Service 82fcde
Packit Service 82fcde
/* These may be used to determine what facilities are present at compile time.
Packit Service 82fcde
   Their values can be obtained at run time from `sysconf'.  */
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_XOPEN2K8
Packit Service 82fcde
/* POSIX Standard approved as ISO/IEC 9945-1 as of September 2008.  */
Packit Service 82fcde
# define _POSIX_VERSION	200809L
Packit Service 82fcde
#elif defined __USE_XOPEN2K
Packit Service 82fcde
/* POSIX Standard approved as ISO/IEC 9945-1 as of December 2001.  */
Packit Service 82fcde
# define _POSIX_VERSION	200112L
Packit Service 82fcde
#elif defined __USE_POSIX199506
Packit Service 82fcde
/* POSIX Standard approved as ISO/IEC 9945-1 as of June 1995.  */
Packit Service 82fcde
# define _POSIX_VERSION	199506L
Packit Service 82fcde
#elif defined __USE_POSIX199309
Packit Service 82fcde
/* POSIX Standard approved as ISO/IEC 9945-1 as of September 1993.  */
Packit Service 82fcde
# define _POSIX_VERSION	199309L
Packit Service 82fcde
#else
Packit Service 82fcde
/* POSIX Standard approved as ISO/IEC 9945-1 as of September 1990.  */
Packit Service 82fcde
# define _POSIX_VERSION	199009L
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* These are not #ifdef __USE_POSIX2 because they are
Packit Service 82fcde
   in the theoretically application-owned namespace.  */
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_XOPEN2K8
Packit Service 82fcde
# define __POSIX2_THIS_VERSION	200809L
Packit Service 82fcde
/* The utilities on GNU systems also correspond to this version.  */
Packit Service 82fcde
#elif defined __USE_XOPEN2K
Packit Service 82fcde
/* The utilities on GNU systems also correspond to this version.  */
Packit Service 82fcde
# define __POSIX2_THIS_VERSION	200112L
Packit Service 82fcde
#elif defined __USE_POSIX199506
Packit Service 82fcde
/* The utilities on GNU systems also correspond to this version.  */
Packit Service 82fcde
# define __POSIX2_THIS_VERSION	199506L
Packit Service 82fcde
#else
Packit Service 82fcde
/* The utilities on GNU systems also correspond to this version.  */
Packit Service 82fcde
# define __POSIX2_THIS_VERSION	199209L
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* The utilities on GNU systems also correspond to this version.  */
Packit Service 82fcde
#define _POSIX2_VERSION	__POSIX2_THIS_VERSION
Packit Service 82fcde
Packit Service 82fcde
/* This symbol was required until the 2001 edition of POSIX.  */
Packit Service 82fcde
#define	_POSIX2_C_VERSION	__POSIX2_THIS_VERSION
Packit Service 82fcde
Packit Service 82fcde
/* If defined, the implementation supports the
Packit Service 82fcde
   C Language Bindings Option.  */
Packit Service 82fcde
#define	_POSIX2_C_BIND	__POSIX2_THIS_VERSION
Packit Service 82fcde
Packit Service 82fcde
/* If defined, the implementation supports the
Packit Service 82fcde
   C Language Development Utilities Option.  */
Packit Service 82fcde
#define	_POSIX2_C_DEV	__POSIX2_THIS_VERSION
Packit Service 82fcde
Packit Service 82fcde
/* If defined, the implementation supports the
Packit Service 82fcde
   Software Development Utilities Option.  */
Packit Service 82fcde
#define	_POSIX2_SW_DEV	__POSIX2_THIS_VERSION
Packit Service 82fcde
Packit Service 82fcde
/* If defined, the implementation supports the
Packit Service 82fcde
   creation of locales with the localedef utility.  */
Packit Service 82fcde
#define _POSIX2_LOCALEDEF       __POSIX2_THIS_VERSION
Packit Service 82fcde
Packit Service 82fcde
/* X/Open version number to which the library conforms.  It is selectable.  */
Packit Service 82fcde
#ifdef __USE_XOPEN2K8
Packit Service 82fcde
# define _XOPEN_VERSION	700
Packit Service 82fcde
#elif defined __USE_XOPEN2K
Packit Service 82fcde
# define _XOPEN_VERSION	600
Packit Service 82fcde
#elif defined __USE_UNIX98
Packit Service 82fcde
# define _XOPEN_VERSION	500
Packit Service 82fcde
#else
Packit Service 82fcde
# define _XOPEN_VERSION	4
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Commands and utilities from XPG4 are available.  */
Packit Service 82fcde
#define _XOPEN_XCU_VERSION	4
Packit Service 82fcde
Packit Service 82fcde
/* We are compatible with the old published standards as well.  */
Packit Service 82fcde
#define _XOPEN_XPG2	1
Packit Service 82fcde
#define _XOPEN_XPG3	1
Packit Service 82fcde
#define _XOPEN_XPG4	1
Packit Service 82fcde
Packit Service 82fcde
/* The X/Open Unix extensions are available.  */
Packit Service 82fcde
#define _XOPEN_UNIX	1
Packit Service 82fcde
Packit Service 82fcde
/* The enhanced internationalization capabilities according to XPG4.2
Packit Service 82fcde
   are present.  */
Packit Service 82fcde
#define	_XOPEN_ENH_I18N	1
Packit Service 82fcde
Packit Service 82fcde
/* The legacy interfaces are also available.  */
Packit Service 82fcde
#define _XOPEN_LEGACY	1
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Get values of POSIX options:
Packit Service 82fcde
Packit Service 82fcde
   If these symbols are defined, the corresponding features are
Packit Service 82fcde
   always available.  If not, they may be available sometimes.
Packit Service 82fcde
   The current values can be obtained with `sysconf'.
Packit Service 82fcde
Packit Service 82fcde
   _POSIX_JOB_CONTROL		Job control is supported.
Packit Service 82fcde
   _POSIX_SAVED_IDS		Processes have a saved set-user-ID
Packit Service 82fcde
				and a saved set-group-ID.
Packit Service 82fcde
   _POSIX_REALTIME_SIGNALS	Real-time, queued signals are supported.
Packit Service 82fcde
   _POSIX_PRIORITY_SCHEDULING	Priority scheduling is supported.
Packit Service 82fcde
   _POSIX_TIMERS		POSIX.4 clocks and timers are supported.
Packit Service 82fcde
   _POSIX_ASYNCHRONOUS_IO	Asynchronous I/O is supported.
Packit Service 82fcde
   _POSIX_PRIORITIZED_IO	Prioritized asynchronous I/O is supported.
Packit Service 82fcde
   _POSIX_SYNCHRONIZED_IO	Synchronizing file data is supported.
Packit Service 82fcde
   _POSIX_FSYNC			The fsync function is present.
Packit Service 82fcde
   _POSIX_MAPPED_FILES		Mapping of files to memory is supported.
Packit Service 82fcde
   _POSIX_MEMLOCK		Locking of all memory is supported.
Packit Service 82fcde
   _POSIX_MEMLOCK_RANGE		Locking of ranges of memory is supported.
Packit Service 82fcde
   _POSIX_MEMORY_PROTECTION	Setting of memory protections is supported.
Packit Service 82fcde
   _POSIX_MESSAGE_PASSING	POSIX.4 message queues are supported.
Packit Service 82fcde
   _POSIX_SEMAPHORES		POSIX.4 counting semaphores are supported.
Packit Service 82fcde
   _POSIX_SHARED_MEMORY_OBJECTS	POSIX.4 shared memory objects are supported.
Packit Service 82fcde
   _POSIX_THREADS		POSIX.1c pthreads are supported.
Packit Service 82fcde
   _POSIX_THREAD_ATTR_STACKADDR	Thread stack address attribute option supported.
Packit Service 82fcde
   _POSIX_THREAD_ATTR_STACKSIZE	Thread stack size attribute option supported.
Packit Service 82fcde
   _POSIX_THREAD_SAFE_FUNCTIONS	Thread-safe functions are supported.
Packit Service 82fcde
   _POSIX_THREAD_PRIORITY_SCHEDULING
Packit Service 82fcde
				POSIX.1c thread execution scheduling supported.
Packit Service 82fcde
   _POSIX_THREAD_PRIO_INHERIT	Thread priority inheritance option supported.
Packit Service 82fcde
   _POSIX_THREAD_PRIO_PROTECT	Thread priority protection option supported.
Packit Service 82fcde
   _POSIX_THREAD_PROCESS_SHARED	Process-shared synchronization supported.
Packit Service 82fcde
   _POSIX_PII			Protocol-independent interfaces are supported.
Packit Service 82fcde
   _POSIX_PII_XTI		XTI protocol-indep. interfaces are supported.
Packit Service 82fcde
   _POSIX_PII_SOCKET		Socket protocol-indep. interfaces are supported.
Packit Service 82fcde
   _POSIX_PII_INTERNET		Internet family of protocols supported.
Packit Service 82fcde
   _POSIX_PII_INTERNET_STREAM	Connection-mode Internet protocol supported.
Packit Service 82fcde
   _POSIX_PII_INTERNET_DGRAM	Connectionless Internet protocol supported.
Packit Service 82fcde
   _POSIX_PII_OSI		ISO/OSI family of protocols supported.
Packit Service 82fcde
   _POSIX_PII_OSI_COTS		Connection-mode ISO/OSI service supported.
Packit Service 82fcde
   _POSIX_PII_OSI_CLTS		Connectionless ISO/OSI service supported.
Packit Service 82fcde
   _POSIX_POLL			Implementation supports `poll' function.
Packit Service 82fcde
   _POSIX_SELECT		Implementation supports `select' and `pselect'.
Packit Service 82fcde
Packit Service 82fcde
   _XOPEN_REALTIME		X/Open realtime support is available.
Packit Service 82fcde
   _XOPEN_REALTIME_THREADS	X/Open realtime thread support is available.
Packit Service 82fcde
   _XOPEN_SHM			Shared memory interface according to XPG4.2.
Packit Service 82fcde
Packit Service 82fcde
   _XBS5_ILP32_OFF32		Implementation provides environment with 32-bit
Packit Service 82fcde
				int, long, pointer, and off_t types.
Packit Service 82fcde
   _XBS5_ILP32_OFFBIG		Implementation provides environment with 32-bit
Packit Service 82fcde
				int, long, and pointer and off_t with at least
Packit Service 82fcde
				64 bits.
Packit Service 82fcde
   _XBS5_LP64_OFF64		Implementation provides environment with 32-bit
Packit Service 82fcde
				int, and 64-bit long, pointer, and off_t types.
Packit Service 82fcde
   _XBS5_LPBIG_OFFBIG		Implementation provides environment with at
Packit Service 82fcde
				least 32 bits int and long, pointer, and off_t
Packit Service 82fcde
				with at least 64 bits.
Packit Service 82fcde
Packit Service 82fcde
   If any of these symbols is defined as -1, the corresponding option is not
Packit Service 82fcde
   true for any file.  If any is defined as other than -1, the corresponding
Packit Service 82fcde
   option is true for all files.  If a symbol is not defined at all, the value
Packit Service 82fcde
   for a specific file can be obtained from `pathconf' and `fpathconf'.
Packit Service 82fcde
Packit Service 82fcde
   _POSIX_CHOWN_RESTRICTED	Only the super user can use `chown' to change
Packit Service 82fcde
				the owner of a file.  `chown' can only be used
Packit Service 82fcde
				to change the group ID of a file to a group of
Packit Service 82fcde
				which the calling process is a member.
Packit Service 82fcde
   _POSIX_NO_TRUNC		Pathname components longer than
Packit Service 82fcde
				NAME_MAX generate an error.
Packit Service 82fcde
   _POSIX_VDISABLE		If defined, if the value of an element of the
Packit Service 82fcde
				`c_cc' member of `struct termios' is
Packit Service 82fcde
				_POSIX_VDISABLE, no character will have the
Packit Service 82fcde
				effect associated with that element.
Packit Service 82fcde
   _POSIX_SYNC_IO		Synchronous I/O may be performed.
Packit Service 82fcde
   _POSIX_ASYNC_IO		Asynchronous I/O may be performed.
Packit Service 82fcde
   _POSIX_PRIO_IO		Prioritized Asynchronous I/O may be performed.
Packit Service 82fcde
Packit Service 82fcde
   Support for the Large File Support interface is not generally available.
Packit Service 82fcde
   If it is available the following constants are defined to one.
Packit Service 82fcde
   _LFS64_LARGEFILE		Low-level I/O supports large files.
Packit Service 82fcde
   _LFS64_STDIO			Standard I/O supports large files.
Packit Service 82fcde
   */
Packit Service 82fcde
Packit Service 82fcde
#include <bits/posix_opt.h>
Packit Service 82fcde
Packit Service 82fcde
/* Get the environment definitions from Unix98.  */
Packit Service 82fcde
#if defined __USE_UNIX98 || defined __USE_XOPEN2K
Packit Service 82fcde
# include <bits/environments.h>
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Standard file descriptors.  */
Packit Service 82fcde
#define	STDIN_FILENO	0	/* Standard input.  */
Packit Service 82fcde
#define	STDOUT_FILENO	1	/* Standard output.  */
Packit Service 82fcde
#define	STDERR_FILENO	2	/* Standard error output.  */
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* All functions that are not declared anywhere else.  */
Packit Service 82fcde
Packit Service 82fcde
#include <bits/types.h>
Packit Service 82fcde
Packit Service 82fcde
#ifndef	__ssize_t_defined
Packit Service 82fcde
typedef __ssize_t ssize_t;
Packit Service 82fcde
# define __ssize_t_defined
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#define	__need_size_t
Packit Service 82fcde
#define __need_NULL
Packit Service 82fcde
#include <stddef.h>
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_XOPEN || defined __USE_XOPEN2K
Packit Service 82fcde
/* The Single Unix specification says that some more types are
Packit Service 82fcde
   available here.  */
Packit Service 82fcde
# ifndef __gid_t_defined
Packit Service 82fcde
typedef __gid_t gid_t;
Packit Service 82fcde
#  define __gid_t_defined
Packit Service 82fcde
# endif
Packit Service 82fcde
Packit Service 82fcde
# ifndef __uid_t_defined
Packit Service 82fcde
typedef __uid_t uid_t;
Packit Service 82fcde
#  define __uid_t_defined
Packit Service 82fcde
# endif
Packit Service 82fcde
Packit Service 82fcde
# ifndef __off_t_defined
Packit Service 82fcde
#  ifndef __USE_FILE_OFFSET64
Packit Service 82fcde
typedef __off_t off_t;
Packit Service 82fcde
#  else
Packit Service 82fcde
typedef __off64_t off_t;
Packit Service 82fcde
#  endif
Packit Service 82fcde
#  define __off_t_defined
Packit Service 82fcde
# endif
Packit Service 82fcde
# if defined __USE_LARGEFILE64 && !defined __off64_t_defined
Packit Service 82fcde
typedef __off64_t off64_t;
Packit Service 82fcde
#  define __off64_t_defined
Packit Service 82fcde
# endif
Packit Service 82fcde
Packit Service 82fcde
# ifndef __useconds_t_defined
Packit Service 82fcde
typedef __useconds_t useconds_t;
Packit Service 82fcde
#  define __useconds_t_defined
Packit Service 82fcde
# endif
Packit Service 82fcde
Packit Service 82fcde
# ifndef __pid_t_defined
Packit Service 82fcde
typedef __pid_t pid_t;
Packit Service 82fcde
#  define __pid_t_defined
Packit Service 82fcde
# endif
Packit Service 82fcde
#endif	/* X/Open */
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
Packit Service 82fcde
# ifndef __intptr_t_defined
Packit Service 82fcde
typedef __intptr_t intptr_t;
Packit Service 82fcde
#  define __intptr_t_defined
Packit Service 82fcde
# endif
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_MISC || defined __USE_XOPEN
Packit Service 82fcde
# ifndef __socklen_t_defined
Packit Service 82fcde
typedef __socklen_t socklen_t;
Packit Service 82fcde
#  define __socklen_t_defined
Packit Service 82fcde
# endif
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Values for the second argument to access.
Packit Service 82fcde
   These may be OR'd together.  */
Packit Service 82fcde
#define	R_OK	4		/* Test for read permission.  */
Packit Service 82fcde
#define	W_OK	2		/* Test for write permission.  */
Packit Service 82fcde
#define	X_OK	1		/* Test for execute permission.  */
Packit Service 82fcde
#define	F_OK	0		/* Test for existence.  */
Packit Service 82fcde
Packit Service 82fcde
/* Test for access to NAME using the real UID and real GID.  */
Packit Service 82fcde
extern int access (const char *__name, int __type) __THROW __nonnull ((1));
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_GNU
Packit Service 82fcde
/* Test for access to NAME using the effective UID and GID
Packit Service 82fcde
   (as normal file operations use).  */
Packit Service 82fcde
extern int euidaccess (const char *__name, int __type)
Packit Service 82fcde
     __THROW __nonnull ((1));
Packit Service 82fcde
Packit Service 82fcde
/* An alias for `euidaccess', used by some other systems.  */
Packit Service 82fcde
extern int eaccess (const char *__name, int __type)
Packit Service 82fcde
     __THROW __nonnull ((1));
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_ATFILE
Packit Service 82fcde
/* Test for access to FILE relative to the directory FD is open on.
Packit Service 82fcde
   If AT_EACCESS is set in FLAG, then use effective IDs like `eaccess',
Packit Service 82fcde
   otherwise use real IDs like `access'.  */
Packit Service 82fcde
extern int faccessat (int __fd, const char *__file, int __type, int __flag)
Packit Service 82fcde
     __THROW __nonnull ((2)) __wur;
Packit Service 82fcde
#endif /* Use GNU.  */
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Values for the WHENCE argument to lseek.  */
Packit Service 82fcde
#ifndef	_STDIO_H		/* <stdio.h> has the same definitions.  */
Packit Service 82fcde
# define SEEK_SET	0	/* Seek from beginning of file.  */
Packit Service 82fcde
# define SEEK_CUR	1	/* Seek from current position.  */
Packit Service 82fcde
# define SEEK_END	2	/* Seek from end of file.  */
Packit Service 82fcde
# ifdef __USE_GNU
Packit Service 82fcde
#  define SEEK_DATA	3	/* Seek to next data.  */
Packit Service 82fcde
#  define SEEK_HOLE	4	/* Seek to next hole.  */
Packit Service 82fcde
# endif
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_MISC && !defined L_SET
Packit Service 82fcde
/* Old BSD names for the same constants; just for compatibility.  */
Packit Service 82fcde
# define L_SET		SEEK_SET
Packit Service 82fcde
# define L_INCR		SEEK_CUR
Packit Service 82fcde
# define L_XTND		SEEK_END
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Move FD's file position to OFFSET bytes from the
Packit Service 82fcde
   beginning of the file (if WHENCE is SEEK_SET),
Packit Service 82fcde
   the current position (if WHENCE is SEEK_CUR),
Packit Service 82fcde
   or the end of the file (if WHENCE is SEEK_END).
Packit Service 82fcde
   Return the new file position.  */
Packit Service 82fcde
#ifndef __USE_FILE_OFFSET64
Packit Service 82fcde
extern __off_t lseek (int __fd, __off_t __offset, int __whence) __THROW;
Packit Service 82fcde
#else
Packit Service 82fcde
# ifdef __REDIRECT_NTH
Packit Service 82fcde
extern __off64_t __REDIRECT_NTH (lseek,
Packit Service 82fcde
				 (int __fd, __off64_t __offset, int __whence),
Packit Service 82fcde
				 lseek64);
Packit Service 82fcde
# else
Packit Service 82fcde
#  define lseek lseek64
Packit Service 82fcde
# endif
Packit Service 82fcde
#endif
Packit Service 82fcde
#ifdef __USE_LARGEFILE64
Packit Service 82fcde
extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence)
Packit Service 82fcde
     __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Close the file descriptor FD.
Packit Service 82fcde
Packit Service 82fcde
   This function is a cancellation point and therefore not marked with
Packit Service 82fcde
   __THROW.  */
Packit Service 82fcde
extern int close (int __fd);
Packit Service 82fcde
Packit Service 82fcde
/* Read NBYTES into BUF from FD.  Return the
Packit Service 82fcde
   number read, -1 for errors or 0 for EOF.
Packit Service 82fcde
Packit Service 82fcde
   This function is a cancellation point and therefore not marked with
Packit Service 82fcde
   __THROW.  */
Packit Service 82fcde
extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur;
Packit Service 82fcde
Packit Service 82fcde
/* Write N bytes of BUF to FD.  Return the number written, or -1.
Packit Service 82fcde
Packit Service 82fcde
   This function is a cancellation point and therefore not marked with
Packit Service 82fcde
   __THROW.  */
Packit Service 82fcde
extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur;
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_UNIX98 || defined __USE_XOPEN2K8
Packit Service 82fcde
# ifndef __USE_FILE_OFFSET64
Packit Service 82fcde
/* Read NBYTES into BUF from FD at the given position OFFSET without
Packit Service 82fcde
   changing the file pointer.  Return the number read, -1 for errors
Packit Service 82fcde
   or 0 for EOF.
Packit Service 82fcde
Packit Service 82fcde
   This function is a cancellation point and therefore not marked with
Packit Service 82fcde
   __THROW.  */
Packit Service 82fcde
extern ssize_t pread (int __fd, void *__buf, size_t __nbytes,
Packit Service 82fcde
		      __off_t __offset) __wur;
Packit Service 82fcde
Packit Service 82fcde
/* Write N bytes of BUF to FD at the given position OFFSET without
Packit Service 82fcde
   changing the file pointer.  Return the number written, or -1.
Packit Service 82fcde
Packit Service 82fcde
   This function is a cancellation point and therefore not marked with
Packit Service 82fcde
   __THROW.  */
Packit Service 82fcde
extern ssize_t pwrite (int __fd, const void *__buf, size_t __n,
Packit Service 82fcde
		       __off_t __offset) __wur;
Packit Service 82fcde
# else
Packit Service 82fcde
#  ifdef __REDIRECT
Packit Service 82fcde
extern ssize_t __REDIRECT (pread, (int __fd, void *__buf, size_t __nbytes,
Packit Service 82fcde
				   __off64_t __offset),
Packit Service 82fcde
			   pread64) __wur;
Packit Service 82fcde
extern ssize_t __REDIRECT (pwrite, (int __fd, const void *__buf,
Packit Service 82fcde
				    size_t __nbytes, __off64_t __offset),
Packit Service 82fcde
			   pwrite64) __wur;
Packit Service 82fcde
#  else
Packit Service 82fcde
#   define pread pread64
Packit Service 82fcde
#   define pwrite pwrite64
Packit Service 82fcde
#  endif
Packit Service 82fcde
# endif
Packit Service 82fcde
Packit Service 82fcde
# ifdef __USE_LARGEFILE64
Packit Service 82fcde
/* Read NBYTES into BUF from FD at the given position OFFSET without
Packit Service 82fcde
   changing the file pointer.  Return the number read, -1 for errors
Packit Service 82fcde
   or 0 for EOF.  */
Packit Service 82fcde
extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes,
Packit Service 82fcde
			__off64_t __offset) __wur;
Packit Service 82fcde
/* Write N bytes of BUF to FD at the given position OFFSET without
Packit Service 82fcde
   changing the file pointer.  Return the number written, or -1.  */
Packit Service 82fcde
extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n,
Packit Service 82fcde
			 __off64_t __offset) __wur;
Packit Service 82fcde
# endif
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Create a one-way communication channel (pipe).
Packit Service 82fcde
   If successful, two file descriptors are stored in PIPEDES;
Packit Service 82fcde
   bytes written on PIPEDES[1] can be read from PIPEDES[0].
Packit Service 82fcde
   Returns 0 if successful, -1 if not.  */
Packit Service 82fcde
extern int pipe (int __pipedes[2]) __THROW __wur;
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_GNU
Packit Service 82fcde
/* Same as pipe but apply flags passed in FLAGS to the new file
Packit Service 82fcde
   descriptors.  */
Packit Service 82fcde
extern int pipe2 (int __pipedes[2], int __flags) __THROW __wur;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Schedule an alarm.  In SECONDS seconds, the process will get a SIGALRM.
Packit Service 82fcde
   If SECONDS is zero, any currently scheduled alarm will be cancelled.
Packit Service 82fcde
   The function returns the number of seconds remaining until the last
Packit Service 82fcde
   alarm scheduled would have signaled, or zero if there wasn't one.
Packit Service 82fcde
   There is no return value to indicate an error, but you can set `errno'
Packit Service 82fcde
   to 0 and check its value after calling `alarm', and this might tell you.
Packit Service 82fcde
   The signal may come late due to processor scheduling.  */
Packit Service 82fcde
extern unsigned int alarm (unsigned int __seconds) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Make the process sleep for SECONDS seconds, or until a signal arrives
Packit Service 82fcde
   and is not ignored.  The function returns the number of seconds less
Packit Service 82fcde
   than SECONDS which it actually slept (thus zero if it slept the full time).
Packit Service 82fcde
   If a signal handler does a `longjmp' or modifies the handling of the
Packit Service 82fcde
   SIGALRM signal while inside `sleep' call, the handling of the SIGALRM
Packit Service 82fcde
   signal afterwards is undefined.  There is no return value to indicate
Packit Service 82fcde
   error, but if `sleep' returns SECONDS, it probably didn't work.
Packit Service 82fcde
Packit Service 82fcde
   This function is a cancellation point and therefore not marked with
Packit Service 82fcde
   __THROW.  */
Packit Service 82fcde
extern unsigned int sleep (unsigned int __seconds);
Packit Service 82fcde
Packit Service 82fcde
#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8) \
Packit Service 82fcde
    || defined __USE_MISC
Packit Service 82fcde
/* Set an alarm to go off (generating a SIGALRM signal) in VALUE
Packit Service 82fcde
   microseconds.  If INTERVAL is nonzero, when the alarm goes off, the
Packit Service 82fcde
   timer is reset to go off every INTERVAL microseconds thereafter.
Packit Service 82fcde
   Returns the number of microseconds remaining before the alarm.  */
Packit Service 82fcde
extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)
Packit Service 82fcde
     __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Sleep USECONDS microseconds, or until a signal arrives that is not blocked
Packit Service 82fcde
   or ignored.
Packit Service 82fcde
Packit Service 82fcde
   This function is a cancellation point and therefore not marked with
Packit Service 82fcde
   __THROW.  */
Packit Service 82fcde
extern int usleep (__useconds_t __useconds);
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Suspend the process until a signal arrives.
Packit Service 82fcde
   This always returns -1 and sets `errno' to EINTR.
Packit Service 82fcde
Packit Service 82fcde
   This function is a cancellation point and therefore not marked with
Packit Service 82fcde
   __THROW.  */
Packit Service 82fcde
extern int pause (void);
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Change the owner and group of FILE.  */
Packit Service 82fcde
extern int chown (const char *__file, __uid_t __owner, __gid_t __group)
Packit Service 82fcde
     __THROW __nonnull ((1)) __wur;
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
Packit Service 82fcde
/* Change the owner and group of the file that FD is open on.  */
Packit Service 82fcde
extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __THROW __wur;
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Change owner and group of FILE, if it is a symbolic
Packit Service 82fcde
   link the ownership of the symbolic link is changed.  */
Packit Service 82fcde
extern int lchown (const char *__file, __uid_t __owner, __gid_t __group)
Packit Service 82fcde
     __THROW __nonnull ((1)) __wur;
Packit Service 82fcde
Packit Service 82fcde
#endif /* Use X/Open Unix.  */
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_ATFILE
Packit Service 82fcde
/* Change the owner and group of FILE relative to the directory FD is open
Packit Service 82fcde
   on.  */
Packit Service 82fcde
extern int fchownat (int __fd, const char *__file, __uid_t __owner,
Packit Service 82fcde
		     __gid_t __group, int __flag)
Packit Service 82fcde
     __THROW __nonnull ((2)) __wur;
Packit Service 82fcde
#endif /* Use GNU.  */
Packit Service 82fcde
Packit Service 82fcde
/* Change the process's working directory to PATH.  */
Packit Service 82fcde
extern int chdir (const char *__path) __THROW __nonnull ((1)) __wur;
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
Packit Service 82fcde
/* Change the process's working directory to the one FD is open on.  */
Packit Service 82fcde
extern int fchdir (int __fd) __THROW __wur;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Get the pathname of the current working directory,
Packit Service 82fcde
   and put it in SIZE bytes of BUF.  Returns NULL if the
Packit Service 82fcde
   directory couldn't be determined or SIZE was too small.
Packit Service 82fcde
   If successful, returns BUF.  In GNU, if BUF is NULL,
Packit Service 82fcde
   an array is allocated with `malloc'; the array is SIZE
Packit Service 82fcde
   bytes long, unless SIZE == 0, in which case it is as
Packit Service 82fcde
   big as necessary.  */
Packit Service 82fcde
extern char *getcwd (char *__buf, size_t __size) __THROW __wur;
Packit Service 82fcde
Packit Service 82fcde
#ifdef	__USE_GNU
Packit Service 82fcde
/* Return a malloc'd string containing the current directory name.
Packit Service 82fcde
   If the environment variable `PWD' is set, and its value is correct,
Packit Service 82fcde
   that value is used.  */
Packit Service 82fcde
extern char *get_current_dir_name (void) __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8) \
Packit Service 82fcde
    || defined __USE_MISC
Packit Service 82fcde
/* Put the absolute pathname of the current working directory in BUF.
Packit Service 82fcde
   If successful, return BUF.  If not, put an error message in
Packit Service 82fcde
   BUF and return NULL.  BUF should be at least PATH_MAX bytes long.  */
Packit Service 82fcde
extern char *getwd (char *__buf)
Packit Service 82fcde
     __THROW __nonnull ((1)) __attribute_deprecated__ __wur;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Duplicate FD, returning a new file descriptor on the same file.  */
Packit Service 82fcde
extern int dup (int __fd) __THROW __wur;
Packit Service 82fcde
Packit Service 82fcde
/* Duplicate FD to FD2, closing FD2 and making it open on the same file.  */
Packit Service 82fcde
extern int dup2 (int __fd, int __fd2) __THROW;
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_GNU
Packit Service 82fcde
/* Duplicate FD to FD2, closing FD2 and making it open on the same
Packit Service 82fcde
   file while setting flags according to FLAGS.  */
Packit Service 82fcde
extern int dup3 (int __fd, int __fd2, int __flags) __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* NULL-terminated array of "NAME=VALUE" environment variables.  */
Packit Service 82fcde
extern char **__environ;
Packit Service 82fcde
#ifdef __USE_GNU
Packit Service 82fcde
extern char **environ;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Replace the current process, executing PATH with arguments ARGV and
Packit Service 82fcde
   environment ENVP.  ARGV and ENVP are terminated by NULL pointers.  */
Packit Service 82fcde
extern int execve (const char *__path, char *const __argv[],
Packit Service 82fcde
		   char *const __envp[]) __THROW __nonnull ((1, 2));
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_XOPEN2K8
Packit Service 82fcde
/* Execute the file FD refers to, overlaying the running program image.
Packit Service 82fcde
   ARGV and ENVP are passed to the new program, as for `execve'.  */
Packit Service 82fcde
extern int fexecve (int __fd, char *const __argv[], char *const __envp[])
Packit Service 82fcde
     __THROW __nonnull ((2));
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Execute PATH with arguments ARGV and environment from `environ'.  */
Packit Service 82fcde
extern int execv (const char *__path, char *const __argv[])
Packit Service 82fcde
     __THROW __nonnull ((1, 2));
Packit Service 82fcde
Packit Service 82fcde
/* Execute PATH with all arguments after PATH until a NULL pointer,
Packit Service 82fcde
   and the argument after that for environment.  */
Packit Service 82fcde
extern int execle (const char *__path, const char *__arg, ...)
Packit Service 82fcde
     __THROW __nonnull ((1, 2));
Packit Service 82fcde
Packit Service 82fcde
/* Execute PATH with all arguments after PATH until
Packit Service 82fcde
   a NULL pointer and environment from `environ'.  */
Packit Service 82fcde
extern int execl (const char *__path, const char *__arg, ...)
Packit Service 82fcde
     __THROW __nonnull ((1, 2));
Packit Service 82fcde
Packit Service 82fcde
/* Execute FILE, searching in the `PATH' environment variable if it contains
Packit Service 82fcde
   no slashes, with arguments ARGV and environment from `environ'.  */
Packit Service 82fcde
extern int execvp (const char *__file, char *const __argv[])
Packit Service 82fcde
     __THROW __nonnull ((1, 2));
Packit Service 82fcde
Packit Service 82fcde
/* Execute FILE, searching in the `PATH' environment variable if
Packit Service 82fcde
   it contains no slashes, with all arguments after FILE until a
Packit Service 82fcde
   NULL pointer and environment from `environ'.  */
Packit Service 82fcde
extern int execlp (const char *__file, const char *__arg, ...)
Packit Service 82fcde
     __THROW __nonnull ((1, 2));
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_GNU
Packit Service 82fcde
/* Execute FILE, searching in the `PATH' environment variable if it contains
Packit Service 82fcde
   no slashes, with arguments ARGV and environment from `environ'.  */
Packit Service 82fcde
extern int execvpe (const char *__file, char *const __argv[],
Packit Service 82fcde
		    char *const __envp[])
Packit Service 82fcde
     __THROW __nonnull ((1, 2));
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_MISC || defined __USE_XOPEN
Packit Service 82fcde
/* Add INC to priority of the current process.  */
Packit Service 82fcde
extern int nice (int __inc) __THROW __wur;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Terminate program execution with the low-order 8 bits of STATUS.  */
Packit Service 82fcde
extern void _exit (int __status) __attribute__ ((__noreturn__));
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf';
Packit Service 82fcde
   the `_SC_*' symbols for the NAME argument to `sysconf';
Packit Service 82fcde
   and the `_CS_*' symbols for the NAME argument to `confstr'.  */
Packit Service 82fcde
#include <bits/confname.h>
Packit Service 82fcde
Packit Service 82fcde
/* Get file-specific configuration information about PATH.  */
Packit Service 82fcde
extern long int pathconf (const char *__path, int __name)
Packit Service 82fcde
     __THROW __nonnull ((1));
Packit Service 82fcde
Packit Service 82fcde
/* Get file-specific configuration about descriptor FD.  */
Packit Service 82fcde
extern long int fpathconf (int __fd, int __name) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Get the value of the system variable NAME.  */
Packit Service 82fcde
extern long int sysconf (int __name) __THROW;
Packit Service 82fcde
Packit Service 82fcde
#ifdef	__USE_POSIX2
Packit Service 82fcde
/* Get the value of the string-valued system variable NAME.  */
Packit Service 82fcde
extern size_t confstr (int __name, char *__buf, size_t __len) __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Get the process ID of the calling process.  */
Packit Service 82fcde
extern __pid_t getpid (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Get the process ID of the calling process's parent.  */
Packit Service 82fcde
extern __pid_t getppid (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Get the process group ID of the calling process.  */
Packit Service 82fcde
extern __pid_t getpgrp (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Get the process group ID of process PID.  */
Packit Service 82fcde
extern __pid_t __getpgid (__pid_t __pid) __THROW;
Packit Service 82fcde
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
Packit Service 82fcde
extern __pid_t getpgid (__pid_t __pid) __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Set the process group ID of the process matching PID to PGID.
Packit Service 82fcde
   If PID is zero, the current process's process group ID is set.
Packit Service 82fcde
   If PGID is zero, the process ID of the process is used.  */
Packit Service 82fcde
extern int setpgid (__pid_t __pid, __pid_t __pgid) __THROW;
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
Packit Service 82fcde
/* Both System V and BSD have `setpgrp' functions, but with different
Packit Service 82fcde
   calling conventions.  The BSD function is the same as POSIX.1 `setpgid'
Packit Service 82fcde
   (above).  The System V function takes no arguments and puts the calling
Packit Service 82fcde
   process in its on group like `setpgid (0, 0)'.
Packit Service 82fcde
Packit Service 82fcde
   New programs should always use `setpgid' instead.
Packit Service 82fcde
Packit Service 82fcde
   GNU provides the POSIX.1 function.  */
Packit Service 82fcde
Packit Service 82fcde
/* Set the process group ID of the calling process to its own PID.
Packit Service 82fcde
   This is exactly the same as `setpgid (0, 0)'.  */
Packit Service 82fcde
extern int setpgrp (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
#endif	/* Use misc or X/Open.  */
Packit Service 82fcde
Packit Service 82fcde
/* Create a new session with the calling process as its leader.
Packit Service 82fcde
   The process group IDs of the session and the calling process
Packit Service 82fcde
   are set to the process ID of the calling process, which is returned.  */
Packit Service 82fcde
extern __pid_t setsid (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
Packit Service 82fcde
/* Return the session ID of the given process.  */
Packit Service 82fcde
extern __pid_t getsid (__pid_t __pid) __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Get the real user ID of the calling process.  */
Packit Service 82fcde
extern __uid_t getuid (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Get the effective user ID of the calling process.  */
Packit Service 82fcde
extern __uid_t geteuid (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Get the real group ID of the calling process.  */
Packit Service 82fcde
extern __gid_t getgid (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Get the effective group ID of the calling process.  */
Packit Service 82fcde
extern __gid_t getegid (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* If SIZE is zero, return the number of supplementary groups
Packit Service 82fcde
   the calling process is in.  Otherwise, fill in the group IDs
Packit Service 82fcde
   of its supplementary groups in LIST and return the number written.  */
Packit Service 82fcde
extern int getgroups (int __size, __gid_t __list[]) __THROW __wur;
Packit Service 82fcde
Packit Service 82fcde
#ifdef	__USE_GNU
Packit Service 82fcde
/* Return nonzero iff the calling process is in group GID.  */
Packit Service 82fcde
extern int group_member (__gid_t __gid) __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Set the user ID of the calling process to UID.
Packit Service 82fcde
   If the calling process is the super-user, set the real
Packit Service 82fcde
   and effective user IDs, and the saved set-user-ID to UID;
Packit Service 82fcde
   if not, the effective user ID is set to UID.  */
Packit Service 82fcde
extern int setuid (__uid_t __uid) __THROW __wur;
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
Packit Service 82fcde
/* Set the real user ID of the calling process to RUID,
Packit Service 82fcde
   and the effective user ID of the calling process to EUID.  */
Packit Service 82fcde
extern int setreuid (__uid_t __ruid, __uid_t __euid) __THROW __wur;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_XOPEN2K
Packit Service 82fcde
/* Set the effective user ID of the calling process to UID.  */
Packit Service 82fcde
extern int seteuid (__uid_t __uid) __THROW __wur;
Packit Service 82fcde
#endif /* Use POSIX.1-2001.  */
Packit Service 82fcde
Packit Service 82fcde
/* Set the group ID of the calling process to GID.
Packit Service 82fcde
   If the calling process is the super-user, set the real
Packit Service 82fcde
   and effective group IDs, and the saved set-group-ID to GID;
Packit Service 82fcde
   if not, the effective group ID is set to GID.  */
Packit Service 82fcde
extern int setgid (__gid_t __gid) __THROW __wur;
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
Packit Service 82fcde
/* Set the real group ID of the calling process to RGID,
Packit Service 82fcde
   and the effective group ID of the calling process to EGID.  */
Packit Service 82fcde
extern int setregid (__gid_t __rgid, __gid_t __egid) __THROW __wur;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_XOPEN2K
Packit Service 82fcde
/* Set the effective group ID of the calling process to GID.  */
Packit Service 82fcde
extern int setegid (__gid_t __gid) __THROW __wur;
Packit Service 82fcde
#endif /* Use POSIX.1-2001.  */
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_GNU
Packit Service 82fcde
/* Fetch the real user ID, effective user ID, and saved-set user ID,
Packit Service 82fcde
   of the calling process.  */
Packit Service 82fcde
extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid)
Packit Service 82fcde
     __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Fetch the real group ID, effective group ID, and saved-set group ID,
Packit Service 82fcde
   of the calling process.  */
Packit Service 82fcde
extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid)
Packit Service 82fcde
     __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Set the real user ID, effective user ID, and saved-set user ID,
Packit Service 82fcde
   of the calling process to RUID, EUID, and SUID, respectively.  */
Packit Service 82fcde
extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid)
Packit Service 82fcde
     __THROW __wur;
Packit Service 82fcde
Packit Service 82fcde
/* Set the real group ID, effective group ID, and saved-set group ID,
Packit Service 82fcde
   of the calling process to RGID, EGID, and SGID, respectively.  */
Packit Service 82fcde
extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid)
Packit Service 82fcde
     __THROW __wur;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Clone the calling process, creating an exact copy.
Packit Service 82fcde
   Return -1 for errors, 0 to the new process,
Packit Service 82fcde
   and the process ID of the new process to the old process.  */
Packit Service 82fcde
extern __pid_t fork (void) __THROWNL;
Packit Service 82fcde
Packit Service 82fcde
#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8) \
Packit Service 82fcde
    || defined __USE_MISC
Packit Service 82fcde
/* Clone the calling process, but without copying the whole address space.
Packit Service 82fcde
   The calling process is suspended until the new process exits or is
Packit Service 82fcde
   replaced by a call to `execve'.  Return -1 for errors, 0 to the new process,
Packit Service 82fcde
   and the process ID of the new process to the old process.  */
Packit Service 82fcde
extern __pid_t vfork (void) __THROW;
Packit Service 82fcde
#endif /* Use misc or XPG < 7. */
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Return the pathname of the terminal FD is open on, or NULL on errors.
Packit Service 82fcde
   The returned storage is good only until the next call to this function.  */
Packit Service 82fcde
extern char *ttyname (int __fd) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Store at most BUFLEN characters of the pathname of the terminal FD is
Packit Service 82fcde
   open on in BUF.  Return 0 on success, otherwise an error number.  */
Packit Service 82fcde
extern int ttyname_r (int __fd, char *__buf, size_t __buflen)
Packit Service 82fcde
     __THROW __nonnull ((2)) __wur;
Packit Service 82fcde
Packit Service 82fcde
/* Return 1 if FD is a valid descriptor associated
Packit Service 82fcde
   with a terminal, zero if not.  */
Packit Service 82fcde
extern int isatty (int __fd) __THROW;
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_MISC
Packit Service 82fcde
/* Return the index into the active-logins file (utmp) for
Packit Service 82fcde
   the controlling terminal.  */
Packit Service 82fcde
extern int ttyslot (void) __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Make a link to FROM named TO.  */
Packit Service 82fcde
extern int link (const char *__from, const char *__to)
Packit Service 82fcde
     __THROW __nonnull ((1, 2)) __wur;
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_ATFILE
Packit Service 82fcde
/* Like link but relative paths in TO and FROM are interpreted relative
Packit Service 82fcde
   to FROMFD and TOFD respectively.  */
Packit Service 82fcde
extern int linkat (int __fromfd, const char *__from, int __tofd,
Packit Service 82fcde
		   const char *__to, int __flags)
Packit Service 82fcde
     __THROW __nonnull ((2, 4)) __wur;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
Packit Service 82fcde
/* Make a symbolic link to FROM named TO.  */
Packit Service 82fcde
extern int symlink (const char *__from, const char *__to)
Packit Service 82fcde
     __THROW __nonnull ((1, 2)) __wur;
Packit Service 82fcde
Packit Service 82fcde
/* Read the contents of the symbolic link PATH into no more than
Packit Service 82fcde
   LEN bytes of BUF.  The contents are not null-terminated.
Packit Service 82fcde
   Returns the number of characters read, or -1 for errors.  */
Packit Service 82fcde
extern ssize_t readlink (const char *__restrict __path,
Packit Service 82fcde
			 char *__restrict __buf, size_t __len)
Packit Service 82fcde
     __THROW __nonnull ((1, 2)) __wur;
Packit Service 82fcde
#endif /* Use POSIX.1-2001.  */
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_ATFILE
Packit Service 82fcde
/* Like symlink but a relative path in TO is interpreted relative to TOFD.  */
Packit Service 82fcde
extern int symlinkat (const char *__from, int __tofd,
Packit Service 82fcde
		      const char *__to) __THROW __nonnull ((1, 3)) __wur;
Packit Service 82fcde
Packit Service 82fcde
/* Like readlink but a relative PATH is interpreted relative to FD.  */
Packit Service 82fcde
extern ssize_t readlinkat (int __fd, const char *__restrict __path,
Packit Service 82fcde
			   char *__restrict __buf, size_t __len)
Packit Service 82fcde
     __THROW __nonnull ((2, 3)) __wur;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Remove the link NAME.  */
Packit Service 82fcde
extern int unlink (const char *__name) __THROW __nonnull ((1));
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_ATFILE
Packit Service 82fcde
/* Remove the link NAME relative to FD.  */
Packit Service 82fcde
extern int unlinkat (int __fd, const char *__name, int __flag)
Packit Service 82fcde
     __THROW __nonnull ((2));
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Remove the directory PATH.  */
Packit Service 82fcde
extern int rmdir (const char *__path) __THROW __nonnull ((1));
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Return the foreground process group ID of FD.  */
Packit Service 82fcde
extern __pid_t tcgetpgrp (int __fd) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Set the foreground process group ID of FD set PGRP_ID.  */
Packit Service 82fcde
extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __THROW;
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Return the login name of the user.
Packit Service 82fcde
Packit Service 82fcde
   This function is a possible cancellation point and therefore not
Packit Service 82fcde
   marked with __THROW.  */
Packit Service 82fcde
extern char *getlogin (void);
Packit Service 82fcde
#ifdef __USE_POSIX199506
Packit Service 82fcde
/* Return at most NAME_LEN characters of the login name of the user in NAME.
Packit Service 82fcde
   If it cannot be determined or some other error occurred, return the error
Packit Service 82fcde
   code.  Otherwise return 0.
Packit Service 82fcde
Packit Service 82fcde
   This function is a possible cancellation point and therefore not
Packit Service 82fcde
   marked with __THROW.  */
Packit Service 82fcde
extern int getlogin_r (char *__name, size_t __name_len) __nonnull ((1));
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#ifdef	__USE_MISC
Packit Service 82fcde
/* Set the login name returned by `getlogin'.  */
Packit Service 82fcde
extern int setlogin (const char *__name) __THROW __nonnull ((1));
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#ifdef	__USE_POSIX2
Packit Service 82fcde
/* Get definitions and prototypes for functions to process the
Packit Service 82fcde
   arguments in ARGV (ARGC of them, minus the program name) for
Packit Service 82fcde
   options given in OPTS.  */
Packit Service 82fcde
# include <bits/getopt_posix.h>
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
Packit Service 82fcde
/* Put the name of the current host in no more than LEN bytes of NAME.
Packit Service 82fcde
   The result is null-terminated if LEN is large enough for the full
Packit Service 82fcde
   name and the terminator.  */
Packit Service 82fcde
extern int gethostname (char *__name, size_t __len) __THROW __nonnull ((1));
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_MISC
Packit Service 82fcde
/* Set the name of the current host to NAME, which is LEN bytes long.
Packit Service 82fcde
   This call is restricted to the super-user.  */
Packit Service 82fcde
extern int sethostname (const char *__name, size_t __len)
Packit Service 82fcde
     __THROW __nonnull ((1)) __wur;
Packit Service 82fcde
Packit Service 82fcde
/* Set the current machine's Internet number to ID.
Packit Service 82fcde
   This call is restricted to the super-user.  */
Packit Service 82fcde
extern int sethostid (long int __id) __THROW __wur;
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Get and set the NIS (aka YP) domain name, if any.
Packit Service 82fcde
   Called just like `gethostname' and `sethostname'.
Packit Service 82fcde
   The NIS domain name is usually the empty string when not using NIS.  */
Packit Service 82fcde
extern int getdomainname (char *__name, size_t __len)
Packit Service 82fcde
     __THROW __nonnull ((1)) __wur;
Packit Service 82fcde
extern int setdomainname (const char *__name, size_t __len)
Packit Service 82fcde
     __THROW __nonnull ((1)) __wur;
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Revoke access permissions to all processes currently communicating
Packit Service 82fcde
   with the control terminal, and then send a SIGHUP signal to the process
Packit Service 82fcde
   group of the control terminal.  */
Packit Service 82fcde
extern int vhangup (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Revoke the access of all descriptors currently open on FILE.  */
Packit Service 82fcde
extern int revoke (const char *__file) __THROW __nonnull ((1)) __wur;
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Enable statistical profiling, writing samples of the PC into at most
Packit Service 82fcde
   SIZE bytes of SAMPLE_BUFFER; every processor clock tick while profiling
Packit Service 82fcde
   is enabled, the system examines the user PC and increments
Packit Service 82fcde
   SAMPLE_BUFFER[((PC - OFFSET) / 2) * SCALE / 65536].  If SCALE is zero,
Packit Service 82fcde
   disable profiling.  Returns zero on success, -1 on error.  */
Packit Service 82fcde
extern int profil (unsigned short int *__sample_buffer, size_t __size,
Packit Service 82fcde
		   size_t __offset, unsigned int __scale)
Packit Service 82fcde
     __THROW __nonnull ((1));
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Turn accounting on if NAME is an existing file.  The system will then write
Packit Service 82fcde
   a record for each process as it terminates, to this file.  If NAME is NULL,
Packit Service 82fcde
   turn accounting off.  This call is restricted to the super-user.  */
Packit Service 82fcde
extern int acct (const char *__name) __THROW;
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Successive calls return the shells listed in `/etc/shells'.  */
Packit Service 82fcde
extern char *getusershell (void) __THROW;
Packit Service 82fcde
extern void endusershell (void) __THROW; /* Discard cached info.  */
Packit Service 82fcde
extern void setusershell (void) __THROW; /* Rewind and re-read the file.  */
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Put the program in the background, and dissociate from the controlling
Packit Service 82fcde
   terminal.  If NOCHDIR is zero, do `chdir ("/")'.  If NOCLOSE is zero,
Packit Service 82fcde
   redirects stdin, stdout, and stderr to /dev/null.  */
Packit Service 82fcde
extern int daemon (int __nochdir, int __noclose) __THROW __wur;
Packit Service 82fcde
#endif /* Use misc.  */
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
Packit Service 82fcde
/* Make PATH be the root directory (the starting point for absolute paths).
Packit Service 82fcde
   This call is restricted to the super-user.  */
Packit Service 82fcde
extern int chroot (const char *__path) __THROW __nonnull ((1)) __wur;
Packit Service 82fcde
Packit Service 82fcde
/* Prompt with PROMPT and read a string from the terminal without echoing.
Packit Service 82fcde
   Uses /dev/tty if possible; otherwise stderr and stdin.  */
Packit Service 82fcde
extern char *getpass (const char *__prompt) __nonnull ((1));
Packit Service 82fcde
#endif /* Use misc || X/Open.  */
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Make all changes done to FD actually appear on disk.
Packit Service 82fcde
Packit Service 82fcde
   This function is a cancellation point and therefore not marked with
Packit Service 82fcde
   __THROW.  */
Packit Service 82fcde
extern int fsync (int __fd);
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_GNU
Packit Service 82fcde
/* Make all changes done to all files on the file system associated
Packit Service 82fcde
   with FD actually appear on disk.  */
Packit Service 82fcde
extern int syncfs (int __fd) __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
Packit Service 82fcde
Packit Service 82fcde
/* Return identifier for the current host.  */
Packit Service 82fcde
extern long int gethostid (void);
Packit Service 82fcde
Packit Service 82fcde
/* Make all changes done to all files actually appear on disk.  */
Packit Service 82fcde
extern void sync (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
# if defined __USE_MISC || !defined __USE_XOPEN2K
Packit Service 82fcde
/* Return the number of bytes in a page.  This is the system's page size,
Packit Service 82fcde
   which is not necessarily the same as the hardware page size.  */
Packit Service 82fcde
extern int getpagesize (void)  __THROW __attribute__ ((__const__));
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Return the maximum number of file descriptors
Packit Service 82fcde
   the current process could possibly have.  */
Packit Service 82fcde
extern int getdtablesize (void) __THROW;
Packit Service 82fcde
# endif
Packit Service 82fcde
Packit Service 82fcde
#endif /* Use misc || X/Open Unix.  */
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
Packit Service 82fcde
Packit Service 82fcde
/* Truncate FILE to LENGTH bytes.  */
Packit Service 82fcde
# ifndef __USE_FILE_OFFSET64
Packit Service 82fcde
extern int truncate (const char *__file, __off_t __length)
Packit Service 82fcde
     __THROW __nonnull ((1)) __wur;
Packit Service 82fcde
# else
Packit Service 82fcde
#  ifdef __REDIRECT_NTH
Packit Service 82fcde
extern int __REDIRECT_NTH (truncate,
Packit Service 82fcde
			   (const char *__file, __off64_t __length),
Packit Service 82fcde
			   truncate64) __nonnull ((1)) __wur;
Packit Service 82fcde
#  else
Packit Service 82fcde
#   define truncate truncate64
Packit Service 82fcde
#  endif
Packit Service 82fcde
# endif
Packit Service 82fcde
# ifdef __USE_LARGEFILE64
Packit Service 82fcde
extern int truncate64 (const char *__file, __off64_t __length)
Packit Service 82fcde
     __THROW __nonnull ((1)) __wur;
Packit Service 82fcde
# endif
Packit Service 82fcde
Packit Service 82fcde
#endif /* Use X/Open Unix || POSIX 2008.  */
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_POSIX199309 \
Packit Service 82fcde
    || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
Packit Service 82fcde
Packit Service 82fcde
/* Truncate the file FD is open on to LENGTH bytes.  */
Packit Service 82fcde
# ifndef __USE_FILE_OFFSET64
Packit Service 82fcde
extern int ftruncate (int __fd, __off_t __length) __THROW __wur;
Packit Service 82fcde
# else
Packit Service 82fcde
#  ifdef __REDIRECT_NTH
Packit Service 82fcde
extern int __REDIRECT_NTH (ftruncate, (int __fd, __off64_t __length),
Packit Service 82fcde
			   ftruncate64) __wur;
Packit Service 82fcde
#  else
Packit Service 82fcde
#   define ftruncate ftruncate64
Packit Service 82fcde
#  endif
Packit Service 82fcde
# endif
Packit Service 82fcde
# ifdef __USE_LARGEFILE64
Packit Service 82fcde
extern int ftruncate64 (int __fd, __off64_t __length) __THROW __wur;
Packit Service 82fcde
# endif
Packit Service 82fcde
Packit Service 82fcde
#endif /* Use POSIX.1b || X/Open Unix || XPG6.  */
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K) \
Packit Service 82fcde
    || defined __USE_MISC
Packit Service 82fcde
Packit Service 82fcde
/* Set the end of accessible data space (aka "the break") to ADDR.
Packit Service 82fcde
   Returns zero on success and -1 for errors (with errno set).  */
Packit Service 82fcde
extern int brk (void *__addr) __THROW __wur;
Packit Service 82fcde
Packit Service 82fcde
/* Increase or decrease the end of accessible data space by DELTA bytes.
Packit Service 82fcde
   If successful, returns the address the previous end of data space
Packit Service 82fcde
   (i.e. the beginning of the new space, if DELTA > 0);
Packit Service 82fcde
   returns (void *) -1 for errors (with errno set).  */
Packit Service 82fcde
extern void *sbrk (intptr_t __delta) __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_MISC
Packit Service 82fcde
/* Invoke `system call' number SYSNO, passing it the remaining arguments.
Packit Service 82fcde
   This is completely system-dependent, and not often useful.
Packit Service 82fcde
Packit Service 82fcde
   In Unix, `syscall' sets `errno' for all errors and most calls return -1
Packit Service 82fcde
   for errors; in many systems you cannot pass arguments or get return
Packit Service 82fcde
   values for all system calls (`pipe', `fork', and `getppid' typically
Packit Service 82fcde
   among them).
Packit Service 82fcde
Packit Service 82fcde
   In Mach, all system calls take normal arguments and always return an
Packit Service 82fcde
   error code (zero for success).  */
Packit Service 82fcde
extern long int syscall (long int __sysno, ...) __THROW;
Packit Service 82fcde
Packit Service 82fcde
#endif	/* Use misc.  */
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#if (defined __USE_MISC || defined __USE_XOPEN_EXTENDED) && !defined F_LOCK
Packit Service 82fcde
/* NOTE: These declarations also appear in <fcntl.h>; be sure to keep both
Packit Service 82fcde
   files consistent.  Some systems have them there and some here, and some
Packit Service 82fcde
   software depends on the macros being defined without including both.  */
Packit Service 82fcde
Packit Service 82fcde
/* `lockf' is a simpler interface to the locking facilities of `fcntl'.
Packit Service 82fcde
   LEN is always relative to the current file position.
Packit Service 82fcde
   The CMD argument is one of the following.
Packit Service 82fcde
Packit Service 82fcde
   This function is a cancellation point and therefore not marked with
Packit Service 82fcde
   __THROW.  */
Packit Service 82fcde
Packit Service 82fcde
# define F_ULOCK 0	/* Unlock a previously locked region.  */
Packit Service 82fcde
# define F_LOCK  1	/* Lock a region for exclusive use.  */
Packit Service 82fcde
# define F_TLOCK 2	/* Test and lock a region for exclusive use.  */
Packit Service 82fcde
# define F_TEST  3	/* Test a region for other processes locks.  */
Packit Service 82fcde
Packit Service 82fcde
# ifndef __USE_FILE_OFFSET64
Packit Service 82fcde
extern int lockf (int __fd, int __cmd, __off_t __len) __wur;
Packit Service 82fcde
# else
Packit Service 82fcde
#  ifdef __REDIRECT
Packit Service 82fcde
extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len),
Packit Service 82fcde
		       lockf64) __wur;
Packit Service 82fcde
#  else
Packit Service 82fcde
#   define lockf lockf64
Packit Service 82fcde
#  endif
Packit Service 82fcde
# endif
Packit Service 82fcde
# ifdef __USE_LARGEFILE64
Packit Service 82fcde
extern int lockf64 (int __fd, int __cmd, __off64_t __len) __wur;
Packit Service 82fcde
# endif
Packit Service 82fcde
#endif /* Use misc and F_LOCK not already defined.  */
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_GNU
Packit Service 82fcde
Packit Service 82fcde
/* Evaluate EXPRESSION, and repeat as long as it returns -1 with `errno'
Packit Service 82fcde
   set to EINTR.  */
Packit Service 82fcde
Packit Service 82fcde
# define TEMP_FAILURE_RETRY(expression) \
Packit Service 82fcde
  (__extension__							      \
Packit Service 82fcde
    ({ long int __result;						      \
Packit Service 82fcde
       do __result = (long int) (expression);				      \
Packit Service 82fcde
       while (__result == -1L && errno == EINTR);			      \
Packit Service 82fcde
       __result; }))
Packit Service 82fcde
Packit Service 82fcde
/* Copy LENGTH bytes from INFD to OUTFD.  */
Packit Service 82fcde
ssize_t copy_file_range (int __infd, __off64_t *__pinoff,
Packit Service 82fcde
			 int __outfd, __off64_t *__poutoff,
Packit Service 82fcde
			 size_t __length, unsigned int __flags);
Packit Service 82fcde
#endif /* __USE_GNU */
Packit Service 82fcde
Packit Service 82fcde
#if defined __USE_POSIX199309 || defined __USE_UNIX98
Packit Service 82fcde
/* Synchronize at least the data part of a file with the underlying
Packit Service 82fcde
   media.  */
Packit Service 82fcde
extern int fdatasync (int __fildes);
Packit Service 82fcde
#endif /* Use POSIX199309 */
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_MISC
Packit Service 82fcde
/* One-way hash PHRASE, returning a string suitable for storage in the
Packit Service 82fcde
   user database.  SALT selects the one-way function to use, and
Packit Service 82fcde
   ensures that no two users' hashes are the same, even if they use
Packit Service 82fcde
   the same passphrase.  The return value points to static storage
Packit Service 82fcde
   which will be overwritten by the next call to crypt.  */
Packit Service 82fcde
extern char *crypt (const char *__key, const char *__salt)
Packit Service 82fcde
     __THROW __nonnull ((1, 2));
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#ifdef	__USE_XOPEN
Packit Service 82fcde
/* Swab pairs bytes in the first N bytes of the area pointed to by
Packit Service 82fcde
   FROM and copy the result to TO.  The value of TO must not be in the
Packit Service 82fcde
   range [FROM - N + 1, FROM - 1].  If N is odd the first byte in FROM
Packit Service 82fcde
   is without partner.  */
Packit Service 82fcde
extern void swab (const void *__restrict __from, void *__restrict __to,
Packit Service 82fcde
		  ssize_t __n) __THROW __nonnull ((1, 2));
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Prior to Issue 6, the Single Unix Specification required these
Packit Service 82fcde
   prototypes to appear in this header.  They are also found in
Packit Service 82fcde
   <stdio.h>.  */
Packit Service 82fcde
#if defined __USE_XOPEN && !defined __USE_XOPEN2K
Packit Service 82fcde
/* Return the name of the controlling terminal.  */
Packit Service 82fcde
extern char *ctermid (char *__s) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Return the name of the current user.  */
Packit Service 82fcde
extern char *cuserid (char *__s);
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
/* Unix98 requires this function to be declared here.  In other
Packit Service 82fcde
   standards it is in <pthread.h>.  */
Packit Service 82fcde
#if defined __USE_UNIX98 && !defined __USE_XOPEN2K
Packit Service 82fcde
extern int pthread_atfork (void (*__prepare) (void),
Packit Service 82fcde
			   void (*__parent) (void),
Packit Service 82fcde
			   void (*__child) (void)) __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_MISC
Packit Service 82fcde
/* Write LENGTH bytes of randomness starting at BUFFER.  Return 0 on
Packit Service 82fcde
   success or -1 on error.  */
Packit Service 82fcde
int getentropy (void *__buffer, size_t __length) __wur;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Define some macros helping to catch buffer overflows.  */
Packit Service 82fcde
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
Packit Service 82fcde
# include <bits/unistd.h>
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
__END_DECLS
Packit Service 82fcde
Packit Service 82fcde
#endif /* unistd.h  */