VSF Documented
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
unistd.h File Reference
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "./simple_libc/stddef.h"
#include "./sys/types.h"
#include "./sys/select.h"
#include "./pwd.h"
#include <setjmp/setjmp.h>
#include "vsf.h"
#include "../vsf_linux.h"
#include "../port/busybox/busybox.h"

Go to the source code of this file.

Data Structures

struct  iovec
 
struct  vsf_linux_unistd_vplt_t
 

Macros

#define __USE_LOCAL_LIBC__
 
#define __USE_LOCAL_STDIO__
 
#define __SIMPLE_LIBC_SETJMP_VPLT_ONLY__
 
#define exec_ret_t   int
 
#define confstr   VSF_LINUX_WRAPPER(confstr)
 
#define usleep   VSF_LINUX_WRAPPER(usleep)
 
#define sleep   VSF_LINUX_WRAPPER(sleep)
 
#define pause   VSF_LINUX_WRAPPER(pause)
 
#define getlogin   VSF_LINUX_WRAPPER(getlogin)
 
#define getlogin_r   VSF_LINUX_WRAPPER(getlogin_r)
 
#define setgid   VSF_LINUX_WRAPPER(setgid)
 
#define getgid   VSF_LINUX_WRAPPER(getgid)
 
#define setegid   VSF_LINUX_WRAPPER(setegid)
 
#define getegid   VSF_LINUX_WRAPPER(getegid)
 
#define setuid   VSF_LINUX_WRAPPER(setuid)
 
#define getuid   VSF_LINUX_WRAPPER(getuid)
 
#define seteuid   VSF_LINUX_WRAPPER(seteuid)
 
#define geteuid   VSF_LINUX_WRAPPER(geteuid)
 
#define getpid   VSF_LINUX_WRAPPER(getpid)
 
#define getppid   VSF_LINUX_WRAPPER(getppid)
 
#define gettid   VSF_LINUX_WRAPPER(gettid)
 
#define setsid   VSF_LINUX_WRAPPER(setsid)
 
#define getsid   VSF_LINUX_WRAPPER(getsid)
 
#define setpgid   VSF_LINUX_WRAPPER(setpgid)
 
#define getpgid   VSF_LINUX_WRAPPER(getpgid)
 
#define setpgrp   VSF_LINUX_WRAPPER(setpgrp)
 
#define getpgrp   VSF_LINUX_WRAPPER(getpgrp)
 
#define setresuid   VSF_LINUX_WRAPPER(setresuid)
 
#define setresgid   VSF_LINUX_WRAPPER(setresgid)
 
#define execl   VSF_LINUX_WRAPPER(execl)
 
#define execlp   VSF_LINUX_WRAPPER(execlp)
 
#define execv   VSF_LINUX_WRAPPER(execv)
 
#define execve   VSF_LINUX_WRAPPER(execve)
 
#define execvp   VSF_LINUX_WRAPPER(execvp)
 
#define execvpe   VSF_LINUX_WRAPPER(execvpe)
 
#define sysconf   VSF_LINUX_WRAPPER(sysconf)
 
#define pathconf   VSF_LINUX_WRAPPER(pathconf)
 
#define fpathconf   VSF_LINUX_WRAPPER(fpathconf)
 
#define pipe   VSF_LINUX_WRAPPER(pipe)
 
#define pipe2   VSF_LINUX_WRAPPER(pipe2)
 
#define alarm   VSF_LINUX_WRAPPER(alarm)
 
#define ualarm   VSF_LINUX_WRAPPER(ualarm)
 
#define fork   VSF_LINUX_WRAPPER(fork)
 
#define _exit   VSF_LINUX_WRAPPER(_exit)
 
#define acct   VSF_LINUX_WRAPPER(acct)
 
#define isatty   VSF_LINUX_WRAPPER(isatty)
 
#define symlink   VSF_LINUX_WRAPPER(symlink)
 
#define getpagesize   VSF_LINUX_WRAPPER(getpagesize)
 
#define ftruncate   VSF_LINUX_WRAPPER(ftruncate)
 
#define truncate   VSF_LINUX_WRAPPER(truncate)
 
#define ftruncate64   VSF_LINUX_WRAPPER(ftruncate64)
 
#define truncate64   VSF_LINUX_WRAPPER(truncate64)
 
#define readlink   VSF_LINUX_WRAPPER(readlink)
 
#define tcgetpgrp   VSF_LINUX_WRAPPER(tcgetpgrp)
 
