Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include
File: unistd.h
/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* POSIX Standard: 2.10 Symbolic Constants <unistd.h>
[18] Fix | Delete
*/
[19] Fix | Delete
[20] Fix | Delete
#ifndef _UNISTD_H
[21] Fix | Delete
#define _UNISTD_H 1
[22] Fix | Delete
[23] Fix | Delete
#include <features.h>
[24] Fix | Delete
[25] Fix | Delete
__BEGIN_DECLS
[26] Fix | Delete
[27] Fix | Delete
/* These may be used to determine what facilities are present at compile time.
[28] Fix | Delete
Their values can be obtained at run time from `sysconf'. */
[29] Fix | Delete
[30] Fix | Delete
#ifdef __USE_XOPEN2K8
[31] Fix | Delete
/* POSIX Standard approved as ISO/IEC 9945-1 as of September 2008. */
[32] Fix | Delete
# define _POSIX_VERSION 200809L
[33] Fix | Delete
#elif defined __USE_XOPEN2K
[34] Fix | Delete
/* POSIX Standard approved as ISO/IEC 9945-1 as of December 2001. */
[35] Fix | Delete
# define _POSIX_VERSION 200112L
[36] Fix | Delete
#elif defined __USE_POSIX199506
[37] Fix | Delete
/* POSIX Standard approved as ISO/IEC 9945-1 as of June 1995. */
[38] Fix | Delete
# define _POSIX_VERSION 199506L
[39] Fix | Delete
#elif defined __USE_POSIX199309
[40] Fix | Delete
/* POSIX Standard approved as ISO/IEC 9945-1 as of September 1993. */
[41] Fix | Delete
# define _POSIX_VERSION 199309L
[42] Fix | Delete
#else
[43] Fix | Delete
/* POSIX Standard approved as ISO/IEC 9945-1 as of September 1990. */
[44] Fix | Delete
# define _POSIX_VERSION 199009L
[45] Fix | Delete
#endif
[46] Fix | Delete
[47] Fix | Delete
/* These are not #ifdef __USE_POSIX2 because they are
[48] Fix | Delete
in the theoretically application-owned namespace. */
[49] Fix | Delete
[50] Fix | Delete
#ifdef __USE_XOPEN2K8
[51] Fix | Delete
# define __POSIX2_THIS_VERSION 200809L
[52] Fix | Delete
/* The utilities on GNU systems also correspond to this version. */
[53] Fix | Delete
#elif defined __USE_XOPEN2K
[54] Fix | Delete
/* The utilities on GNU systems also correspond to this version. */
[55] Fix | Delete
# define __POSIX2_THIS_VERSION 200112L
[56] Fix | Delete
#elif defined __USE_POSIX199506
[57] Fix | Delete
/* The utilities on GNU systems also correspond to this version. */
[58] Fix | Delete
# define __POSIX2_THIS_VERSION 199506L
[59] Fix | Delete
#else
[60] Fix | Delete
/* The utilities on GNU systems also correspond to this version. */
[61] Fix | Delete
# define __POSIX2_THIS_VERSION 199209L
[62] Fix | Delete
#endif
[63] Fix | Delete
[64] Fix | Delete
/* The utilities on GNU systems also correspond to this version. */
[65] Fix | Delete
#define _POSIX2_VERSION __POSIX2_THIS_VERSION
[66] Fix | Delete
[67] Fix | Delete
/* This symbol was required until the 2001 edition of POSIX. */
[68] Fix | Delete
#define _POSIX2_C_VERSION __POSIX2_THIS_VERSION
[69] Fix | Delete
[70] Fix | Delete
/* If defined, the implementation supports the
[71] Fix | Delete
C Language Bindings Option. */
[72] Fix | Delete
#define _POSIX2_C_BIND __POSIX2_THIS_VERSION
[73] Fix | Delete
[74] Fix | Delete
/* If defined, the implementation supports the
[75] Fix | Delete
C Language Development Utilities Option. */
[76] Fix | Delete
#define _POSIX2_C_DEV __POSIX2_THIS_VERSION
[77] Fix | Delete
[78] Fix | Delete
/* If defined, the implementation supports the
[79] Fix | Delete
Software Development Utilities Option. */
[80] Fix | Delete
#define _POSIX2_SW_DEV __POSIX2_THIS_VERSION
[81] Fix | Delete
[82] Fix | Delete
/* If defined, the implementation supports the
[83] Fix | Delete
creation of locales with the localedef utility. */
[84] Fix | Delete
#define _POSIX2_LOCALEDEF __POSIX2_THIS_VERSION
[85] Fix | Delete
[86] Fix | Delete
/* X/Open version number to which the library conforms. It is selectable. */
[87] Fix | Delete
#ifdef __USE_XOPEN2K8
[88] Fix | Delete
# define _XOPEN_VERSION 700
[89] Fix | Delete
#elif defined __USE_XOPEN2K
[90] Fix | Delete
# define _XOPEN_VERSION 600
[91] Fix | Delete
#elif defined __USE_UNIX98
[92] Fix | Delete
# define _XOPEN_VERSION 500
[93] Fix | Delete
#else
[94] Fix | Delete
# define _XOPEN_VERSION 4
[95] Fix | Delete
#endif
[96] Fix | Delete
[97] Fix | Delete
/* Commands and utilities from XPG4 are available. */
[98] Fix | Delete
#define _XOPEN_XCU_VERSION 4
[99] Fix | Delete
[100] Fix | Delete
/* We are compatible with the old published standards as well. */
[101] Fix | Delete
#define _XOPEN_XPG2 1
[102] Fix | Delete
#define _XOPEN_XPG3 1
[103] Fix | Delete
#define _XOPEN_XPG4 1
[104] Fix | Delete
[105] Fix | Delete
/* The X/Open Unix extensions are available. */
[106] Fix | Delete
#define _XOPEN_UNIX 1
[107] Fix | Delete
[108] Fix | Delete
/* The enhanced internationalization capabilities according to XPG4.2
[109] Fix | Delete
are present. */
[110] Fix | Delete
#define _XOPEN_ENH_I18N 1
[111] Fix | Delete
[112] Fix | Delete
/* The legacy interfaces are also available. */
[113] Fix | Delete
#define _XOPEN_LEGACY 1
[114] Fix | Delete
[115] Fix | Delete
[116] Fix | Delete
/* Get values of POSIX options:
[117] Fix | Delete
[118] Fix | Delete
If these symbols are defined, the corresponding features are
[119] Fix | Delete
always available. If not, they may be available sometimes.
[120] Fix | Delete
The current values can be obtained with `sysconf'.
[121] Fix | Delete
[122] Fix | Delete
_POSIX_JOB_CONTROL Job control is supported.
[123] Fix | Delete
_POSIX_SAVED_IDS Processes have a saved set-user-ID
[124] Fix | Delete
and a saved set-group-ID.
[125] Fix | Delete
_POSIX_REALTIME_SIGNALS Real-time, queued signals are supported.
[126] Fix | Delete
_POSIX_PRIORITY_SCHEDULING Priority scheduling is supported.
[127] Fix | Delete
_POSIX_TIMERS POSIX.4 clocks and timers are supported.
[128] Fix | Delete
_POSIX_ASYNCHRONOUS_IO Asynchronous I/O is supported.
[129] Fix | Delete
_POSIX_PRIORITIZED_IO Prioritized asynchronous I/O is supported.
[130] Fix | Delete
_POSIX_SYNCHRONIZED_IO Synchronizing file data is supported.
[131] Fix | Delete
_POSIX_FSYNC The fsync function is present.
[132] Fix | Delete
_POSIX_MAPPED_FILES Mapping of files to memory is supported.
[133] Fix | Delete
_POSIX_MEMLOCK Locking of all memory is supported.
[134] Fix | Delete
_POSIX_MEMLOCK_RANGE Locking of ranges of memory is supported.
[135] Fix | Delete
_POSIX_MEMORY_PROTECTION Setting of memory protections is supported.
[136] Fix | Delete
_POSIX_MESSAGE_PASSING POSIX.4 message queues are supported.
[137] Fix | Delete
_POSIX_SEMAPHORES POSIX.4 counting semaphores are supported.
[138] Fix | Delete
_POSIX_SHARED_MEMORY_OBJECTS POSIX.4 shared memory objects are supported.
[139] Fix | Delete
_POSIX_THREADS POSIX.1c pthreads are supported.
[140] Fix | Delete
_POSIX_THREAD_ATTR_STACKADDR Thread stack address attribute option supported.
[141] Fix | Delete
_POSIX_THREAD_ATTR_STACKSIZE Thread stack size attribute option supported.
[142] Fix | Delete
_POSIX_THREAD_SAFE_FUNCTIONS Thread-safe functions are supported.
[143] Fix | Delete
_POSIX_THREAD_PRIORITY_SCHEDULING
[144] Fix | Delete
POSIX.1c thread execution scheduling supported.
[145] Fix | Delete
_POSIX_THREAD_PRIO_INHERIT Thread priority inheritance option supported.
[146] Fix | Delete
_POSIX_THREAD_PRIO_PROTECT Thread priority protection option supported.
[147] Fix | Delete
_POSIX_THREAD_PROCESS_SHARED Process-shared synchronization supported.
[148] Fix | Delete
_POSIX_PII Protocol-independent interfaces are supported.
[149] Fix | Delete
_POSIX_PII_XTI XTI protocol-indep. interfaces are supported.
[150] Fix | Delete
_POSIX_PII_SOCKET Socket protocol-indep. interfaces are supported.
[151] Fix | Delete
_POSIX_PII_INTERNET Internet family of protocols supported.
[152] Fix | Delete
_POSIX_PII_INTERNET_STREAM Connection-mode Internet protocol supported.
[153] Fix | Delete
_POSIX_PII_INTERNET_DGRAM Connectionless Internet protocol supported.
[154] Fix | Delete
_POSIX_PII_OSI ISO/OSI family of protocols supported.
[155] Fix | Delete
_POSIX_PII_OSI_COTS Connection-mode ISO/OSI service supported.
[156] Fix | Delete
_POSIX_PII_OSI_CLTS Connectionless ISO/OSI service supported.
[157] Fix | Delete
_POSIX_POLL Implementation supports `poll' function.
[158] Fix | Delete
_POSIX_SELECT Implementation supports `select' and `pselect'.
[159] Fix | Delete
[160] Fix | Delete
_XOPEN_REALTIME X/Open realtime support is available.
[161] Fix | Delete
_XOPEN_REALTIME_THREADS X/Open realtime thread support is available.
[162] Fix | Delete
_XOPEN_SHM Shared memory interface according to XPG4.2.
[163] Fix | Delete
[164] Fix | Delete
_XBS5_ILP32_OFF32 Implementation provides environment with 32-bit
[165] Fix | Delete
int, long, pointer, and off_t types.
[166] Fix | Delete
_XBS5_ILP32_OFFBIG Implementation provides environment with 32-bit
[167] Fix | Delete
int, long, and pointer and off_t with at least
[168] Fix | Delete
64 bits.
[169] Fix | Delete
_XBS5_LP64_OFF64 Implementation provides environment with 32-bit
[170] Fix | Delete
int, and 64-bit long, pointer, and off_t types.
[171] Fix | Delete
_XBS5_LPBIG_OFFBIG Implementation provides environment with at
[172] Fix | Delete
least 32 bits int and long, pointer, and off_t
[173] Fix | Delete
with at least 64 bits.
[174] Fix | Delete
[175] Fix | Delete
If any of these symbols is defined as -1, the corresponding option is not
[176] Fix | Delete
true for any file. If any is defined as other than -1, the corresponding
[177] Fix | Delete
option is true for all files. If a symbol is not defined at all, the value
[178] Fix | Delete
for a specific file can be obtained from `pathconf' and `fpathconf'.
[179] Fix | Delete
[180] Fix | Delete
_POSIX_CHOWN_RESTRICTED Only the super user can use `chown' to change
[181] Fix | Delete
the owner of a file. `chown' can only be used
[182] Fix | Delete
to change the group ID of a file to a group of
[183] Fix | Delete
which the calling process is a member.
[184] Fix | Delete
_POSIX_NO_TRUNC Pathname components longer than
[185] Fix | Delete
NAME_MAX generate an error.
[186] Fix | Delete
_POSIX_VDISABLE If defined, if the value of an element of the
[187] Fix | Delete
`c_cc' member of `struct termios' is
[188] Fix | Delete
_POSIX_VDISABLE, no character will have the
[189] Fix | Delete
effect associated with that element.
[190] Fix | Delete
_POSIX_SYNC_IO Synchronous I/O may be performed.
[191] Fix | Delete
_POSIX_ASYNC_IO Asynchronous I/O may be performed.
[192] Fix | Delete
_POSIX_PRIO_IO Prioritized Asynchronous I/O may be performed.
[193] Fix | Delete
[194] Fix | Delete
Support for the Large File Support interface is not generally available.
[195] Fix | Delete
If it is available the following constants are defined to one.
[196] Fix | Delete
_LFS64_LARGEFILE Low-level I/O supports large files.
[197] Fix | Delete
_LFS64_STDIO Standard I/O supports large files.
[198] Fix | Delete
*/
[199] Fix | Delete
[200] Fix | Delete
#include <bits/posix_opt.h>
[201] Fix | Delete
[202] Fix | Delete
/* Get the environment definitions from Unix98. */
[203] Fix | Delete
#if defined __USE_UNIX98 || defined __USE_XOPEN2K
[204] Fix | Delete
# include <bits/environments.h>
[205] Fix | Delete
#endif
[206] Fix | Delete
[207] Fix | Delete
/* Standard file descriptors. */
[208] Fix | Delete
#define STDIN_FILENO 0 /* Standard input. */
[209] Fix | Delete
#define STDOUT_FILENO 1 /* Standard output. */
[210] Fix | Delete
#define STDERR_FILENO 2 /* Standard error output. */
[211] Fix | Delete
[212] Fix | Delete
[213] Fix | Delete
/* All functions that are not declared anywhere else. */
[214] Fix | Delete
[215] Fix | Delete
#include <bits/types.h>
[216] Fix | Delete
[217] Fix | Delete
#ifndef __ssize_t_defined
[218] Fix | Delete
typedef __ssize_t ssize_t;
[219] Fix | Delete
# define __ssize_t_defined
[220] Fix | Delete
#endif
[221] Fix | Delete
[222] Fix | Delete
#define __need_size_t
[223] Fix | Delete
#define __need_NULL
[224] Fix | Delete
#include <stddef.h>
[225] Fix | Delete
[226] Fix | Delete
#if defined __USE_XOPEN || defined __USE_XOPEN2K
[227] Fix | Delete
/* The Single Unix specification says that some more types are
[228] Fix | Delete
available here. */
[229] Fix | Delete
# ifndef __gid_t_defined
[230] Fix | Delete
typedef __gid_t gid_t;
[231] Fix | Delete
# define __gid_t_defined
[232] Fix | Delete
# endif
[233] Fix | Delete
[234] Fix | Delete
# ifndef __uid_t_defined
[235] Fix | Delete
typedef __uid_t uid_t;
[236] Fix | Delete
# define __uid_t_defined
[237] Fix | Delete
# endif
[238] Fix | Delete
[239] Fix | Delete
# ifndef __off_t_defined
[240] Fix | Delete
# ifndef __USE_FILE_OFFSET64
[241] Fix | Delete
typedef __off_t off_t;
[242] Fix | Delete
# else
[243] Fix | Delete
typedef __off64_t off_t;
[244] Fix | Delete
# endif
[245] Fix | Delete
# define __off_t_defined
[246] Fix | Delete
# endif
[247] Fix | Delete
# if defined __USE_LARGEFILE64 && !defined __off64_t_defined
[248] Fix | Delete
typedef __off64_t off64_t;
[249] Fix | Delete
# define __off64_t_defined
[250] Fix | Delete
# endif
[251] Fix | Delete
[252] Fix | Delete
# ifndef __useconds_t_defined
[253] Fix | Delete
typedef __useconds_t useconds_t;
[254] Fix | Delete
# define __useconds_t_defined
[255] Fix | Delete
# endif
[256] Fix | Delete
[257] Fix | Delete
# ifndef __pid_t_defined
[258] Fix | Delete
typedef __pid_t pid_t;
[259] Fix | Delete
# define __pid_t_defined
[260] Fix | Delete
# endif
[261] Fix | Delete
#endif /* X/Open */
[262] Fix | Delete
[263] Fix | Delete
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K
[264] Fix | Delete
# ifndef __intptr_t_defined
[265] Fix | Delete
typedef __intptr_t intptr_t;
[266] Fix | Delete
# define __intptr_t_defined
[267] Fix | Delete
# endif
[268] Fix | Delete
#endif
[269] Fix | Delete
[270] Fix | Delete
#if defined __USE_MISC || defined __USE_XOPEN
[271] Fix | Delete
# ifndef __socklen_t_defined
[272] Fix | Delete
typedef __socklen_t socklen_t;
[273] Fix | Delete
# define __socklen_t_defined
[274] Fix | Delete
# endif
[275] Fix | Delete
#endif
[276] Fix | Delete
[277] Fix | Delete
/* Values for the second argument to access.
[278] Fix | Delete
These may be OR'd together. */
[279] Fix | Delete
#define R_OK 4 /* Test for read permission. */
[280] Fix | Delete
#define W_OK 2 /* Test for write permission. */
[281] Fix | Delete
#define X_OK 1 /* Test for execute permission. */
[282] Fix | Delete
#define F_OK 0 /* Test for existence. */
[283] Fix | Delete
[284] Fix | Delete
/* Test for access to NAME using the real UID and real GID. */
[285] Fix | Delete
extern int access (const char *__name, int __type) __THROW __nonnull ((1));
[286] Fix | Delete
[287] Fix | Delete
#ifdef __USE_GNU
[288] Fix | Delete
/* Test for access to NAME using the effective UID and GID
[289] Fix | Delete
(as normal file operations use). */
[290] Fix | Delete
extern int euidaccess (const char *__name, int __type)
[291] Fix | Delete
__THROW __nonnull ((1));
[292] Fix | Delete
[293] Fix | Delete
/* An alias for `euidaccess', used by some other systems. */
[294] Fix | Delete
extern int eaccess (const char *__name, int __type)
[295] Fix | Delete
__THROW __nonnull ((1));
[296] Fix | Delete
#endif
[297] Fix | Delete
[298] Fix | Delete
#ifdef __USE_ATFILE
[299] Fix | Delete
/* Test for access to FILE relative to the directory FD is open on.
[300] Fix | Delete
If AT_EACCESS is set in FLAG, then use effective IDs like `eaccess',
[301] Fix | Delete
otherwise use real IDs like `access'. */
[302] Fix | Delete
extern int faccessat (int __fd, const char *__file, int __type, int __flag)
[303] Fix | Delete
__THROW __nonnull ((2)) __wur;
[304] Fix | Delete
#endif /* Use GNU. */
[305] Fix | Delete
[306] Fix | Delete
[307] Fix | Delete
/* Values for the WHENCE argument to lseek. */
[308] Fix | Delete
#ifndef _STDIO_H /* <stdio.h> has the same definitions. */
[309] Fix | Delete
# define SEEK_SET 0 /* Seek from beginning of file. */
[310] Fix | Delete
# define SEEK_CUR 1 /* Seek from current position. */
[311] Fix | Delete
# define SEEK_END 2 /* Seek from end of file. */
[312] Fix | Delete
# ifdef __USE_GNU
[313] Fix | Delete
# define SEEK_DATA 3 /* Seek to next data. */
[314] Fix | Delete
# define SEEK_HOLE 4 /* Seek to next hole. */
[315] Fix | Delete
# endif
[316] Fix | Delete
#endif
[317] Fix | Delete
[318] Fix | Delete
#if defined __USE_MISC && !defined L_SET
[319] Fix | Delete
/* Old BSD names for the same constants; just for compatibility. */
[320] Fix | Delete
# define L_SET SEEK_SET
[321] Fix | Delete
# define L_INCR SEEK_CUR
[322] Fix | Delete
# define L_XTND SEEK_END
[323] Fix | Delete
#endif
[324] Fix | Delete
[325] Fix | Delete
[326] Fix | Delete
/* Move FD's file position to OFFSET bytes from the
[327] Fix | Delete
beginning of the file (if WHENCE is SEEK_SET),
[328] Fix | Delete
the current position (if WHENCE is SEEK_CUR),
[329] Fix | Delete
or the end of the file (if WHENCE is SEEK_END).
[330] Fix | Delete
Return the new file position. */
[331] Fix | Delete
#ifndef __USE_FILE_OFFSET64
[332] Fix | Delete
extern __off_t lseek (int __fd, __off_t __offset, int __whence) __THROW;
[333] Fix | Delete
#else
[334] Fix | Delete
# ifdef __REDIRECT_NTH
[335] Fix | Delete
extern __off64_t __REDIRECT_NTH (lseek,
[336] Fix | Delete
(int __fd, __off64_t __offset, int __whence),
[337] Fix | Delete
lseek64);
[338] Fix | Delete
# else
[339] Fix | Delete
# define lseek lseek64
[340] Fix | Delete
# endif
[341] Fix | Delete
#endif
[342] Fix | Delete
#ifdef __USE_LARGEFILE64
[343] Fix | Delete
extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence)
[344] Fix | Delete
__THROW;
[345] Fix | Delete
#endif
[346] Fix | Delete
[347] Fix | Delete
/* Close the file descriptor FD.
[348] Fix | Delete
[349] Fix | Delete
This function is a cancellation point and therefore not marked with
[350] Fix | Delete
__THROW. */
[351] Fix | Delete
extern int close (int __fd);
[352] Fix | Delete
[353] Fix | Delete
/* Read NBYTES into BUF from FD. Return the
[354] Fix | Delete
number read, -1 for errors or 0 for EOF.
[355] Fix | Delete
[356] Fix | Delete
This function is a cancellation point and therefore not marked with
[357] Fix | Delete
__THROW. */
[358] Fix | Delete
extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur;
[359] Fix | Delete
[360] Fix | Delete
/* Write N bytes of BUF to FD. Return the number written, or -1.
[361] Fix | Delete
[362] Fix | Delete
This function is a cancellation point and therefore not marked with
[363] Fix | Delete
__THROW. */
[364] Fix | Delete
extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur;
[365] Fix | Delete
[366] Fix | Delete
#if defined __USE_UNIX98 || defined __USE_XOPEN2K8
[367] Fix | Delete
# ifndef __USE_FILE_OFFSET64
[368] Fix | Delete
/* Read NBYTES into BUF from FD at the given position OFFSET without
[369] Fix | Delete
changing the file pointer. Return the number read, -1 for errors
[370] Fix | Delete
or 0 for EOF.
[371] Fix | Delete
[372] Fix | Delete
This function is a cancellation point and therefore not marked with
[373] Fix | Delete
__THROW. */
[374] Fix | Delete
extern ssize_t pread (int __fd, void *__buf, size_t __nbytes,
[375] Fix | Delete
__off_t __offset) __wur;
[376] Fix | Delete
[377] Fix | Delete
/* Write N bytes of BUF to FD at the given position OFFSET without
[378] Fix | Delete
changing the file pointer. Return the number written, or -1.
[379] Fix | Delete
[380] Fix | Delete
This function is a cancellation point and therefore not marked with
[381] Fix | Delete
__THROW. */
[382] Fix | Delete
extern ssize_t pwrite (int __fd, const void *__buf, size_t __n,
[383] Fix | Delete
__off_t __offset) __wur;
[384] Fix | Delete
# else
[385] Fix | Delete
# ifdef __REDIRECT
[386] Fix | Delete
extern ssize_t __REDIRECT (pread, (int __fd, void *__buf, size_t __nbytes,
[387] Fix | Delete
__off64_t __offset),
[388] Fix | Delete
pread64) __wur;
[389] Fix | Delete
extern ssize_t __REDIRECT (pwrite, (int __fd, const void *__buf,
[390] Fix | Delete
size_t __nbytes, __off64_t __offset),
[391] Fix | Delete
pwrite64) __wur;
[392] Fix | Delete
# else
[393] Fix | Delete
# define pread pread64
[394] Fix | Delete
# define pwrite pwrite64
[395] Fix | Delete
# endif
[396] Fix | Delete
# endif
[397] Fix | Delete
[398] Fix | Delete
# ifdef __USE_LARGEFILE64
[399] Fix | Delete
/* Read NBYTES into BUF from FD at the given position OFFSET without
[400] Fix | Delete
changing the file pointer. Return the number read, -1 for errors
[401] Fix | Delete
or 0 for EOF. */
[402] Fix | Delete
extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes,
[403] Fix | Delete
__off64_t __offset) __wur;
[404] Fix | Delete
/* Write N bytes of BUF to FD at the given position OFFSET without
[405] Fix | Delete
changing the file pointer. Return the number written, or -1. */
[406] Fix | Delete
extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n,
[407] Fix | Delete
__off64_t __offset) __wur;
[408] Fix | Delete
# endif
[409] Fix | Delete
#endif
[410] Fix | Delete
[411] Fix | Delete
/* Create a one-way communication channel (pipe).
[412] Fix | Delete
If successful, two file descriptors are stored in PIPEDES;
[413] Fix | Delete
bytes written on PIPEDES[1] can be read from PIPEDES[0].
[414] Fix | Delete
Returns 0 if successful, -1 if not. */
[415] Fix | Delete
extern int pipe (int __pipedes[2]) __THROW __wur;
[416] Fix | Delete
[417] Fix | Delete
#ifdef __USE_GNU
[418] Fix | Delete
/* Same as pipe but apply flags passed in FLAGS to the new file
[419] Fix | Delete
descriptors. */
[420] Fix | Delete
extern int pipe2 (int __pipedes[2], int __flags) __THROW __wur;
[421] Fix | Delete
#endif
[422] Fix | Delete
[423] Fix | Delete
/* Schedule an alarm. In SECONDS seconds, the process will get a SIGALRM.
[424] Fix | Delete
If SECONDS is zero, any currently scheduled alarm will be cancelled.
[425] Fix | Delete
The function returns the number of seconds remaining until the last
[426] Fix | Delete
alarm scheduled would have signaled, or zero if there wasn't one.
[427] Fix | Delete
There is no return value to indicate an error, but you can set `errno'
[428] Fix | Delete
to 0 and check its value after calling `alarm', and this might tell you.
[429] Fix | Delete
The signal may come late due to processor scheduling. */
[430] Fix | Delete
extern unsigned int alarm (unsigned int __seconds) __THROW;
[431] Fix | Delete
[432] Fix | Delete
/* Make the process sleep for SECONDS seconds, or until a signal arrives
[433] Fix | Delete
and is not ignored. The function returns the number of seconds less
[434] Fix | Delete
than SECONDS which it actually slept (thus zero if it slept the full time).
[435] Fix | Delete
If a signal handler does a `longjmp' or modifies the handling of the
[436] Fix | Delete
SIGALRM signal while inside `sleep' call, the handling of the SIGALRM
[437] Fix | Delete
signal afterwards is undefined. There is no return value to indicate
[438] Fix | Delete
error, but if `sleep' returns SECONDS, it probably didn't work.
[439] Fix | Delete
[440] Fix | Delete
This function is a cancellation point and therefore not marked with
[441] Fix | Delete
__THROW. */
[442] Fix | Delete
extern unsigned int sleep (unsigned int __seconds);
[443] Fix | Delete
[444] Fix | Delete
#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8) \
[445] Fix | Delete
|| defined __USE_MISC
[446] Fix | Delete
/* Set an alarm to go off (generating a SIGALRM signal) in VALUE
[447] Fix | Delete
microseconds. If INTERVAL is nonzero, when the alarm goes off, the
[448] Fix | Delete
timer is reset to go off every INTERVAL microseconds thereafter.
[449] Fix | Delete
Returns the number of microseconds remaining before the alarm. */
[450] Fix | Delete
extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval)
[451] Fix | Delete
__THROW;
[452] Fix | Delete
[453] Fix | Delete
/* Sleep USECONDS microseconds, or until a signal arrives that is not blocked
[454] Fix | Delete
or ignored.
[455] Fix | Delete
[456] Fix | Delete
This function is a cancellation point and therefore not marked with
[457] Fix | Delete
__THROW. */
[458] Fix | Delete
extern int usleep (__useconds_t __useconds);
[459] Fix | Delete
#endif
[460] Fix | Delete
[461] Fix | Delete
[462] Fix | Delete
/* Suspend the process until a signal arrives.
[463] Fix | Delete
This always returns -1 and sets `errno' to EINTR.
[464] Fix | Delete
[465] Fix | Delete
This function is a cancellation point and therefore not marked with
[466] Fix | Delete
__THROW. */
[467] Fix | Delete
extern int pause (void);
[468] Fix | Delete
[469] Fix | Delete
[470] Fix | Delete
/* Change the owner and group of FILE. */
[471] Fix | Delete
extern int chown (const char *__file, __uid_t __owner, __gid_t __group)
[472] Fix | Delete
__THROW __nonnull ((1)) __wur;
[473] Fix | Delete
[474] Fix | Delete
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
[475] Fix | Delete
/* Change the owner and group of the file that FD is open on. */
[476] Fix | Delete
extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __THROW __wur;
[477] Fix | Delete
[478] Fix | Delete
[479] Fix | Delete
/* Change owner and group of FILE, if it is a symbolic
[480] Fix | Delete
link the ownership of the symbolic link is changed. */
[481] Fix | Delete
extern int lchown (const char *__file, __uid_t __owner, __gid_t __group)
[482] Fix | Delete
__THROW __nonnull ((1)) __wur;
[483] Fix | Delete
[484] Fix | Delete
#endif /* Use X/Open Unix. */
[485] Fix | Delete
[486] Fix | Delete
#ifdef __USE_ATFILE
[487] Fix | Delete
/* Change the owner and group of FILE relative to the directory FD is open
[488] Fix | Delete
on. */
[489] Fix | Delete
extern int fchownat (int __fd, const char *__file, __uid_t __owner,
[490] Fix | Delete
__gid_t __group, int __flag)
[491] Fix | Delete
__THROW __nonnull ((2)) __wur;
[492] Fix | Delete
#endif /* Use GNU. */
[493] Fix | Delete
[494] Fix | Delete
/* Change the process's working directory to PATH. */
[495] Fix | Delete
extern int chdir (const char *__path) __THROW __nonnull ((1)) __wur;
[496] Fix | Delete
[497] Fix | Delete
#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
[498] Fix | Delete
/* Change the process's working directory to the one FD is open on. */
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function