|
standard/filename_to_drivername(2) -- determine the device name for the device file
|
filename_to_drivername is useful to determine the name of the driver handling the device with the given special filename. Note that there can multiple alias names for a device vertex in the hardware graph. |
standard/fork(2) -- create a new process
|
fork causes creation of a new process. The new process (child process) is an exact copy of the calling process (parent process). This means the child process inherits the following attributes from the parent process: real user ID, real group ID, effective user ID, effective group ID environment close-on-exec flag [see exec(2)] signal handling settings (i.e., SIG_DFL, SIG_IGN, SIG_HOLD, function address) supplementar... |
standard/fpathconf(2) -- get configurable pathname variables
|
The functions fpathconf and pathconf return the current value of a configurable limit or option associated with a file or directory. The path argument points to the pathname of a file or directory; fildes is an open file descriptor; and name is the symbolic constant (defined in <sys/unistd.h>) representing the configurable system limit or option to be returned. The values returned by pathc... |
standard/fsync(2) -- synchronize a file's in-memory state with that on the physical medium
|
fsync moves all modified data and attributes of fildes to a storage device. When fsync returns, all in-memory modified copies of buffers associated with fildes have been written to the physical medium. fsync is different from sync, which schedules disk I/O for all files but returns before the I/O completes. fsync should be used by programs that require that a file be in a known state. For example, a program that contains a s... |
standard/getash(2) -- get array session handle
|
The getash function returns the array session handle (ASH) for the array session that contains the calling process. The handle for an array session is normally assigned by the system when the array session is first created. This can be overridden using the privileged setash(2) function. For details, see the man pages for setash(2). |
standard/getcontext(2) -- get and set current user context
|
These functions, along with those defined in makecontext(3C), are useful for implementing user level context switching between multiple threads of control within a process. getcontext initializes the structure pointed to by ucp to the current user context of the calling process. The user context is defined by ucontext(5) and includes the contents of the calling process's machine registers, signal mask and exe... |
standard/getdents(2) -- read directory entries and put in a file system independent format
|
fildes is a file descriptor obtained from a creat, open, dup, fcntl, pipe, or ioctl system call. getdents attempts to read nbyte bytes from the directory associated with fildes and to format them as file system independent directory entries in the buffer pointed to by buf. Since the file system independent directory entries are of variable length, in most cases the actual number of bytes returne... |
standard/getdomainname(2) -- get/set name of current NIS domain
|
Getdomainname returns the name of the NIS domain for the current host, as previously set by setdomainname. The parameter namelen specifies the size of the name array. The returned name is null-terminated unless insufficient space is provided. Setdomainname sets the NIS domain of the host to be name, which has length namelen. This call is restricted to the superuser and is normally used only during system initialization. The purpose of NIS domains is to enable two distinct networks that may have ... |
standard/getdtablesize(2) -- get file descriptor table size
|
getdtablesize returns the maximum number of file descriptors that the calling process can open. The related getdtablehi(3C) function returns the value of the largest open file descriptor, plus one. The description of {OPEN_MAX} in intro(2) provides more information about how file descriptors are allocated and the various limits imposed on their use. |
standard/getgroups(2) -- get supplementary group access list IDs
|
getgroups retrieves the current group access list of the user process and stores it in the array gidset. The parameter setlen indicates the number of entries that may be placed in gidset. The return value is the actual number of groups placed in gidset, and this will never be greater than NGROUPS_UMAX for the POSIX version, and NGROUPS for the BSD version, as defined in . As a special case, if the setlen parameter is zero, getgroups returns the number of supplemental group IDs assoc... |
standard/gethostid(2) -- get/set unique identifier of current host
|
Sethostid establishes a 32-bit identifier for the current host that is intended to be unique among all UNIX systems in existence. This is normally a DARPA Internet address for the local machine. This call is allowed only to the superuser and is normally performed at boot time. Gethostid returns the 32-bit identifier for the current host. |
standard/gethostname(2) -- get/set name of current host
|
Gethostname returns the standard hostname for the current processor, as previously set by sethostname. The parameter namelen specifies the size of the name array. The returned name is null-terminated and truncated if insufficient space is provided. Sethostname sets the name of the host machine to be name, which has length namelen. This call is restricted to the superuser and is normally used only when the system is bootstrapped.... |
standard/getitimer(2) -- get/set value of interval timer
|
The system provides each process with three interval timers, defined in . The getitimer call returns the current value for the timer specified in which, while the setitimer call sets the value of a timer (optionally returning the previous value of the timer). A timer value is defined by the itimerval structure: struct itimerval { struct timeval it_interval; /* timer interval */ struct timeval it_value; /* current value */ }; If it_value is non-zero, it indicates the time to the next ... |