#define tcsetpgrp   VSF_LINUX_WRAPPER(tcsetpgrp)
 
#define getpass   VSF_LINUX_WRAPPER(getpass)
 
#define gethostname   VSF_LINUX_WRAPPER(gethostname)
 
#define sethostname   VSF_LINUX_WRAPPER(sethostname)
 
#define getentropy   VSF_LINUX_WRAPPER(getentropy)
 
#define gethostid   VSF_LINUX_WRAPPER(gethostid)
 
#define sethostid   VSF_LINUX_WRAPPER(sethostid)
 
#define access   VSF_LINUX_WRAPPER(access)
 
#define unlink   VSF_LINUX_WRAPPER(unlink)
 
#define unlinkat   VSF_LINUX_WRAPPER(unlinkat)
 
#define link   VSF_LINUX_WRAPPER(link)
 
#define mkdir   VSF_LINUX_WRAPPER(mkdir)
 
#define mkdirat   VSF_LINUX_WRAPPER(mkdirat)
 
#define rmdir   VSF_LINUX_WRAPPER(rmdir)
 
#define close   VSF_LINUX_WRAPPER(close)
 
#define lseek   VSF_LINUX_WRAPPER(lseek)
 
#define read   VSF_LINUX_WRAPPER(read)
 
#define write   VSF_LINUX_WRAPPER(write)
 
#define readv   VSF_LINUX_WRAPPER(readv)
 
#define writev   VSF_LINUX_WRAPPER(writev)
 
#define pread   VSF_LINUX_WRAPPER(pread)
 
#define pwrite   VSF_LINUX_WRAPPER(pwrite)
 
#define preadv   VSF_LINUX_WRAPPER(preadv)
 
#define pwritev   VSF_LINUX_WRAPPER(pwritev)
 
#define chdir   VSF_LINUX_WRAPPER(chdir)
 
#define fchdir   VSF_LINUX_WRAPPER(fchdir)
 
#define getcwd   VSF_LINUX_WRAPPER(getcwd)
 
#define fsync   VSF_LINUX_WRAPPER(fsync)
 
#define fdatasync   VSF_LINUX_WRAPPER(fdatasync)
 
#define __NR_close   close
 
#define __NR_dup   dup
 
#define __NR_dup2   dup2
 
#define __NR_dup3   dup3
 
#define __NR_access   access
 
#define __NR_write   write
 
#define __NR_writev   writev
 
#define __NR_read   read
 
#define __NR_readv   readv
 
#define __NR_truncate   truncate
 
#define __NR_rtruncate   ftruncate
 
#define __NR_faccessat   faccessat
 
#define __NR_unlink   unlink
 
#define __NR_unlinkat   unlinkat
 
#define __NR_sync   sync
 
#define __NR_fsync   fsync
 
#define __NR_chdir   chdir
 
#define __NR_fchdir   fchdir
 
#define __NR_chown   chown
 
#define __NR_fchown   fchown
 
#define __NR_fchownat   fchownat
 
#define __NR_chroot   chroot
 
#define __NR_pipe   pipe
 
#define __NR_pipe2   pipe2
 
#define __NR_alarm   alarm
 
#define __NR_execve   execve
 
#define __NR_wait4   wait4
 
#define __NR_gettid   gettid
 
#define SYS_gettid   __NR_gettid
 
#define __NR_preadv(__fd, __vec, __vlen, __pos_l, __pos_h)    preadv64((__fd), (__vec), (__vlen), ((off64_t)(__pos_l) << 32) + (__pos_h))
 
#define __NR_pwritev(__fd, __vec, __vlen, __pos_l, __pos_h)    pwritev64((__fd), (__vec), (__vlen), ((off64_t)(__pos_l) << 32) + (__pos_h))
 
#define _POSIX_VERSION   200112L
 
#define STDIN_FILENO   0
 
#define STDOUT_FILENO   1
 
#define STDERR_FILENO   2
 
#define environ   (vsf_linux_get_cur_process()->__environ)
 
#define _CS_PATH   _CS_PATH
 
#define _CS_GNU_LIBC_VERSION   _CS_GNU_LIBC_VERSION
 
#define _CS_GNU_LIBPTHREAD_VERSION   _CS_GNU_LIBPTHREAD_VERSION
 
#define iovec   iovec
 
#define F_OK   (1 << 0)
 
#define R_OK   (1 << 1)
 
