Red de conocimiento informático - Problemas con los teléfonos móviles - Código fuente de unistd.h

Código fuente de unistd.h

#ifndef _UNISTD_H

#define _UNISTD_H

#include lt;features.hgt;

#ifdef __cplusplus

extern C {

#endif

#include lt;_ansi.hgt;

#include lt;sys/types.hgt;

#include lt;sys/_types.hgt;

#define __need_size_t

#define __need_ptrdiff_t

#include lt;stddef.hgt; p>

extern char **environ;

void _EXFUN(_exit, (int __status ) _ ATTRIBUTE ((noreturn)));

int _EXFUN(access, (const char *__path, int __amode ));

unsigned _EXFUN(alarm, (unsigned __secs));

int _EXFUN(chdir, (const char *__path ));

int _EXFUN(chmod, (const char *__ruta, mode_t __modo));

int _EXFUN(chown, (const char *__ruta, uid_t __modo));

int _EXFUN(chown, (const char *__path, int __amode path, uid_t __owner, gid_t __group));

int _EXFUN(chroot, (const char *__path)); p> int _EXFUN(close, (int __fildes));

char _EXFUN(*ctermid, (char *__s));

char _EXFUN(*cuserid, (char *__s)); ) );

int _EXFUN(dup, (int __fildes));

int _EXFUN(dup2, (int __fildes, int __fildes2));

int _EXFUN(execl, (const char *__path, const char *, .));

int _EXFUN(execv, (const char *__path, char * const __argv[]));

int _EXFUN(execve, (const char *__path, char * const __argv[], char * const __envp[] ));

int _EXFUN(execvp, (const char *__file, char * const __argv[] ));

>

int _EXFUN(fchdir, (int __fildes));

int _EXFUN(fchmod, (int __fildes, mode_t __mode));

int _EXFUN(fchown, (int __fildes, uid_t __propietario, gid_t __group ));

pid_t _EXFUN(fork.(void ));

long _EXFUN(fpathconf, (int __fd, int __name )); p>

int _EXFUN(fsync, (int __fd));

int _EXFUN(ftruncate, (int __fd, off _t __length));

char _EXFUN(* getcwd). , (char *__buf, size_t __size ));

int _EXFUN(getdomainname, (char *__name, size_t __len));

gid_t _EXFUN(getegid, (void));

uid_t _EXFUN(geteuid, (void));

gid_t _EXFUN(getgid, (void));

int _EXFUN(getgroups, (int __gidsetsize, gid_t __grouplist[] ));

int _EXFUN(__gethostname, (char *__name, size_t __len));

char _EXFUN(*getlogin, (void)); >

p>

#if definido(_POSIX_THREAD_SAFE_FUNCTIONS)

int _EXFUN(getlogin_r, (char *nombre, tamaño_t tamañonombre) );

#endif

char _ EXFUN(*getpass, (__const char *__prompt));

int _EXFUN(getpagesize, (void));

pid_t _EXFUN(getpgid, (pid_t)

p>

pid_t _EXFUN (getpgrp, (nulo));

pid_t _EXFUN(getpid, (nulo)); (getppid, (void));

uid_t _EXFUN(getuid, (void));

char * _EXFUN(getusershell, (void)); char _EXFUN(*getwd, (char * __buf ));

int _EXFUN(isatty, (int __fildes ));

int _EXFUN( lchown, (const char *__path, uid_t __propietario, gid_t __grupo));

int _EXFUN(enlace, (const char *__path1, const char *__path2));

int _EXFUN (nice, (int __nice_value));

off_t _EXFUN(lseek, (int __fildes, off_t __offset, int __wherece));

long _EXFUN(pathconf, (const char * __path, int __name));

int _EXFUN( pausa, (void));

int _EXFUN(pipe, (int __fildes[2]));

size_t _EXFUN(pread, (int __fd, void *__buf, size_t __nbytes , off_t __offset));

size_t _EXFUN(pwrite, (int __fd, const void *__buf, size_t __nbytes, off_t __offset));

_ READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void *__buf, size_t __nbyte ));

int _EXFUN(readlink, (const char *path, char *buf, size_t bufsiz));

int _EXFUN(rmdir, (const char *__ruta ));