|
accept(2) -- accept a connection on a socket
|
The accept() system call is used with connection-based socket types, such as SOCK_STREAM. The argument, s, is a socket descriptor created with socket(), bound to a local address by bind(), and listening for connections after a listen(). accept() extracts the first connection on the queue of pending connections, creates a new socket with the same properties as s, and returns a new file descriptor, ... |
access(2) -- determine accessibility of a file
|
The access() system call checks the file pointed to by path for accessibility according to the bit pattern contained in amode. access() uses the real user ID, not the effective user ID, and the real group ID, not the effective group ID. The value of amode is either the bit-wise inclusive OR of the access permissions to be checked, or the existence test. You can use the following symbolic constants... |
|
acct(2) -- enable or disable process accounting
|
The acct() system call enables or disables the system's process accounting routine. If the routine is enabled, an accounting record is written on an accounting file for each process that terminates. Termination can be caused by one of two things: an exit() call or a signal (see exit(2) and signal(5)). The effective user ID of the calling process must be superuser to use this call. path points to ... |
acl(2) -- set a file's Access Control List (ACL) information (JFS File Systems only)
|
The acl() system call is used to manipulate ACLs on JFS file system objects. pathp points to a pathname naming a file. nentries specifies how many ACL entries are pointed to by aclbufp. aclbufp is a pointer to the first element of an array of struct acl. This type is defined in as follows: struct acl { int a_type; /* entry type */ uid_t a_id; /* user or group ID */ ushort a_perm; /* en... |
adjtime(2) -- correct the time to synchronize the system clock
|
The function adjtime() adjusts the current time of the system. The time is either advanced or retarded by the amount of time specified in the struct timeval pointed to by delta. The adjustment is made by applying small correctional adjustments to the value of current time that the system keeps. The time is always increasing monotonically, but at a rate slightly slower or faster than normal. A time... |
aio_cancel(2) -- cancel an asynchronous I/O operation
|
The aio_cancel() function attempts to cancel the asynchronous I/O request currently outstanding for the aiocb referenced by aiocbp or, if aiocbp is NULL, any asynchronous I/O operations currently outstanding for the file descriptor fildes. If an asynchronous I/O operation is successfully canceled as a result of aio_cancel, its status is set to ECANCELED, and any signal delivery specified for that ... |
aio_error(2) -- return error status of an asynchronous I/O operation
|
The aio_error() function returns the error status of the asynchronous I/O operation that was initiated with the aiocb and referenced by aiocbp. The error status for an asynchronous I/O operation is the errno value set by the corresponding read(), write(), or fsync() function. To use this function, link in the realtime library by specifying -lrt on the compiler or linker command line. |
aio_fsync(2) -- force outstanding asynchronous operations on a file to the synchronized state
|
The aio_fsync() function asynchronously forces all I/O operations that are enqueued at the time of the call for the file or device referenced by aiocbp->aio_fildes to the synchronized I/O state. The function call returns when the synchronization request has been enqueued to the file or device (even when the data cannot be synchronized immediately). Successful completion of the aio_fsync() request ... |
aio_read(2) -- start an asynchronous read operation
|
The aio_read() function allows the calling process to perform an asynchronous read from a previously opened file. The function call returns when the read operation has been enqueued for processing. At this point, processing of the read operation may proceed concurrently with execution of the calling process or thread. If an error condition is detected that prevents the read request from being enqu... |
aio_reap(2) -- wait for multiple asynchronous I/O requests
|
The aio_reap() function is an extension of the aio_suspend() library function. Refer to the aio_suspend() manpage for a general description of the interface, the aiocb data structure and other structures relevant for asynchronous I/O (AIO). The timeout function parameter has the same meaning as for the aio_suspend() function. This function suspends the calling thread until at least waitfor AIO ope... |
aio_return(2) -- return status of an asynchronous I/O operation
|
The aio_return() function returns the return status associated with the aiocb structure referenced by the aiocbp argument. The return value for an asynchronous I/O operation is the value that would be set by the corresponding read(), write(), or fsync() operation. If the operation has been queued but not completed, aio_return() returns -1 and errno is set to EINPROGRESS. A successful aio_return() ... |
aio_suspend(2) -- wait for an asynchronous I/O operation to complete
|
The aio_suspend() function suspends the calling process or thread until at least one of the asynchronous I/O operations initiated with one of the nent aiocb pointers contained in list has completed, or a signal interrupts the function, or timeout is not NULL and the time interval specified by timeout has passed. Multiple threads may issue simultaneous calls to aio_suspend(), referencing one or mor... |
aio_write(2) -- start asynchronous write operation
|
The aio_write() function allows the calling process to perform an asynchronous write to a previously opened file. The function call returns when the write operation has been enqueued for processing. At this point, processing of the write operation may proceed concurrently with execution of the calling process or thread. If an error condition is detected that prevents the write request from being e... |
alarm(2) -- set a process's alarm clock
|
alarm() instructs the alarm clock of the calling process to send the signal SIGALRM to the calling process after the number of real-time seconds specified by sec have elapsed; see signal(5). Specific implementations might place limitations on the maximum supported alarm time. The constant MAX_ALARM defined in specifies the implementation-specific maximum. Whenever sec is greater that... |
audctl(2) -- start or halt the auditing system and set or get audit files
|
audctl() sets or gets the auditing system "current" and "next" audit files, and starts or halts the auditing system. This call is restricted to superusers. cpath and npath hold the absolute path names of the "current" and "next" files. mode specifies the audit file's permission bits. cmd is one of the following specifications: AUD_ON The caller issues the AUD_ON command with the required ... |
audswitch(2) -- suspend or resume auditing on the current process
|
audswitch() suspends or resumes auditing within the current process. This call is restricted to superusers. One of the following aflags must be used: AUD_SUSPEND Suspend auditing on the current process. AUD_RESUME Resume auditing on the current process. audswitch() can be used in self-auditing privileged processes to temporarily suspend auditing during intervals where auditing is to be handled by ... |
audwrite(2) -- write an audit record for a self-auditing process
|
audwrite() is called by trusted self-auditing processes, which are capable of turning off the regular auditing (using audswitch(2)) and doing higher-level auditing on their own. audwrite() is restricted to superusers. audwrite() checks to see if the auditing system is on and the calling process and the event specified are being audited. If these conditions are met, audwrite() writes the audit reco... |
bind(2) -- bind an address to a socket
|
The bind() system call assigns an address to an unbound socket. When a socket is created with socket(), it exists in an address space (address family) but has no address assigned. bind() causes the socket whose descriptor is s to become bound to the address specified in the socket address structure pointed to by addr. addrlen must specify the size of the address structure. Since the size of the so... |
brk(2) -- change data segment space allocation
|
brk() and sbrk() are used to change dynamically the amount of space allocated for the calling process's data segment; see exec(2). The change is made by resetting the process's break value and allocating the appropriate amount of space. The break value is the address of the first location beyond the end of the data segment. The amount of allocated space increases as the break value increases. Th... |
chdir(2) -- change working directory
|
chdir() and fchdir() cause a directory pointed to by path or fildes to become the current working directory, the starting point for path searches of path names not beginning with /. path points to the path name of a directory. fildes is an open file descriptor of a directory. For a directory to become the current working directory, a process must have execute (search) access to the directory. |
chmod(2) -- change file mode access permissions
|
The chmod() and fchmod() system calls set the access permission portion of the file's mode according to the bit pattern contained in mode. path points to a path name naming a file. fildes is a file descriptor. The following symbolic constants representing the access permission bits are defined with the indicated values in and are used to construct the mode argument. The value of mode... |
chown(2) -- change owner and group of a file
|
The chown() system call changes the user and group ownership of a file. path points to the path name of a file. chown() sets the owner ID and group ID of the file to the numeric values contained in owner and group respectively. A value of UID_NO_CHANGE or GID_NO_CHANGE can be specified in owner or group to leave unchanged the file's owner ID or group ID, respectively. Note that owner and group sh... |
chroot(2) -- change root directory
|
chroot() causes the named directory to become the root directory, the starting point for path searches for path names beginning with /. path points to a path name naming a directory. The user's working directory is unaffected by the chroot() system call. The effective user ID of the process must be a user having appropriate privileges to change the root directory. The .. entry in the root directo... |
clocks(2) -- clock operations
|
clock_settime() The clock_settime() function sets the specified clock, clock_id, to the value specified by tp. Time values that are between two consecutive non-negative integer multiples of the resolution of the specified clock are truncated down to the smaller multiple of the resolution. clock_gettime() The clock_gettime() function returns the current value tp for the specified clock, clock_id. c... |
clock_getres(2) -- clock operations
|
clock_settime() The clock_settime() function sets the specified clock, clock_id, to the value specified by tp. Time values that are between two consecutive non-negative integer multiples of the resolution of the specified clock are truncated down to the smaller multiple of the resolution. clock_gettime() The clock_gettime() function returns the current value tp for the specified clock, clock_id. c... |
clock_gettime(2) -- clock operations
|
clock_settime() The clock_settime() function sets the specified clock, clock_id, to the value specified by tp. Time values that are between two consecutive non-negative integer multiples of the resolution of the specified clock are truncated down to the smaller multiple of the resolution. clock_gettime() The clock_gettime() function returns the current value tp for the specified clock, clock_id. c... |
clock_settime(2) -- clock operations
|
clock_settime() The clock_settime() function sets the specified clock, clock_id, to the value specified by tp. Time values that are between two consecutive non-negative integer multiples of the resolution of the specified clock are truncated down to the smaller multiple of the resolution. clock_gettime() The clock_gettime() function returns the current value tp for the specified clock, clock_id. c... |
close(2) -- close a file descriptor
|
close() closes the file descriptor indicated by fildes. fildes is a file descriptor obtained from a creat(), open(), dup(), fcntl(), or pipe() system call. All associated file segments which have been locked by this process with the lockf() function are released (i.e., unlocked). |
connect(2) -- initiate a connection on a socket
|
The connect() function initiates a connection on a socket. s is a socket descriptor. addr is a pointer to a socket address structure containing the address of a remote socket to which a connection is to be established. addrlen is the size of this address structure. Since the size of the socket address structure varies among socket address families, the correct socket address structure should be us... |
CPU_IS_PA_R(2) -- get configurable system variables
|
The sysconf() system call provides a way for applications to determine the current value of a configurable limit or variable. The name argument represents the system variable being queried. The following table lists the configuration variable name, the associated value for the name argument that is used in the sysconf() call and the value returned: Variable Value for name Value Returned __________... |
crashconf(2) -- configure system crash dumps
|
crashconf() changes the current system crash dump configuration. The crash dump configuration consists of: + The crash dump device list. This list identifies all devices that can be used to store a crash dump. The devices are used in reverse order, last specified to first. + The included class list. This list identifies all system memory classes that must be included in any crash dump. + The exclu... |
creat(2) -- create a new file or rewrite an existing one
|
The creat() system call creates a new regular file or prepares to rewrite an existing file named by the path name pointed to by path. If the file exists, its length is truncated to 0, and its mode and owner are unchanged. Otherwise, the file's owner ID is set to the effective user ID of the process. If the set-group-ID bit of the parent directory is set, the file's group ID is set to the group I... |
creat64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
dup(2) -- duplicate an open file descriptor
|
fildes is a file descriptor obtained from a creat(), open(), dup(), fcntl(), or pipe() 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). + Same file status flags (see fcntl(2), F_DUPFD). The new file d... |
dup2(2) -- duplicate an open file descriptor to a specific slot
|
fildes is a file descriptor obtained from a creat(), open(), dup(), fcntl(), or pipe() system call. fildes2 is a non-negative integer less than the maximum value allowed for file descriptors. dup2() causes fildes2 to refer to the same file as fildes. If fildes2 refers to an already open file, the open file is closed first. The file descriptor returned by dup2() has the following in common with fil... |
errno(2) -- error indicator for function calls
|
Many functions in the HP-UX operating system indicate an error condition by returning an otherwise out-of-range value (usually -1). Most of these functions set the symbol errno, that is defined in errno.h, to a nonzero code value that more specifically identifies the particular error condition that was encountered. In most cases, the manpages for functions that set errno list those errno values an... |
exec(2) -- execute a file
|
The exec*() system calls, in all their forms, load a program from an ordinary, executable file into the current process, replacing the current program. The path or file argument refers to either an executable object file or a file of data for an interpreter. In the latter case, the file of data is also called a script file. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 exec(2) exe... |
execl(2) -- execute a file
|
The exec*() system calls, in all their forms, load a program from an ordinary, executable file into the current process, replacing the current program. The path or file argument refers to either an executable object file or a file of data for an interpreter. In the latter case, the file of data is also called a script file. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 exec(2) exe... |
execle(2) -- execute a file
|
The exec*() system calls, in all their forms, load a program from an ordinary, executable file into the current process, replacing the current program. The path or file argument refers to either an executable object file or a file of data for an interpreter. In the latter case, the file of data is also called a script file. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 exec(2) exe... |
execlp(2) -- execute a file
|
The exec*() system calls, in all their forms, load a program from an ordinary, executable file into the current process, replacing the current program. The path or file argument refers to either an executable object file or a file of data for an interpreter. In the latter case, the file of data is also called a script file. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 exec(2) exe... |
execv(2) -- execute a file
|
The exec*() system calls, in all their forms, load a program from an ordinary, executable file into the current process, replacing the current program. The path or file argument refers to either an executable object file or a file of data for an interpreter. In the latter case, the file of data is also called a script file. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 exec(2) exe... |
execve(2) -- execute a file
|
The exec*() system calls, in all their forms, load a program from an ordinary, executable file into the current process, replacing the current program. The path or file argument refers to either an executable object file or a file of data for an interpreter. In the latter case, the file of data is also called a script file. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 exec(2) exe... |
execvp(2) -- execute a file
|
The exec*() system calls, in all their forms, load a program from an ordinary, executable file into the current process, replacing the current program. The path or file argument refers to either an executable object file or a file of data for an interpreter. In the latter case, the file of data is also called a script file. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 exec(2) exe... |
exit(2) -- terminate process
|
exit() terminates the calling process and passes status to the system for inspection, see wait(2). Returning from main in a C program has the same effect as exit(); the status value is the function value returned by main (this value is undefined if main does not take care to return a value or to call exit() explicitly). If the calling process is multithreaded, all threads/lightweight process in th... |
fchdir(2) -- change working directory
|
chdir() and fchdir() cause a directory pointed to by path or fildes to become the current working directory, the starting point for path searches of path names not beginning with /. path points to the path name of a directory. fildes is an open file descriptor of a directory. For a directory to become the current working directory, a process must have execute (search) access to the directory. |
fchmod(2) -- change file mode access permissions
|
The chmod() and fchmod() system calls set the access permission portion of the file's mode according to the bit pattern contained in mode. path points to a path name naming a file. fildes is a file descriptor. The following symbolic constants representing the access permission bits are defined with the indicated values in and are used to construct the mode argument. The value of mode... |
fchown(2) -- change owner and group of a file
|
The chown() system call changes the user and group ownership of a file. path points to the path name of a file. chown() sets the owner ID and group ID of the file to the numeric values contained in owner and group respectively. A value of UID_NO_CHANGE or GID_NO_CHANGE can be specified in owner or group to leave unchanged the file's owner ID or group ID, respectively. Note that owner and group sh... |
fcntl(2) -- file control
|
fcntl() provides for control over open files. fildes is an open file descriptor. The following are possible values for the cmd argument: F_DUPFD Return a new file descriptor having the following characteristics: + Lowest numbered available file descriptor greater than or equal to the third argument, arg, taken as an integer of type int. + Same open file (or pipe) as the original file. + Same file ... |
fdatasync(2) -- synchronize a file's in-core and on-disk states
|
fsync() and fdatasync() cause all modified data and attributes of fildes to be moved to a permanent storage device. This normally results in all in-core modified copies of buffers for the associated file to be written to a disk. fsync() and fdatasync() apply to ordinary files, and apply to block special devices on systems which permit I/O to block special devices. fsync() and fdatasync() should be... |
FD_CLR(2) -- synchronous I/O multiplexing
|
The select() function indicates which of the specified file descriptors is ready for reading, ready for writing, or has an error condition pending. If the specified condition is false for all of the specified file descriptors, select() blocks, up to the specified timeout interval, until the specified condition is true for at least one of the specified file descriptors. The select() function suppor... |
FD_ISSET(2) -- synchronous I/O multiplexing
|
The select() function indicates which of the specified file descriptors is ready for reading, ready for writing, or has an error condition pending. If the specified condition is false for all of the specified file descriptors, select() blocks, up to the specified timeout interval, until the specified condition is true for at least one of the specified file descriptors. The select() function suppor... |
FD_SET(2) -- synchronous I/O multiplexing
|
The select() function indicates which of the specified file descriptors is ready for reading, ready for writing, or has an error condition pending. If the specified condition is false for all of the specified file descriptors, select() blocks, up to the specified timeout interval, until the specified condition is true for at least one of the specified file descriptors. The select() function suppor... |
FD_ZERO(2) -- synchronous I/O multiplexing
|
The select() function indicates which of the specified file descriptors is ready for reading, ready for writing, or has an error condition pending. If the specified condition is false for all of the specified file descriptors, select() blocks, up to the specified timeout interval, until the specified condition is true for at least one of the specified file descriptors. The select() function suppor... |
fgetacl(2) -- get access control list (ACL) information (HFS File Systems only)
|
getacl() returns a complete listing of all ACL entries (uid.gid, mode) in an existing file's access control list. path points to a path name of a file. Similarly, fgetacl() returns a complete listing of all ACL entries for an open file known by the file descriptor fildes. nentries is the number of entries being reported on, and is never more than the constant NACLENTRIES defined in . I... |
fork(2) -- create a new process
|
The fork() system call causes the creation of a new process. The new child process is created wth exactly one thread or lightweight process. The new child process contains a replica of the calling thread (if the calling process is multi-threaded) and its entire address space, possibly including the state of mutexes and other resources. If the calling process is multi-threaded, the child process ma... |
fpathconf(2) -- get configurable path name variables
|
The pathconf() and fpathconf() functions provide a method for applications to determine the value of a configurable limit or option associated with a file or directory (see limits(5) and ). For pathconf(), the path argument points to the path name of a file or directory. For fpathconf(), the fildes argument is an open file descriptor. For both functions, the name argument represents the ... |
fsctl(2) -- file system control
|
fsctl() provides access to file-system-specific information. fildes is an open file descriptor for a file in the file system of interest. The possible values for command depend on the type of file system. Currently, defined commands exist only for the CDFS file system (see sys/cdfsdir.h). outbuf is a pointer to the data area in which data is returned from the file system. outlen gives the length o... |
fsetacl(2) -- set access control list (ACL) information
|
setacl() sets an existing file's access control list (ACL) or deletes optional entries from it. path points to a path name of a file. Similarly, fsetacl() sets an existing file's access control list for an open file known by the file descriptor fildes. The effective user ID of the process must match the owner of the file or be the super-user to set a file's ACL. A successful call to setacl() de... |
fstat(2) -- get file status
|
The fstat() function obtains information about an open file associated with the file descriptor fildes, and writes it to the area pointed to by buf. fildes is a file descriptor for an open file, which is created with the successful completion of an open(), creat(), dup(), fcntl(), or pipe() system call. See the open(2), creat(2), dup(2), fcntl(2), or pipe(2)) manpages for more detailed information... |
fstat64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
fstatfs(2) -- get file system statistics
|
statfs() returns status information for a mounted file system. fstatfs() returns similar information for an open file. The parameters for the statfs() and fstatfs() functions are as follows: path is a pointer to a path name of any file within the mounted file system. buf is a pointer to a statfs structure, which is where the file system status information is stored. fildes is a file descriptor for... |
fstatvfs(2) -- get file system information
|
statvfs() returns information about a mounted file system. fstatvfs() returns similar information about an open file. The parameters for the statvfs() and fstatvfs() functions are as follows: path is a pointer to a path name of any file within the mounted file system. buf is a pointer to a statvfs structure, which is where the file system status information is stored. fildes is a file descriptor f... |
fstatvfs64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
fsync(2) -- synchronize a file's in-core and on-disk states
|
fsync() and fdatasync() cause all modified data and attributes of fildes to be moved to a permanent storage device. This normally results in all in-core modified copies of buffers for the associated file to be written to a disk. fsync() and fdatasync() apply to ordinary files, and apply to block special devices on systems which permit I/O to block special devices. fsync() and fdatasync() should be... |
ftime(2) -- get date and time more precisely
|
ftime() fills in a structure pointed to by its argument, as defined by : /* * Structure returned by ftime system call */ struct timeb { time_t time; unsigned short millitm; short timezone; short dstflag; }; The structure contains the time in seconds since 00:00:00 UTC (Coordinated Universal Time), January 1, 1970, up to 1000 milliseconds of more-precise interval, the local timezone (m... |
ftruncate(2) -- truncate a file to a specified length
|
The ftruncate() function causes the regular file referenced by fildes to have a size of length bytes. The truncate() function causes the regular file named by path to have a size of length bytes. The effect of ftruncate() and truncate() on other types of files is unspecified. If the file previously was larger than length, the extra data is lost. If it was previously shorter than length, bytes betw... |
ftruncate64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
getaccess(2) -- get a user's effective access rights to a file
|
getaccess() identifies the access rights (read, write, execute/search) a specific user ID has to an existing file. path points to a path name of a file. If the call succeeds, it returns a value of zero or greater, representing the specified user's effective access rights (modes) to the file. The rights are expressed as the logical OR of bits (R_OK, W_OK, and X_OK) whose values are defined in the ... |
getacl(2) -- get access control list (ACL) information (HFS File Systems only)
|
getacl() returns a complete listing of all ACL entries (uid.gid, mode) in an existing file's access control list. path points to a path name of a file. Similarly, fgetacl() returns a complete listing of all ACL entries for an open file known by the file descriptor fildes. nentries is the number of entries being reported on, and is never more than the constant NACLENTRIES defined in . I... |
getaudid(2) -- get the audit ID (aid) for the current process
|
getaudid() returns the audit ID (aid) for the current process. This call is restricted to the super-user. |
getaudproc(2) -- get the audit process flag for the calling process
|
getaudproc() returns the audit process flag for the calling process. The audit process flag (u_audproc) determines whether the process run by a given user should be audited. The process is audited if the returned flag is 1. If the returned flag is 0, the process is not audited. This call is restricted to the super-user. |
getcontext(2) -- get and set current user context
|
The getcontext() function initializes the structure pointed to by ucp to the current user context of the calling process. The ucontext_t type that ucp points to defines the user context and includes the contents of the calling process' machine registers, the signal mask, and the current execution stack. The setcontext() function restores the user context pointed to by ucp. A successful call to se... |
getdirentri(2) -- get entries from a directory in a file-systemindependent format
|
The getdirentries() system call and the header file have been obsoleted starting from HP-UX 10.30 by the functions described in directory(3C). getdirentries() will not be supported for 64-bit applications. The getdirentries() system call places directory entries from the directory referenced by the file descriptor fildes into the buffer pointed to by buf, in a file-system-independent form... |
getdomainna(2) -- get/set name of current Network Information Service domain
|
getdomainname() returns the name of the Network Information Service (NIS) domain for the current processor, as previously set by setdomainname(). The parameter namelen specifies the size of the name array. The returned value is null-terminated unless the area pointed to by name is not large enough to hold the domain name plus the null byte. In this case, only the namelen number of bytes is returne... |
getegid(2) -- get real user, effective user, real group, and effective group IDs
|
The following functions return the information indicated: getuid() Real-user-ID of the calling process. geteuid() Effective-user-ID of the calling process. getgid() Real-group-ID of the calling process. getegid() Effective-group-ID of the calling process. No means is available for ascertaining the saved-user-ID or savedgroup-ID of a process. |
geteuid(2) -- get real user, effective user, real group, and effective group IDs
|
The following functions return the information indicated: getuid() Real-user-ID of the calling process. geteuid() Effective-user-ID of the calling process. getgid() Real-group-ID of the calling process. getegid() Effective-group-ID of the calling process. No means is available for ascertaining the saved-user-ID or savedgroup-ID of a process. |
getevent(2) -- get events and system calls that are currently being audited
|
getevent() gets the events and system calls being audited. The events are returned in a table pointed to by a_event. The system calls are returned in a table pointed to by a_syscall. This call is restricted to the super-user. |
getfh(2) -- return file handle for file on remote node
|
The getfh() system call returns a file handle in the struct pointed to by fhp for the file pointed to by path. This information is used to perform an NFS mount for a remote node. getfh() is executed on the remote node; results are passed back to the program doing the NFS mount. The caller should never examine the file handle contents. The file handle only identifies a file to the node that produce... |
getgid(2) -- get real user, effective user, real group, and effective group IDs
|
The following functions return the information indicated: getuid() Real-user-ID of the calling process. geteuid() Effective-user-ID of the calling process. getgid() Real-group-ID of the calling process. getegid() Effective-group-ID of the calling process. No means is available for ascertaining the saved-user-ID or savedgroup-ID of a process. |
getgroups(2) -- get group access list
|
getgroups() gets the current group access list of the user process and stores it in the array gidset. The parameter ngroups indicates the number of entries which may be placed in gidset. No more than NGROUPS_MAX, as defined in , is ever returned. As a special case, if the ngroups argument is zero, getgroups() returns the number of group entries for the process. In this case, the array po... |
gethostid(2) -- get an identifier for the current host
|
The gethostid() function retrieves a 32-bit identifier for the current host. |
gethostname(2) -- get name of current host
|
gethostname() returns in the array to which hostname points, the standard host name for the current processor as set by sethostname() (see sethostname(2)). size specifies the length of the hostname array. hostname is null-terminated unless insufficient space is provided. |
getitimer(2) -- get and set value of interval timer
|
The getitimer() function stores the current value of the timer specified by which into the structure pointed to by value. The setitimer() function sets the timer specified by which to the value specified in the structure pointed to by value, and if ovalue is not a null pointer, stores the previous value of the timer in the structure pointed to by ovalue. The header declares the itimer... |
getksym(2) -- get information for a global kernel symbol
|
There are two ways that getksym can be used to retrieve kernel symbol information. As detailed below, if symname is provided and value is set to zero, getksym attempts to retrieve the value of the symbol; if a non-zero value is provided, the associated symbol name is retrieved. getksym, given a symname, looks for a global (STB_GLOBAL or STB_WEAK) symbol of that name in the symbol table of the stat... |
getmsg(2) -- receive next message from a STREAMS file
|
The getmsg() function retrieves the contents of a message located at the head of the stream head read queue associated with a STREAMS file and places the contents into one or more buffers. The message contains either a data part, a control part, or both. The data and control parts of the message are placed into separate buffers, as described below. The semantics of each part is defined by the orig... |
getpagesize(2) -- get the current page size
|
The getpagesize() function returns the current page size. The getpagesize() function is equivalent to sysconf(_SC_PAGE_SIZE) and sysconf(_SC_PAGESIZE). |
getpeername(2) -- get address of connected peer
|
getpeername() returns the address of the peer socket connected to the socket indicated by s, where s is a socket descriptor. addr points to a socket address structure in which this address is returned. addrlen points to a variable that should be initialized to indicate the size of the address structure. On return, the variable contains the actual size of the address returned (in bytes). If addr do... |
getpgid(2) -- get process, process group and parent process ID.
|
These functions return process, process group and parent process IDs, as follows: getpgid() Process group ID of the specified process. If pid is zero, the call applies to the calling process. Same result as getpgrp2(). getpgrp() Process group ID of the calling process. getpgrp2() Process group ID of the specified process. If pid is zero, the call applies to the calling process. Same result as getp... |
getpgrp(2) -- get process, process group and parent process ID.
|
These functions return process, process group and parent process IDs, as follows: getpgid() Process group ID of the specified process. If pid is zero, the call applies to the calling process. Same result as getpgrp2(). getpgrp() Process group ID of the calling process. getpgrp2() Process group ID of the specified process. If pid is zero, the call applies to the calling process. Same result as getp... |
getpgrp2(2) -- get process, process group and parent process ID.
|
These functions return process, process group and parent process IDs, as follows: getpgid() Process group ID of the specified process. If pid is zero, the call applies to the calling process. Same result as getpgrp2(). getpgrp() Process group ID of the calling process. getpgrp2() Process group ID of the specified process. If pid is zero, the call applies to the calling process. Same result as getp... |
getpid(2) -- get process, process group and parent process ID.
|
These functions return process, process group and parent process IDs, as follows: getpgid() Process group ID of the specified process. If pid is zero, the call applies to the calling process. Same result as getpgrp2(). getpgrp() Process group ID of the calling process. getpgrp2() Process group ID of the specified process. If pid is zero, the call applies to the calling process. Same result as getp... |
getpmsg(2) -- receive next message from a STREAMS file
|
The getmsg() function retrieves the contents of a message located at the head of the stream head read queue associated with a STREAMS file and places the contents into one or more buffers. The message contains either a data part, a control part, or both. The data and control parts of the message are placed into separate buffers, as described below. The semantics of each part is defined by the orig... |
getppid(2) -- get process, process group and parent process ID.
|
These functions return process, process group and parent process IDs, as follows: getpgid() Process group ID of the specified process. If pid is zero, the call applies to the calling process. Same result as getpgrp2(). getpgrp() Process group ID of the calling process. getpgrp2() Process group ID of the specified process. If pid is zero, the call applies to the calling process. Same result as getp... |
getpriority(2) -- get or set process priority
|
getpriority() returns the priority of the indicated processes. setpriority() sets the priority of the indicated processes to priority. The processes are indicated by which and who, where which can have one of the following values: PRIO_PROCESS Get or set the priority of the specified process where who is the process ID. A who of 0 implies the process ID of the calling process. PRIO_PGRP Get or set... |
getprivgrp(2) -- get and set special attributes for group
|
getprivgrp() The getprivgrp() system call returns a table of the privileged group assignments into a user-supplied structure. grplist points to an array of structures of type privgrp_map, associating a group ID with a privilege mask. Privilege masks are formed by ORing together elements from the access types specified in . The array may have gaps in it, distinguished as having a pri... |
getrlimit(2) -- control maximum resource consumption
|
Limits on the consumption of a variety of resources by the calling process may be obtained with getrlimit() and set with setrlimit(). Each call to either getrlimit() or setrlimit() identifies a specific resource to be operated upon as well as a resource limit. A resource limit is represented by an rlimit structure, pointed to by the rlp argument and includes the following members: rlim_t rlim_cur;... |
getrlimit64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
getrusage(2) -- get information about resource utilization
|
The getrusage() function provides measures of the resources used by the current process or its terminated and waited-for child processes. If the value of the who argument is RUSAGE_SELF, information is returned about resources used by the current process. If the value of the who argument is RUSAGE_CHILDREN, information is returned about resources used by the terminated and waited-for children of t... |
getsid(2) -- get session ID
|
The getsid() function returns the session ID of the specified process. If pid is 0, the call applies to the current process. For this to be allowed, the current process and the referenced process must be in the same session. |
getsockname(2) -- get socket address
|
getsockname() returns the local address of the socket indicated by s, where s is a socket descriptor. addr points to a socket address structure in which this address is returned. addrlen points to a variable that should be initialized to indicate the size of the address structure. On return it contains the actual size of the address returned (in bytes). If addr does not point to enough space to co... |
getsockopt(2) -- get and set options on sockets
|
The getsockopt() and setsockopt() system calls manipulate options associated with a socket. The socket is identified by the socket descriptor s. Options can exist at multiple protocol levels, and they are always present at the uppermost "socket" level (see socket(2)). When manipulating socket options, the level at which the option resides (level) and the name of the option (optname) must be spec... |
gettimeofda(2) -- get the date and time
|
The gettimeofday() function obtains the current time, expressed as seconds and microseconds since Epoch, and stores it in the timeval structure pointed to by tp. The resolution of the system clock is one microsecond. |
gettimeofday(2) -- get the date and time
|
The gettimeofday() function obtains the current time, expressed as seconds and microseconds since Epoch, and stores it in the timeval structure pointed to by tp. The resolution of the system clock is one microsecond. |
gettune(2) -- get the value of a kernel tunable parameter
|
This function retrieves the current value of the kernel tunable parameter named tunable. The value is passed back through the supplied value pointer. The value returned is the value for the tunable that is being used by the currently running kernel. |
getuid(2) -- get real user, effective user, real group, and effective group IDs
|
The following functions return the information indicated: getuid() Real-user-ID of the calling process. geteuid() Effective-user-ID of the calling process. getgid() Real-group-ID of the calling process. getegid() Effective-group-ID of the calling process. No means is available for ascertaining the saved-user-ID or savedgroup-ID of a process. |
gtty(2) -- control terminal device (Bell Version 6 compatibility)
|
For certain status settings and status inquiries about terminal devices, the functions stty() and gtty() are equivalent to ioctl(fildes, TIOCSETP, argp) and ioctl(fildes, TIOCGETP, argp) respectively (see ioctl(2) and termio(7). |
intro(2) -- introduction to system calls
|
This section describes all of the system calls. All of these calls return a function result. This result indicates the status of the call. Typically, a zero or positive result indicates that the call completed successfully, and -1 indicates an error. The individual descriptions specify the details. An error number is also made available in the external variable errno (see errno(2)). Note: errno is... |
ioctl(2) -- control device
|
ioctl() performs a variety of functions on character special files (devices), or regular files and directories on VxFS file systems. The write-ups of various devices in Section (7) discuss how ioctl() applies to them. The type of arg is dependent on the specific ioctl() call, as described in Section (7). request is made up of several fields which encode the size and direction of the argument (refe... |
iscomsec(2) -- check if the system has been converted to a trusted system.
|
iscomsec returns a zero (0) if the system is not a trusted system. If the system has been converted to a trusted system, iscomsec returns a one (1). |
kill(2) -- send a signal to a process or a group of processes
|
The kill() system call sends a signal to a process or a group of processes, as specified by pid. The signal to be sent is specified by sig and is either one from the list given in signal(2), or 0. The raise() system call sends a signal to the executing program. The signal to be sent is specified by sig and is either one from the list given in signal(2), or 0. If sig is 0 (the null signal), error c... |
killpg(2) -- 4.2 BSD-compatible process control facilities
|
These calls simulate (and are provided for backward compatibility with) functions of the same name in the 4.2 Berkeley Software Distribution. This version of setpgrp() is equivalent to the system call setpgid(pid, pid, , pgrp) (see ) (see setpgid(2)). This version of getpgrp() is equivalent to the system call getpgrp2(pid) (see pid) (see ) (see getpid(2)). killpg() is equivalent to the system call... |
lchown(2) -- change owner and group of a file
|
The chown() system call changes the user and group ownership of a file. path points to the path name of a file. chown() sets the owner ID and group ID of the file to the numeric values contained in owner and group respectively. A value of UID_NO_CHANGE or GID_NO_CHANGE can be specified in owner or group to leave unchanged the file's owner ID or group ID, respectively. Note that owner and group sh... |
link(2) -- link to a file
|
The link() system call creates a new link (directory entry) for the existing file. path1 points to a path name naming an existing file. path2 points to a path name naming the new directory entry to be created. |
lio_listio(2) -- start a list of asynchronous I/O operations
|
The lio_listio() function allows the calling process to request a list of asynchronous I/O operations with a single function call. The function call returns when all operation requests have been enqueued for processing. At this point, processing of the operations may proceed concurrently with execution of the calling process or thread. The list argument is an array of nent pointers to aiocb struct... |
listen(2) -- listen for connections on a socket
|
To accept connections, a socket is first created using socket(), a queue for incoming connections is activated using listen(), and then connections are accepted using accept(). listen() applies only to unconnected sockets of type SOCK_STREAM. Except for AF_VME_LINK, if the socket has not been bound to a local port before listen() is invoked, the system automatically binds a local port for the sock... |
lockf(2) -- provide semaphores and record locking on files
|
The lockf() function allows regions of a file to be used as semaphores (advisory locks) or restricts access to only the locking process (enforcement-mode record locks). Other processes that attempt to access the locked resource either return an error or sleep until the resource becomes unlocked. All locks for a process are released upon the first close of the file, even if the process still has th... |
lockf64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
lseek(2) -- move read/write file pointer; seek
|
lseek() sets the file pointer associated with the file descriptor as follows: + If whence is SEEK_SET, the pointer is set to offset bytes. + If whence is SEEK_CUR, the pointer is set to its current location plus offset. + If whence is SEEK_END, the pointer is set to the size of the file plus offset. These symbolic constants are defined in . |
lseek64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
lstat(2) -- get symbolic link status
|
The lstat() function has the same effect as stat(), except when path refers to a symbolic link. In that case lstat() returns information about the link, while stat() returns information about the file the link references. For symbolic links, the st_mode member will contain meaningful information when used with the file type macros, and the st_size member will contain the length of the pathname con... |
lstat64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
lsync(2) -- update disk
|
sync() causes all information in memory that should be on disk to be written out. This includes modified file system meta-data and delayed block I/O. It should be used by commands and programs that examine a file system, such as fsck, df, etc. It is mandatory before a shutdown. The writing, although scheduled, is not necessarily complete upon return from sync. In some HP-UX systems, sync() may be ... |
madvise(2) -- advise the system of a process's expected paging behavior
|
The madvise system call permits a process to advise the system about its expected future behavior in referencing a mapped file, an anonymous memory region, or a shared memory region. Certain implementations can use this information to optimize the use of resources. addr and len specify the address and length in bytes of the region to which the advice refers. For MADV_DONTNEED, the address and leng... |
makecontext(2) -- manipulate user contexts
|
The makecontext() function modifies the context specified by ucp, which has been initialized using getcontext(). When this context is resumed using swapcontext() or setcontext(), program execution continues by calling func(), passing it the arguments that follow argc in the makecontext() call. Before a call is made to makecontext(), the context being modified should have a stack allocated for it. ... |
mkdir(2) -- make a directory file
|
The mkdir() system call creates a new directory file named by path. The file permission bits of the new directory are initialized from mode, and are modified by the process's file mode creation mask. For each bit set in the process's file mode creation mask, the corresponding bit in the new directory's mode is cleared (see umask(2)). The directory's owner ID is set to the process's effective-... |
mknod(2) -- make directory, special, or ordinary file
|
The mknod() system call creates a new file named by the path name pointed to by path. The mode of the new file is specified by the mode argument. Symbolic constants that define the file type and file access permission bits are found in the header file and are used to construct the mode argument. The value of the mode argument should be the bit-wise inclusive OR of the values of the de... |
mlock(2) -- lock a segment of the process virtual address space in memory
|
The mlock() system call allows the calling process to lock a segment of the process virtual address space into memory. Any addressable segment of the process' address space may be locked. Locked segments are immune to all routine swapping. addr must be a valid address in the process virtual address space. addr + len must also be a valid address in the process virtual address space. Locks are appl... |
mlockall(2) -- lock a process virtual address space in memory
|
The mlockall() system call allows the calling process to lock its entire virtual address space into memory, making it immune to all routine swapping. flags may be one or both of the following: MCL_CURRENT Lock the current process virtual address space. All addressable pages of the address space are locked. MCL_FUTURE Lock any future additions to the process virtual address space. Note that MCL_FUT... |
mmap(2) -- map pages of memory
|
The mmap() function establishes a mapping between a process' address space and a file. The format of the call is as follows: pa = mmap(addr, len, prot, flags, fildes, off); The mmap() function establishes a mapping between the process' address space at an address pa for len bytes and the file associated with the file descriptor fildes at offset off for len bytes. The value of pa is an unspecifie... |
mmap64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
modload(2) -- load kernel modules on demand
|
modload allows processes with appropriate privilege to demand-load a kernel module into the running kernel. The module must be of a supported type and must have been registered via kcmodule(1M) before it can be loaded. The module to be loaded is specified by pathname. pathname may be either a module name or an absolute pathname. If pathname is a module name, a list of directories specified by modp... |
modpath(2) -- change global search path for dynamically loadable kernel modules
|
modpath allows users with appropriate privilege to modify the global search path used to locate object files for dynamically loadable kernel modules. The search path modifications take effect immediately and affect all subsequent loads for all users on the system. pathname may be either a colon-separated list of absolute pathnames or NULL. If the former, these path names represent directories whic... |
modstat(2) -- get information for a dynamically loaded kernel module
|
The modstat function allows processes to get information for dynamically loaded kernel modules. For modules with appropriate privilege, it fills in all the elements of the modstatus structure, specified by stbuf, with the information available for the given module identifier module_id. For non-privileged processes, modstat fills in all information except the address and size of the module object f... |
moduload(2) -- unload a kernel module on demand
|
moduload allows users with appropriate privilege to demand unload one or all unloadable modules from the running kernel. A module is considered unloadable if it is not currently in use, if no module depending on it is currently loaded, and if the module is not being loaded or unloaded from the kernel. If module_id is set to 0 (zero), moduload attempts to unload all unloadable modules, otherwise mo... |
mount(2) -- mount a file system
|
The mount() system call requests that a file system identified by fs be mounted on the file identified by path. mflag contains a bit-mask of flags (described below). Note that the MS_DATA flag must be set for the six-argument version of the call. fstype is the file system type name. It is the same name that sysfs(2) uses. The last two arguments together describe a block of file-systemspecific data... |
mpctl(2) -- multiprocessor control
|
mpctl provides a means of determining how many processors and locality domains are available in the system, and assigning processes or lightweight processes to execute on specific processors or within a specific locality domain. A locality domain consists of a related collection of processors, memory, and peripheral resources that comprise a fundamental building block of the system. All processors... |
mprotect(2) -- set or check protection of memory mapping
|
The mprotect() function changes the access protections on the mappings specified by the range [addr, addr+len], rounding len up to the next multiple of the page size as returned by sysconf(), to be that specified by prot. Legitimate values for prot are the same as those permitted for mmap() and are defined in : PROT_READ Page can be read. PROT_WRITE Page can be written. PROT_EXEC Page ... |
mq_close(2) -- close a message queue descriptor
|
The mq_close() system call removes the association between the message queue descriptor, mqdes, and a message queue. Use of this message queue descriptor by the process, after a successful return from this mq_close(), and until this descriptor is returned by a subsequent mq_open(), will result in the failure of message queue system calls, with errno set to [EBADF]. If the process has a registered ... |
mq_getattr(2) -- get status information and attributes associated with a message queue
|
The mq_getattr() system call collects status information and attributes associated with the message queue specified by mqdes which is copied into the mq_attr structure referenced by mqstat. Upon a successful return, the mq_msgsize and mq_maxmsg fields within the mq_attr structure contain the maximum size of a message for this queue and the maximum number of messages that can be queued at any time.... |
mq_notify(2) -- register/cancel a notification request with a message queue
|
If the argument notification is not NULL, the mq_notify() system call registers the calling process to be notified of message arrival at an empty message queue associated with the message queue descriptor mqdes. The notification specified by the notification argument will be sent to the process when the message queue transitions from the empty state to the non-empty state. At any time, only one pr... |
mq_open(2) -- create/open a message queue
|
The mq_open() system call establishes a connection between a process and a message queue. It returns a new message queue descriptor which is used by other message queue system calls to refer to that queue. The name argument points to the message queue name, and must conform to the rules listed in Message Queue Naming Convention. The oflag argument is the bitwise inclusive OR of the flags listed in... |
mq_receive(2) -- receive a message from a message queue
|
The mq_receive() system call receives the oldest of the highest priority message from the message queue specified by mqdes. The selected message is removed from the queue and copied to the buffer pointed to by the msg_ptr argument. The argument, msg_len, specifies the size of the buffer in bytes. The value of msg_len should be greater than or equal to the mq_msgsize attribute of the message queue,... |
mq_send(2) -- send a message to a message queue
|
The mq_send() system call adds a message pointed to by the argument msg_ptr to the message queue specified by mqdes. The msg_len argument specifies the length of the message in bytes. The value of msg_len should be less than or equal to the mq_msgsize attribute of the message queue, or mq_send() will fail. If the specified message queue is not full, mq_send() will insert the message into the queue... |
mq_setattr(2) -- set the blocking status of a message queue associated with a descriptor
|
The mq_setattr() system call changes the blocking status of a message queue associated with the descriptor, mqdes. The blocking status that is modified is per message queue descriptor and another open descriptor for the same message queue can have a different blocking status. The argument mqstat, points to an mq_attr structure that specifies the blocking status desired. More specifically, if the O... |
mq_unlink(2) -- unlink a message queue
|
The mq_unlink() system call disassociates the queue name, from a message queue specified by the argument, name. After a successful call to mq_unlink(), attempts to open a message queue with the same name will fail, if the flag O_CREAT is not set in oflags. If there are no processes with existing open descriptors for the message queue, the queue is destroyed. If one or more processes have the messa... |
msem_init(2) -- initialize a semaphore in a mapped file or anonymous memory region
|
msem_init() allocates a new binary semaphore and initializes the state of the new semaphore. sem points to an msemaphore structure in which the state of the semaphore is to be stored. If initial_value is MSEM_LOCKED, the new semaphore is initialized in the locked state. If initial_value is MSEM_UNLOCKED, the new semaphore is initialized in the unlocked state. The msemaphore structure must be locat... |
msem_lock(2) -- lock a semaphore
|
msem_lock() attempts to lock a binary semaphore. sem points to an msemaphore structure which specifies the semaphore to be locked. If the semaphore is not currently locked, it becomes locked and the function returns successfully. If the semaphore is currently locked, and condition is MSEM_IF_NOWAIT, then the function returns with an error. If the semaphore is currently locked and condition is zero... |
msem_remove(2) -- remove a semaphore in mapped file or anonymous region
|
msem_remove() removes a binary semaphore. sem points to an msemaphore structure that specifies the semaphore to be removed. Any subsequent use of the msemaphore structure before it is again initialized by calling msem_init() produces undefined results. msem_remove() also causes any process waiting in the msem_lock() function on the removed semaphore to return with an error. If the msemaphore struc... |
msem_unlock(2) -- unlock a semaphore
|
msem_unlock() unlocks a binary semaphore. sem points to an msemaphore structure that specifies the semaphore to be unlocked. If the condition argument is zero, the semaphore will be unlocked, whether or not any other processes are currently attempting to lock it. If the condition argument is MSEM_IF_WAITERS, and some other process is waiting to lock the semaphore or the implementation cannot relia... |
msgctl(2) -- message control operations
|
msgctl() provides a variety of message control operations as specified by cmd. The following cmds are available: IPC_STAT Place the current value of each member of the data structure associated with msqid into the structure pointed to by buf. The contents of this structure are defined in glossary(9). IPC_SET Set the value of the following members of the data structure associated with msqid to the ... |
msgget(2) -- get message queue
|
msgget() returns the message queue identifier associated with key. A message queue identifier and associated message queue and data structure are created for key if one of the following is true: key is equal to IPC_PRIVATE. This call creates a new identifier, subject to available resources. The identifier will never be returned by another call to msgget() until it has been released by a call to ms... |
msgop(2) -- message operations
|
The msgsnd() system call sends a message to the queue associated with the message queue identifier specified by msqid. msgp points to a user-defined buffer that must contain first a field of type long that specifies the type of the message, followed by a data portion that will hold the data bytes of the message. The structure below is an example of what this user-defined buffer might look like: lo... |
msgrcv(2) -- message operations
|
The msgsnd() system call sends a message to the queue associated with the message queue identifier specified by msqid. msgp points to a user-defined buffer that must contain first a field of type long that specifies the type of the message, followed by a data portion that will hold the data bytes of the message. The structure below is an example of what this user-defined buffer might look like: lo... |
msgsnd(2) -- message operations
|
The msgsnd() system call sends a message to the queue associated with the message queue identifier specified by msqid. msgp points to a user-defined buffer that must contain first a field of type long that specifies the type of the message, followed by a data portion that will hold the data bytes of the message. The structure below is an example of what this user-defined buffer might look like: lo... |
msync(2) -- synchronize the memory of a mapped file with physical storage
|
The msync() function writes all modified copies of pages over the range [addr, addr+len] to the underlying hardware, or invalidates any copies so that further references to the pages will be obtained by the system from their permanent storage locations. The flags argument is one of the following: MS_ASYNC perform asynchronous writes MS_SYNC perform synchronous writes MS_INVALIDATE invalidate mappi... |
munlock(2) -- unlock a segment of the process virtual address space
|
The munlock() system call allows the calling process to unlock a segment of the process virtual address space that may have been previously locked with mlock() or mlockall(). Upon successful completion of the munlock(), pages within the specified segment are subject to routine paging and/or swapping. addr must be a valid address in the process virtual address space. addr + len must also be a valid... |
munlockall(2) -- unlock the entire virtual address space of a process
|
The munlockall() system call allows the calling process to unlock any portions of its virtual address space that have previously been locked into memory with mlock() or mlockall(), including any portions locked due to the MCL_FUTURE option of mlockall(). Upon successful completion of the munlockall(), all pages within the process virtual address space are subject to routine paging and/or swapping ... |
munmap(2) -- unmap pages of memory
|
The munmap() function removes the mappings for pages in the range [addr, addr+len], rounding the len argument up to the next multiple of the page size as returned by sysconf(). If addr is not the address of a mapping established by a prior call to mmap(), the behavior is undefined. After a successful call to munmap() and before any subsequent mapping of the unmapped pages, further references to th... |
nanosleep(2) -- high resolution sleep
|
The nanosleep() function causes the current process to be suspended from execution until either the time interval specified by the rqtp argument has elapsed, or a signal is delivered to the calling process and its action is to invoke a signal-catching function or to terminate the process. The suspension time may be longer than that requested because the argument value is rounded up to an integer m... |
nice(2) -- change priority of a process
|
nice() adds the value of priority_change to the nice value of the calling process. A process's nice value is a positive number for which a more positive value results in lower CPU priority. A maximum nice value of 39 and a minimum nice value of 0 are imposed by the system. Requests for values above or below these limits result in the nice value being set to the corresponding limit. If the calling... |
open(2) -- open file for reading or writing
|
The open() system call opens a file descriptor for the named file and sets the file status flags according to the value of oflag. The path argument points to a path name naming a file, and must not exceed PATH_MAX bytes in length. The oflag argument is a value that is the bitwise inclusive OR of flags listed in "Read-Write Flags," "General Flags," and "Synchronized I/O Flags" below. The opti... |
open64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
pathconf(2) -- get configurable path name variables
|
The pathconf() and fpathconf() functions provide a method for applications to determine the value of a configurable limit or option associated with a file or directory (see limits(5) and ). For pathconf(), the path argument points to the path name of a file or directory. For fpathconf(), the fildes argument is an open file descriptor. For both functions, the name argument represents the ... |
pause(2) -- suspend process until signal
|
pause() suspends the calling process until it receives a signal. The signal must be one that is not currently set to be ignored or blocked (masked) by the calling process. If the signal causes termination of the calling process, pause() does not return. If the signal is caught by the calling process and control is returned from the signal-catching function (see signal(5)), the calling process resu... |
pipe(2) -- create an interprocess channel
|
pipe() creates an I/O mechanism called a pipe and returns two file descriptors, fildes[0] and fildes[1]. fildes[0] is opened for reading and fildes[1] is opened for writing. A read-only file descriptor fildes[0] accesses the data written to fildes[1] on a first-in-first-out (FIFO) basis. For details of the I/O behavior of pipes see read(2) and write(2). By default, HP-UX pipes are not STREAMS-base... |
plock(2) -- lock process, text, data, stack, or shared library in memory
|
The plock() system call allows the calling process to lock the text segment of the process (text lock), its data segment (data lock), or both its text and data segment (process lock) into memory. Stack segments are also locked when data segments are locked. Shared library text and shared library data segments (shlib lock) can also be locked. Locked segments are immune to all routine swapping. ploc... |
poll(2) -- monitor I/O conditions on multiple file descriptors
|
poll() provides a general mechanism for reporting I/O conditions associated with a set of file descriptors and for waiting until one or more specified conditions becomes true. Specified conditions include the ability to read or write data without blocking, and error conditions. |
postwait(2) -- lightweight synchronization mechanism
|
Postwait is a fast, lightweight sleep/wakeup mechanism that can be used for synchronization by cooperating kernel threads within a single process or between separate processes. A thread calls pw_wait() to block. It resumes execution when it is posted by another thread, the call expires, or is signaled. If one or more posts are already pending, pw_wait returns immediately. Threads using postwait ar... |
pread(2) -- read from file
|
The read() function attempts to read nbyte bytes from the file associated with the open file descriptor, fildes, into the buffer pointed to by buf. If nbyte is 0, read() will return 0 and have no other results. On files that support seeking (for example, a regular file), the read() starts at a position in the file given by the file offset associated with fildes. The file offset is incremented by t... |
pread64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
prealloc(2) -- preallocate fast disk storage
|
prealloc() is used to preallocate space on a disk for faster storage operations. fildes is a file descriptor obtained from a creat(), open(), dup(), or fcntl() system call for an ordinary file of zero length. It must be opened writable, because it will be written to by prealloc(). size is the size in bytes to be preallocated for the file specified by fildes. At least size bytes will be allocated. ... |
prealloc64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
pri_hpux_to(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
PRI_HPUX_TO(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
pri_posix_t(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
PRI_POSIX_T(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
profil(2) -- execution time profile
|
profil() controls profiling, by which the system maintains estimates of the amount of time the calling program spends executing at various places in its address space. The buff argument must point to an area of memory whose length (in bytes) is given by bufsiz. When profiling is on, the process's program counter (pc) is examined each clock tick (CLK_TCK times per second), offset is subtracted fro... |
pset_assign(2) -- change processor set assignment
|
The pset_assign() function assigns the processor spu to the processor set pset, removing the processor spu from its current processor set. A processor may not belong to more than one processor set at any given time. If opset is not NULL, it contains the processor set ID of the previously assigned processor set upon successful operation. A superuser, a PRIV_PSET privilege user, or a user with WRITE... |
pset_bind(2) -- bind process or thread to a processor set
|
The pset_bind() function binds thread(s) or process(es) specified by idtype and id to the processor set pset. If idtype is P_PID, then id specifies the pid of the process to be assigned, and the binding affects all threads of the process. If idtype is P_LWPID, then id specifies the lwpid of the thread to be assigned, and the binding affects only the specified thread. You cannot specify a pthread i... |
pset_create(2) -- create a processor set
|
The pset_create() function creates an empty processor set with no processors. Processor sets allow a subset of processors in the system to be isolated for exclusive use by specified threads and processes. Only the threads bound to a processor set can execute on processors in that processor set. The binding of threads and processes to processor sets is controlled by the pset_bind() function (see ps... |
pset_ctl(2) -- processor set control
|
The pset_ctl() function provides a means to query the system processor set configuration and assignment information. The request argument specifies what information is needed for the pset processor set. The following request values are supported: |
pset_destroy(2) -- destroy a processor set
|
The pset_destroy() function destroys the processor set pset, releasing all constituent processors and processes by default. The processors and processes are reassigned to the system default processor set. Once destroyed, the pset identifier becomes available for new processor sets that may be created in the future. The behavior when attempting to destroy a non-empty processor set may be controlled... |
pset_getattr(2) -- manage processor set attributes
|
The pset_getattr() function returns the current value of the attribute type for the processor set pset in the memory location pointed to by val. The pset_setattr() function assigns the value val to the attribute type for processor set pset. A user can not change the attribute values for the system default processor set PS_DEFAULT using the pset_setattr() function. A superuser, a PRIV_PSET privileg... |
pset_setattr(2) -- manage processor set attributes
|
The pset_getattr() function returns the current value of the attribute type for the processor set pset in the memory location pointed to by val. The pset_setattr() function assigns the value val to the attribute type for processor set pset. A user can not change the attribute values for the system default processor set PS_DEFAULT using the pset_setattr() function. A superuser, a PRIV_PSET privileg... |
pstat(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getcommandline(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getcrashdev(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getcrashinfo(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getdisk(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getdynamic(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getfile(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getfile2(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getfiledetails(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getipc(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getlocality(2) -- returns system-wide or
|
pstat_getlocality() and pstat_getproclocality() are part of the general pstat(2) functionality provided to obtain information about various system contexts. These calls return information on different parts of a Cache Coherent Non-Uniform Memory Architecture (ccNUMA) system. pstat_getlocality() returns system-wide information, while pstat_getproclocality() returns per-process information. A locali... |
pstat_getlv(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getlwp(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getmpathname(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getmsg(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getnode(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getpathname(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getpmq(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getproc(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getprocessor(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getproclocality(2) -- returns system-wide or
|
pstat_getlocality() and pstat_getproclocality() are part of the general pstat(2) functionality provided to obtain information about various system contexts. These calls return information on different parts of a Cache Coherent Non-Uniform Memory Architecture (ccNUMA) system. pstat_getlocality() returns system-wide information, while pstat_getproclocality() returns per-process information. A locali... |
pstat_getprocvm(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getpsem(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getpset(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getsem(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getshm(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getsocket(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getstable(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getstatic(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getstream(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getswap(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
pstat_getvminfo(2) -- get system information
|
The pstat functions return information about various system contexts. The contents of the various associated data structures, structs pst_crashdev, pst_crashinfo, pst_diskinfo, pst_dynamic, pst_fileinfo, pst_fileinfo2, pst_filedetails, pst_ipcinfo, pst_lvinfo, pst_mpathnode, pst_msginfo, pst_node, pst_pmqinfo, pst_processor, pst_pseminfo, pst_pset, pst_seminfo, pst_shminfo, pst_stable, pst_static,... |
ptrace(2) -- process trace
|
The ptrace() system call provides a means by which a process can control the execution of another process. Its primary use is for the implementation of a breakpoint debugging mechanism (see adb(1)) and involves a tracing and a traced process. The traced process behaves normally until it encounters a signal (see signal(2) for the list) at which time it enters a stopped state and the tracing process... |
putmsg(2) -- send a message on a stream
|
The putmsg() function creates a message from a process buffer(s) and sends the message to a STREAMS file. The message may contain either a data part, a control part, or both. The data and control parts are distinguished by placement in separate buffers, as described below. The semantics of each part is defined by the STREAMS module that receives the message. The putpmsg() function does the same th... |
putpmsg(2) -- send a message on a stream
|
The putmsg() function creates a message from a process buffer(s) and sends the message to a STREAMS file. The message may contain either a data part, a control part, or both. The data and control parts are distinguished by placement in separate buffers, as described below. The semantics of each part is defined by the STREAMS module that receives the message. The putpmsg() function does the same th... |
pwrite(2) -- write on a file
|
The write() function attempts to write nbyte bytes from the buffer pointed to by buf to the file associated with the open file descriptor, fildes. If nbyte is 0, write() will return 0 and have no other results if the file is a regular file. Otherwise, the results are unspecified. On a regular file or other file capable of seeking, the actual writing of data proceeds from the position in the file i... |
pwrite64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
pw_getukid(2) -- lightweight synchronization mechanism
|
Postwait is a fast, lightweight sleep/wakeup mechanism that can be used for synchronization by cooperating kernel threads within a single process or between separate processes. A thread calls pw_wait() to block. It resumes execution when it is posted by another thread, the call expires, or is signaled. If one or more posts are already pending, pw_wait returns immediately. Threads using postwait ar... |
pw_getvmax(2) -- lightweight synchronization mechanism
|
Postwait is a fast, lightweight sleep/wakeup mechanism that can be used for synchronization by cooperating kernel threads within a single process or between separate processes. A thread calls pw_wait() to block. It resumes execution when it is posted by another thread, the call expires, or is signaled. If one or more posts are already pending, pw_wait returns immediately. Threads using postwait ar... |
pw_post(2) -- lightweight synchronization mechanism
|
Postwait is a fast, lightweight sleep/wakeup mechanism that can be used for synchronization by cooperating kernel threads within a single process or between separate processes. A thread calls pw_wait() to block. It resumes execution when it is posted by another thread, the call expires, or is signaled. If one or more posts are already pending, pw_wait returns immediately. Threads using postwait ar... |
pw_postv(2) -- lightweight synchronization mechanism
|
Postwait is a fast, lightweight sleep/wakeup mechanism that can be used for synchronization by cooperating kernel threads within a single process or between separate processes. A thread calls pw_wait() to block. It resumes execution when it is posted by another thread, the call expires, or is signaled. If one or more posts are already pending, pw_wait returns immediately. Threads using postwait ar... |
pw_wait(2) -- lightweight synchronization mechanism
|
Postwait is a fast, lightweight sleep/wakeup mechanism that can be used for synchronization by cooperating kernel threads within a single process or between separate processes. A thread calls pw_wait() to block. It resumes execution when it is posted by another thread, the call expires, or is signaled. If one or more posts are already pending, pw_wait returns immediately. Threads using postwait ar... |
quotactl(2) -- manipulate disk quotas
|
quotactl() manipulates disk quotas. cmd indicates a command to be applied to the user ID uid. Parameter special is a pointer to a null-terminated string containing the path name of the block special device for the file system being manipulated. The block special device must be mounted. The parameter addr is the address of an optional, command-specific, data structure which is copied in or out of t... |
raise(2) -- send a signal to a process or a group of processes
|
The kill() system call sends a signal to a process or a group of processes, as specified by pid. The signal to be sent is specified by sig and is either one from the list given in signal(2), or 0. The raise() system call sends a signal to the executing program. The signal to be sent is specified by sig and is either one from the list given in signal(2), or 0. If sig is 0 (the null signal), error c... |
read(2) -- read from file
|
The read() function attempts to read nbyte bytes from the file associated with the open file descriptor, fildes, into the buffer pointed to by buf. If nbyte is 0, read() will return 0 and have no other results. On files that support seeking (for example, a regular file), the read() starts at a position in the file given by the file offset associated with fildes. The file offset is incremented by t... |
readlink(2) -- read the contents of a symbolic link
|
The readlink() function places the contents of the symbolic link referred to by path in the buffer buf which has size bufsiz. If the number of bytes in the symbolic link is less than bufsiz, the contents of the remainder of buf are unspecified. In systems conforming to AES standards, the returned string will be null-terminated if the length of the path name string is less than bufsiz. If the lengt... |
readv(2) -- read from file
|
The read() function attempts to read nbyte bytes from the file associated with the open file descriptor, fildes, into the buffer pointed to by buf. If nbyte is 0, read() will return 0 and have no other results. On files that support seeking (for example, a regular file), the read() starts at a position in the file given by the file offset associated with fildes. The file offset is incremented by t... |
reboot(2) -- boot the system
|
reboot() causes the system to reboot. howto is a mask of reboot options (see ), specified as follows: RB_AUTOBOOT A file system sync is performed (unless RB_NOSYNC is set) and the processor is rebooted from the default device and file. RB_HALT The processor is simply halted. A sync of the file system is performed unless the RB_NOSYNC flag is set. RB_HALT should be used with caution. ... |
recv(2) -- receive a message from a socket
|
The recv(), recvfrom(), and recvmsg() system calls are used to receive messages from a socket. s is a socket descriptor from which messages are received. buf is a pointer to the buffer into which the messages are placed. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 recv(2) recv(2) len is the maximum number of bytes that can fit in the buffer referenced by buf. If the socket uses ... |
recvfrom(2) -- receive a message from a socket
|
The recv(), recvfrom(), and recvmsg() system calls are used to receive messages from a socket. s is a socket descriptor from which messages are received. buf is a pointer to the buffer into which the messages are placed. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 recv(2) recv(2) len is the maximum number of bytes that can fit in the buffer referenced by buf. If the socket uses ... |
recvmsg(2) -- receive a message from a socket
|
The recv(), recvfrom(), and recvmsg() system calls are used to receive messages from a socket. s is a socket descriptor from which messages are received. buf is a pointer to the buffer into which the messages are placed. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 recv(2) recv(2) len is the maximum number of bytes that can fit in the buffer referenced by buf. If the socket uses ... |
rename(2) -- change the name of a file
|
The rename() system call causes the source file to be renamed to target. If target exists, it is first removed. Both source and target must be of the same type (that is, either directories or nondirectories), and must reside on the same file system. If target can be created or if it existed before the call, rename() guarantees that an instance of target will exist, even if the system crashes in th... |
rmdir(2) -- remove a directory file
|
The rmdir() system call removes a directory file whose name is given by path. The directory must be empty (except for the files . and ..) before it can be removed. |
rtprio(2) -- change or read real-time priority
|
The rtprio() system call sets or reads the real-time priority of a process. If pid is zero, it specifies the calling process; otherwise, it specifies the process ID of a process. If the process pid contains more than one thread or a lightweight process (that is, the process is multi-threaded), this function shall only change the process scheduling policy and priority. Individual threads or lightwe... |
rtsched(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
sbrk(2) -- change data segment space allocation
|
brk() and sbrk() are used to change dynamically the amount of space allocated for the calling process's data segment; see exec(2). The change is made by resetting the process's break value and allocating the appropriate amount of space. The break value is the address of the first location beyond the end of the data segment. The amount of allocated space increases as the break value increases. Th... |
sched_getpa(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
sched_getsc(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
sched_get_p(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
sched_rr_ge(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
sched_setpa(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
sched_setsc(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
sched_yield(2) -- real-time scheduling operations
|
Summary sched_get_priority_max() Get maximum scheduling policy sched_get_priority_min() Get minimum scheduling policy sched_getparam() Get scheduling parameters of process sched_getscheduler() Get scheduling policy of process sched_rr_get_interval() Get execution time limit for a process sched_setparam() Set scheduling parameters of process sched_setscheduler() Set scheduling policy and parameters... |
select(2) -- synchronous I/O multiplexing
|
The select() function indicates which of the specified file descriptors is ready for reading, ready for writing, or has an error condition pending. If the specified condition is false for all of the specified file descriptors, select() blocks, up to the specified timeout interval, until the specified condition is true for at least one of the specified file descriptors. The select() function suppor... |
semctl(2) -- semaphore control operations
|
The semctl() system call provides a variety of semaphore control operations as specified by cmd. The fourth argument is optional and depends on the operation requested. If present, it must be of type union semun, which the application program must explicitly declare. For the meaning of unspecified variables, see semaphore identifier in glossary(9). The following values for cmd are executed with re... |
semget(2) -- get set of semaphores
|
semget() returns the semaphore identifier associated with key. A semaphore identifier and associated data structure and set containing nsems semaphores are created for key if one of the following is true: key is equal to IPC_PRIVATE. This call creates a new identifier, subject to available resources. The identifier is never returned by another call to semget() until it has been released by a call ... |
semop(2) -- semaphore operations
|
semop() is used to atomically perform an array of semaphore operations on the set of semaphores associated with the semaphore identifier specified by semid. sops is a pointer to the array of semaphoreoperation structures. nsops is the number of such structures in the array. The contents of each structure includes the following members: ushort sem_num; /* semaphore number */ short sem_op /* semapho... |
semtimedop(2) -- semaphore operations
|
semop() is used to atomically perform an array of semaphore operations on the set of semaphores associated with the semaphore identifier specified by semid. sops is a pointer to the array of semaphoreoperation structures. nsops is the number of such structures in the array. The contents of each structure includes the following members: ushort sem_num; /* semaphore number */ short sem_op /* semapho... |
sem_close(2) -- close a named POSIX semaphore
|
sem_close() is used to close a named semaphore. A successful call to sem_close() will do the following: Remove the process's descriptor for the semaphore referenced by the specified sem_t structure sem. Remove the semaphore referenced by the specified sem_t structure sem, if the semaphore is marked for removal by a call to sem_unlink() and there are no other descriptors referencing this semaphore... |
sem_destroy(2) -- destroy an unnamed POSIX semaphore
|
sem_destroy() is used to destroy an unnamed semaphore. A successful call to sem_destroy() will invalidate the unnamed semaphore referred to by sem and removes all descriptors referencing it. The semaphore should have been created by a previous call to sem_init() and there should not be any processes blocked on it. To use this function, link in the realtime library by specifying -lrt on the compile... |
sem_getvalue(2) -- get the value of a POSIX semaphore
|
sem_getvalue() is used to read the value of the semaphore. The value of the semaphore specified by sem is read, at some unspecified time during the call, and then stored into sval. If the semaphore value is <= 0, at that time, the semaphore is considered unavailable. If the semaphore value is > 0, at that time, the semaphore is considered available. If sval is positive, it is equal to the number o... |
sem_init(2) -- initialize an unnamed POSIX semaphore
|
sem_init() is used to initialize an unnamed semaphore. A successful call to sem_init() will create a new unnamed semaphore referred to by sem, if one does not exist, initialize the unnamed semaphore descriptor, referred to by sem, to the non-negative value specified by value. If the unnamed semaphore already exists, i.e. created by a previous call to sem_init(), it is re-initialized only if its cu... |
sem_open(2) -- create/open a named POSIX semaphore
|
sem_open() is used to open or create a named semaphore. A successful call to sem_open() will create a descriptor for the semaphore specified by name. The pointer to the semaphore returned by sem_open() can be used to access the semaphore associated with name in subsequent operations. The name argument points to a string referring to a semaphore. It should begin with a "/" and shall conform to pa... |
sem_post(2) -- unlock a POSIX semaphore
|
sem_post() is used to post the semaphore referenced by sem. The calling thread will not return from its call to sem_post() unless it can either: increment the semaphore value, if there are no blocked threads on this semaphore; give the semaphore to a blocked thread, if there are any blocked threads on this semaphore; or have an error condition. If the semaphore value is < 0, the semaphore has bloc... |
sem_trywait(2) -- lock a POSIX semaphore
|
sem_wait() is used to lock a semaphore. The calling thread will not return from its call to sem_wait() until one of the following events occur: it successfully obtains a lock on the semaphore; it is interrupted by a signal or an error condition occurs. sem_trywait() is used to lock a semaphore, if it is available. The value of the semaphore sem is checked at some unspecified time during the call. ... |
sem_unlink(2) -- unlink a named POSIX semaphore
|
sem_unlink() is used to unlink named semaphores. A successful call to sem_unlink() marks the semaphore, specified by name, for removal. Calling sem_unlink() does not affect processes, including the calling process, which currently have a descriptor, obtained from a call to sem_open(). Named semaphores are uniquely identified by character strings. All character string names will be pre-processed to... |
sem_wait(2) -- lock a POSIX semaphore
|
sem_wait() is used to lock a semaphore. The calling thread will not return from its call to sem_wait() until one of the following events occur: it successfully obtains a lock on the semaphore; it is interrupted by a signal or an error condition occurs. sem_trywait() is used to lock a semaphore, if it is available. The value of the semaphore sem is checked at some unspecified time during the call. ... |
send(2) -- send a message from a socket
|
The send(), sendmsg(), and sendto() system calls transmit a message to another socket. send() can be used only when the socket is in a connected state, whereas sendmsg() and sendto() can be used at any time. sendmsg() allows the send data to be gathered from several buffers specified in the msghdr structure. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 send(2) send(2) s is a sock... |
sendfile(2) -- send the contents of a file through a socket
|
The sendfile() system call transmits the contents of a file associated with the file descriptor fd, plus an optional header and trailer buffers across a socket connection specified by s. sendfile() can be used only when the socket is in a connected state. offset specifies the offset within the file at which to start the file data transfer. nbytes is the number of bytes to be sent from the file. If... |
sendfile64(2) -- send the contents of a Large File through a socket
|
The sendfile64() system call transmits the contents of a file (including a Large File (greater than 2GB)) associated with the file descriptor fd, plus an optional header and trailer buffers across a socket connection specified by s. sendfile64() should be used by 32- bit applications using Large Files; however, 64-bit applications can use sendfile64() for compatibility. 64-bit applications can als... |
sendmsg(2) -- send a message from a socket
|
The send(), sendmsg(), and sendto() system calls transmit a message to another socket. send() can be used only when the socket is in a connected state, whereas sendmsg() and sendto() can be used at any time. sendmsg() allows the send data to be gathered from several buffers specified in the msghdr structure. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 send(2) send(2) s is a sock... |
sendto(2) -- send a message from a socket
|
The send(), sendmsg(), and sendto() system calls transmit a message to another socket. send() can be used only when the socket is in a connected state, whereas sendmsg() and sendto() can be used at any time. sendmsg() allows the send data to be gathered from several buffers specified in the msghdr structure. Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003 send(2) send(2) s is a sock... |
serialize(2) -- force target process to run serially with other processes
|
The serialize() system call is used to force the target process referenced by the pid value passed in to run serially with other processes also marked for serialization. If the value of pid is zero, then the currently running process is marked for serialization. Once a process has been marked by serialize(), the process stays marked until process completion, unless serialize() is reissued on the s... |
setacl(2) -- set access control list (ACL) information
|
setacl() sets an existing file's access control list (ACL) or deletes optional entries from it. path points to a path name of a file. Similarly, fsetacl() sets an existing file's access control list for an open file known by the file descriptor fildes. The effective user ID of the process must match the owner of the file or be the super-user to set a file's ACL. A successful call to setacl() de... |
setaudid(2) -- set the audit ID (aid) for the current process
|
setaudid() sets the audit ID (aid) for the current process. This call is restricted to the super-user. |
setaudproc(2) -- controls process level auditing for the current process and its decendents
|
setaudproc() controls process level auditing for the current process and its decendents. It accomplishes this by setting or clearing the u_audproc flag in the u area of the calling process. When this flag is set, the system audits the process; when it is cleared, the process is not audited. This call is restricted to super-users. One of the following aflags must be used: AUD_PROC Audit the calling... |
setcontext(2) -- get and set current user context
|
The getcontext() function initializes the structure pointed to by ucp to the current user context of the calling process. The ucontext_t type that ucp points to defines the user context and includes the contents of the calling process' machine registers, the signal mask, and the current execution stack. The setcontext() function restores the user context pointed to by ucp. A successful call to se... |
setdomainna(2) -- get/set name of current Network Information Service domain
|
getdomainname() returns the name of the Network Information Service (NIS) domain for the current processor, as previously set by setdomainname(). The parameter namelen specifies the size of the name array. The returned value is null-terminated unless the area pointed to by name is not large enough to hold the domain name plus the null byte. In this case, only the namelen number of bytes is returne... |
setevent(2) -- set current events and system calls which are to be audited
|
setevent() sets the events and system calls to be audited. The event and system call settings in the tables pointed to by a_syscall and a_event become the current settings. This call is restricted to the super-user. |
setgid(2) -- set user and group IDs
|
setuid() sets the real-user-ID (ruid), effective-user-ID (euid), and/or saved-user-ID (suid) of the calling process. The super-user's euid is zero. The following conditions govern setuid's behavior: + If the euid is zero, setuid() sets the ruid, euid, and suid to uid. + If the euid is not zero, but the argument uid is equal to the ruid or the suid, setuid() sets the euid to uid; the ruid and sui... |
setgroups(2) -- set group access list
|
setgroups() sets the group access list of the current user process according to the array gidset. The parameter ngroups indicates the number of entries in the array and must be no more than NGROUPS_MAX, as defined in . Only super-user can set new groups by adding to the group access list of the current user process; any user can delete groups from it. |
sethostname(2) -- set name of host cpu
|
The sethostname() system call sets the name of the host processor to name, which has a length of namelen characters. At system boot time sethostname() is normally executed by the hostname command (see hostname(1)) in the /sbin/init.d/hostname script. Host names are limited to MAXHOSTNAMELEN characters, as defined in . |
setitimer(2) -- get and set value of interval timer
|
The getitimer() function stores the current value of the timer specified by which into the structure pointed to by value. The setitimer() function sets the timer specified by which to the value specified in the structure pointed to by value, and if ovalue is not a null pointer, stores the previous value of the timer in the structure pointed to by ovalue. The header declares the itimer... |
setpgid(2) -- set process group ID for job control
|
The setpgid() and setpgrp2() system calls cause the process specified by pid to join an existing process group or create a new process group within the session of the calling process. The process group ID of the process whose process ID is pid is set to pgid. If pid is zero, the process ID of the calling process is used. If pgid is zero, the process ID of the indicated process is used. The process... |
setpgrp(2) -- set process group ID
|
If the calling process is not already a session leader, setpgrp() sets the process group ID of the calling process to the process ID of the calling process. If setpgrp() creates a new session, then the new session has no controlling terminal. The setpgrp() function has no effect when the calling process is a session leader. |
setpgrp2(2) -- set process group ID for job control
|
The setpgid() and setpgrp2() system calls cause the process specified by pid to join an existing process group or create a new process group within the session of the calling process. The process group ID of the process whose process ID is pid is set to pgid. If pid is zero, the process ID of the calling process is used. If pgid is zero, the process ID of the indicated process is used. The process... |
setpgrp3(2) -- create session and set process group ID; for HP-UX 9.x compatibility.
|
If the calling process is not a process group leader, setpgrp3() creates a new session. The calling process becomes the session leader of this new session, it becomes the process group leader of a new process group, and it has no controlling terminal. The process group ID of the calling process is set equal to the process ID of the calling process. The calling process is the only process in the ne... |
setpriority(2) -- get or set process priority
|
getpriority() returns the priority of the indicated processes. setpriority() sets the priority of the indicated processes to priority. The processes are indicated by which and who, where which can have one of the following values: PRIO_PROCESS Get or set the priority of the specified process where who is the process ID. A who of 0 implies the process ID of the calling process. PRIO_PGRP Get or set... |
setprivgrp(2) -- get and set special attributes for group
|
getprivgrp() The getprivgrp() system call returns a table of the privileged group assignments into a user-supplied structure. grplist points to an array of structures of type privgrp_map, associating a group ID with a privilege mask. Privilege masks are formed by ORing together elements from the access types specified in . The array may have gaps in it, distinguished as having a pri... |
setregid(2) -- sets the real and effective group IDs
|
setregid() sets the real and effective group IDs of the calling process. Only a privileged process can set the real group ID and/or the effective group ID to any valid value. A non-privileged process can set the real group ID to the saved set-group-ID from one of the exec family of functions, or the effective group ID to either the saved set-group-ID or the real group ID. Any supplementary group I... |
setresgid(2) -- set real, effective, and saved user and group IDs
|
setresuid() sets the real, effective and/or saved user ID of the calling process. If the current real, effective or saved user ID is equal to that of a user having appropriate privileges, setresuid() sets the real, effective and saved user IDs to ruid, euid, and suid, respectively. Otherwise, setresuid() only sets the real, effective, and saved user IDs if ruid, euid, and suid each match at least ... |
setresuid(2) -- set real, effective, and saved user and group IDs
|
setresuid() sets the real, effective and/or saved user ID of the calling process. If the current real, effective or saved user ID is equal to that of a user having appropriate privileges, setresuid() sets the real, effective and saved user IDs to ruid, euid, and suid, respectively. Otherwise, setresuid() only sets the real, effective, and saved user IDs if ruid, euid, and suid each match at least ... |
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 arguments. If ruid or euid is -1, the corresponding effective or real user ID of the current process is left unchanged. A process with appropriate privileges can set either ID to any value. An unprivileged process can only set the effective user ID if the euid argument i... |
setrlimit(2) -- control maximum resource consumption
|
Limits on the consumption of a variety of resources by the calling process may be obtained with getrlimit() and set with setrlimit(). Each call to either getrlimit() or setrlimit() identifies a specific resource to be operated upon as well as a resource limit. A resource limit is represented by an rlimit structure, pointed to by the rlp argument and includes the following members: rlim_t rlim_cur;... |
setrlimit64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
setsid(2) -- create session and set process group ID
|
If the calling process is not a process group leader, setsid() creates a new session. The calling process becomes the session leader of this new session, it becomes the process group leader of a new process group, and it has no controlling terminal. The process group ID of the calling process is set equal to the process ID of the calling process. The calling process is the only process in the new ... |
setsockopt(2) -- get and set options on sockets
|
The getsockopt() and setsockopt() system calls manipulate options associated with a socket. The socket is identified by the socket descriptor s. Options can exist at multiple protocol levels, and they are always present at the uppermost "socket" level (see socket(2)). When manipulating socket options, the level at which the option resides (level) and the name of the option (optname) must be spec... |
settimeofda(2) -- set the date and time
|
The settimeofday() function sets the current time, expressed as seconds and microseconds since Epoch, and passed as the timeval structure pointed to by tp. The resolution of the system clock is one microsecond. |
settimeofday(2) -- set the date and time
|
The settimeofday() function sets the current time, expressed as seconds and microseconds since Epoch, and passed as the timeval structure pointed to by tp. The resolution of the system clock is one microsecond. |
settune(2) -- set the value of a kernel tunable parameter
|
This function sets the value of the kernel tunable parameter named tunable to the supplied value. This new value will take effect immediately, except in the cases noted below. Some parameters cannot be changed without rebooting the OS kernel. Some parameters represent limits on resources that can be consumed by individual processes. In general, changes to these parameters do not affect processes t... |
settune_txn(2) -- sets the values of kernel tunable parameters in a transaction
|
This function is used to modify the values of a set of kernel tunable Hewlett-Packard Company - 2 - HP-UX 11i Version 2: August 2003 settune_txn(2) settune_txn(2) parameters at the same time. The caller needs to have super-user privileges to make this call. Changes are made to the tunables using a transactional change model using a three-phase commit where the following rules apply: + None of the ... |
setuid(2) -- set user and group IDs
|
setuid() sets the real-user-ID (ruid), effective-user-ID (euid), and/or saved-user-ID (suid) of the calling process. The super-user's euid is zero. The following conditions govern setuid's behavior: + If the euid is zero, setuid() sets the ruid, euid, and suid to uid. + If the euid is not zero, but the argument uid is equal to the ruid or the suid, setuid() sets the euid to uid; the ruid and sui... |
setuname(2) -- get information about computer system; set node name (system name)
|
uname() The uname() system call places information identifying the computer system in the utsname structure pointed to by name. The utsname structure, defined in , is set up as follows: #define UTSLEN 9 #define SNLEN 15 char sysname[UTSLEN]; char nodename[UTSLEN]; char release[UTSLEN]; char version[UTSLEN]; char machine[UTSLEN]; char idnumber[SNLEN]; Each field is a null-terminated ... |
shmat(2) -- shared memory operations
|
shmat() attaches the shared memory segment associated with the shared memory identifier specified by shmid to the data segment of the calling process. The segment is attached for reading if (shmflg & SHM_RDONLY) is "true"; otherwise, it is attached for reading and writing. It is not possible to attach a segment for write only. If the shared memory segment has never been attached to by any proces... |
shmctl(2) -- shared memory control operations
|
The shmctl() system call provides a variety of shared memory control operations as specified by the cmd argument. cmd can have the following values: IPC_STAT Place the current value of each member of the data structure associated with shmid into the structure pointed to by buf. The contents of this structure are defined in glossary(9). IPC_SET Set the value of the following members of the data str... |
shmdt(2) -- shared memory operations
|
shmat() attaches the shared memory segment associated with the shared memory identifier specified by shmid to the data segment of the calling process. The segment is attached for reading if (shmflg & SHM_RDONLY) is "true"; otherwise, it is attached for reading and writing. It is not possible to attach a segment for write only. If the shared memory segment has never been attached to by any proces... |
shmget(2) -- get shared memory segment
|
shmget() returns the shared memory identifier associated with key. A shared memory identifier and associated data structure and shared memory segment of size size bytes (see glossary(9)) are created for key if one of the following is true: + key is equal to IPC_PRIVATE. This call creates a new identifier, subject to available resources. The identifier will never be returned by another call to shmg... |
shmop(2) -- shared memory operations
|
shmat() attaches the shared memory segment associated with the shared memory identifier specified by shmid to the data segment of the calling process. The segment is attached for reading if (shmflg & SHM_RDONLY) is "true"; otherwise, it is attached for reading and writing. It is not possible to attach a segment for write only. If the shared memory segment has never been attached to by any proces... |
shm_open(2) -- create/open a shared memory object
|
The shm_open() system call establishes a connection between a shared memory object and a file descriptor. It creates an open file description that corresponds to the shared memory object and returns a file descriptor that refers to that open file description. This file descriptor (which is the lowest numbered file descriptor not currently open for that process) is used by other functions to refer ... |
shm_unlink(2) -- unlink a shared memory object
|
The shm_unlink() system call removes the name of the shared memory object named by the string pointed to by name. If one or more references to the shared memory object exists when the object is unlinked, the name will be removed before shm_unlink() returns, but the removal of the memory object contents will be postponed until all open and map references to the shared memory object have been remove... |
shutdown(2) -- shut down a socket
|
The shutdown() system call is used to shut down a socket. In the case of a full-duplex connection, shutdown() can be used to either partially or fully shut down the socket, depending upon the value of how. how Interpretation SHUT_RD or 0 Further receives are disallowed SHUT_WR or 1 Further sends are disallowed SHUT_RDWR or 2 Further sends and receives are disallowed The s parameter is a socket des... |
sigaction(2) -- examine and change signal action
|
The sigaction() function allows the calling process to examine and/or specify the action to be associated with a specific signal. The argument sig specifies the signal; acceptable values are defined in . The structure sigaction, used to describe an action to be taken, is defined in the header to include at least the following members: Member Type Member Name Description void(*... |
sigaltstack(2) -- set and/or get signal alternate stack context.
|
The sigaltstack() function allows a process to define and examine the state of an alternate stack for signal handlers. Signals that have been explicitly declared to execute on the alternate stack will be delivered on the alternate stack. If ss is not a null pointer, it points to a stack_t structure that specifies the alternate signal stack that will take effect upon return from sigaltstack(). The ... |
sigblock(2) -- block signals
|
sigblock() causes the signals specified in mask to be added to the set of signals currently being blocked from delivery. Signal i is blocked if the i-th bit in mask is 1, as specified with the macro sigmask(i). It is not possible to block signals that cannot be ignored, as documented in i). It is not possible to block signals that cannot be ignored, as documented in ). It is not possible to block ... |
siginterrupt(2) -- allow signals to interrupt functions
|
The siginterrupt() function is used to change the restart behaviour when a function is interrupted by the specified signal. The function siginterrupt(sig, flag) has an effect as if implemented as: siginterrupt(int sig, int flag) { int ret; struct sigaction act; (void) sigaction(sig, NULL, &act); if (flag) act.sa_flags &= ~SA_RESTART; else act.sa_flags |= SA_RESTART; ret = sigaction(sig, &act, NULL... |
signal(2) -- signal management
|
The functions described in this reference page provide simplified signal management: + The signal() function chooses one of three ways in which receipt of the signal number sig is to be subsequently handled. + The sigset() function is used to modify signal dispositions. + The sighold() function adds sig to the calling process' signal mask. + The sigrelse() function removes sig from the calling pr... |
sigpending(2) -- examine pending signals
|
sigpending() stores the set of signals that are blocked from delivery and are pending to the calling thread, at the location pointed to by set. |
sigprocmask(2) -- examine and change blocked signals
|
The sigprocmask() function allows the calling thread to examine and/or change its signal mask. If the argument set is not a null pointer, it points to a set of signals to be used to change the currently blocked set. The argument how indicates the way in which the set is changed and consists of one of the following values: SIG_BLOCK The resulting set will be the union of the current set and the sig... |
sigqueue(2) -- queue a signal to a process
|
The sigqueue() system call causes the signal specified by signo to be sent with the value specified by value to the process specified by pid. If signo is zero (the null signal), error checking is performed but no signal is actually sent. The null signal can be used to check the validity of pid. The conditions required for a process to have permission to queue a signal to another process are the sa... |
sigsend(2) -- send a signal to a process or a group of processes
|
The sigsend() system call sends a signal to a process or a group of processes. The process or group of processes to which the signal is to be sent is specified by id and idtype. The signal to be sent is specified by sig and is either one from the list given in signal() (see signal(2)) or 0. If sig is equal to zero (the null signal), error checking is performed but no signal is actually sent. This ... |
sigsendset(2) -- send a signal to a process or a group of processes
|
The sigsend() system call sends a signal to a process or a group of processes. The process or group of processes to which the signal is to be sent is specified by id and idtype. The signal to be sent is specified by sig and is either one from the list given in signal() (see signal(2)) or 0. If sig is equal to zero (the null signal), error checking is performed but no signal is actually sent. This ... |
sigsetmask(2) -- set current signal mask
|
sigsetmask() sets the current signal mask (those signals that are blocked from delivery). Signal i is blocked if the i-th bit in mask, as specified with the macro sigmask(i), is a i), is a ), is a 1. It is not possible to mask signals that cannot be ignored, as documented in signal(5); this restriction is silently imposed by the system. sigblock() can be used to add elements to the set of blocked ... |
sigspace(2) -- assure sufficient signal stack space
|
sigspace() requests additional stack space that is guaranteed to be available for processing signals received by the calling process. If the value of stacksize is positive, it specifies the size of a space, in bytes, which the system guarantees to be available when processing a signal. If the value of stacksize is zero, any guarantee of space is removed. If the value is negative, the guarantee is ... |
sigstack(2) -- set and/or get alternate signal stack context
|
The sigstack() function allows the calling process to indicate to the system an area of its address space to be used for processing signals received by the process. The sigstack() function requires the application to have knowledge of the underlying system's stack architecture. To ensure portability, use sigaltstack() instead of sigstack() when writing or rewriting applications. If the ss argumen... |
sigsuspend(2) -- wait for a signal
|
The sigsuspend() function replaces the current signal mask of the calling thread with the set of signals pointed to by sigmask and then suspends the thread until delivery of a signal whose action is either to execute a signal-catching function or to terminate the process. This will not cause any other signals that may have been pending on the process to become pending on the thread. If the action ... |
sigtimedwait(2) -- synchronously accept a signal
|
The sigwait() function atomically selects and clears a pending signal from set and returns the signal number in the location pointed to by sig. If none of the signals in set is pending at the time of the call, the calling thread will be suspended until one or more signals become pending or the thread is interrupted by an unblocked, caught signal. The signals in set should be blocked at the time of... |
sigvector(2) -- software signal facilities
|
The system defines a set of signals that can be delivered to a process. The set of signals is defined in signal(5), along with the meaning and side effects of each signal. This manual entry, along with those for sigblock(2), sigsetmask(2), sigpause(3C), and sigspace(2), defines an alternate mechanism for handling these signals that ensures the delivery of signals and the integrity of signal handli... |
sigwait(2) -- synchronously accept a signal
|
The sigwait() function atomically selects and clears a pending signal from set and returns the signal number in the location pointed to by sig. If none of the signals in set is pending at the time of the call, the calling thread will be suspended until one or more signals become pending or the thread is interrupted by an unblocked, caught signal. The signals in set should be blocked at the time of... |
sigwaitinfo(2) -- synchronously accept a signal
|
The sigwait() function atomically selects and clears a pending signal from set and returns the signal number in the location pointed to by sig. If none of the signals in set is pending at the time of the call, the calling thread will be suspended until one or more signals become pending or the thread is interrupted by an unblocked, caught signal. The signals in set should be blocked at the time of... |
socket(2) -- create an endpoint for communication
|
The socket() system call creates an endpoint for communication and returns a descriptor. The socket descriptor returned is used in all subsequent socket-related system calls. The af parameter specifies an address family to be used to interpret addresses in later operations that specify the socket. These address families are defined in the include files and . The on... |
socketpair(2) -- create a pair of connected sockets
|
The socketpair() system call creates an unnamed pair of connected sockets and returns two file descriptors in sv[0] and sv[1]. The two sockets are indistinguishable. af specifies the address family. See socket(2). type specifies the semantics of communication for the socket. protocol specifies a particular protocol to be used. protocol can be specified as zero, which causes the system to choose a ... |
sprofil(2) -- execution time profile for disjointed text spaces
|
sprofil() controls profiling, by which the system maintains estimates of the amount of time the calling program spends executing at various places in its address space. It differs from its predecessor profil(2) in that it allows simultaneous profiling of many disjointed regions of memory. profp must point to an ordered array of prof structures. The prof structure is defined as: struct prof { void ... |
stat(2) -- get file status
|
The stat() function obtains information about the named file and writes it to the area pointed to by the buf argument. The path argument is a pointer to a path name of any file within the mounted file system. (All directories listed in the path name must be searchable). Read, write or execute permission of the named file is not required, but all directories listed in the pathname leading to all di... |
stat64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
statfs(2) -- get file system statistics
|
statfs() returns status information for a mounted file system. fstatfs() returns similar information for an open file. The parameters for the statfs() and fstatfs() functions are as follows: path is a pointer to a path name of any file within the mounted file system. buf is a pointer to a statfs structure, which is where the file system status information is stored. fildes is a file descriptor for... |
statvfs(2) -- get file system information
|
statvfs() returns information about a mounted file system. fstatvfs() returns similar information about an open file. The parameters for the statvfs() and fstatvfs() functions are as follows: path is a pointer to a path name of any file within the mounted file system. buf is a pointer to a statvfs structure, which is where the file system status information is stored. fildes is a file descriptor f... |
statvfs64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
stime(2) -- set time and date
|
The stime() system call sets the system time and date. tp points to the value of time as measured in seconds from 00:00:00 on January 1, 1970, Coordinated Universal Time (UTC). |
stream(2) -- STREAMS enhancements to standard system calls
|
The open(), close(), read(), readv(), write(), writev(), ioctl(), select(), and signal() system calls are enhanced to support STREAMS. The new functionality is described below for each system call. |
stty(2) -- control terminal device (Bell Version 6 compatibility)
|
For certain status settings and status inquiries about terminal devices, the functions stty() and gtty() are equivalent to ioctl(fildes, TIOCSETP, argp) and ioctl(fildes, TIOCGETP, argp) respectively (see ioctl(2) and termio(7). |
swapcontext(2) -- manipulate user contexts
|
The makecontext() function modifies the context specified by ucp, which has been initialized using getcontext(). When this context is resumed using swapcontext() or setcontext(), program execution continues by calling func(), passing it the arguments that follow argc in the makecontext() call. Before a call is made to makecontext(), the context being modified should have a stack allocated for it. ... |
swapon(2) -- add swap space for interleaved paging/swapping
|
The swapon() system call makes a block device or a directory named path available to the system for paging and swapping. priority indicates the order in which the swap space from the device or file system is used. Space is taken from the lower-priority systems first. swapon() can be used only by users who have appropriate privileges. If path names a block device file swapon() makes it available to... |
symlink(2) -- make symbolic link to a file
|
The symlink() function creates a symbolic link. Its name is the pathname pointed to by path2, which must be a pathname that does not name an existing file or symbolic link. The contents of the symbolic link are the string pointed to by path1. |
sync(2) -- update disk
|
sync() causes all information in memory that should be on disk to be written out. This includes modified file system meta-data and delayed block I/O. It should be used by commands and programs that examine a file system, such as fsck, df, etc. It is mandatory before a shutdown. The writing, although scheduled, is not necessarily complete upon return from sync. In some HP-UX systems, sync() may be ... |
sysconf(2) -- get configurable system variables
|
The sysconf() system call provides a way for applications to determine the current value of a configurable limit or variable. The name argument represents the system variable being queried. The following table lists the configuration variable name, the associated value for the name argument that is used in the sysconf() call and the value returned: Variable Value for name Value Returned __________... |
sysfs(2) -- get file system type information
|
sysfs is used to return information about the file system types configured in the system. The number arguments accepted by sysfs varies and depends on the opcode. The current recognized opcodes and their functions are: GETFSIND Translate fsname, a null-terminated file-system type identifier, into a file-system type index. GETFSTYP Translate fs_index, a file-system type index, into a null-terminate... |
time(2) -- get time
|
time() returns the value of time in seconds since the Epoch. If tloc is not a null pointer, the return value is also assigned to the object to which it points. |
timers(2) -- timer operations
|
timer_create() The timer_create() function creates a per-process timer using the specified clock, clock_id, as the timing base. The timer_create() function returns, in the location referenced by timerid, a timer ID of type timer_t used to identify the timer in timer requests. This timer ID will be unique within the calling process until the timer is deleted. The particular clock, clock_id, is defi... |
timer_create(2) -- timer operations
|
timer_create() The timer_create() function creates a per-process timer using the specified clock, clock_id, as the timing base. The timer_create() function returns, in the location referenced by timerid, a timer ID of type timer_t used to identify the timer in timer requests. This timer ID will be unique within the calling process until the timer is deleted. The particular clock, clock_id, is defi... |
timer_delete(2) -- timer operations
|
timer_create() The timer_create() function creates a per-process timer using the specified clock, clock_id, as the timing base. The timer_create() function returns, in the location referenced by timerid, a timer ID of type timer_t used to identify the timer in timer requests. This timer ID will be unique within the calling process until the timer is deleted. The particular clock, clock_id, is defi... |
timer_getoverrun(2) -- timer operations
|
timer_create() The timer_create() function creates a per-process timer using the specified clock, clock_id, as the timing base. The timer_create() function returns, in the location referenced by timerid, a timer ID of type timer_t used to identify the timer in timer requests. This timer ID will be unique within the calling process until the timer is deleted. The particular clock, clock_id, is defi... |
timer_gettime(2) -- timer operations
|
timer_create() The timer_create() function creates a per-process timer using the specified clock, clock_id, as the timing base. The timer_create() function returns, in the location referenced by timerid, a timer ID of type timer_t used to identify the timer in timer requests. This timer ID will be unique within the calling process until the timer is deleted. The particular clock, clock_id, is defi... |
timer_settime(2) -- timer operations
|
timer_create() The timer_create() function creates a per-process timer using the specified clock, clock_id, as the timing base. The timer_create() function returns, in the location referenced by timerid, a timer ID of type timer_t used to identify the timer in timer requests. This timer ID will be unique within the calling process until the timer is deleted. The particular clock, clock_id, is defi... |
times(2) -- get process and child process times
|
times() fills the structure pointed to by buffer with time-accounting information. The structure defined in is as follows: struct tms { clock_t tms_utime; /* user time */ clock_t tms_stime; /* system time */" clock_t tms_cutime; /* user time, children */ clock_t tms_cstime; /* system time, children */ }; This information comes from the calling process and each of its terminated chil... |
truncate(2) -- truncate a file to a specified length
|
The ftruncate() function causes the regular file referenced by fildes to have a size of length bytes. The truncate() function causes the regular file named by path to have a size of length bytes. The effect of ftruncate() and truncate() on other types of files is unspecified. If the file previously was larger than length, the extra data is lost. If it was previously shorter than length, bytes betw... |
truncate64(2) -- non-POSIX standard API interfaces to support large files
|
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in the future. creat64() The creat64() function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional behaviors, returns, and errors are identical to creat(). fstat64() The fstat64() function is identical to fstat()... |
ttrace(2) -- tracing facility for multithreaded processes
|
The ttrace() system call provides a means by which a process can control the execution of another process. Its primary use is for the implementation of breakpoint and event driven debugging; see adb(1) and dde(1). ttrace() is designed to function for both single and multithreaded traced processes. The traced process behaves normally until one of its threads encounters a signal (see signal(2) for t... |
ttrace_wait(2) -- wait for ttrace event
|
The ttrace_wait() system call provides a means to wait for a ttrace() event to occur. A tracing process (debugger) will normally invoke ttrace_wait() after a process or any of its threads has been set running. ttrace_wait() synchronizes tracing requests directed at threads within the traced process. This mechanism differs from the process-oriented synchronization provided by wait() or waitpid() (s... |
tuneinfo2(2) -- retrieve detailed information about kernel tunable parameters
|
This function provides detailed information about one or all kernel tunable parameters. If a particular parameter is of interest, specify it by name in tunable. Otherwise, set tunable to NULL and information will be returned on all kernel tunable parameters (if the supplied buffer is big enough). version must always be set to TUNEINFO_VERSION. Information about the selected tunable parameters is r... |
ualarm(2) -- set the interval timer
|
The ualarm() function causes the SIGALRM signal to be generated for the calling process after the number of real-time microseconds specified by the useconds argument has elapsed. When the interval argument is non-zero, repeated timeout notification occurs with a period in microseconds specified by the interval argument. If the notification signal, SIGALRM, is not caught or ignored, the calling pro... |
ulimit(2) -- get and set user limits
|
ulimit() provides for control over process limits. Available values for cmd are: UL_GETFSIZE Get the file size limit of the process. The limit is in units of 512-byte blocks and is inherited by child processes. Files of any size can be read. The optional second argument is not used. UL_SETFSIZE Set the file size limit of the process to the value of the optional second argument which is taken as a ... |
umask(2) -- set and get file creation mask
|
umask() sets the process's file mode creation mask to umask() and returns the previous value of the mask. Only the file access permission bits of the masks are used. The bits set in cmask specify which permission bits to turn off in the mode of the created file, and should be specified using the symbolic values defined in stat(5). |
umount(2) -- unmount a file system
|
umount() requests that a previously mounted file system contained on the block special device identified by name be unmounted. name is a pointer to a path name. After unmounting the file system, the directory upon which the file system was mounted reverts to its ordinary interpretation. umount() can also request that a file system mounted previously on the directory identified by name be unmounted... |
uname(2) -- get information about computer system; set node name (system name)
|
uname() The uname() system call places information identifying the computer system in the utsname structure pointed to by name. The utsname structure, defined in , is set up as follows: #define UTSLEN 9 #define SNLEN 15 char sysname[UTSLEN]; char nodename[UTSLEN]; char release[UTSLEN]; char version[UTSLEN]; char machine[UTSLEN]; char idnumber[SNLEN]; Each field is a null-terminated ... |
unlink(2) -- remove directory entry; delete file
|
The unlink() system call removes the directory entry named by the path name pointed to by path. When all links to a file have been removed and no process has the file open, the space occupied by the file is freed and the file ceases to exist. If one or more processes have the file open when the last link is removed, only the directory entry is removed immediately so that processes that do not alre... |
usleep(2) -- suspend execution for an interval
|
The usleep() function will cause the calling thread to be suspended from execution until either the number of real-time microseconds specified by the argument useconds has elapsed, or a signal is delivered to the calling thread and its action is to invoke a signal-catching function or to terminate the process. The suspension time may be longer than requested due to the scheduling of other activiti... |
ustat(2) -- get mounted file system statistics
|
The ustat() system call returns information about a mounted file system. dev is a device number identifying a device containing a mounted file system. buf is a pointer to a ustat structure (defined in ) that includes the following elements: int32_t f_tfree; /* Total free blocks */ ino_t f_tinode; /* Number of free inodes */ char f_fname[6]; /* Filsys name or null */ char f_fpack[6]; /* Fi... |
utime(2) -- set file access and modification times
|
The utime() system call sets the access and modification times of the file to which the path argument refers. If times is a NULL pointer, the access and modification times of the file are set to the current time. A process must be the owner of the file or have write permission on the file to use utime() in this manner. If times is not a NULL pointer, times is interpreted as a pointer to a utimbuf ... |
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 argument to the value of the times argument. The utimes() function allows time specifications accurate to the microsecond. For utimes(), the times argument is an array of timeval structures. The first array member represents the date and time of last access, and the second member represents the date and... |
vfork(2) -- spawn new process; share virtual memory
|
vfork() can be used to create new processes without fully copying the address space of the old process. If a forked process is simply going to do an exec() (see exec(2)), the data space copied from the parent to the child by fork() is not used. This is particularly inefficient in a paged environment, making vfork particularly useful. Depending upon the size of the parent's data space, vfork() can... |
vfsmount(2) -- mount a file system
|
The vfsmount() system call attaches a file system to a directory. After a successful return, references to directory dir refer to the root directory of the newly mounted file system. dir is a pointer to a null-terminated string containing a path name. dir must exist already, and must be a directory. Its old contents are inaccessible while the file system is mounted. type indicates the type of the ... |
wait(2) -- wait for child process to stop or terminate
|
The wait() and waitpid() functions shall obtain status information pertaining to one of the caller's child processes. Various options permit status information to be obtained for child processes that have terminated or stopped. If status information is available for two or more child processes, the order in which their status is reported is unspecified. The wait() function shall suspend execution... |
wait3(2) -- wait for child process to change state
|
The wait3() and wait4() functions allow the calling process to obtain various status information for a caller's child process based on the options specified. If status information is available for two or more child processes, the order of which process to report status on is not defined. The wait4() function is similar to wait3(), except that wait4() waits for a specific child as indicated by the... |
wait4(2) -- wait for child process to change state
|
The wait3() and wait4() functions allow the calling process to obtain various status information for a caller's child process based on the options specified. If status information is available for two or more child processes, the order of which process to report status on is not defined. The wait4() function is similar to wait3(), except that wait4() waits for a specific child as indicated by the... |
waitid(2) -- wait for child process to change state
|
The waitid() function suspends the calling process until one of its children changes state. It records the current state of a child in the structure pointed to by infop. If a child process changed state prior to the call to waitid(), waitid() returns immediately. The idtype and id arguments are used to specify which children waitid() will wait for. If idtype is P_PID, waitid() will wait for the ch... |
waitpid(2) -- wait for child process to stop or terminate
|
The wait() and waitpid() functions shall obtain status information pertaining to one of the caller's child processes. Various options permit status information to be obtained for child processes that have terminated or stopped. If status information is available for two or more child processes, the order in which their status is reported is unspecified. The wait() function shall suspend execution... |
write(2) -- write on a file
|
The write() function attempts to write nbyte bytes from the buffer pointed to by buf to the file associated with the open file descriptor, fildes. If nbyte is 0, write() will return 0 and have no other results if the file is a regular file. Otherwise, the results are unspecified. On a regular file or other file capable of seeking, the actual writing of data proceeds from the position in the file i... |
writev(2) -- write on a file
|
The write() function attempts to write nbyte bytes from the buffer pointed to by buf to the file associated with the open file descriptor, fildes. If nbyte is 0, write() will return 0 and have no other results if the file is a regular file. Otherwise, the results are unspecified. On a regular file or other file capable of seeking, the actual writing of data proceeds from the position in the file i... |
_exit(2) -- terminate process
|
exit() terminates the calling process and passes status to the system for inspection, see wait(2). Returning from main in a C program has the same effect as exit(); the status value is the function value returned by main (this value is undefined if main does not take care to return a value or to call exit() explicitly). If the calling process is multithreaded, all threads/lightweight process in th... |
__pset_rtctl(2) -- real-time processor set control
|
HP-UX Processor Sets allow a subset of processors in the system to be isolated for exclusive use by specified threads and processes. Only the threads bound to a processor set can execute on processors in that processor set (see pset_create(2)). The __pset_rtctl() function extends processor set functionality for real-time applications to minimize operating system activities in a processor set. A pr... |