#define W_OK   (1 << 2)
 
#define X_OK   (1 << 3)
 
#define vfork()
 

Typedefs

typedef struct vsf_linux_unistd_vplt_t vsf_linux_unistd_vplt_t
 

Enumerations

enum  {
  _CS_PATH ,
  _CS_PATH ,
  _CS_GNU_LIBC_VERSION ,
  _CS_GNU_LIBC_VERSION ,
  _CS_GNU_LIBPTHREAD_VERSION ,
  _CS_GNU_LIBPTHREAD_VERSION
}
 
enum  {
  DT_UNKNOWN ,
  DT_REG ,
  DT_DIR ,
  DT_FIFO ,
  DT_SOCK ,
  DT_CHR ,
  DT_BLK ,
  DT_LNK ,
  DT_EXE
}
 
enum  {
  _SC_PAGESIZE ,
  _SC_OPEN_MAX ,
  _SC_CLK_TCK ,
  _SC_GETGR_R_SIZE_MAX ,
  _SC_SYMLOOP_MAX ,
  _SC_NPROCESSORS_ONLN ,
  _SC_PAGE_SIZE = _SC_PAGESIZE
}
 
enum  {
  _PC_LINK_MAX ,
  _PC_MAX_CANON ,
  _PC_MAX_INPUT ,
  _PC_NAME_MAX ,
  _PC_PATH_MAX
}
 

Functions

size_t confstr (int name, char *buf, size_t len)
 
int usleep (int micro_seconds)
 
unsigned sleep (unsigned seconds)
 
unsigned int alarm (unsigned int seconds)
 
useconds_t ualarm (useconds_t usecs, useconds_t interval)
 
int getlogin_r (char *buf, size_t bufsize)
 
int setuid (uid_t uid)
 
int seteuid (uid_t euid)
 
int setegid (gid_t egid)
 
int setgid (gid_t git)
 
pid_t getsid (pid_t pid)
 
int setpgid (pid_t pid, pid_t pgid)
 
pid_t getpgid (pid_t pid)
 
int setresuid (uid_t ruid, uid_t euid, uid_t suid)
 
int setresgid (gid_t rgid, gid_t egid, gid_t sgid)
 
exec_ret_t execl (const char *pathname, const char *arg,...)
 
exec_ret_t execle (const char *pathname, const char *arg,...)
 
exec_ret_t execlp (const char *file, const char *arg,...)
 
exec_ret_t execv (const char *pathname, char *const *argv)
 
exec_ret_t execve (const char *pathname, char *const *argv, char *const *envp)
 
exec_ret_t execvp (const char *file, char *const *argv)
 
exec_ret_t execvpe (const char *file, char *const *argv, char *const *envp)
 
int daemon (int nochdir, int noclose)
 
void _exit (int status)
 
long sysconf (int name)
 
long pathconf (const char *path, int name)
 
long fpathconf (int fd, int name)
 
int pipe (int pipefd[2])
 
int pipe2 (int pipefd[2], int flags)
 
int access (const char *pathname, int mode)
 
int unlink (const char *pathname)
 
int unlinkat (int dirfd, const char *pathname, int flags)
 
int link (const char *oldpath, const char *newpath)
 
int mkdir (const char *pathname, mode_t mode)
 
int mkdirat (int dirfd, const char *pathname, mode_t mode)
 
int mkdirs (const char *pathname, mode_t mode)
 
int rmdir (const char *pathname)
 
int dup (int oldfd)
 
int dup2 (int oldfd, int newfd)
 
int dup3 (int oldfd, int newfd, int flags)
 
int chroot (const char *path)
 
int chdir (const char *pathname)
 
int fchdir (int fd)
 
char * getcwd (char *buffer, size_t maxlen)
 
int close (int fd)
 
off_t lseek (int fd, off_t offset, int whence)
 
off64_t lseek64 (int fd, off64_t offset, int whence)
 
ssize_t read (int fd, void *buf, size_t count)
 
ssize_t write (int fd, const void *buf, size_t count)
 
ssize_t readv (int fd, const struct iovec *iov, int iovcnt)
 
ssize_t writev (int fd, const struct iovec *iov, int iovcnt)
 
ssize_t pread (int fd, void *buf, size_t count, off_t offset)
 
ssize_t preadv (int fd, const struct iovec *iov, int iovcnt, off_t offset)
 
ssize_t preadv64 (int fd, const struct iovec *vector, int iovcnt, off64_t offset)
 
