|
standard/chown(2) -- change owner and group of a file
|
Path points to a path name naming a file, and fd refers to the file descriptor associated with a file. The owner ID and group ID of the named file are set to the numeric values contained in owner and group respectively. Note that lchown differs from chown in that it does not follow symbolic links. Only processes with effective user ID equal to the file owner or superuser may change the ownership of a file. However, if the variable restricted_chown is enabled [see intro(2) and lboot(1M)] then onl... |
standard/chroot(2) -- change root directory
|
path points to a path name naming a directory. chroot causes the named directory to become the root directory, the starting point for path searches for path names beginning with /. The user's working directory is unaffected by the chroot system call. The calling process must have the super-user privilege to change the root directory. The .. entry in the root directory is interpreted to mean the root directory itself. Thus, .. cannot be used to ... |
|
standard/clock_settime(2) -- get/set date and time (POSIX)
|
The clock_settime() function sets the specific clock, clock_id, to the value specified by tp. Time values that are between two consecutive nonnegative integer multiples of the resolution of the specified clock are truncated down to the smaller multiple of the resolution. The clock_gettime() function returns the current value tp for the specified clock, clock_id. Depending on the clocks resolution, it may be possi... |
standard/close(2) -- close a file descriptor
|
fildes is a file descriptor obtained from a creat, open, dup, fcntl, pipe, or iocntl system call. close closes the file descriptor indicated by fildes. All outstanding record locks owned by the process (on the file indicated by fildes) are removed. If the link count of the file is zero, when all file descriptors associated with the file have been closed, the space occupied by the file is freed and the... |
standard/comp(2) -- data stream compression and uncompression
|
The comp library and associated system calls allows applications to use the compression and decompression algorithms from compress(1) and uncompress(1) directly, without having to invoke a separate executable. The compression code in this library has been optimized, and if used in combination with large buffer file reading can result in improved compression times of up to 30% over the standard compress code. You must link with the comp library: cc -o prog prog.c -lcomp... |
standard/connect(2) -- initiate a connection on a socket
|
The parameter s is a socket. If it is of type SOCK_DGRAM, then this call specifies the peer with which the socket is to be associated; this address is that to which datagrams are to be sent, and the only address from which datagrams are to be received. If the socket is of type SOCK_STREAM, then this call attempts to make a connection to another socket. The other socket is specified by name, which is an address in the communications space of the socket. Each communications space interprets the na... |
standard/creat(2) -- create a new file or rewrite an existing one
|
creat creates a new ordinary file or prepares to rewrite an existing file named by the path name pointed to by path. If the file exists, the length is truncated to 0 and the mode and owner are unchanged. If the file does not exist the file's owner ID is set to the effective user ID of the process. The group ID of the file is set to the effective group ID of the process or to the group ID of the directory in which the file is being created. This is determined as follows: If the un... |
standard/dev_to_devname(2) -- determine the device name for the device
|
dev_to_devname is useful to determine the canonical hardware graph path name given the device identifier. |
standard/dev_to_drivername(2) -- determine the driver name for the device
|
dev_to_drivername is useful to determine the name of the driver handling the device. |
standard/dmi(2) -- DMAPI internal system call
|
dmi is a system interface specific to Silicon Graphics systems. It is used to implement the interface defined in the X/Open document: Systems Management: Data Storage Management (XDSM) API dated February 1997. This interface is available made available on Silicon Graphics systems by means of the libdm library. The value of the opcode parameter determines the meaning of the remaining arguments. These are all interfaces that are used to implement various libdm functions. The only filesystem that s... |
standard/dup(2) -- duplicate an open file descriptor
|
fildes is a file descriptor obtained from a creat, open, dup, fcntl, pipe, or ioctl system call. dup returns a new file descriptor having the following in common with the original: Same open file (or pipe). Same file pointer (i.e., both file descriptors share one file pointer). Same access mode (read, write or read/write). The new file descriptor is set to remain open across exec system calls [see ... |
standard/exec(2) -- execute a file
|
exec in all its forms overlays a new process image on an old process. The new process image is constructed from an ordinary, executable file. This file is either an executable object file, or a file of data for an interpreter. There can be no return from a successful exec because the calling process image is overlaid by the new process image. An interpreter file begins with a line of the form #! pathname [arg] where pathname is the path of the interpreter, and arg i... |
standard/exit(2) -- terminate process
|
The C library routine exit, which is discussed at the end of this section, invokes the system routine _exit upon completion of its own cleanup chores. _exit terminates the calling process with the following consequences: All of the file descriptors, directory streams and message catalogue descriptors open in the calling process are closed. If the process is sharing file descriptors via an sproc, other members of the share group do NOT have their... |
standard/fcntl(2) -- file and descriptor control
|
fcntl provides for control over open descriptors. fildes is an open descriptor obtained from a creat, open, dup, fcntl, pipe, socket, or socketpair system call. The commands available are: F_DUPFD Return a new descriptor as follows: Lowest numbered available descriptor greater than or equal to the third argument, arg, taken as an object of type int. Refers to the same object as the original descriptor. Same file pointer as the original file (i.e., both file descriptors share one file pointer). S... |
standard/fdes_to_devname(2) -- determine the device name for the device
|
fdes_to_devname is useful to determine the canonical hardware graph path name given the a device file descriptor. Note that this file descriptor can correspond to any of the different alias names for the device. |