|
standard/getgroups(2) -- get supplementary group access list IDs
|
getgroups retrieves the current group access list of the user process and stores it in the array gidset. The parameter setlen indicates the number of entries that may be placed in gidset. The return value is the actual number of groups placed in gidset, and this will never be greater than NGROUPS_UMAX for the POSIX version, and NGROUPS for the BSD version, as defined in . As a special case, if the setlen parameter is zero, getgroups returns the number of supplemental group IDs assoc... |
standard/gethostid(2) -- get/set unique identifier of current host
|
Sethostid establishes a 32-bit identifier for the current host that is intended to be unique among all UNIX systems in existence. This is normally a DARPA Internet address for the local machine. This call is allowed only to the superuser and is normally performed at boot time. Gethostid returns the 32-bit identifier for the current host. |
|
standard/gethostname(2) -- get/set name of current host
|
Gethostname returns the standard hostname for the current processor, as previously set by sethostname. The parameter namelen specifies the size of the name array. The returned name is null-terminated and truncated if insufficient space is provided. Sethostname sets the name of the host machine to be name, which has length namelen. This call is restricted to the superuser and is normally used only when the system is bootstrapped.... |
standard/getitimer(2) -- get/set value of interval timer
|
The system provides each process with three interval timers, defined in . The getitimer call returns the current value for the timer specified in which, while the setitimer call sets the value of a timer (optionally returning the previous value of the timer). A timer value is defined by the itimerval structure: struct itimerval { struct timeval it_interval; /* timer interval */ struct timeval it_value; /* current value */ }; If it_value is non-zero, it indicates the time to the next ... |
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... |