ssize_t pwrite (int fd, const void *buf, size_t count, off_t offset)
 
ssize_t pwritev (int fd, const struct iovec *iov, int iovcnt, off_t offset)
 
ssize_t pwritev64 (int fd, const struct iovec *vector, int iovcnt, off64_t offset)
 
void sync (void)
 
int syncfs (int fd)
 
int fsync (int fd)
 
int fdatasync (int fd)
 
int isatty (int fd)
 
char * ttyname (int fd)
 
int ttyname_r (int fd, char *buf, size_t buflen)
 
int symlink (const char *target, const char *linkpath)
 
int truncate (const char *pathname, off_t length)
 
int ftruncate (int fd, off_t length)
 
int truncate64 (const char *pathname, off64_t length)
 
int ftruncate64 (int fd, off64_t length)
 
ssize_t readlink (const char *pathname, char *buf, size_t bufsiz)
 
pid_t tcgetpgrp (int fd)
 
int tcsetpgrp (int fd, pid_t pgrp)
 
char * getpass (const char *prompt)
 
int gethostname (char *name, size_t len)
 
int sethostname (const char *name, size_t len)
 
int chown (const char *pathname, uid_t owner, gid_t group)
 
int fchown (int fd, uid_t owner, gid_t group)
 
int lchown (const char *pathname, uid_t owner, gid_t group)
 
int fchownat (int dirfd, const char *pathname, uid_t owner, gid_t group, int flags)
 
int getentropy (void *buffer, size_t length)
 
int sethostid (long hostid)
 
int getdtablesize (void)
 
int acct (const char *filename)
 
pid_t __vsf_linux_vfork_prepare (vsf_linux_process_t *parent_process)
 

Variables

__VSF_VPLT_DECORATOR__ vsf_linux_unistd_vplt_t vsf_linux_unistd_vplt
 

Macro Definition Documentation

◆ __USE_LOCAL_LIBC__

#define __USE_LOCAL_LIBC__

◆ __USE_LOCAL_STDIO__

#define __USE_LOCAL_STDIO__

◆ __SIMPLE_LIBC_SETJMP_VPLT_ONLY__

#define __SIMPLE_LIBC_SETJMP_VPLT_ONLY__

◆ exec_ret_t

#define exec_ret_t   int

◆ confstr

#define confstr   VSF_LINUX_WRAPPER(confstr)

◆ usleep

#define usleep   VSF_LINUX_WRAPPER(usleep)

◆ sleep

#define sleep   VSF_LINUX_WRAPPER(sleep)

◆ pause

int pause   VSF_LINUX_WRAPPER(pause)

◆ getlogin

char * getlogin   VSF_LINUX_WRAPPER(getlogin)

◆ getlogin_r

#define getlogin_r   VSF_LINUX_WRAPPER(getlogin_r)

◆ setgid

#define setgid   VSF_LINUX_WRAPPER(setgid)

◆ getgid

gid_t getgid   VSF_LINUX_WRAPPER(getgid)

◆ setegid

#define setegid   VSF_LINUX_WRAPPER(setegid)

◆ getegid

gid_t getegid   VSF_LINUX_WRAPPER(getegid)

◆ setuid

#define setuid   VSF_LINUX_WRAPPER(setuid)

◆ getuid

uid_t getuid   VSF_LINUX_WRAPPER(getuid)

◆ seteuid

#define seteuid   VSF_LINUX_WRAPPER(seteuid)

◆ geteuid

uid_t geteuid   VSF_LINUX_WRAPPER(geteuid)

◆ getpid

pid_t getpid   VSF_LINUX_WRAPPER(getpid)

◆ getppid

pid_t getppid   VSF_LINUX_WRAPPER(getppid)

◆ gettid

pid_t gettid   VSF_LINUX_WRAPPER(gettid)

◆ setsid

pid_t setsid   VSF_LINUX_WRAPPER(setsid)

◆ getsid

#define getsid   VSF_LINUX_WRAPPER(getsid)

◆ setpgid

#define setpgid   VSF_LINUX_WRAPPER(setpgid)

◆ getpgid

#define getpgid   VSF_LINUX_WRAPPER(getpgid)

◆ setpgrp

int setpgrp   VSF_LINUX_WRAPPER(setpgrp)

◆ getpgrp

pid_t getpgrp   VSF_LINUX_WRAPPER(getpgrp)

◆ setresuid

