|
standard/getmountid(2) -- get filesystem mount identifier
|
getmountid returns an identifier for the filesystem containing the file named by path. Read, write, or execute permission for the named file is not required, but all directories listed in the path name leading to the file must be searchable. buf is a pointer to a mountid structure that is filled by the system call. The identifier returned is guaranteed to be unique for the mounted filesystem within the running system, except for autofs's lofs f... |
standard/getmsg(2) -- get next message off a stream
|
getmsg retrieves the contents of a message [see intro(2)] located at the stream head read queue from a STREAMS file, and places the contents into user specified buffer(s). The message must contain 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 STREAMS module that generated the message. The function getpmsg... |
|
standard/getpagesize(2) -- get system page size
|
Getpagesize returns the number of bytes in a page. Page granularity is the granularity of many of the memory management calls. The page size is a system page size and may not be the same as the underlying hardware page size. In systems with multiple page sizes, the base page size is returned. The base page size is the smallest page size used by a system. |
standard/getpeername(2) -- get name of connected peer
|
Getpeername returns the name of the peer connected to socket s. The namelen parameter should be initialized to indicate the amount of space pointed to by name. On return it contains the actual size of the name returned (in bytes). The name is truncated if the buffer provided is too small. |
standard/getpid(2) -- get process, process group, and parent process IDs
|
getpid returns the process ID of the calling process. getpgrp returns the process group ID of the calling process. The BSDgetpgrp form is provided for Berkeley compatibility. If the pid_t is 0, it is the same as the getpgrp form, otherwise it returns the process group for the argument, if the process exists. getppid returns the parent process ID of the calling process. getp<... |
standard/getprid(2) -- get project ID
|
The getprid function returns the project ID for the array session containing the calling process. The initial project ID of an array session is typically assigned at login time, and can be changed with the privileged function setprid(2). The newproj(1) command can be used to start a new array session with a different project ID. For more details on project IDs, see projects(5). |
standard/getpriority(2) -- get/set program scheduling priority
|
The scheduling priority of the process, process group, or user, as indicated by which and who is obtained with the getpriority call and set with the setpriority call. Which is one of PRIO_PROCESS, PRIO_PGRP, or PRIO_USER, and who is interpreted relative to which (a process identifier for PRIO_PROCESS, process group identifier for PRIO_PGRP, and a user ID for PRIO_USER). A zero value of who denotes the current process, process group, or user. Prio is a value in the range -20 to 20. The default pr... |
standard/getrlimit(2) -- control maximum system resource consumption
|
Limits on the consumption of a variety of system resources by a process and each process it creates may be obtained with getrlimit and set with setrlimit. getrlimit64 and setrlimit64 allow 32-bit programs to set 64-bit limits. This is particularly useful for shells and other 32-bit programs which fork 64-bit binaries. Unless otherwise specified, getrlimi... |
standard/getsid(2) -- get session ID
|
The function getsid returns the session ID of the process whose process ID is equal to pid. If pid is equal to (pid_t)0, getsid returns the session ID of the calling process. |
standard/getsockname(2) -- get socket name
|
Getsockname returns the current name for the specified socket. The namelen parameter should be initialized to indicate the amount of space pointed to by name. On return it contains the actual size of the name returned (in bytes). |
standard/getsockopt(2) -- get and set options on sockets
|
Getsockopt and setsockopt manipulate options associated with a socket. Options may exist at multiple protocol levels; they are always present at the uppermost ``socket'' level. When manipulating socket options the level at which the option resides and the name of the option must be specified. To manipulate options at the ``socket'' level, level is specified as SOL_SOCKET. To manipulate options at any other level the protocol number of the appropriate protocol controlling the option is suppli... |
standard/getspinfo(2) -- get service provider information
|
The getspinfo function stores the service provider information for the array session containing the current process into the acct_spi struct pointed to by spi. The service provider information for an array session is normally inherited from the array session of the process that created it, or it can be changed with the privileged setspinfo(2) function. For more details on service provider information, see the man pages for setspinfo(2). getspinfo is provided primarily for compatibility with prev... |
standard/getuid(2) -- get real user, effective user, real group, and effective group IDs
|
getuid returns the real user ID of the calling process. geteuid returns the effective user ID of the calling process. getgid returns the real group ID of the calling process. getegid returns the effective group ID of the calling process. |
standard/intro(2) -- introduction to system calls and error numbers
|
This section describes all of the system calls. Most of these calls have one or more error returns. An error condition is indicated by an otherwise impossible returned value. This is almost always -1 or the NULL pointer; the individual descriptions specify the details. An error number is also made available in the external variable errno. errno is not cleared on successful calls, so it should be tested only after an error has been indicated. Many of these errors are caused by certain system or u... |
standard/ioctl(2) -- control device
|
ioctl performs a variety of control functions on devices and STREAMS. For non-STREAMS files, the functions performed by this call are devicespecific control functions. request and an optional third argument with varying type are passed to the file designated by fildes and are interpreted by the device driver. For STREAMS files, specific functions are performed by the ioctl call as described in streamio(7). Argument types and other request-spe... |