|
ftn/sgikopt(2) -- retrieve kernel option strings
|
The IRIX kernel saves most of the IRIS PROM Monitor environment variables (option strings) for later use by the kernel as well as user programs. sgikopt allows the user to retrieve the values of these variables. The option argument specifies the name of the variable; the value of the option is returned in the buffer addressed by buf. The size in bytes of this buffer is given by buflen. The string returned by sgikopt is guaranteed to be null-terminated, even if the length of the option value stri... |
standard/sgikopt(2) -- retrieve kernel option strings
|
The IRIX kernel saves most of the IRIS PROM Monitor environment variables (option strings) for later use by the kernel as well as user programs. sgikopt allows the user to retrieve the values of these variables. The option argument specifies the name of the variable; the value of the option is returned in the buffer addressed by buf. The size in bytes of this buffer is given by buflen. The string returned by sgikopt is guaranteed to be null-terminated, even if the length of the option value stri... |
|
standard/sginap(2) -- timed sleep and processor yield function
|
The sginap system call provides two functions. With an argument of 0, it yields the processor to any higher or equal priority threads immediately, thus potentially allowing another thread to run. Note that because normally the user has no direct control over the exact priority of a given thread, this does not guarantee that another thread will run. With an argument which is non-zero, sginap will suspend the thread for between ticks-1 and ticks clock ticks. That is, it will suspend for at least t... |
standard/sgi_eag_mount(2) -- mount a filesystem with attributes
|
sgi_eag_mount is identical to mount(2), except that it accepts an additional argument attrs, which contains a data block specifying default attributes for the filesystem. sgi_eag_mount requires that the calling process have appropriate privilege. If _POSIX_CAP is in effect, the appropriate capability is CAP_MOUNT_MGT. |
standard/sgi_revoke(2) -- revoke access to a file
|
The sgi_revoke system call invalidates all currently open file descriptors referencing the file named by fname. sgi_revoke requires that the calling process have appropriate privilege. If _POSIX_CAP is in effect, the appropriate capability is CAP_DEVICE_MGT. |
standard/shmctl(2) -- shared memory control operations
|
shmctl provides a variety of shared memory 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 shmid into the structure pointed to by buf. The contents of this structure are defined in intro(2). {READ} IPC_SET Set the value of the following members of the data structure associated with shmid to the corresponding value ... |
standard/shmget(2) -- get shared memory segment identifier
|
shmget returns the shared memory identifier associated with key. A shared memory identifier and associated data structure and shared memory segment of at least size bytes [see intro(2)] are created for key if one of the following are true: key is equal to IPC_PRIVATE. key does not already have a shared memory identifier associated with it, and (shmflg&IPC_CREAT) is true. Upon creation, the contents of the s... |
standard/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 at the address specified by one of the following criteria: If shmaddr is equal to (void *) 0, the segment is attached at the first available address as selected by the system. If (shmflg&SHM_SGI_ANYADDR) is true, the segment is attached at the fi... |
standard/shm_open(2) -- establishes a connection between a shared memory object and a file descriptor
|
path is a pointer to the character string which names a shared memory object. shm_open opens a file descriptor for the shared memory object and sets the memory access flag according to the value of oflag. The oflag must be set to one of the following values: O_RDONLY Open the memory object for reading only. O_RDWR Open the memory object for reading and writing. With one of the above flags set, any of the following flags may also be specifi... |
standard/shm_unlink(2) -- deletes a shared memory object
|
path is a pointer to the character string, naming a shared memory object. shm_unlink deletes the named shared memory object from the file namespace. The contents of the shared memory will persist after the call to shm_unlink, if one or more processes still reference the memory object. Once the last reference has been dropped, the space occupied by the shared memory object is freed and the object ceases to exist [see close(2) an... |
standard/shutdown(2) -- shut down part of a full-duplex connection
|
The shutdown call causes all or part of a full-duplex connection on the socket associated with s to be shut down. If how is 0, then further receives will be disallowed. If how is 1, then further sends will be disallowed. If how is 2, then further sends and receives will be disallowed. |
standard/sigaction(2) -- software signal facilities (POSIX)
|
sigaction specifies and reports on the way individual signals are to be handled in the calling process. sig specifies the signal and can be assigned any of the signals specified in signal(5). If act is non-zero, it points to a structure specifying the new action to be taken when delivering sig. If oact is non-zero, the previous handling information for the signal is returned to the user. In this way (a NULL act and a non-NULL oact) the user can enquire as to the current handling of a signal with... |
standard/sigaltstack(2) -- set or get signal alternate stack context
|
sigaltstack allows users to define an alternate stack area on which signals are to be processed. If ss is non-zero, it specifies a pointer to, and the size of a stack area on which to deliver signals, and tells the system if the process is currently executing on that stack. When a signal's action indicates its handler should execute on the alternate signal stack [specified with a sigaction(2) call], the system checks to see if the proc... |
standard/siginterrupt(2) -- allow signals to interrupt functions (X/Open XPG4)
|
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); return ret; }; The siginterrupt() function supports programs written to historical system interfaces.... |
standard/signal(2) -- software signal facilities (System V)
|
signal allows the calling process to choose one of three ways in which it is possible to handle the receipt of a specific signal. sig specifies the signal and func specifies the choice. For a list of valid signals and a general description of the signal mechanism please see signal(5). [EINVAL] signal will fail if sig is an illegal signal number, including SIGKILL and SIGSTOP. [EINVAL] signal will fail if an illegal operation... |