#define setresuid   VSF_LINUX_WRAPPER(setresuid)

◆ setresgid

#define setresgid   VSF_LINUX_WRAPPER(setresgid)

◆ execl

#define execl   VSF_LINUX_WRAPPER(execl)

◆ execlp

#define execlp   VSF_LINUX_WRAPPER(execlp)

◆ execv

#define execv   VSF_LINUX_WRAPPER(execv)

◆ execve

#define execve   VSF_LINUX_WRAPPER(execve)

◆ execvp

#define execvp   VSF_LINUX_WRAPPER(execvp)

◆ execvpe

#define execvpe   VSF_LINUX_WRAPPER(execvpe)

◆ sysconf

#define sysconf   VSF_LINUX_WRAPPER(sysconf)

◆ pathconf

#define pathconf   VSF_LINUX_WRAPPER(pathconf)

◆ fpathconf

#define fpathconf   VSF_LINUX_WRAPPER(fpathconf)

◆ pipe

#define pipe   VSF_LINUX_WRAPPER(pipe)

◆ pipe2

#define pipe2   VSF_LINUX_WRAPPER(pipe2)

◆ alarm

#define alarm   VSF_LINUX_WRAPPER(alarm)

◆ ualarm

#define ualarm   VSF_LINUX_WRAPPER(ualarm)

◆ fork

pid_t fork   VSF_LINUX_WRAPPER(fork)

◆ _exit

#define _exit   VSF_LINUX_WRAPPER(_exit)

◆ acct

#define acct   VSF_LINUX_WRAPPER(acct)

◆ isatty

#define isatty   VSF_LINUX_WRAPPER(isatty)

◆ symlink

#define symlink   VSF_LINUX_WRAPPER(symlink)

◆ getpagesize

size_t getpagesize   VSF_LINUX_WRAPPER(getpagesize)

◆ ftruncate

#define ftruncate   VSF_LINUX_WRAPPER(ftruncate)

◆ truncate

#define truncate   VSF_LINUX_WRAPPER(truncate)

◆ ftruncate64

#define ftruncate64   VSF_LINUX_WRAPPER(ftruncate64)

◆ truncate64

#define truncate64   VSF_LINUX_WRAPPER(truncate64)

◆ readlink

#define readlink   VSF_LINUX_WRAPPER(readlink)

◆ tcgetpgrp

#define tcgetpgrp   VSF_LINUX_WRAPPER(tcgetpgrp)

◆ tcsetpgrp

#define tcsetpgrp   VSF_LINUX_WRAPPER(tcsetpgrp)

◆ getpass

#define getpass   VSF_LINUX_WRAPPER(getpass)

◆ gethostname

#define gethostname   VSF_LINUX_WRAPPER(gethostname)

◆ sethostname

#define sethostname   VSF_LINUX_WRAPPER(sethostname)

◆ getentropy

#define getentropy   VSF_LINUX_WRAPPER(getentropy)

◆ gethostid

long gethostid   VSF_LINUX_WRAPPER(gethostid)

◆ sethostid

#define sethostid   VSF_LINUX_WRAPPER(sethostid)

◆ access

#define access   VSF_LINUX_WRAPPER(access)

◆ unlink

#define unlink   VSF_LINUX_WRAPPER(unlink)

◆ unlinkat

#define unlinkat   VSF_LINUX_WRAPPER(unlinkat)

◆ link

#define link   VSF_LINUX_WRAPPER(link)

◆ mkdir

#define mkdir   VSF_LINUX_WRAPPER(mkdir)

◆ mkdirat

#define mkdirat   VSF_LINUX_WRAPPER(mkdirat)

◆ rmdir

#define rmdir   VSF_LINUX_WRAPPER(rmdir)

◆ close

#define close   VSF_LINUX_WRAPPER(close)

◆ lseek

#define lseek   VSF_LINUX_WRAPPER(lseek)

◆ read

#define read   VSF_LINUX_WRAPPER(read)

◆ write

#define write   VSF_LINUX_WRAPPER(write)

◆ readv

#define readv   VSF_LINUX_WRAPPER(readv)

◆ writev

#define writev   VSF_LINUX_WRAPPER(writev)

◆ pread

#define pread   VSF_LINUX_WRAPPER(pread)

◆ pwrite

#define pwrite   VSF_LINUX_WRAPPER(pwrite)

◆ preadv

#define preadv   VSF_LINUX_WRAPPER(preadv)

