posix library

Classes

ArrayHelper___locale_struct___locales_level0
Helper for array __locales in struct __locale_struct.
ArrayHelper___locale_struct___names_level0
Helper for array __names in struct __locale_struct.
Group
group
IO_FILE
locale_data
locale_struct
Mode
Passwd
Dart implemenation of posix passwd structure
Stat
Sysinfo
Certain statistics on memory and swap usage, as well as the load average.
Utsname
Name and information about current kernel.

Constants

E2BIG → const int
EACCES → const int
EADDRINUSE → const int
EADDRNOTAVAIL → const int
EADV → const int
EAFNOSUPPORT → const int
EAGAIN → const int
EALREADY → const int
EBADE → const int
EBADF → const int
EBADFD → const int
EBADMSG → const int
EBADR → const int
EBADRQC → const int
EBADSLT → const int
EBFONT → const int
EBUSY → const int
ECANCELED → const int
ECHILD → const int
ECHRNG → const int
ECOMM → const int
ECONNABORTED → const int
ECONNREFUSED → const int
ECONNRESET → const int
EDEADLK → const int
EDEADLOCK → const int
EDESTADDRREQ → const int
EDOM → const int
EDOTDOT → const int
EDQUOT → const int
EEXIST → const int
EFAULT → const int
EFBIG → const int
EHOSTDOWN → const int
EHOSTUNREACH → const int
EHWPOISON → const int
EIDRM → const int
EILSEQ → const int
EINPROGRESS → const int
EINTR → const int
EINVAL → const int
EIO → const int
EISCONN → const int
EISDIR → const int
EISNAM → const int
EKEYEXPIRED → const int
EKEYREJECTED → const int
EKEYREVOKED → const int
EL2HLT → const int
EL2NSYNC → const int
EL3HLT → const int
EL3RST → const int
ELIBACC → const int
ELIBBAD → const int
ELIBEXEC → const int
ELIBMAX → const int
ELIBSCN → const int
ELNRNG → const int
ELOOP → const int
EMEDIUMTYPE → const int
EMFILE → const int
EMSGSIZE → const int
EMULTIHOP → const int
ENAMETOOLONG → const int
ENAVAIL → const int
ENETDOWN → const int
ENETRESET → const int
ENETUNREACH → const int
ENFILE → const int
ENOANO → const int
ENOBUFS → const int
ENOCSI → const int
ENODATA → const int
ENODEV → const int
ENOENT → const int
ENOEXEC → const int
ENOKEY → const int
ENOLCK → const int
ENOMEDIUM → const int
ENOMEM → const int
ENOMSG → const int
ENONET → const int
ENOPKG → const int
ENOPROTOOPT → const int
ENOSPC → const int
ENOSR → const int
ENOSTR → const int
ENOSYS → const int
ENOTBLK → const int
ENOTCONN → const int
ENOTDIR → const int
ENOTEMPTY → const int
ENOTNAM → const int
ENOTRECOVERABLE → const int
ENOTSOCK → const int
ENOTSUP → const int
ENOTTY → const int
ENOTUNIQ → const int
ENXIO → const int
EOPNOTSUPP → const int
EOVERFLOW → const int
EOWNERDEAD → const int
EPERM → const int
EPFNOSUPPORT → const int
EPIPE → const int
EPROTO → const int
EPROTONOSUPPORT → const int
EPROTOTYPE → const int
ERANGE → const int
EREMCHG → const int
EREMOTE → const int
EREMOTEIO → const int
ERESTART → const int
ERFKILL → const int
EROFS → const int
ESHUTDOWN → const int
ESOCKTNOSUPPORT → const int
ESPIPE → const int
ESRCH → const int
ESRMNT → const int
ESTALE → const int
ESTRPIPE → const int
ETIME → const int
ETIMEDOUT → const int
ETOOMANYREFS → const int
ETXTBSY → const int
EUCLEAN → const int
EUNATCH → const int
EUSERS → const int
EWOULDBLOCK → const int
EXDEV → const int
EXFULL → const int
F_LOCK → const int
F_OK → const int
F_TEST → const int
F_TLOCK → const int
F_ULOCK → const int
L_INCR → const int
L_SET → const int
L_XTND → const int
PATH_MAX → const int
R_OK → const int
S_IFBLK → const int
S_IFCHR → const int
S_IFDIR → const int
S_IFIFO → const int
S_IFLNK → const int
S_IFMT → const int
S_IFREG → const int
S_IFSOCK → const int
S_IRGRP → const int
S_IROTH → const int
S_IRUSR → const int
S_IRWXG → const int
S_IRWXO → const int
S_IRWXU → const int
S_ISGID → const int
S_ISUID → const int
S_ISVTX → const int
S_IWGRP → const int
S_IWOTH → const int
S_IWUSR → const int
S_IXGRP → const int
S_IXOTH → const int
S_IXUSR → const int
SEEK_CUR → const int
SEEK_END → const int
SEEK_SET → const int
SI_LOAD_SHIFT → const int
W_OK → const int
X_OK → const int

