|
accept(2) -- Accept a new connection on a socket
|
The accept() function extracts the first connection on the queue of pending connections, creates a new socket with the same properties as the specified socket, and allocates a new file descriptor for ... |
access(2) -- Determines the accessibility of a file
|
The access() function checks for accessibility of the file specified by a pathname. Only access bits are checked. A directory may be indicated as writable by access(), but an attempt to open it for wr... |
|
acct(2) -- Enables and disables process accounting
|
The acct() function enables and disables UNIX process accounting. When enabled, process accounting produces an accounting record on behalf of each terminating process. The path parameter specifies the... |
adjtime(2) -- Correct the time to allow synchronization of the system clock
|
The adjtime() function makes small adjustments to the system time (as returned by the gettimer() function), advancing or decreasing it by the time specified by the delta parameter of the timeval struc... |
aio_fsync(2) -- Asynchronously writes changes in a file to permanent storage
|
The aio_fsync function asynchronously causes system buffers containing a file's modified data to be written to permanent storage. All modified data in the file indicated by the file descriptor in the... |
async_daemon(2) -- Create a local NFS asynchronous I/O server
|
The use of the async_daemon() function is not supported in customer applications, and the interface is subject to change without notice. It is intended for use solely by nfsiod(8). The async_daemon() ... |
atexit(2) -- Terminate a process
|
The atexit() function registers functions to be called at normal process termination for cleanup processing. The function adds a single exit handler to a list of handlers to be called at process termi... |
audcntl(2) -- audit control
|
The audcntl system call provides control over flags offered by the audit subsystem. All requests, except where otherwise noted, are privileged. The following list describes the requests: The system au... |
audgen(2) -- generate an audit record
|
The audgen system call generates an audit record. The argument event is an integer indicating the event type of the operation being audited (see audit.h). The value of event must be between one of the... |
bind(2) -- Bind a name to a socket
|
The bind() function assigns an address to an unnamed socket. Sockets created with the socket() function are unnamed; they are identified only by their address family. A bind that references a UNIX dom... |
brk(2) -- Change space allocation
|
The brk() function sets the lowest data segment location not used by the program (called the break) to addr. In the alternate function sbrk(), incr more bytes are added to the program's data space, a... |
bsd_signal(2) -- Interface to simplified signal facilities
|
The bsd_signal() function provides a partially compatible interface for programs written to historical system interfaces. The handler function should be declared as follows (sig is the signal number).... |
chdir(2) -- Change the current directory
|
The chdir() function changes the current directory to the directory indicated by the path parameter. If the path parameter refers to a symbolic link, the chdir() function sets the current directory to... |
chmod(2) -- Change file access permissions
|
The chmod() function sets the access permissions of the file specified by the path parameter according to the bit pattern specified by the mode parameter. The fchmod() function sets the access permiss... |
chown(2) -- Change the owner and group IDs of a file
|
The chown(), lchown() and fchown() functions change the owner and group of a file. A process can change the value of the owner ID of a file only if the process has superuser privilege. A process witho... |
chroot(2) -- Change the effective root directory
|
The chroot() function causes the directory named by the path parameter to become the effective root directory. The effective root directory is the starting point when searching for a file's pathname ... |
close(2) -- Close the file associated with a file descriptor
|
The close() function closes the file associated with the filedes parameter. All regions of a file specified by the filedes parameter that this process has previously locked with the lockf() function a... |
connect(2) -- Connect two sockets
|
The connect() function requests a connection between two sockets. The kernel sets up the communications links between the sockets; both sockets must use the same address format and protocol. The conne... |
creat(2) -- Open a file for reading or writing
|
The following two function calls are equivalent: creat(path, mode); open(path, O_WRONLY | O_CREAT | O_TRUNC, mode); The open() and creat() functions establish a connection between the file named by th... |
dup(2) -- Control open file descriptors
|
The fcntl() function performs controlling operations on the open file specified by the filedes parameter. When the fcntl(), dup() and dup2() functions need to block, only the calling thread is suspend... |
dup2(2) -- Control open file descriptors
|
The fcntl() function performs controlling operations on the open file specified by the filedes parameter. When the fcntl(), dup() and dup2() functions need to block, only the calling thread is suspend... |
environ(2) -- Execute a file
|
The exec functions replace the current process image with a new process image. The system constructs the new image from an executable file, called a new process image file. Successful calls to exec fu... |
errno(2) -- Introduction to system calls
|
Section 2 describes the Tru64 UNIX system calls, which are the entries into the operating system kernel. Some reference pages in this section may contain suffixes to allow their files to exist with th... |
exec(2) -- Execute a file
|
The exec functions replace the current process image with a new process image. The system constructs the new image from an executable file, called a new process image file. Successful calls to exec fu... |
execl(2) -- Execute a file
|
The exec functions replace the current process image with a new process image. The system constructs the new image from an executable file, called a new process image file. Successful calls to exec fu... |
execle(2) -- Execute a file
|
The exec functions replace the current process image with a new process image. The system constructs the new image from an executable file, called a new process image file. Successful calls to exec fu... |
execlp(2) -- Execute a file
|
The exec functions replace the current process image with a new process image. The system constructs the new image from an executable file, called a new process image file. Successful calls to exec fu... |
execv(2) -- Execute a file
|
The exec functions replace the current process image with a new process image. The system constructs the new image from an executable file, called a new process image file. Successful calls to exec fu... |
execve(2) -- Execute a file
|
The exec functions replace the current process image with a new process image. The system constructs the new image from an executable file, called a new process image file. Successful calls to exec fu... |
execvp(2) -- Execute a file
|
The exec functions replace the current process image with a new process image. The system constructs the new image from an executable file, called a new process image file. Successful calls to exec fu... |
exec_with_loader(2) -- Execute a file with a loader
|
The exec_with_loader() function replaces the current process image with a new process image, in a manner similar to what the exec functions do. Both the loader parameter and the file parameter point t... |
exit(2) -- Terminate a process
|
The atexit() function registers functions to be called at normal process termination for cleanup processing. The function adds a single exit handler to a list of handlers to be called at process termi... |
exportfs(2) -- Export an NFS file system
|
The exportfs system call allows the specified local file system to be mounted remotely by an NFS client. This system call is usually called from mountd. The system call allows access to the kernels ex... |
fchdir(2) -- Change the current directory
|
The chdir() function changes the current directory to the directory indicated by the path parameter. If the path parameter refers to a symbolic link, the chdir() function sets the current directory to... |
fchmod(2) -- Change file access permissions
|
The chmod() function sets the access permissions of the file specified by the path parameter according to the bit pattern specified by the mode parameter. The fchmod() function sets the access permiss... |
fchown(2) -- Change the owner and group IDs of a file
|
The chown(), lchown() and fchown() functions change the owner and group of a file. A process can change the value of the owner ID of a file only if the process has superuser privilege. A process witho... |
fcntl(2) -- Control open file descriptors
|
The fcntl() function performs controlling operations on the open file specified by the filedes parameter. When the fcntl(), dup() and dup2() functions need to block, only the calling thread is suspend... |
fdatasync(2) -- Writes data changes in a file to permanent storage
|
The fdatasync function causes system buffers containing a file's modified data to be written to permanent storage. The fdatasync function does not return until the operation has been completed. The f... |
flock(2) -- Apply or remove an advisory lock on an open file
|
The flock() function applies or removes an advisory lock on the file associated with the filedes file descriptor. Advisory locks allow cooperating processes to perform consistent operations on files, ... |
fork(2) -- Create a new process
|
The fork() and vfork() functions create a new process (child process) that is identical to the calling process (parent process). The child process inherits the following from the parent process: Envir... |
fpathconf(2) -- Retrieve file implementation characteristics
|
The fpathconf() and pathconf() functions provide a method for an application to determine the current value of a configurable limit or option (variable) that is associated with a file or directory. Fo... |
freezefs(2) -- The freezefs() API causes the specified fileset's domain to enter into a metadata stable state, caus...
|
To allow coherent hardware snapshots in multivolume domain configurations, filesystem metadata must be consistent across all volumes when the individual volumes are snapped or cloned. These configurat... |
fstat(2) -- Provide information about a file
|
The stat() function obtains information about the file named by the path parameter. Read, write, or execute permission for the named file is not required, but all directories listed in the pathname le... |
fstatfs(2) -- Get file system statistics
|
The statfs() and fstatfs() functions return information about a mounted file system. The returned information is in the format of the statfs structure that is declared in the file. When... |
fstatvfs(2) -- Get file system information
|
The statvfs() and fstatvfs() functions return descriptive information about a mounted file system. The returned information is in the format of a statvfs structure, which is defined in the |
fsync(2) -- Write changes in a file to permanent storage
|
The fsync() function causes system buffers containing a file's modified data and attributes to be written to permanent storage. The fsync() function does not return until the operation has been compl... |
ftime(2) -- Gets and sets date and time and converts time between timeval and timeval64
|
The gettimeofday(), ftime(), and settimeofday() functions get and set the time and timezone information stored in the kernel. The gettimeofday() function gets the current time, expressed in seconds an... |
ftruncate(2) -- Change file length
|
The truncate() and ftruncate() functions change the length of a file to the size in bytes specified by the length parameter. If the new length is less than the previous length, the truncate() and ftru... |
fuser(2) -- Reports PIDs and UIDs for files, file systems and/or the devices attached to them.
|
The fuser function reports a list of PIDs and UIDs that are associated with a specified file, file system, and/or the devices that are attached to them. The fuser function can report back additional i... |
getaddressconf(2) -- Get information about the system address space configuration
|
The getaddressconf() function fills in the array of structures pointed to by the buffer parameter with information describing the configuration of process address space on the system. This information... |
getcontext(2) -- Initiates and restores user level context switching
|
Using both the getcontext() and setcontext() functions enables you to initiate user level context control, switching between multiple threads of control within a single process. When you call getconte... |
getdirentries(2) -- Get directory entries in a file-system independent format.
|
The getdirentries() function reads directory entries from a directory into a buffer. The entries are returned as dirent structures, a file-system independent format. Caution This call is not the POSIX... |
getdomainname(2) -- get or set name of current domain
|
The getdomainname system call returns the domain name of the current host, as set by setdomainname. The setdomainname system call sets the domain of the host machine to be name, which has a length spe... |
getdtablesize(2) -- Get the size of the descriptor table
|
The getdtablesize() function returns the maximum number of file descriptors in a process' descriptor table. Each process has a fixed size descriptor table that is guaranteed to have at least 64 slots... |
getegid(2) -- Get the group ID of the calling process
|
The getgid() function returns the real group ID of the calling process. The getegid() function returns the effective group ID of the calling process. The real group ID is specified at login time. The ... |
geteuid(2) -- Get the real or effective user ID
|
The getuid() function returns the real user ID of the calling process. The geteuid() function returns the effective user ID of the calling process. |
getfh(2) -- Get a file handle
|
The getfh() function returns a file handle for the specified file or directory in the file handle pointed to by the fhp parameter. This function is restricted to the root user. |
getfsstat(2) -- Get a list of all mounted file systems
|
The getfsstat() function returns information about all mounted file systems. Upon successful completion, the buffer pointed to by the buf parameter is filled with an array of statfs structures, one fo... |
getgid(2) -- Get the group ID of the calling process
|
The getgid() function returns the real group ID of the calling process. The getegid() function returns the effective group ID of the calling process. The real group ID is specified at login time. The ... |
getgroups(2) -- Get the supplementary group IDs of the current process
|
The getgroups() function gets the current supplementary group IDs of the calling process. The list is stored in the array pointed to by the grouplist parameter. The gidsetsize parameter indicates the ... |
gethostid(2) -- Get the unique identifier of the current host
|
The gethostid() function allows a process to retrieve the 32-bit identifier for the current host. The host ID is stored in network standard byte order and is set either by the hostid(1) command or the... |
gethostname(2) -- Get the name of the local host
|
The gethostname() function retrieves the host name of the local host as it is configured on the system. If a fullyqualified domain name is configured as the host name, that name is returned. If suffic... |
getitimer(2) -- Return or set the value of interval timers
|
The getitimer() function returns the current value for the timer specified by the which parameter in the structure pointed to by the value parameter. The setitimer() function sets the timer specified ... |
getlogin(2) -- Get or set the login name
|
The getlogin() function returns the login name of the user associated with the current session. The name is normally associated with a login shell at the time a session is created, and is inherited by... |
getlogin_r(2) -- Get or set the login name
|
The getlogin() function returns the login name of the user associated with the current session. The name is normally associated with a login shell at the time a session is created, and is inherited by... |
getmsg(2) -- Receive the next message from a Stream
|
The getmsg() and getpmsg() functions retrieve the contents of messages. These messages are located at the Stream head read queue associated with a STREAMS file. Messages must contain a control part or... |
getpagesize(2) -- Get the system page size
|
The getpagesize() function returns the number of bytes in a page. You might need to include this value in parameters to memory management system calls. The page size is an operating system page size a... |
getpeername(2) -- Gets the name of the peer socket
|
The getpeername() function retrieves the name of the peer socket connected to the specified socket. If the actual length of the address is greater than the length of the sockaddr structure, the addres... |
getpgid(2) -- Get the process group ID
|
The getpgid() function returns the process group ID of the process specified by the process ID pid. Specifying a pid of 0 (zero) returns the process group ID of the calling process. |
getpgrp(2) -- Get the process ID, process group ID, or parent process ID
|
The getpid() function returns the process ID of the calling process. The getpgrp() function returns the process group ID of the calling process. The getppid() function returns the parent process ID of... |
getpid(2) -- Get the process ID, process group ID, or parent process ID
|
The getpid() function returns the process ID of the calling process. The getpgrp() function returns the process group ID of the calling process. The getppid() function returns the parent process ID of... |
getpmsg(2) -- Receive the next message from a Stream
|
The getmsg() and getpmsg() functions retrieve the contents of messages. These messages are located at the Stream head read queue associated with a STREAMS file. Messages must contain a control part or... |
getppid(2) -- Get the process ID, process group ID, or parent process ID
|
The getpid() function returns the process ID of the calling process. The getpgrp() function returns the process group ID of the calling process. The getppid() function returns the parent process ID of... |
getpriority(2) -- Get or set process scheduling priority
|
The getpriority() function obtains the current priority of a process, process group, or user. The getpriority() function returns the highest priority (lowest numerical value) pertaining to any of the ... |
getrlimit(2) -- Control maximum system resource consumption
|
The getrlimit() function obtains the limits on the consumption of system resources by the current process and each process it creates. You use the setrlimit() function to set these resources. Each res... |
getrusage(2) -- Get information about resource utilization
|
The getrusage() function returns information describing the resources used by the current process or its terminated or waited for child processes. If the child process is never waited for, for example... |
getsid(2) -- Retrieves the session ID of a process
|
Use the getsid function to retrieve the session ID for a process. The function returns the session ID assigned to the process identified in the process_id parameter. If you specify 0 (zero) in the pro... |
getsockname(2) -- Get the socket name
|
The getsockname() function retrieves the locally bound address of the specified socket. If the actual length of the address is greater than the length of the sockaddr structure, the address is truncat... |
getsockopt(2) -- Get socket options
|
The getsockopt() function allows an application program to query socket options. The calling program specifies the name of the socket, the name of the option, and a place to store the requested inform... |
getsysinfo(2) -- Gets system information
|
The getsysinfo system call retrieves information from the system. When information about multiple system structures is returned, it is stored in consecutive buffer locations. The information for each ... |
gettimeofday(2) -- Gets and sets date and time and converts time between timeval and timeval64
|
The gettimeofday(), ftime(), and settimeofday() functions get and set the time and timezone information stored in the kernel. The gettimeofday() function gets the current time, expressed in seconds an... |
gettimeofday64(2) -- Gets and sets date and time and converts time between timeval and timeval64
|
The gettimeofday(), ftime(), and settimeofday() functions get and set the time and timezone information stored in the kernel. The gettimeofday() function gets the current time, expressed in seconds an... |
getuid(2) -- Get the real or effective user ID
|
The getuid() function returns the real user ID of the calling process. The geteuid() function returns the effective user ID of the calling process. |
h_errno(2) -- Error-return value for network database operations.
|
Refer to endhostent(). |
intro(2) -- Introduction to system calls
|
Section 2 describes the Tru64 UNIX system calls, which are the entries into the operating system kernel. Some reference pages in this section may contain suffixes to allow their files to exist with th... |
ioctl(2) -- Control devices
|
The ioctl() function performs a variety of control functions on devices and STREAMS. For non-STREAMS files, the functions performed by this call are device-specific control functions. The request and ... |
kill(2) -- Send a signal to a process or to a group of processes
|
The kill() function sends the signal specified by the signal parameter to the process or group of processes specified by the process parameter. To send a signal to another process, at least one of the... |
killpg(2) -- Send a signal to a process group
|
The killpg() function sends the signal specified by the signal parameter to the group of processes specified by the process_grp parameter. The process sending the signal must have the same effective u... |
lchown(2) -- Change the owner and group IDs of a file
|
The chown(), lchown() and fchown() functions change the owner and group of a file. A process can change the value of the owner ID of a file only if the process has superuser privilege. A process witho... |
link(2) -- Create a hard link to an existing file on the local file system
|
The link() function creates an additional hard link (directory entry) for an existing file. The old and the new link share equal access rights to the underlying object. The link() function atomically ... |
listen(2) -- Listen for socket connections and limits the backlog of incoming connections
|
The listen() function identifies the socket that receives the connections, marks the socket as accepting connections, and limits the number (backlog) of outstanding connection requests in the system q... |
lseek(2) -- Move read-write file offset
|
The lseek() function sets the file offset for the open file specified by the filedes parameter. The whence parameter determines how the offset is to be interpreted. The lseek() function allows the fil... |
lstat(2) -- Provide information about a file
|
The stat() function obtains information about the file named by the path parameter. Read, write, or execute permission for the named file is not required, but all directories listed in the pathname le... |
madvise(2) -- Advise the system of the expected paging behavior of a process
|
The madvise() function permits a process to advise the system about its expected future behavior in referencing a mapped file or shared memory region. |
makecontext(2) -- Manipulate user level context switching
|
The makecontext() function modifies the context specified by the ucp parameter. Before you call the makecontext() function, call the getcontext() function to initialize the ucp parameter. Before you c... |
memcntl(2) -- memory management control
|
The memcntl function enables the calling process to exercise various control operations over the address space which is identified by the mappings set for the address range [addr, addr, + len]. Select... |
mkdir(2) -- Create a directory
|
The mkdir() function creates a new directory with the following attributes: The owner ID is set to the process's effective user ID. The group ID is set to the group ID of its parent directory. [Tru64... |
mknod(2) -- Create a FIFO or special file
|
The mknod() function creates a special file or FIFO. Using the mknod() function to create file types other than FIFO special requires superuser privilege. For the mknod() function to complete successf... |
mmap(2) -- Map a file system object into virtual memory
|
The mmap() function creates a new mapped file region, a new private region, or a new shared memory region. The addr and len parameters specify the requested starting address and length in bytes for th... |
mount(2) -- Mount or unmount a file system
|
Except in the case of file-on-file mounting, the mount() function mounts a file system on the directory pointed to by the mnt-path parameter. Following the mount, references to mnt-path refer to the r... |
mprotect(2) -- Modify access protections of memory mapping
|
The mprotect() function modifies the access protection of a mapped file or shared memory region. The addr and len parameters specify the address and length in bytes of the region to be modified. The l... |
msgctl(2) -- Perform message control operations
|
The msgctl() function allows a process to query or set the contents of the msqid_ds structure associated with the specified message queue ID. It also allows a process to remove the message queue ID an... |
msgget(2) -- Return (and possibly create) the ID for a message queue
|
The msgget() function returns the message queue ID for the message queue identified by the key parameter. If the message queue ID does not exist, the msgget() function attempts to create it. If you sp... |
msgrcv(2) -- Receive a message from a message queue
|
The msgrcv() function receives a message from the queue associated with the msqid parameter. The function returns the number of bytes in the received message. The msgp parameter points to a user-defin... |
msgsnd(2) -- Send a message to a message queue
|
The msgsnd() function sends a message to the queue associated with the msqid parameter. When the kernel sends a message, it allocates space for the message and copies the data from user space. The ker... |
msync(2) -- Synchronize a mapped file
|
The msync() function controls the caching operations of a mapped file region. The msync() function can be used to ensure that modified pages in the region are transferred to the file's underlying sto... |
munmap(2) -- Unmap a mapped region
|
The munmap() function unmaps a mapped file or shared memory region. The addr and len parameters specify the address and length in bytes, respectively, of the region to be unmapped. The len parameter m... |
mvalid(2) -- Check memory region for validity
|
The mvalid() function checks the validity of a memory region. A region is considered to be valid if accesses of the requested type are allowed to all addresses in the region. The header f... |
nfssvc(2) -- Create a remote NFS server
|
The use of the nfssvc() function is not supported in customer applications, and the interface is subject to change without notice. It is intended for use solely by nfsd(8). The nfssvc() function start... |
ntp_gettime(2) -- Get the date, time, and kernel time error values
|
The ntp_gettime() system call returns three read-only values in the ntptimeval structure. The ntptimeval structure members are as follows: The current system time expressed as a Unix timeval structure... |
open(2) -- Open a file for reading or writing
|
The following two function calls are equivalent: creat(path, mode); open(path, O_WRONLY | O_CREAT | O_TRUNC, mode); The open() and creat() functions establish a connection between the file named by th... |
pathconf(2) -- Retrieve file implementation characteristics
|
The fpathconf() and pathconf() functions provide a method for an application to determine the current value of a configurable limit or option (variable) that is associated with a file or directory. Fo... |
pid_block(2) -- stops (blocks) or resumes (unblocks) the specified process
|
The pid_block() function blocks execution of the process until one of the following conditions occurs: The process is unblocked by the pid_unblock() function. A signal is sent to the process. The opti... |
pid_unblock(2) -- stops (blocks) or resumes (unblocks) the specified process
|
The pid_block() function blocks execution of the process until one of the following conditions occurs: The process is unblocked by the pid_unblock() function. A signal is sent to the process. The opti... |
pipe(2) -- Create an interprocess channel
|
The pipe() function creates a unidirectional interprocess channel called a pipe, and returns two file descriptors, filedes[0] and filedes[1]. The file descriptor specified by the filedes[0] parameter ... |
plock(2) -- Lock the text and/or data segments of a process in memory
|
The plock() function locks or unlocks a process's text segments, data segments, or both in physical memory. When locked, the physical pages containing the text or data segment will not be paged out. ... |
poll(2) -- Monitor conditions on multiple file descriptors
|
The poll() function provides users with a mechanism for multiplexing input/output over a set of file descriptors that reference open streams. For each member of the array pointed to by filedes, poll()... |
pread(2) -- read from a file
|
The read() function attempts to read nbytes of data from the file associated with the filedes parameter into the buffer pointed to by the buffer parameter. If the value of nbytes is 0 (zero), the read... |
priocntl(2) -- manage scheduling properties of process
|
The priocntl function is used to change the class, priority, and other scheduling properties of one or more active processes. Processes are divided into four classes: realtime, time-sharing, POSIX rou... |
priocntlset(2) -- change scheduling property of a process or set of processes
|
This function is used to change the scheduling properties of a running process or group of processes. While the priocntl(2) function performs the same tasks, this function enables you to specify the p... |
profil(2) -- Start and stop execution profiling
|
The profil() function controls execution profiling. The short_buffer parameter points to an area of memory whose length (in bytes) is given by the buffer_size parameter. After this call, the process'... |
ptrace(2) -- Trace the execution of a child process
|
The ptrace() function permits a parent process to control execution of a child process. It is primarily used by utility programs to enable breakpoint debugging. The child process behaves normally unti... |
putmsg(2) -- Send a message on a Stream
|
The putmsg() and putpmsg() functions send messages to the STREAMS file. These messages are generated from user-provided buffer(s), and must contain a control part and/or a data part. The open Stream s... |
putpmsg(2) -- Send a message on a Stream
|
The putmsg() and putpmsg() functions send messages to the STREAMS file. These messages are generated from user-provided buffer(s), and must contain a control part and/or a data part. The open Stream s... |
pwrite(2) -- Write to a file
|
The write() function attempts to write nbytes of data to the file associated with the filedes parameter from the buffer pointed to by the buffer parameter. If the nbytes parameter is 0 (zero), the wri... |
quotactl(2) -- Manipulate disk quotas
|
The quotactl() function is used to enable and disable quotas and to manipulate disk quotas for file systems on which quotas have been enabled. Quotas are supported for the UNIX file system (UFS) and t... |
read(2) -- read from a file
|
The read() function attempts to read nbytes of data from the file associated with the filedes parameter into the buffer pointed to by the buffer parameter. If the value of nbytes is 0 (zero), the read... |
readlink(2) -- Read the value of a symbolic link
|
The readlink() function places the contents of the symbolic link named by the path parameter in buffer, which has size buf_size. If the actual length of the symbolic link is greater than buf_size, an ... |
readv(2) -- read from a file
|
The read() function attempts to read nbytes of data from the file associated with the filedes parameter into the buffer pointed to by the buffer parameter. If the value of nbytes is 0 (zero), the read... |
reboot(2) -- Reboot or halt the system
|
The reboot() function restarts the system. The default startup is automatic and brings up /vmunix in the normal, nonmaintenance mode. In an application, the calling process must have superuser privile... |
recv(2) -- Receive messages from connected sockets
|
The recv() function receives messages from a connected socket. The recvfrom() and recvmsg() functions receive messages from both connected and unconnected sockets; however, they are usually used for u... |
recvfrom(2) -- Receive messages from sockets
|
The recvfrom() function permits an application program to receive messages from unconnected sockets. It is normally applied to unconnected sockets because it includes parameters that permit a calling ... |
recvmsg(2) -- Receive a message from a socket using a message structure
|
The recvmsg() function receives messages from unconnected or connected sockets and returns the total length of the message. For message-based sockets (for example, SOCK_DGRAM), you must read the entir... |
rename(2) -- Rename a directory or a file within a file system
|
The rename() function renames a directory or a file within a file system. For rename() to complete successfully, the calling process must have write and search permission to the parent directories of ... |
revoke(2) -- Void all references to a file
|
The revoke() function invalidates all file descriptors associated with the pathname specified in path, which must be a block- or character-special file. Any open file system object on the device on wh... |
rmdir(2) -- Remove a directory file
|
The rmdir() function removes the directory specified by the path parameter. The directory is removed only if it is an empty directory. For the rmdir() function to execute successfully, the calling pro... |
sbrk(2) -- Change space allocation
|
The brk() function sets the lowest data segment location not used by the program (called the break) to addr. In the alternate function sbrk(), incr more bytes are added to the program's data space, a... |
screen(2) -- Gateway packet screening facility
|
The gateway screen facility allows a user-level process to decide which network packets should be forwarded by the kernel (when the system is acting as a gateway). When the screen mode is set to "off... |
select(2) -- Synchronous I/O multiplexing
|
The select() function checks the status of objects identified by bit masks called I/O descriptor sets. Each I/O descriptor set consists of an array of bits whose relative position and state represent ... |
semctl(2) -- Perform semaphore control operations
|
The semctl() function allows a process to perform various operations on an individual semaphore within a semaphore set, on all semaphores within a semaphore set, and on the semid_ds structure associat... |
semget(2) -- Return (and possibly create) a semaphore ID
|
The system defines sets of semaphores in a system-wide table, with each set being an entry in the table. The semget() function returns an ID that identifies the semaphore set's entry in the table. Yo... |
semop(2) -- Perform semaphore operations
|
The semop() function performs operations on the semaphores in the specified semaphore set. The semaphore operations are defined in the sops array. The sops array contains nsops elements, each of which... |
send(2) -- Send messages on a socket
|
The send() function sends a message only when the socket is connected (this includes when the peer of a connectionless socket has been set with a connect() call). The sendto() and sendmsg() functions ... |
sendfile(2) -- Send the contents of a file through a socket
|
The sendfile() function sends the specified contents of a file only through a connected socket. |
sendmsg(2) -- Send a message from a socket using a message structure
|
The sendmsg() function sends messages through connected or unconnected sockets using the msghdr message structure. This minimizes the number of directly supplied parameters to the function call. The <... |
sendto(2) -- Send messages through a socket
|
The sendto() function allows an application program to send messages through an unconnected socket by specifying a destination address. To broadcast on a socket, issue a setsockopt() function using th... |
setcontext(2) -- Initiates and restores user level context switching
|
Using both the getcontext() and setcontext() functions enables you to initiate user level context control, switching between multiple threads of control within a single process. When you call getconte... |
setdomainname(2) -- get or set name of current domain
|
The getdomainname system call returns the domain name of the current host, as set by setdomainname. The setdomainname system call sets the domain of the host machine to be name, which has a length spe... |
setgid(2) -- Set the group ID
|
The setgid() function sets the real group ID, effective group ID, and the saved set group ID to the value specified by the group_id parameter. If the process does not have superuser privilege, but the... |
setgroups(2) -- Set the group access list
|
The setgroups() function sets the group access list of the current user process according to the array pointed to by the grouplist parameter. This function fails unless the invoking process has superu... |
sethostid(2) -- Set the unique identifier of the current host
|
The sethostid() function allows a calling process with a root user ID to set a new 32-bit identifier for the current host. The sethostid() function enables an application program to reset the host ID.... |
sethostname(2) -- Set the name of the current host
|
The sethostname() function allows a calling process with root user authority to set the internal host name of a machine on a network. System host names are limited to MAXHOSTNAMELEN as defined in the ... |
setitimer(2) -- Return or set the value of interval timers
|
The getitimer() function returns the current value for the timer specified by the which parameter in the structure pointed to by the value parameter. The setitimer() function sets the timer specified ... |
setlogin(2) -- Get or set the login name
|
The getlogin() function returns the login name of the user associated with the current session. The name is normally associated with a login shell at the time a session is created, and is inherited by... |
setpgid(2) -- Set the process group ID
|
Use the setpgid() function to add a process to an existing process group or to create a new process group within a process's session. The setpgid() function does not change the process group ID of a ... |
setpgrp(2) -- Set the process group ID
|
Use the setpgid() function to add a process to an existing process group or to create a new process group within a process's session. The setpgid() function does not change the process group ID of a ... |
setpriority(2) -- Get or set process scheduling priority
|
The getpriority() function obtains the current priority of a process, process group, or user. The getpriority() function returns the highest priority (lowest numerical value) pertaining to any of the ... |
setregid(2) -- Set the real and effective group ID
|
The setregid() function sets the real group ID of the current process to the value specified by the rgid parameter, and sets the effective group ID to the value specified by the egid parameter. If the... |
setreuid(2) -- Set real and effective user IDs
|
The setreuid() function sets the real and effective user IDs of the current process to the values specified by the ruid and euid parameters. If ruid or euid is -1, the corresponding effective or real ... |
setrlimit(2) -- Control maximum system resource consumption
|
The getrlimit() function obtains the limits on the consumption of system resources by the current process and each process it creates. You use the setrlimit() function to set these resources. Each res... |
setsid(2) -- Set the process group ID
|
The setsid() function creates a new session when the calling process is not a process group leader. The calling process then becomes the session leader of this session, becomes the process leader of t... |
setsockopt(2) -- Set socket options
|
The setsockopt() function sets options associated with a socket. Options may exist at multiple protocol levels. The SO_ options are always present at the uppermost socket level. The setsockopt() funct... |
setsysinfo(2) -- Set system information
|
The setsysinfo system call modifies system information. The op argument specifies the operation to be performed. Values for op are defined in the and header fil... |
settimeofday(2) -- Gets and sets date and time and converts time between timeval and timeval64
|
The gettimeofday(), ftime(), and settimeofday() functions get and set the time and timezone information stored in the kernel. The gettimeofday() function gets the current time, expressed in seconds an... |
settimeofday64(2) -- Gets and sets date and time and converts time between timeval and timeval64
|
The gettimeofday(), ftime(), and settimeofday() functions get and set the time and timezone information stored in the kernel. The gettimeofday() function gets the current time, expressed in seconds an... |
setuid(2) -- Set the user ID
|
The setuid() function sets the real user ID, effective user ID, and the saved set user ID to the user_id parameter. To change the real user ID, the effective user ID, and the saved set user ID, the ca... |
shmat(2) -- Attach a shared memory region
|
The shmat() function attaches the shared memory region identified by the shmid parameter to the virtual address space of the calling process. For the addr parameter, the process can specify either an ... |
shmctl(2) -- Perform shared memory control operations
|
The shmctl() function provides a variety of shared memory control operations as specified by the cmd parameter. The cmd values and their operations are as follows: Queries the shared memory region ID ... |
shmdt(2) -- Detach a shared memory region
|
The shmdt() function detaches the shared memory region at the address specified by the addr parameter from the address space of the calling process. Other instances of the region attached at other add... |
shmget(2) -- Return (and possibly create) the ID for a shared memory region
|
The shmget() function returns (and possibly creates) the ID for the shared memory region identified by the key parameter. If IPC_PRIVATE is used for the key parameter, the shmget() function returns th... |
shutdown(2) -- Shut down socket send and receive operations
|
The shutdown() function disables receive and/or send operations on the specified socket. |
sigaction(2) -- Specify the action to take upon delivery of a signal
|
When a process requests the sigaction() function, the process can both examine or specify what action is to be performed when the specified signal is delivered. The parameters determine the behavior o... |
sigaltstack(2) -- set or get signal alternate stack context
|
This function enables another stack area to be defined where signals can be examined for their execution status and processed. If a signal's action, specified by the sigaction(2) function, indicates ... |
sigblock(2) -- Provide a compatibility interface to the sigprocmask function
|
The sigblock() function causes the signals specified by the mask parameter to be added to the set of signals currently being blocked from delivery. The signals are blocked from delivery by logically O... |
signal(2) -- Modifies signal functions
|
The signal function provides compatibility for older versions of the operating system whose function is a subset of the sigaction function. The signal function sets the action associated with a signal... |
sigpending(2) -- Examine pending signals
|
The sigpending() function stores in the object pointed to by the set parameter the set of signals that are blocked from delivery and pending to the calling process. |
sigprocmask(2) -- Set the current signal mask
|
The sigprocmask() function is used to examine or change the signal mask of the calling process. Typically, you would use the sigprocmask (SIG_BLOCK) call to block signals during a critical section of ... |
sigreturn(2) -- Return from a signal
|
The sigreturn() function restores the processor state of the calling process from a sigcontext structure. The sigcontext structure contains the state of all applicationvisible registers as well as the... |
sigsend(2) -- Send a signal to one or more processes
|
The sigsend function sends a signal to a group of processes specified by the id and idtype parameters. The sig parameter specifies the signal to be sent. It contains either a valid signal or a zero (0... |
sigsendset(2) -- Send a signal to one or more processes
|
The sigsend function sends a signal to a group of processes specified by the id and idtype parameters. The sig parameter specifies the signal to be sent. It contains either a valid signal or a zero (0... |
sigsetmask(2) -- Set the current signal mask
|
The sigprocmask() function is used to examine or change the signal mask of the calling process. Typically, you would use the sigprocmask (SIG_BLOCK) call to block signals during a critical section of ... |
sigstack(2) -- Set and get the signal stack context
|
The sigstack() function defines an alternate stack on which signals are to be processed. If the value of the instack parameter is nonzero, it points to a sigstack structure, which has the following me... |
sigsuspend(2) -- Atomically change the set of blocked signals and wait for a signal
|
The sigsuspend() function replaces the signal mask of the process (or thread) with the set of signals pointed to by the signal_mask parameter, and then suspends execution of the caller until delivery ... |
sigvec(2) -- Provide a compatibility interface to the sigaction() function
|
The sigvec() function is provided for compatibility with old UNIX systems; its function is a subset of the operations available with the sigaction() function. Like the sigaction() function, the sigvec... |
socket(2) -- Create an end point for communication and return a descriptor
|
The socket() function creates a socket of the specified type in the specified domain. The socket() function returns a descriptor (an integer) that can be used in later system calls that operate on soc... |
socketpair(2) -- Create a pair of connected sockets
|
The socketpair() function creates an unnamed pair of connected sockets in a specified domain, of a specified type, under the protocol optionally specified by the protocol parameter. The two sockets ar... |
stat(2) -- Provide information about a file
|
The stat() function obtains information about the file named by the path parameter. Read, write, or execute permission for the named file is not required, but all directories listed in the pathname le... |
statfs(2) -- Get file system statistics
|
The statfs() and fstatfs() functions return information about a mounted file system. The returned information is in the format of the statfs structure that is declared in the file. When... |
statvfs(2) -- Get file system information
|
The statvfs() and fstatvfs() functions return descriptive information about a mounted file system. The returned information is in the format of a statvfs structure, which is defined in the |
strmod_add(2) -- Add STREAMS modules and drivers
|
The strmod_add() interface is used to configure STREAMS modules and drivers into the kernel. Specifically, the function allows STREAMS drivers to add entry points in character device switch tables. Mo... |
strmod_del(2) -- Delete STREAMS modules and drivers
|
The strmod_del() interface is used to remove configured STREAMS modules and drivers from the kernel. Specifically, it allows STREAMS drivers to remove entry points in character device switch tables. M... |
swapcontext(2) -- Manipulate user level context switching
|
The makecontext() function modifies the context specified by the ucp parameter. Before you call the makecontext() function, call the getcontext() function to initialize the ucp parameter. Before you c... |
swapctl(2) -- Manages the system swap space
|
The swapctl function manages the system swap space by adding, deleting, or returning information about swap resources. The cmd parameter that you select determines the value of the arg parameter. The ... |
swapon(2) -- Add a swap device for interleaved paging and swapping
|
The swapon() function makes a block special device available to the system for allocation of paging and swapping space. (The operating system does not currently support paging and swapping to a normal... |
symlink(2) -- Make a symbolic link to a file
|
The symlink() function creates a symbolic link with the name specified by the path2 parameter which refers to the file named by the path1 parameter. Like a hard link, which is described in link(2), a ... |
sync(2) -- Update all file systems
|
The sync() function causes all information in memory that should be on disk to be written out. The writing, although scheduled, is not necessarily complete upon return from the sync() function. Types ... |
sync2(2) -- Flush file system metadata and data from memory buffers to disk
|
The sync2() function causes file system data to be flushed (written) to disk. Which memory buffers are flushed to disk depends on the POLICY argument. If the policy is SYNC_SYNCPOLICY, all memory buff... |
syscall(2) -- indirect system call
|
The syscall system call performs the system call whose assembly language interface has the specified number, register arguments r0 and r1, and further arguments arg. The r0 value of the system call is... |
sysfs(2) -- gather information about file system types
|
This function gathers information about configured file system types. Depending on the operation you want to perform, the opcode parameter may be specified by itself, or in combination with the other ... |
sysinfo(2) -- manages system information strings
|
The sysinfo function retrieves and sets information relating to the operating system into a buffer pointed to by the buf parameter. This function is similar to the sysconf function which returns an in... |
table(2) -- Examine or update elements from a system table
|
The table() interface is used to examine or update one or more elements in the system table. The system table is specified by id and the starting element is specified by index. The table() interface c... |
TIMEVAL32TO64(2) -- Gets and sets date and time and converts time between timeval and timeval64
|
The gettimeofday(), ftime(), and settimeofday() functions get and set the time and timezone information stored in the kernel. The gettimeofday() function gets the current time, expressed in seconds an... |
TIMEVAL64TO32(2) -- Gets and sets date and time and converts time between timeval and timeval64
|
The gettimeofday(), ftime(), and settimeofday() functions get and set the time and timezone information stored in the kernel. The gettimeofday() function gets the current time, expressed in seconds an... |
truncate(2) -- Change file length
|
The truncate() and ftruncate() functions change the length of a file to the size in bytes specified by the length parameter. If the new length is less than the previous length, the truncate() and ftru... |
uadmin(2) -- provides administrative control
|
The uadmin function enables control of some basic administrative functions. Mostly, it is called by other system administrative procedures which must perform automatic shutdowns, halts, and reboots of... |
umask(2) -- Sets and gets the value of the file creation mask
|
The umask() function sets the file mode creation mask of the process to the value of the cmask parameter and returns the previous value of the mask. The cmask parameter is constructed by a logical OR ... |
umount(2) -- Mount or unmount a file system
|
Except in the case of file-on-file mounting, the mount() function mounts a file system on the directory pointed to by the mnt-path parameter. Following the mount, references to mnt-path refer to the r... |
uname(2) -- Get the name of the current system
|
The uname() function stores information identifying the current system in the structure pointed to by the name parameter. The uname() function uses the utsname structure, which is defined in the |
unlink(2) -- Remove a directory entry
|
When the directory entry is a hard link, the unlink() function removes it and decrements the link count of the file referenced by the link. When the directory entry is a symbolic link, the unlink() fu... |
ustat(2) -- Get file system statistics
|
The statfs() and fstatfs() functions return information about a mounted file system. The returned information is in the format of the statfs structure that is declared in the file. When... |
uswitch(2) -- Get or set compatibility environment specific behavior for a calling process through the uswitch val...
|
The uswitch system call is used to get or change the compatibility environment specific behavior in Tru64 UNIX. Any changes affect the calling process and its children. When the USW_NULLP bit of uswit... |
utime(2) -- Set file access and modification times
|
The utimes() function sets the access and modification times of the file pointed to by the path parameter to the value of the times parameter. The utimes() function allows time specifications accurate... |
utimes(2) -- Set file access and modification times
|
The utimes() function sets the access and modification times of the file pointed to by the path parameter to the value of the times parameter. The utimes() function allows time specifications accurate... |
vfork(2) -- Create a new process
|
The fork() and vfork() functions create a new process (child process) that is identical to the calling process (parent process). The child process inherits the following from the parent process: Envir... |
vtimes(2) -- Get information about resource utilization
|
The getrusage() function returns information describing the resources used by the current process or its terminated or waited for child processes. If the child process is never waited for, for example... |
wait(2) -- Wait for a child process to stop or terminate
|
The wait(), waitpid(), and wait3() functions allow the calling process to obtain status information pertaining to one of its child processes. Various options permit status information to be obtained f... |
wait3(2) -- Wait for a child process to stop or terminate
|
The wait(), waitpid(), and wait3() functions allow the calling process to obtain status information pertaining to one of its child processes. Various options permit status information to be obtained f... |
wait4(2) -- Wait for a child process to stop or terminate
|
The wait(), waitpid(), and wait3() functions allow the calling process to obtain status information pertaining to one of its child processes. Various options permit status information to be obtained f... |
waitid(2) -- Wait for child process to change state
|
The waitid() function holds a calling process until the state of a child process changes. The current state of the child is recorded in a structure pointed to by the infop parameter. If a child proces... |
waitpid(2) -- Wait for a child process to stop or terminate
|
The wait(), waitpid(), and wait3() functions allow the calling process to obtain status information pertaining to one of its child processes. Various options permit status information to be obtained f... |
write(2) -- Write to a file
|
The write() function attempts to write nbytes of data to the file associated with the filedes parameter from the buffer pointed to by the buffer parameter. If the nbytes parameter is 0 (zero), the wri... |
writev(2) -- Write to a file
|
The write() function attempts to write nbytes of data to the file associated with the filedes parameter from the buffer pointed to by the buffer parameter. If the nbytes parameter is 0 (zero), the wri... |
_exit(2) -- Terminate a process
|
The atexit() function registers functions to be called at normal process termination for cleanup processing. The function adds a single exit handler to a list of handlers to be called at process termi... |