◆ pwritev

#define pwritev   VSF_LINUX_WRAPPER(pwritev)

◆ chdir

#define chdir   VSF_LINUX_WRAPPER(chdir)

◆ fchdir

#define fchdir   VSF_LINUX_WRAPPER(fchdir)

◆ getcwd

#define getcwd   VSF_LINUX_WRAPPER(getcwd)

◆ fsync

#define fsync   VSF_LINUX_WRAPPER(fsync)

◆ fdatasync

#define fdatasync   VSF_LINUX_WRAPPER(fdatasync)

◆ __NR_close

#define __NR_close   close

◆ __NR_dup

#define __NR_dup   dup

◆ __NR_dup2

#define __NR_dup2   dup2

◆ __NR_dup3

#define __NR_dup3   dup3

◆ __NR_access

#define __NR_access   access

◆ __NR_write

#define __NR_write   write

◆ __NR_writev

#define __NR_writev   writev

◆ __NR_read

#define __NR_read   read

◆ __NR_readv

#define __NR_readv   readv

◆ __NR_truncate

#define __NR_truncate   truncate

◆ __NR_rtruncate

#define __NR_rtruncate   ftruncate

◆ __NR_faccessat

#define __NR_faccessat   faccessat

◆ __NR_unlink

#define __NR_unlink   unlink

◆ __NR_unlinkat

#define __NR_unlinkat   unlinkat

◆ __NR_sync

#define __NR_sync   sync

◆ __NR_fsync

#define __NR_fsync   fsync

◆ __NR_chdir

#define __NR_chdir   chdir

◆ __NR_fchdir

#define __NR_fchdir   fchdir

◆ __NR_chown

#define __NR_chown   chown

◆ __NR_fchown

#define __NR_fchown   fchown

◆ __NR_fchownat

#define __NR_fchownat   fchownat

◆ __NR_chroot

#define __NR_chroot   chroot

◆ __NR_pipe

#define __NR_pipe   pipe

◆ __NR_pipe2

#define __NR_pipe2   pipe2

◆ __NR_alarm

#define __NR_alarm   alarm

◆ __NR_execve

#define __NR_execve   execve

◆ __NR_wait4

#define __NR_wait4   wait4

◆ __NR_gettid

#define __NR_gettid   gettid

◆ SYS_gettid

#define SYS_gettid   __NR_gettid

◆ __NR_preadv

#define __NR_preadv (   __fd,
  __vec,
  __vlen,
  __pos_l,
  __pos_h 
)     preadv64((__fd), (__vec), (__vlen), ((off64_t)(__pos_l) << 32) + (__pos_h))

◆ __NR_pwritev

#define __NR_pwritev (   __fd,
  __vec,
  __vlen,
  __pos_l,
  __pos_h 
)     pwritev64((__fd), (__vec), (__vlen), ((off64_t)(__pos_l) << 32) + (__pos_h))

◆ _POSIX_VERSION

#define _POSIX_VERSION   200112L

◆ STDIN_FILENO

#define STDIN_FILENO   0

◆ STDOUT_FILENO

#define STDOUT_FILENO   1

◆ STDERR_FILENO

#define STDERR_FILENO   2

◆ environ

#define environ   (vsf_linux_get_cur_process()->__environ)

◆ _CS_PATH

#define _CS_PATH   _CS_PATH

◆ _CS_GNU_LIBC_VERSION

#define _CS_GNU_LIBC_VERSION   _CS_GNU_LIBC_VERSION

◆ _CS_GNU_LIBPTHREAD_VERSION

#define _CS_GNU_LIBPTHREAD_VERSION   _CS_GNU_LIBPTHREAD_VERSION

◆ iovec

#define iovec   iovec

◆ F_OK

#define F_OK   (1 << 0)

◆ R_OK

#define R_OK   (1 << 1)

◆ W_OK

#define W_OK   (1 << 2)

◆ X_OK

#define X_OK   (1 << 3)

◆ vfork

#define vfork ( )
Value:
({ \
pid_t result = (pid_t)-1, child_pid = __vsf_linux_vfork_prepare(parent_process);\
if (child_pid >= 0) { \
result = !setjmp(parent_process->__vfork_jmpbuf) ? (pid_t)0 : child_pid;\
} \
result; \
})
Definition vsf_linux.h:270
int pid_t
Definition types.h:85
int setjmp(jmp_buf env)
pid_t __vsf_linux_vfork_prepare(vsf_linux_process_t *parent_process)
Definition vsf_linux.c:3881
vsf_linux_process_t * vsf_linux_get_cur_process(void)
Definition vsf_linux.c:1649