Properties

isPosixSupported bool
Returns true if posix is supported on this platform.
no setter

Functions

access(String name, int type) int
Test for access to NAME using the real UID and real GID.
acct(String name) int
Turn accounting on if NAME is an existing file. The system will then write a record for each process as it terminates, to this file. If NAME is NULL, turn accounting off. This call is restricted to the super-user.
alarm(int seconds) int
Schedule an alarm. In SECONDS seconds, the process will get a SIGALRM. If SECONDS is zero, any currently scheduled alarm will be cancelled. The function returns the number of seconds remaining until the last alarm scheduled would have signaled, or zero if there wasn't one. There is no return value to indicate an error, but you can set errno' to 0 and check its value after calling alarm', and this might tell you. The signal may come late due to processor scheduling.
bcmp(Pointer<Void> __s1, Pointer<Void> __s2, int __n) int
bcopy(Pointer<Void> __src, Pointer<Void> __dest, int __n) → void
bzero(Pointer<Void> __s, int __n) → void
chdir(String path) int
Change the process's working directory to PATH.
chmod(String filename, String permissions) → void
Change the permission of filename.
chown(String filename, int owner, int group) → void
Change the owner and group of FILE.
chroot(String path) int
Make PATH be the root directory (the starting point for absolute paths). This call is restricted to the super-user.
clearErrno() → void
Clear the errno by setting it to 0. You should do this before calling a function that may set errno.
close(int fd) int
Close the file descriptor FD.
confstr(int name) String
Get the value of the string-valued system variable NAME.
daemon(int nochdir, int noclose) int
Put the program in the background, and dissociate from the controlling terminal. If NOCHDIR is zero, do `chdir ("/")'. If NOCLOSE is zero, redirects stdin, stdout, and stderr to /dev/null.
dup(int fd) int
Duplicate FD, returning a new file descriptor on the same file.
dup2(int fd, int fd2) int
Duplicate FD to FD2, closing FD2 and making it open on the same file.
endgrent() → void
Close the group-file stream.
endpwent() → void
Close the user database stream.
endusershell() → void
errno() int
The error code set by various library functions.
execl(String path, String arg) int
Execute PATH with all arguments after PATH until a NULL pointer and environment from `environ'.
execle(String path, String arg) int
Execute PATH with all arguments after PATH until a NULL pointer, and the argument after that for environment.
execlp(String file, String arg) int
Execute FILE, searching in the PATH' environment variable if it contains no slashes, with all arguments after FILE until a NULL pointer and environment from environ'.
exit(int status) → void
Terminate program execution with the low-order 8 bits of STATUS.
explicit_bzero(Pointer<Void> __s, int __n) → void
Set N bytes of S to 0. The compiler will not delete a call to this function, even if S is dead after the call.
faccessat(int fd, String filename, int type, int flag) int
Test for access to FILE relative to the directory FD is open on. If AT_EACCESS is set in FLAG, then use effective IDs like eaccess', otherwise use real IDs like access'.
fchdir(int fd) int
Change the process's working directory to the one FD is open on.
fchown(int fd, int owner, int group) int
Change the owner and group of the file that FD is open on.
fchownat(int fd, String filename, int owner, int group, int flag) int
Change the owner and group of FILE relative to the directory FD is open on.
fdatasync(int fildes) int
Synchronize at least the data part of a file with the underlying media.
ffs(int __i) int
ffsl(int __l) int
ffsll(int __ll) int
fork() int
Clone the calling process, creating an exact copy. Return 0 to the new process, and the process ID of the new process to the old process.
fpathconf(int fd, int name) int
Get file-specific configuration about descriptor FD.
fsync(int fd) int
Make all changes done to FD actually appear on disk.
ftruncate(int fd, int length) int
getcwd() String
We provide a wrapper for each posix method that takes and return dart types.
getdomainname(String name, int len) int
Get and set the NIS (aka YP) domain name, if any. Called just like gethostname' and sethostname'. The NIS domain name is usually the empty string when not using NIS.
getdtablesize() int
Return the maximum number of file descriptors the current process could possibly have.
getegid() int
Get the effective group ID of the calling process.
geteuid() int
Get the effective user ID of the calling process.
getgid() int
Get the real group ID of the calling process.
getgrent() Group
Read an entry from the group-file stream, opening it if necessary.
getgrgid(int gid) Group
Search for an entry with a matching group ID.
getgrnam(String group) Group
Search for an entry with a matching group name.
getGroupByGid(int gid) Group
getGroupGuid(int gid) Group
Search for a Group with a matching group ID.
getGroupIds() List<int>
Retrieves the list of group gid's for the current user.
getGroupName(String group) Group
Search for a Group with a matching group name.
getGroups() List<Group>
Retrieves the list of Groups for the current user.
getgroups() List<int>
Retrieves the list of groups for the current users.
gethostid() int
Return identifier for the current host.
gethostname() String
Get the name of the current host.
getlogin() String?
Return the login name of the user.
getlogin_r() String
Returns the login name.
getpagesize() int
Return the number of bytes in a page. This is the system's page size, which is not necessarily the same as the hardware page size.
getPassword(String username) Passwd
Retrieve the user database entry for the given username.
getpgid(int pid) int
getpgrp() int
Get the process group ID of the calling process.
getpid() int
Get the process ID of the calling process.
getppid() int
Get the process ID of the calling process's parent.
getpwent() Passwd?
Read an entry from the user database stream, opening it if necessary.
getpwnam(String username) Passwd
Retrieve the user database entry for the given username.
getpwuid(int uid) Passwd
Retrieve the user database entry for the given user ID.
getsid(int pid) int
Return the session ID of the given process.
getuid() int
Get the real user ID of the calling process.
getUserNameByUID(int uid) String
the simplified library provides a number of the more obvious entry points for common operations.
getUsers() List<Passwd>
Retrieves the list of Groups for the current user.
index(Pointer<Int8> __s, int __c) Pointer<Int8>
initgroups(String user, {int? group}) → void
Initialize the group set for the current user by reading the group database and using all groups of which USER is a member. Also adds group to the list of groups if passed.
isatty(int fd) int
Return 1 if FD is a valid descriptor associated with a terminal, zero if not.
lchown(String filename, int owner, int group) int
Change owner and group of FILE, if it is a symbolic link the ownership of the symbolic link is changed.
Make a link to FROM named TO.
linkat(int __fromfd, String from, int __tofd, String to, int flags) → void
Like link but relative paths in TO and FROM are interpreted relative to FROMFD and TOFD respectively.
lockf(int fd, int cmd, int len) int
lseek(int fd, int offset, int whence) int
lstat(String pathToFile) Stat
memccpy(Pointer<Void> __dest, Pointer<Void> __src, int __c, int __n) Pointer<Void>
memchr(Pointer<Void> __s, int __c, int __n) Pointer<Void>
memcmp(Pointer<Void> __s1, Pointer<Void> __s2, int __n) int
Compare N bytes of S1 and S2.
memcpy(Pointer<Void> __dest, Pointer<Void> __src, int __n) Pointer<Void>
Exposes a collection of C string and memory functions such as 'strcpy'.
memmove(Pointer<Void> __dest, Pointer<Void> __src, int __n) Pointer<Void>
Copy N bytes of SRC to DEST, guaranteeing correct behavior for overlapping strings.
memset(Pointer<Void> __s, int __c, int __n) Pointer<Void>
Set N bytes of S to C.
native_brk(Pointer<Void> addr) int
Set the end of accessible data space (aka "the break") to ADDR. Returns zero on success and -1 for errors (with errno set).
native_crypt(Pointer<Utf8> key, Pointer<Utf8> salt) Pointer<Utf8>
One-way hash PHRASE, returning a string suitable for storage in the user database. SALT selects the one-way function to use, and ensures that no two users' hashes are the same, even if they use the same passphrase. The return value points to static storage which will be overwritten by the next call to crypt.
native_execv(String path, Pointer<Pointer<Utf8>> __argv) int
Execute PATH with arguments ARGV and environment from `environ'.
native_execve(String path, Pointer<Pointer<Utf8>> __argv, Pointer<Pointer<Utf8>> __envp) int
Replace the current process, executing PATH with arguments ARGV and environment ENVP. ARGV and ENVP are terminated by NULL pointers.
native_execvp(String file, Pointer<Pointer<Utf8>> __argv) int
Execute FILE, searching in the PATH' environment variable if it contains no slashes, with arguments ARGV and environment from environ'.
native_fexecve(int fd, Pointer<Pointer<Utf8>> __argv, Pointer<Pointer<Utf8>> __envp) int
Execute the file FD refers to, overlaying the running program image. ARGV and ENVP are passed to the new program, as for `execve'.
native_fgetgrent(Pointer<IO_FILE> __stream) Group
Read a group entry from STREAM.
native_getcwd(Pointer<Int8> buf, int size) Pointer<Int8>
Get the pathname of the current working directory, and put it in SIZE bytes of BUF. Returns NULL if the directory couldn't be determined or SIZE was too small. If successful, returns BUF. In GNU, if BUF is NULL, an array is allocated with `malloc'; the array is SIZE bytes long, unless SIZE == 0, in which case it is as big as necessary.
native_getentropy(Pointer<Void> buffer, int length) int
Write LENGTH bytes of randomness starting at BUFFER. Return 0 on success or -1 on error.
native_getopt(int argc, Pointer<Pointer<Utf8>> ___argv, Pointer<Utf8> __shortopts) int
native_getpass(Pointer<Utf8> __prompt) Pointer<Utf8>
Prompt with PROMPT and read a string from the terminal without echoing. Uses /dev/tty if possible; otherwise stderr and stdin.
native_getsid(int pid) int
Return the session ID of the given process.
native_getusershell() Pointer<Utf8>
Successive calls return the shells listed in `/etc/shells'.
native_getwd(Pointer<Int8> buf) Pointer<Int8>
Put the absolute pathname of the current working directory in BUF. If successful, return BUF. If not, put an error message in BUF and return NULL. BUF should be at least PATH_MAX bytes long.
native_pipe(Pointer<Int32> __pipedes) List<int>
Create a one-way communication channel (pipe). If successful, two file descriptors are stored in PIPEDES; bytes written on PIPEDES1 can be read from PIPEDES0. Returns 0 if successful, -1 if not.
native_profil(Pointer<Uint16> SampleBuffer, int size, int offset, int scale) int
Enable statistical profiling, writing samples of the PC into at most SIZE bytes of SAMPLE_BUFFER; every processor clock tick while profiling is enabled, the system examines the user PC and increments SAMPLE_BUFFER((PC - OFFSET) / 2) * SCALE / 65536. If SCALE is zero, disable profiling. Returns zero on success, -1 on error.
Read the contents of the symbolic link PATH into no more than LEN bytes of BUF. The contents are not null-terminated. Returns the number of characters read, or -1 for errors.
native_readlinkat(int fd, String path, Pointer<Utf8> buf, int len) → void
Like readlink but a relative PATH is interpreted relative to FD.
native_setregid(int rgid, int egid) → void
Set the real group ID of the calling process to RGID, and the effective group ID of the calling process to EGID. Throws PosixException if the operation fails.
native_ttyname(int fd) Pointer<Utf8>
Return the pathname of the terminal associate with the fd or null if no terminal is associated with the fd
native_ttyname_r(int fd, Pointer<Utf8> buf, int buflen) int
Store at most BUFLEN characters of the pathname of the terminal FD is open on in BUF. Return 0 on success, otherwise an error number.
nice(int increment) int
Add increment] to priority of the current process and returns the new process priority.
pathconf(String path, int name) int
Get file-specific configuration information about PATH.
pause() int
Suspend the process until a signal arrives. This always returns -1 and sets `errno' to EINTR.
pread(int fd, int nbytes, int offset) List<int>
Read NBYTES and returns 'nbytes' from FD at the given position OFFSET without changing the file pointer.
pwrite(int fd, List<int> buf, int offset) int
Write N bytes of BUF to FD at the given position OFFSET without changing the file pointer. Return the number of bytes written
read(int fd, int nbytes) List<int>
Read NBYTES from FD. Returning the bytes read.
revoke(String filename) int
Revoke the access of all descriptors currently open on FILE.
rindex(Pointer<Int8> __s, int __c) Pointer<Int8>
rmdir(String path) → void
Remove the directory PATH.
sbrk(int delta) Pointer<Void>
Increase or decrease the end of accessible data space by DELTA bytes. If successful, returns the address the previous end of data space (i.e. the beginning of the new space, if DELTA > 0); returns (void *) -1 for errors (with errno set).
setdomainname(String name, int len) int
setegid(int gid) → void
Set the effective group ID of the calling process to GID. Throws PosixException if the operation fails.
setErrno(int error) → void
seteuid(int uid) → void
Set the effective user ID of the calling process to UID.
setgid(int gid) → void
Set the group ID of the calling process to GID. If the calling process is the super-user, set the real and effective group IDs, and the saved set-group-ID to GID; if not, the effective group ID is set to GID. Throws PosixException if the operation fails.
setgrent() → void
Rewind the group-file stream.
sethostid(int id) int
Set the current machine's Internet number to ID. This call is restricted to the super-user.
sethostname(String name) int
Set the name of the current host to NAME. This call is restricted to the super-user.
setlogin(String name) → void
Set the login name returned by `getlogin'. Throws PosixException if the call fails.
setpgid(int pid, int pgid) int
Set the process group ID of the process matching PID to PGID. If PID is zero, the current process's process group ID is set. If PGID is zero, the process ID of the process is used.
setpgrp() int
Set the process group ID of the calling process to its own PID. This is exactly the same as `setpgid (0, 0)'.
setpwent() → void
Rewind the user database stream.
setregid(int rgid, int egid) → void
Set the real group ID of the calling process to RGID, and the effective group ID of the calling process to EGID. Throws PosixException if the operation fails.
setreuid(int ruid, int euid) → void
Set the real user ID of the calling process to RUID, and the effective user ID of the calling process to EUID. Throws PosixException if the operation fails.
setsid() int
Create a new session with the calling process as its leader. The process group IDs of the session and the calling process are set to the process ID of the calling process, which is returned.
setuid(int uid) → void
Set the user ID of the calling process to UID. If the calling process is the super-user, set the real and effective user IDs, and the saved set-user-ID to UID; if not, the effective user ID is set to UID.
setusershell() → void
sleep(int seconds) int
Make the process sleep for SECONDS seconds, or until a signal arrives and is not ignored. The function returns the number of seconds less than SECONDS which it actually slept (thus zero if it slept the full time). If a signal handler does a longjmp' or modifies the handling of the SIGALRM signal while inside sleep' call, the handling of the SIGALRM signal afterwards is undefined. There is no return value to indicate error, but if `sleep' returns SECONDS, it probably didn't work.
stat(String pathToFile) Stat
stpcpy(Pointer<Int8> __dest, Pointer<Int8> __src) Pointer<Int8>
Copy SRC to DEST, returning the address of the terminating '\0' in DEST.
stpncpy(Pointer<Int8> __dest, Pointer<Int8> __src, int __n) Pointer<Int8>
Copy no more than N characters of SRC to DEST, returning the address of the last character written into DEST.
strcasecmp(Pointer<Int8> __s1, Pointer<Int8> __s2) int
strcasecmp_l(Pointer<Int8> __s1, Pointer<Int8> __s2, Pointer<locale_struct> __loc) int
strcat(Pointer<Int8> __dest, Pointer<Int8> __src) Pointer<Int8>
Append SRC onto DEST.
strchr(Pointer<Int8> __s, int __c) Pointer<Int8>
strcmp(Pointer<Int8> __s1, Pointer<Int8> __s2) int
Compare S1 and S2.
strcoll(Pointer<Int8> __s1, Pointer<Int8> __s2) int
Compare the collated forms of S1 and S2.
strcoll_l(Pointer<Int8> __s1, Pointer<Int8> __s2, Pointer<locale_struct> __l) int
Compare the collated forms of S1 and S2, using sorting rules from L.
strcpy(Pointer<Int8> __dest, Pointer<Int8> __src) Pointer<Int8>
Copy SRC to DEST.
strcspn(Pointer<Int8> __s, Pointer<Int8> __reject) int
Return the length of the initial segment of S which consists entirely of characters not in REJECT.
strdup(Pointer<Int8> __s) Pointer<Int8>
Duplicate S, returning an identical malloc'd string.
strerror(int errnum) String
Return a string describing the meaning of the `errno' code in ERRNUM.
strerror_l(int __errnum, Pointer<locale_struct> __l) Pointer<Int8>
Translate error number to string according to the locale L.
strerror_r(int __errnum, Pointer<Int8> __buf, int __buflen) int
strlen(Pointer<Int8> __s) int
Return the length of S.
strncasecmp(Pointer<Int8> __s1, Pointer<Int8> __s2, int __n) int
strncasecmp_l(Pointer<Int8> __s1, Pointer<Int8> __s2, int __n, Pointer<locale_struct> __loc) int
strncat(Pointer<Int8> __dest, Pointer<Int8> __src, int __n) Pointer<Int8>
Append no more than N characters from SRC onto DEST.
strncmp(Pointer<Int8> __s1, Pointer<Int8> __s2, int __n) int
Compare N characters of S1 and S2.
strncpy(Pointer<Int8> __dest, Pointer<Int8> __src, int __n) Pointer<Int8>
Copy no more than N characters of SRC to DEST.
strndup(Pointer<Int8> __string, int __n) Pointer<Int8>
strnlen(Pointer<Int8> __string, int __maxlen) int
Find the length of STRING, but scan at most MAXLEN characters. If no '\0' terminator is found in that many characters, return MAXLEN.
strpbrk(Pointer<Int8> __s, Pointer<Int8> __accept) Pointer<Int8>
strrchr(Pointer<Int8> __s, int __c) Pointer<Int8>
strsep(Pointer<Pointer<Int8>> __stringp, Pointer<Int8> __delim) Pointer<Int8>
Return the next DELIM-delimited token from *STRINGP, terminating it with a '\0', and update *STRINGP to point past it.
strsignal(int __sig) Pointer<Int8>
Return a string describing the meaning of the signal number in SIG.
strspn(Pointer<Int8> __s, Pointer<Int8> __accept) int
Return the length of the initial segment of S which consists entirely of characters in ACCEPT.
strstr(Pointer<Int8> __haystack, Pointer<Int8> __needle) Pointer<Int8>
strtok(Pointer<Int8> __s, Pointer<Int8> __delim) Pointer<Int8>
Divide S into tokens separated by characters in DELIM.
strxfrm(Pointer<Int8> __dest, Pointer<Int8> __src, int __n) int
Put a transformation of SRC into no more than N bytes of DEST.
strxfrm_l(Pointer<Int8> __dest, Pointer<Int8> __src, int __n, Pointer<locale_struct> __l) int
Put a transformation of SRC into no more than N bytes of DEST, using sorting rules from L.
Make a symbolic link to FROM named TO.
symlinkat(String from, int tofd, String to) → void
Like symlink but a relative path in TO is interpreted relative to TOFD.
sync_1() → void
Make all changes done to all files actually appear on disk.
syscall(int __sysno) int
Invoke `system call' number SYSNO, passing it the remaining arguments. This is completely system-dependent, and not often useful.
sysconf(int name) int
Get the value of the system variable NAME.
sysinfo() Sysinfo
Return system information.
tcgetpgrp(int fd) int
Return the foreground process group ID of FD.
tcsetpgrp(int fd, int pgrpId) int
Set the foreground process group ID of FD set PGRP_ID.
truncate(String filename, int length) int
ttyname(int fd) String
Return the pathname of the terminal associate with the fd or null if no terminal is associated with the fd
ttyslot() int
Return the index into the active-logins file (utmp) for the controlling terminal.
ualarm(int value, int interval) int
Set an alarm to go off (generating a SIGALRM signal) in VALUE microseconds. If INTERVAL is nonzero, when the alarm goes off, the timer is reset to go off every INTERVAL microseconds thereafter. Returns the number of microseconds remaining before the alarm.
uname() Utsname
Returns name and information about current kernel.
Remove the link NAME.
unlinkat(int fd, String name, int flag) → void
Remove the link NAME relative to FD.
usleep(int useconds) int
Sleep USECONDS microseconds, or until a signal arrives that is not blocked or ignored.
vfork() int
Clone the calling process, but without copying the whole address space. The calling process is suspended until the new process exits or is replaced by a call to `execve'. Return 0 to the new child process, Returns the process ID of the new process to the parent process.
vhangup() int
Revoke access permissions to all processes currently communicating with the control terminal, and then send a SIGHUP signal to the process group of the control terminal.
write(int fd, List<int> buf) int
Writes buf to FD. Return the number of bytes written;

Exceptions / Errors

PosixException
StatException