Typedef Documentation

◆ vsf_linux_unistd_vplt_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
_CS_PATH 
_CS_PATH 
_CS_GNU_LIBC_VERSION 
_CS_GNU_LIBC_VERSION 
_CS_GNU_LIBPTHREAD_VERSION 
_CS_GNU_LIBPTHREAD_VERSION 

◆ anonymous enum

anonymous enum
Enumerator
DT_UNKNOWN 
DT_REG 
DT_DIR 
DT_FIFO 
DT_SOCK 
DT_CHR 
DT_BLK 
DT_LNK 
DT_EXE 

◆ anonymous enum

anonymous enum
Enumerator
_SC_PAGESIZE 
_SC_OPEN_MAX 
_SC_CLK_TCK 
_SC_GETGR_R_SIZE_MAX 
_SC_SYMLOOP_MAX 
_SC_NPROCESSORS_ONLN 
_SC_PAGE_SIZE 

◆ anonymous enum

anonymous enum
Enumerator
_PC_LINK_MAX 
_PC_MAX_CANON 
_PC_MAX_INPUT 
_PC_NAME_MAX 
_PC_PATH_MAX 

Function Documentation

◆ confstr()

size_t confstr ( int  name,
char *  buf,
size_t  len 
)

◆ usleep()

int usleep ( int  micro_seconds)

◆ sleep()

unsigned sleep ( unsigned  seconds)

◆ alarm()

unsigned int alarm ( unsigned int  seconds)

◆ ualarm()

useconds_t ualarm ( useconds_t  usecs,
useconds_t  interval 
)

◆ getlogin_r()

int getlogin_r ( char *  buf,
size_t  bufsize 
)

◆ setuid()

int setuid ( uid_t  uid)

◆ seteuid()

int seteuid ( uid_t  euid)

◆ setegid()

int setegid ( gid_t  egid)

◆ setgid()

int setgid ( gid_t  git)

◆ getsid()

pid_t getsid ( pid_t  pid)

◆ setpgid()

int setpgid ( pid_t  pid,
pid_t  pgid 
)

◆ getpgid()

pid_t getpgid ( pid_t  pid)

◆ setresuid()

int setresuid ( uid_t  ruid,
uid_t  euid,
uid_t  suid 
)

◆ setresgid()

int setresgid ( gid_t  rgid,
gid_t  egid,
gid_t  sgid 
)

◆ execl()

exec_ret_t execl ( const char *  pathname,
const char *  arg,
  ... 
)

◆ execle()

exec_ret_t execle ( const char *  pathname,
const char *  arg,
  ... 
)

◆ execlp()

exec_ret_t execlp ( const char *  file,
const char *  arg,
  ... 
)

◆ execv()

exec_ret_t execv ( const char *  pathname,
char *const *  argv 
)

◆ execve()

exec_ret_t execve ( const char *  pathname,
char *const *  argv,
char *const *  envp 
)

◆ execvp()

exec_ret_t execvp ( const char *  file,
char *const *  argv 
)

◆ execvpe()

exec_ret_t execvpe ( const char *  file,
char *const *  argv,
char *const *  envp 
)

◆ daemon()

int daemon ( int  nochdir,
int  noclose 
)

◆ _exit()

void _exit ( int  status)

◆ sysconf()

long sysconf ( int  name)

◆ pathconf()

long pathconf ( const char *  path,
int  name 
)

◆ fpathconf()

long fpathconf ( int  fd,
int  name 
)

◆ pipe()

int pipe ( int  pipefd[2])

◆ pipe2()

int pipe2 ( int  pipefd[2],
int  flags 
)

◆ access()

int access ( const char *  pathname,
int  mode 
)

◆ unlink()

int unlink ( const char *  pathname)

◆ unlinkat()

int unlinkat ( int  dirfd,
const char *  pathname,
int  flags 
)

◆ link()

int link ( const char *  oldpath,
const char *  newpath 
)

◆ mkdir()

int mkdir ( const char *  pathname,
mode_t  mode 
)

◆ mkdirat()

int mkdirat ( int  dirfd,
const char *  pathname,
mode_t  mode 
)

◆ mkdirs()

int mkdirs ( const char *  pathname,
mode_t  mode 
)

◆ rmdir()

int rmdir ( const char *  pathname)

◆ dup()

int dup ( int  oldfd)

◆ dup2()

int dup2 ( int  oldfd,
int  newfd 
)

◆ dup3()

int dup3 ( int  oldfd,
int  newfd,
int  flags 
)

◆ chroot()

int chroot ( const char *  path)

◆ chdir()

int chdir ( const char *  pathname)

◆ fchdir()

int fchdir ( int  fd)

◆ getcwd()

char * getcwd ( char *  buffer,
size_t  maxlen 
)

◆ close()

int close ( int  fd)

◆ lseek()

off_t lseek ( int  fd,
off_t  offset,
int  whence 
)

◆ lseek64()

off64_t lseek64 ( int  fd,
off64_t  offset,
int  whence 
)

◆ read()

ssize_t read ( int  fd,
void *  buf,
size_t  count 
)

◆ write()

ssize_t write ( int  fd,
const void *  buf,
size_t  count 
)

◆ readv()

ssize_t readv ( int  fd,
const struct iovec iov,
int  iovcnt 
)

◆ writev()

ssize_t writev ( int  fd,
const struct iovec iov,
int  iovcnt 
)

◆ pread()

ssize_t pread ( int  fd,
void *  buf,
size_t  count,
off_t  offset 
)

◆ preadv()

ssize_t preadv ( int  fd,
const struct iovec iov,
int  iovcnt,
off_t  offset 
)

◆ preadv64()

ssize_t preadv64 ( int  fd,
const struct iovec vector,
int  iovcnt,
off64_t  offset 
)

◆ pwrite()

ssize_t pwrite ( int  fd,
const void *  buf,
size_t  count,
off_t  offset 
)

◆ pwritev()

ssize_t pwritev ( int  fd,
const struct iovec iov,
int  iovcnt,
off_t  offset 
)

◆ pwritev64()

ssize_t pwritev64 ( int  fd,
const struct iovec vector,
int  iovcnt,
off64_t  offset 
)

◆ sync()

void sync ( void  )

◆ syncfs()

int syncfs ( int  fd)

◆ fsync()

int fsync ( int  fd)

◆ fdatasync()

int fdatasync ( int  fd)

◆ isatty()

int isatty ( int  fd)

◆ ttyname()

char * ttyname ( int  fd)

◆ ttyname_r()

int ttyname_r ( int  fd,
char *  buf,
size_t  buflen 
)

◆ symlink()

int symlink ( const char *  target,
const char *  linkpath 
)

◆ truncate()

int truncate ( const char *  pathname,
off_t  length 
)

◆ ftruncate()

int ftruncate ( int  fd,
off_t  length 
)

◆ truncate64()

int truncate64 ( const char *  pathname,
off64_t  length 
)

◆ ftruncate64()

int ftruncate64 ( int  fd,
off64_t  length 
)

◆ readlink()

ssize_t readlink ( const char *  pathname,
char *  buf,
size_t  bufsiz 
)

◆ tcgetpgrp()

pid_t tcgetpgrp ( int  fd)

◆ tcsetpgrp()

int tcsetpgrp ( int  fd,
pid_t  pgrp 
)

◆ getpass()

char * getpass ( const char *  prompt)

◆ gethostname()

int gethostname ( char *  name,
size_t  len 
)

◆ sethostname()

int sethostname ( const char *  name,
size_t  len 
)

◆ chown()

int chown ( const char *  pathname,
uid_t  owner,
gid_t  group 
)

◆ fchown()

int fchown ( int  fd,
uid_t  owner,
gid_t  group 
)

◆ lchown()

int lchown ( const char *  pathname,
uid_t  owner,
gid_t  group 
)

◆ fchownat()

int fchownat ( int  dirfd,
const char *  pathname,
uid_t  owner,
gid_t  group,
int  flags 
)

◆ getentropy()

int getentropy ( void *  buffer,
size_t  length 
)

◆ sethostid()

int sethostid ( long  hostid)

◆ getdtablesize()

int getdtablesize ( void  )

◆ acct()

int acct ( const char *  filename)

◆ __vsf_linux_vfork_prepare()

pid_t __vsf_linux_vfork_prepare ( vsf_linux_process_t parent_process)

Variable Documentation

◆ vsf_linux_unistd_vplt

__VSF_VPLT_DECORATOR__ vsf_linux_unistd_vplt_t vsf_linux_unistd_vplt
extern