*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages              
Title
Content
Arch
Section
 
 accept(2) -- accept a connection on a socket
    The argument s is a socket that has been created with socket(2), bound to an address with bind(2), and is listening for connections after a listen(2). The accept() argument extracts the first connecti...
 access(2) -- check access permissions of a file or pathname
    The access() function checks the accessibility of the file named by path for the access permissions indicated by mode. The value of mode is the bitwise inclusive OR of the access permissions to be che...
 acct(2) -- enable or disable process accounting
    The acct() call enables or disables the collection of system accounting records. If file is NULL, accounting is disabled. If file is an existing, null-terminated pathname, record collection is enabled...
 adjtime(2) -- correct the time to allow synchronization of the system clock
    adjtime() makes small adjustments to the system time, as returned by gettimeofday(2), advancing or retarding it by the time specified by the timeval delta. If delta is negative, the clock is slowed do...
 amd64/amd64_get_ioperm(2) -- manage amd64 per-process I/O permission bitmap
    amd64_get_ioperm() copies the current I/O permission bitmap into the memory referenced by iomap. amd64_set_ioperm() sets the I/O permission bitmap from the data pointed to by iomap. This call is restr...
 amd64/amd64_get_ldt(2) -- manage amd64 per-process Local Descriptor Table entries
    amd64_get_ldt() will return the list of amd64 descriptors that the process has in its LDT. amd64_set_ldt() will set a list of amd64 descriptors for the current process in its LDT. Both routines accept...
 amd64/amd64_get_mtrr(2) -- access Memory Type Range Registers
    These functions provide an interface to the MTRR registers found on 686-class processors for controlling processor access to memory ranges. This is most useful for accessing devices such as video acce...
 amd64/amd64_iopl(2) -- change the amd64 I/O privilege level
    amd64_iopl() sets the amd64 I/O privilege level to the value specified by iopl. This call is restricted to the superuser. Note: Code using the amd64_iopl() function must be compiled using -lamd64.
 amd64/amd64_set_ioperm(2) -- manage amd64 per-process I/O permission bitmap
    amd64_get_ioperm() copies the current I/O permission bitmap into the memory referenced by iomap. amd64_set_ioperm() sets the I/O permission bitmap from the data pointed to by iomap. This call is restr...
 amd64/amd64_set_ldt(2) -- manage amd64 per-process Local Descriptor Table entries
    amd64_get_ldt() will return the list of amd64 descriptors that the process has in its LDT. amd64_set_ldt() will set a list of amd64 descriptors for the current process in its LDT. Both routines accept...
 amd64/amd64_set_mtrr(2) -- access Memory Type Range Registers
    These functions provide an interface to the MTRR registers found on 686-class processors for controlling processor access to memory ranges. This is most useful for accessing devices such as video acce...
 bind(2) -- bind a name to a socket
    bind() assigns a name to an unnamed socket. When a socket is created with socket(2) it exists in a name space (address family) but has no name assigned. bind() requests that name be assigned to the so...
 brk(2) -- change data segment size
    The brk() and sbrk() functions are historical curiosities left over from earlier days before the advent of virtual memory management. The brk() function sets the break or lowest address of a process'...
 chdir(2) -- change current working directory
    The path argument points to the pathname of a directory. The chdir() function causes the named directory to become the current working directory, that is, the starting point for path searches of pathn...
 chflags(2) -- set file flags
    The file whose name is given by path or referenced by the descriptor fd has its flags changed to flags. The flags specified are formed by OR'ing the following values UF_NODUMP Do not dump the file. U...
 chmod(2) -- change mode of file
    The function chmod() sets the file permission bits of the file specified by the pathname path to mode. fchmod() sets the permission bits of the specified file descriptor fd. chmod() verifies that the ...
 chown(2) -- change owner and group of a file or link
    The owner ID and group ID of the file (or link) named by path or referenced by fd is changed as specified by the arguments owner and group. The owner of a file may change the group to a group of which...
 chroot(2) -- change root directory
    dirname is the address of the pathname of a directory, terminated by an ASCII NUL. chroot() causes dirname to become the root directory, that is, the starting point for path searches of pathnames begi...
 clock_getres(2) -- get/set/calibrate date and time
    The clock_gettime() and clock_settime() allow the calling process to retrieve or set the value used by a clock which is specified by clock_id. clock_id can be one of four values: CLOCK_REALTIME for ti...
 clock_gettime(2) -- get/set/calibrate date and time
    The clock_gettime() and clock_settime() allow the calling process to retrieve or set the value used by a clock which is specified by clock_id. clock_id can be one of four values: CLOCK_REALTIME for ti...
 clock_settime(2) -- get/set/calibrate date and time
    The clock_gettime() and clock_settime() allow the calling process to retrieve or set the value used by a clock which is specified by clock_id. clock_id can be one of four values: CLOCK_REALTIME for ti...
 close(2) -- delete a descriptor
    The close() call deletes a descriptor from the per-process object reference table. If this is the last reference to the underlying object, the object will be deactivated. For example, on the last clos...
 closefrom(2) -- delete many descriptors
    The closefrom() call deletes all descriptors numbered fd and higher from the per-process file descriptor table. It is effectively the same as calling close(2) on each descriptor.
 connect(2) -- initiate a connection on a socket
    The parameter s is a socket. If it is of type SOCK_DGRAM, this call specifies the peer with which the socket is to be associated; this address is that to which datagrams are to be sent, and the only a...
 alpha/dense_base(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 dup(2) -- duplicate an existing file descriptor
    dup() duplicates an existing object descriptor and returns its value to the calling process (newd = dup(oldd)). The argument oldd is a small non-negative integer index in the per-process descriptor ta...
 dup2(2) -- duplicate an existing file descriptor
    dup() duplicates an existing object descriptor and returns its value to the calling process (newd = dup(oldd)). The argument oldd is a small non-negative integer index in the per-process descriptor ta...
 errno(2) -- introduction to system calls and error numbers
    The manual pages in section 2 provide an overview of the system calls, their error returns, and other common definitions and concepts.
 exect(2) -- execute a file
    execve() transforms the calling process into a new process. The new process is constructed from an ordinary file, whose name is pointed to by path, called the new process file. This file is either an ...
 execve(2) -- execute a file
    execve() transforms the calling process into a new process. The new process is constructed from an ordinary file, whose name is pointed to by path, called the new process file. This file is either an ...
 extattr(2) -- system calls to manipulate VFS extended attributes
    Named extended attributes are meta-data associated with vnodes representing files and directories. They exist as "name=value" pairs within a set of namespaces. The extattr_get_file() call retrieves ...
 extattr_delete_fd(2) -- system calls to manipulate VFS extended attributes
    Named extended attributes are meta-data associated with vnodes representing files and directories. They exist as "name=value" pairs within a set of namespaces. The extattr_get_file() call retrieves ...
 extattr_delete_file(2) -- system calls to manipulate VFS extended attributes
    Named extended attributes are meta-data associated with vnodes representing files and directories. They exist as "name=value" pairs within a set of namespaces. The extattr_get_file() call retrieves ...
 extattr_get_fd(2) -- system calls to manipulate VFS extended attributes
    Named extended attributes are meta-data associated with vnodes representing files and directories. They exist as "name=value" pairs within a set of namespaces. The extattr_get_file() call retrieves ...
 extattr_get_file(2) -- system calls to manipulate VFS extended attributes
    Named extended attributes are meta-data associated with vnodes representing files and directories. They exist as "name=value" pairs within a set of namespaces. The extattr_get_file() call retrieves ...
 extattr_set_fd(2) -- system calls to manipulate VFS extended attributes
    Named extended attributes are meta-data associated with vnodes representing files and directories. They exist as "name=value" pairs within a set of namespaces. The extattr_get_file() call retrieves ...
 extattr_set_file(2) -- system calls to manipulate VFS extended attributes
    Named extended attributes are meta-data associated with vnodes representing files and directories. They exist as "name=value" pairs within a set of namespaces. The extattr_get_file() call retrieves ...
 fchdir(2) -- change current working directory
    The path argument points to the pathname of a directory. The chdir() function causes the named directory to become the current working directory, that is, the starting point for path searches of pathn...
 fchflags(2) -- set file flags
    The file whose name is given by path or referenced by the descriptor fd has its flags changed to flags. The flags specified are formed by OR'ing the following values UF_NODUMP Do not dump the file. U...
 fchmod(2) -- change mode of file
    The function chmod() sets the file permission bits of the file specified by the pathname path to mode. fchmod() sets the permission bits of the specified file descriptor fd. chmod() verifies that the ...
 fchown(2) -- change owner and group of a file or link
    The owner ID and group ID of the file (or link) named by path or referenced by fd is changed as specified by the arguments owner and group. The owner of a file may change the group to a group of which...
 fcntl(2) -- file control
    The fcntl() provides control over the properties of a file that is already open. The argument fd is a descriptor to be operated on by cmd as described below. The third parameter is called arg and is t...
 fhopen(2) -- access file via file handle
    These functions provide a means to access a file given the file handle fhp. As this method bypasses directory access restrictions, these calls are restricted to the superuser. fhopen() opens the file ...
 fhstat(2) -- access file via file handle
    These functions provide a means to access a file given the file handle fhp. As this method bypasses directory access restrictions, these calls are restricted to the superuser. fhopen() opens the file ...
 fhstatfs(2) -- access file via file handle
    These functions provide a means to access a file given the file handle fhp. As this method bypasses directory access restrictions, these calls are restricted to the superuser. fhopen() opens the file ...
 flock(2) -- apply or remove an advisory lock on an open file
    flock() applies or removes an advisory lock on the file associated with the file descriptor fd. A lock is applied by specifying an operation parameter that is one of LOCK_SH or LOCK_EX with the option...
 fork(2) -- create a new process
    fork() causes creation of a new process. The new process (child process) is an exact copy of the calling process (parent process) except for the following: +o The child process has a unique process ID...
 fpathconf(2) -- get configurable pathname variables
    The pathconf() and fpathconf() functions provides a method for applications to determine the current value of a configurable system limit or option variable associated with a pathname or file descript...
 fstat(2) -- get file status
    The stat() function obtains information about the file pointed to by path. Read, write, or execute permission of the named file is not required, but all directories listed in the path name leading to ...
 fstatfs(2) -- get file system statistics
    statfs() returns information about a mounted file system. path is the path name of any file within the mounted file system. buf is a pointer to a statfs structure defined as follows: typedef struct { ...
 fsync(2) -- synchronize a file's in-core state with that on disk
    fsync() causes all modified data and attributes of fd to be moved to a permanent storage device. This normally results in all incore modified copies of buffers for the associated file to be written to...
 ftruncate(2) -- truncate or extend a file to a specified length
    truncate() causes the file named by path or referenced by fd to be truncated or extended to length bytes in size. If the file was larger than this size, the extra data is lost. If the file was smaller...
 futimes(2) -- set file access and modification times
    The access and modification times of the file named by path or referenced by fd are changed as specified by the argument times. If times is NULL, the access and modification times are set to the curre...
 getdirentries(2) -- get directory entries in a filesystem independent format
    getdirentries() reads directory entries from the directory referenced by the file descriptor fd into the buffer pointed to by buf, in a filesystem independent format. Up to nbytes of data will be tran...
 getegid(2) -- get group process identification
    The getgid() function returns the real group ID of the calling process, getegid() returns the effective group ID of the calling process. The real group ID is specified at login time. The real group ID...
 geteuid(2) -- get user identification
    The getuid() function returns the real user ID of the calling process. The geteuid() function returns the effective user ID of the calling process. The real user ID is that of the user who has invoked...
 getfh(2) -- get file handle
    getfh() returns a file handle for the specified file or directory in the file handle pointed to by fhp. This system call is restricted to the superuser.
 getfsstat(2) -- get list of all mounted file systems
    getfsstat() returns information about all mounted file systems. buf is a pointer to an array of statfs(2) structures defined as follows: typedef struct { int32_t val[2]; } fsid_t; #define MFSNAMELEN 1...
 getgid(2) -- get group process identification
    The getgid() function returns the real group ID of the calling process, getegid() returns the effective group ID of the calling process. The real group ID is specified at login time. The real group ID...
 getgroups(2) -- get group access list
    getgroups() gets the current group access list of the current user process and stores it in the array gidset. The parameter gidsetlen indicates the number of entries that may be placed in gidset. getg...
 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 in the structure at value. The set...
 getlogin(2) -- get/set login name
    The getlogin() routine returns the login name of the user associated with the current session, as previously set by setlogin(). The name is normally associated with a login shell at the time a session...
 getlogin_r(2) -- get/set login name
    The getlogin() routine returns the login name of the user associated with the current session, as previously set by setlogin(). The name is normally associated with a login shell at the time a session...
 getpeereid(2) -- get effective user and group identification of
    getpeereid() returns the effective user ID and group ID of the peer connected to a UNIX domain socket (see unix(4)). The argument s must be of type SOCK_STREAM. One common use is for UNIX domain serve...
 getpeername(2) -- get name of connected peer
    getpeername() returns the address information of the peer connected to socket s. One common use occurs when a process inherits an open socket, such as TCP servers forked from inetd(8). In this scenari...
 getpgid(2) -- get process group
    The process group of the current process is returned by getpgrp(). The process group of the pid process is returned by getpgid(). Process groups are used for distribution of signals, and by terminals ...
 getpgrp(2) -- get process group
    The process group of the current process is returned by getpgrp(). The process group of the pid process is returned by getpgid(). Process groups are used for distribution of signals, and by terminals ...
 getpid(2) -- get parent or calling process identification
    getpid() returns the process ID of the calling process. Though the ID is guaranteed to be unique, it should NOT be used for constructing temporary file names; see mkstemp(3) instead. getppid() returns...
 getppid(2) -- get parent or calling process identification
    getpid() returns the process ID of the calling process. Though the ID is guaranteed to be unique, it should NOT be used for constructing temporary file names; see mkstemp(3) instead. getppid() returns...
 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,...
 getresgid(2) -- get or set real, effective and saved user or group ID
    The setresuid() function sets the real, effective and saved user IDs of the current process. The analogous setresgid() sets the real, effective and saved group IDs. Privileged processes may set these ...
 getresuid(2) -- get or set real, effective and saved user or group ID
    The setresuid() function sets the real, effective and saved user IDs of the current process. The analogous setresgid() sets the real, effective and saved group IDs. Privileged processes may set these ...
 getrlimit(2) -- control maximum system resource consumption
    Limits on the consumption of system resources by the current process and each process it creates may be obtained with the getrlimit() call, and set with the setrlimit() call. The resource parameter is...
 getrusage(2) -- get information about resource utilization
    getrusage() returns information describing the resources utilized by the current process, or all its terminated child processes. The who parameter is either RUSAGE_SELF or RUSAGE_CHILDREN. The buffer ...
 getsid(2) -- get process session
    The session ID of the process identified by pid is returned by getsid(). If pid is zero, getsid() returns the session ID of the current process.
 getsockname(2) -- get socket name
    getsockname() returns the locally bound address information for a specified socket. Common uses of this function are as follows: +o When bind(2) is called with a port number of 0 (indicating the kerne...
 getsockopt(2) -- get and set options on sockets
    getsockopt() and setsockopt() manipulate the options associated with a socket. Options may exist at multiple protocol levels; they are always present at the uppermost ``socket'' level. When manipula...
 gettimeofday(2) -- get/set date and time
    Note: timezone is no longer used; this information is kept outside the kernel. The system's notion of the current Greenwich time and the current time zone is obtained with the gettimeofday() call, an...
 getuid(2) -- get user identification
    The getuid() function returns the real user ID of the calling process. The geteuid() function returns the effective user ID of the calling process. The real user ID is that of the user who has invoked...
 i386/i386_get_ioperm(2) -- manage i386 per-process I/O permission bitmap
    i386_get_ioperm() copies the current I/O permission bitmap into the memory referenced by iomap. i386_set_ioperm() sets the I/O permission bitmap from the data pointed to by iomap. This call is restric...
 i386/i386_get_ldt(2) -- manage i386 per-process Local Descriptor Table entries
    i386_get_ldt() will return the list of i386 descriptors that the process has in its LDT. i386_set_ldt() will set a list of i386 descriptors for the current process in its LDT. Both routines accept a s...
 i386/i386_iopl(2) -- change the i386 I/O privilege level
    i386_iopl() sets the i386 I/O privilege level to the value specified by iopl. This call is restricted to the superuser. Note: Code using the i386_iopl() function must be compiled using -li386.
 i386/i386_set_ioperm(2) -- manage i386 per-process I/O permission bitmap
    i386_get_ioperm() copies the current I/O permission bitmap into the memory referenced by iomap. i386_set_ioperm() sets the I/O permission bitmap from the data pointed to by iomap. This call is restric...
 i386/i386_set_ldt(2) -- manage i386 per-process Local Descriptor Table entries
    i386_get_ldt() will return the list of i386 descriptors that the process has in its LDT. i386_set_ldt() will set a list of i386 descriptors for the current process in its LDT. Both routines accept a s...
 i386/i386_vm86(2) -- set virtual 8086 processor registers and mode
    i386_vm86() will set the process into virtual 8086 mode using the registers and selectors specified by the context pointed to by vmcp. The processor registers are set from vmcp->substr.regs, and the e...
 alpha/inb(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 alpha/inl(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 intro(2) -- introduction to system calls and error numbers
    The manual pages in section 2 provide an overview of the system calls, their error returns, and other common definitions and concepts.
 alpha/inw(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 ioctl(2) -- control device
    The ioctl() function manipulates the underlying device parameters of special files. In particular, many operating characteristics of character special files (e.g., terminals) may be controlled with io...
 alpha/ioperm(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 issetugid(2) -- is current executable running setuid or setgid
    The issetugid() function returns 1 if the process was made setuid or setgid as the result of the last or other previous execve() system calls. Otherwise it returns 0. This system call exists so that l...
 kevent(2) -- kernel event notification mechanism
    kqueue() provides a generic method of notifying the user when an event happens or a condition holds, based on the results of small pieces of kernel code termed ``filters''. A kevent is identified by...
 kill(2) -- send signal to a process
    The kill() function sends the signal given by sig to pid, a process or a group of processes. sig may be one of the signals specified in sigaction(2) or it may be 0, in which case error checking is per...
 kqueue(2) -- kernel event notification mechanism
    kqueue() provides a generic method of notifying the user when an event happens or a condition holds, based on the results of small pieces of kernel code termed ``filters''. A kevent is identified by...
 ktrace(2) -- process tracing
    The ktrace() function enables or disables tracing of one or more processes. Users may only trace their own processes. Only the superuser can trace setuid or setgid programs. tracefile gives the pathna...
 lchown(2) -- change owner and group of a file or link
    The owner ID and group ID of the file (or link) named by path or referenced by fd is changed as specified by the arguments owner and group. The owner of a file may change the group to a group of which...
 link(2) -- make a hard file link
    The link() function atomically creates the specified directory entry (hard link) name2 with the attributes of the underlying object pointed at by name1. If the link is successful: the link count of th...
 listen(2) -- listen for connections on a socket
    To accept connections, a socket is first created with socket(2), a willingness to accept incoming connections and a queue limit for incoming connections are specified with listen(), and then the conne...
 lseek(2) -- reposition read/write file offset
    The lseek() function repositions the offset of the file descriptor fildes to the argument offset according to the directive whence. The argument fildes must be an open file descriptor. lseek() reposit...
 lstat(2) -- get file status
    The stat() function obtains information about the file pointed to by path. Read, write, or execute permission of the named file is not required, but all directories listed in the path name leading to ...
 madvise(2) -- give advice about use of memory
    The madvise() system call allows a process that has knowledge of its memory behavior to describe it to the system. The possible behaviors are: MADV_NORMAL No further special treatment needed. MADV_RAN...
 alpha/map_memory(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 mincore(2) -- determine residency of memory pages
    The mincore() system call allows a process to obtain information about whether pages are core resident. Here the current core residency of the pages is returned in the character array vec, with a valu...
 minherit(2) -- control the inheritance of pages
    The minherit() system call changes the specified pages to have the inheritance characteristic inherit, which can be set to MAP_INHERIT_NONE, MAP_INHERIT_COPY, or MAP_INHERIT_SHARE. Not all implementat...
 mkdir(2) -- make a directory file
    The directory path is created with the access permissions specified by mode and restricted by the umask(2) of the calling process. The directory's owner ID is set to the process's effective user ID....
 mkfifo(2) -- make a FIFO file
    mkfifo() creates a new FIFO file with name path. The access permissions are specified by mode and restricted by the umask(2) of the calling process. The FIFO's owner ID is set to the process's effec...
 mknod(2) -- make a special file node
    The device special file path is created with the major and minor device numbers extracted from mode. The access permissions of path are descendant from the umask(2) of the parent process. If mode indi...
 mlock(2) -- lock (unlock) physical pages in memory
    The mlock system call locks into memory the physical pages associated with the virtual address range starting at addr for len bytes. The munlock call unlocks pages previously locked by one or more mlo...
 mlockall(2) -- lock (unlock) the address space of a process
    The mlockall system call locks into memory the physical pages associated with the address space of a process until the address space is unlocked, the process exits, or execs another program image. The...
 mmap(2) -- map files or devices into memory
    The mmap function causes the pages starting at addr and continuing for at most len bytes to be mapped from the object described by fd, starting at byte offset offset. If offset or len is not a multipl...
 mount(2) -- mount or dismount a filesystem
    The mount() function grafts a filesystem object onto the system file tree at the point dir. The argument data describes the filesystem object to be mounted. The argument type tells the kernel how to i...
 mprotect(2) -- control the protection of pages
    The mprotect() system call changes the specified pages to have protection prot. Not all implementations will guarantee protection on a page basis; the granularity of protection changes may be as large...
 mquery(2) -- provide mapping hints to applications
    The mquery system call checks the existing memory mappings of a process and returns hints to the caller about where to put a memory mapping. This hint can be later used when performing memory mappings...
 msgctl(2) -- message control operations
    The msgctl() system call performs some control operations on the message queue specified by msqid. Each message queue has a data structure associated with it, parts of which may be altered by msgctl()...
 msgget(2) -- get message queue
    msgget() returns the message queue identifier associated with key. A message queue identifier is a unique integer greater than zero. A message queue is created if either key is equal to IPC_PRIVATE, o...
 msgrcv(2) -- receive a message from a message queue
    The msgrcv() function receives a message from the message queue specified in msqid, and places it into the structure pointed to by msgp. This structure should consist of the following members: long mt...
 msgsnd(2) -- send a message to a message queue
    The msgsnd() function sends a message from the message queue specified in msqid. msgp points to a structure containing the message. This structure should consist of the following members: long mtype; ...
 msync(2) -- synchronize a mapped region
    The msync() system call writes all pages with shared modifications in the specified region of the process's address space back to permanent storage, and, if requested, invalidates cached data mapped ...
 munlock(2) -- lock (unlock) physical pages in memory
    The mlock system call locks into memory the physical pages associated with the virtual address range starting at addr for len bytes. The munlock call unlocks pages previously locked by one or more mlo...
 munlockall(2) -- lock (unlock) the address space of a process
    The mlockall system call locks into memory the physical pages associated with the address space of a process until the address space is unlocked, the process exits, or execs another program image. The...
 munmap(2) -- remove a mapping
    The munmap() system call deletes the mappings for the specified address range, and causes further references to addresses within the range to generate invalid memory references.
 nanosleep(2) -- high resolution sleep
    nanosleep() suspends execution of the calling process for the time specified. An unmasked signal will cause it to terminate the sleep early, regardless of the SA_RESTART value on the interrupting sign...
 nfssvc(2) -- NFS services
    The nfssvc() function is used by the NFS daemons to pass information into and out of the kernel and also to enter the kernel as a server daemon. The flags argument consists of several bits that show w...
 open(2) -- open or create a file for reading or writing
    The file name specified by path is opened for reading and/or writing as specified by the argument flags and the file descriptor returned to the calling process. The flags argument may indicate the fil...
 alpha/outb(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 alpha/outl(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 alpha/outw(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 pathconf(2) -- get configurable pathname variables
    The pathconf() and fpathconf() functions provides a method for applications to determine the current value of a configurable system limit or option variable associated with a pathname or file descript...
 pipe(2) -- create descriptor pair for interprocess communication
    The pipe() function creates a pipe, which is an object allowing unidirectional data flow, and allocates a pair of file descriptors. The first descriptor connects to the read end of the pipe, and the s...
 poll(2) -- synchronous I/O multiplexing
    poll() provides a mechanism for multiplexing I/O across a set of file descriptors. It is similar in function to select(2). Unlike select(2), however, it is possible to only pass in data corresponding ...
 pread(2) -- read input
    read() attempts to read nbytes of data from the object referenced by the descriptor d into the buffer pointed to by buf. readv() performs the same action, but scatters the input data into the iovcnt b...
 preadv(2) -- read input
    read() attempts to read nbytes of data from the object referenced by the descriptor d into the buffer pointed to by buf. readv() performs the same action, but scatters the input data into the iovcnt b...
 profil(2) -- control process profiling
    The profil() function enables or disables program counter profiling of the current process. If profiling is enabled, then at every clock tick, the kernel updates an appropriate count in the samples bu...
 ptrace(2) -- process tracing and debugging
    ptrace() provides tracing and debugging facilities. It allows one process (the tracing process) to control another (the traced process). Most of the time, the traced process runs normally, but when it...
 pwrite(2) -- write output
    write() attempts to write nbytes of data to the object referenced by the descriptor d from the buffer pointed to by buf. writev() performs the same action, but gathers the output data from the iovcnt ...
 pwritev(2) -- write output
    write() attempts to write nbytes of data to the object referenced by the descriptor d from the buffer pointed to by buf. writev() performs the same action, but gathers the output data from the iovcnt ...
 quotactl(2) -- manipulate filesystem quotas
    The quotactl() call enables, disables and manipulates filesystem quotas. A quota control command given by cmd operates on the given filename path for the given user id. The address of an optional comm...
 read(2) -- read input
    read() attempts to read nbytes of data from the object referenced by the descriptor d into the buffer pointed to by buf. readv() performs the same action, but scatters the input data into the iovcnt b...
 alpha/readb(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 alpha/readl(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 readlink(2) -- read value of a symbolic link
    readlink() places the contents of the symbolic link path in the buffer buf, which has size bufsiz. readlink does not append a NUL character to buf.
 readv(2) -- read input
    read() attempts to read nbytes of data from the object referenced by the descriptor d into the buffer pointed to by buf. readv() performs the same action, but scatters the input data into the iovcnt b...
 alpha/readw(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 reboot(2) -- reboot system or halt processor
    reboot() reboots the system. Only the superuser may reboot a machine on demand. However, a reboot is invoked automatically in the event of unrecoverable system failures. howto is a mask of options; th...
 recv(2) -- receive a message from a socket
    recvfrom() and recvmsg() are used to receive messages from a socket, and may be used to receive data on a socket whether or not it is connectionoriented. If from is non-null and the socket is not conn...
 recvfrom(2) -- receive a message from a socket
    recvfrom() and recvmsg() are used to receive messages from a socket, and may be used to receive data on a socket whether or not it is connectionoriented. If from is non-null and the socket is not conn...
 recvmsg(2) -- receive a message from a socket
    recvfrom() and recvmsg() are used to receive messages from a socket, and may be used to receive data on a socket whether or not it is connectionoriented. If from is non-null and the socket is not conn...
 rename(2) -- change the name of a file
    rename() causes the link named from to be renamed as to. If to exists, it is first removed. Both from and to must be of the same type (that is, both directories or both non-directories), and must resi...
 revoke(2) -- revoke file access
    The revoke function invalidates all current open file descriptors in the system for the file named by path. Subsequent operations on any such descriptors fail, with the exceptions that a read() from a...
 rfork(2) -- control new processes
    The fork functions (fork(2), vfork(2), and rfork()) create new processes. The new process (child process) is an exact copy of the calling process (parent process), except as outlined in the fork(2) ma...
 rmdir(2) -- remove a directory file
    rmdir() removes a directory file whose name is given by path. The directory must not have any entries other than `.' and `..'.
 sbrk(2) -- change data segment size
    The brk() and sbrk() functions are historical curiosities left over from earlier days before the advent of virtual memory management. The brk() function sets the break or lowest address of a process'...
 select(2) -- synchronous I/O multiplexing
    select() examines the I/O descriptor sets whose addresses are passed in readfds, writefds, and exceptfds to see if some of their descriptors are ready for reading, are ready for writing, or have an ex...
 semctl(2) -- semaphore control operations
    The semctl() system call provides a number of control operations on the semaphore specified by semnum and semid. The operation to be performed is specified in cmd (see below). arg is a union of the fo...
 semget(2) -- get semaphore set
    The semget() system call returns the semaphore identifier associated with key. A new set containing nsems semaphores is created if either key is equal to IPC_PRIVATE, or key does not have a semaphore ...
 semop(2) -- semaphore operations
    semop() provides a number of atomic operations on a set of semaphores. The semaphore set is specified by semid. sops is an array of semaphore operations, nsops is the number of operations in this arra...
 send(2) -- send a message from a socket
    send(), sendto(), and sendmsg() are used to transmit a message to another socket. send() may be used only when the socket is in a connected state, while sendto() and sendmsg() may be used at any time....
 sendmsg(2) -- send a message from a socket
    send(), sendto(), and sendmsg() are used to transmit a message to another socket. send() may be used only when the socket is in a connected state, while sendto() and sendmsg() may be used at any time....
 sendto(2) -- send a message from a socket
    send(), sendto(), and sendmsg() are used to transmit a message to another socket. send() may be used only when the socket is in a connected state, while sendto() and sendmsg() may be used at any time....
 setegid(2) -- set user and group ID
    The setuid() function sets the real and effective user IDs and the saved set-user-ID of the current process to the specified value. The setuid() function is permitted if the effective user ID is that ...
 seteuid(2) -- set user and group ID
    The setuid() function sets the real and effective user IDs and the saved set-user-ID of the current process to the specified value. The setuid() function is permitted if the effective user ID is that ...
 setgid(2) -- set user and group ID
    The setuid() function sets the real and effective user IDs and the saved set-user-ID of the current process to the specified value. The setuid() function is permitted if the effective user ID is that ...
 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_M...
 setitimer(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 in the structure at value. The set...
 setlogin(2) -- get/set login name
    The getlogin() routine returns the login name of the user associated with the current session, as previously set by setlogin(). The name is normally associated with a login shell at the time a session...
 setpgid(2) -- set process group
    setpgid() sets the process group of the specified process pid to the specified pgrp. If pid is zero, then the call applies to the current process. If the invoker is not the superuser, then the affecte...
 setpgrp(2) -- set process group
    setpgid() sets the process group of the specified process pid to the specified pgrp. If pid is zero, then the call applies to the current process. If the invoker is not the superuser, then the affecte...
 setpriority(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,...
 setregid(2) -- set real and effective group IDs
    The real and effective group IDs of the current process are set according to the arguments. If the real group ID is changed, the saved group ID is changed to the new value of the effective group ID. U...
 setresgid(2) -- get or set real, effective and saved user or group ID
    The setresuid() function sets the real, effective and saved user IDs of the current process. The analogous setresgid() sets the real, effective and saved group IDs. Privileged processes may set these ...
 setresuid(2) -- get or set real, effective and saved user or group ID
    The setresuid() function sets the real, effective and saved user IDs of the current process. The analogous setresgid() sets the real, effective and saved group IDs. Privileged processes may set these ...
 setreuid(2) -- set real and effective user IDs
    The real and effective user IDs of the current process are set according to the arguments. If the real user ID is changed, or the effective user ID is changed to a value other than the real user ID, t...
 setrlimit(2) -- control maximum system resource consumption
    Limits on the consumption of system resources by the current process and each process it creates may be obtained with the getrlimit() call, and set with the setrlimit() call. The resource parameter is...
 setsid(2) -- create session and set process group ID
    The setsid function creates a new session. The calling process is the session leader of the new session, is the process group leader of a new process group and has no controlling terminal. The calling...
 setsockopt(2) -- get and set options on sockets
    getsockopt() and setsockopt() manipulate the options associated with a socket. Options may exist at multiple protocol levels; they are always present at the uppermost ``socket'' level. When manipula...
 settimeofday(2) -- get/set date and time
    Note: timezone is no longer used; this information is kept outside the kernel. The system's notion of the current Greenwich time and the current time zone is obtained with the gettimeofday() call, an...
 setuid(2) -- set user and group ID
    The setuid() function sets the real and effective user IDs and the saved set-user-ID of the current process to the specified value. The setuid() function is permitted if the effective user ID is that ...
 shmat(2) -- map/unmap shared memory
    shmat() maps the shared memory segment associated with the shared memory identifier shmid into the address space of the calling process. The address at which the segment is mapped is determined by the...
 shmctl(2) -- shared memory control operations
    The shmctl() system call performs some control operations on the shared memory area specified by shmid. Each shared memory segment has a data structure associated with it, parts of which may be altere...
 shmdt(2) -- map/unmap shared memory
    shmat() maps the shared memory segment associated with the shared memory identifier shmid into the address space of the calling process. The address at which the segment is mapped is determined by the...
 shmget(2) -- get shared memory area identifier
    shmget() returns the shared memory identifier associated with the key key. A shared memory segment is created if either key is equal to IPC_PRIVATE, or key does not have a shared memory segment identi...
 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 SHUT_RD, further receives will be disallowed. If how is SHUT_WR, further s...
 sigaction(2) -- software signal facilities
    The system defines a set of signals that may be delivered to a process. Signal delivery resembles the occurrence of a hardware interrupt: the signal is normally blocked from further occurrence, the cu...
 sigaltstack(2) -- set and/or get signal stack context
    sigaltstack() allows users to define an alternate stack on which signals are to be processed. If ss is non-zero, it specifies a pointer to and the size of a signal stack on which to deliver signals, a...
 sigpending(2) -- get pending signals
    The sigpending function returns a mask of the signals pending for delivery to the calling process in the location indicated by set. Signals may be pending because they are currently masked, or transie...
 sigprocmask(2) -- manipulate current signal mask
    The sigprocmask() function examines and/or changes the current signal mask (those signals that are blocked from delivery). Signals are blocked if they are members of the current signal mask set. If se...
 sigreturn(2) -- return from signal
    sigreturn() allows users to atomically unmask, switch stacks, and return from a signal context. The processes signal mask and stack status are restored from the context. The system call does not retur...
 sigstack(2) -- set and/or get signal stack context
    The sigstack() function has been deprecated in favor of the interface described in sigaltstack(2).
 sigsuspend(2) -- atomically release blocked signals and wait for interrupt
    sigsuspend() temporarily changes the blocked signal mask to the set to which sigmask points, and then waits for a signal to arrive; on return the previous set of masked signals is restored. The signal...
 socket(2) -- create an endpoint for communication
    socket() creates an endpoint for communication and returns a descriptor. The domain parameter specifies a communications domain within which communication will take place; this selects the protocol fa...
 socketpair(2) -- create a pair of connected sockets
    The socketpair() call creates an unnamed pair of connected sockets in the specified domain d, of the specified type, and using the optionally specified protocol. The descriptors used in referencing th...
 stat(2) -- get file status
    The stat() function obtains information about the file pointed to by path. Read, write, or execute permission of the named file is not required, but all directories listed in the path name leading to ...
 statfs(2) -- get file system statistics
    statfs() returns information about a mounted file system. path is the path name of any file within the mounted file system. buf is a pointer to a statfs structure defined as follows: typedef struct { ...
 swapctl(2) -- modify swap configuration
    The swapctl() function is used to add and delete swap devices, and modify their configuration. The cmd parameter specifies the operation to be performed. The arg and misc parameters have different mea...
 symlink(2) -- make symbolic link to a file
    A symbolic link name2 is created to name1 (name2 is the name of the file created, name1 is the string used in creating the symbolic link). Either name may be an arbitrary path name; the files need not...
 sync(2) -- synchronize disk block in-core status with that on disk
    The sync() function forces a write of dirty (modified) buffers in the block buffer cache out to disk. The kernel keeps this information in core to reduce the number of disk I/O transfers required by t...
 sysarch(2) -- architecture-dependent system call
    sysarch() performs the architecture-dependent function specified by number with the arguments specified by the args pointer. args is a pointer to a structure defining the actual arguments of the funct...
 syscall(2) -- indirect system call
    syscall() performs the system call whose assembly language interface has the specified number with the specified arguments. Symbolic constants for system calls can be found in the header file
 truncate(2) -- truncate or extend a file to a specified length
    truncate() causes the file named by path or referenced by fd to be truncated or extended to length bytes in size. If the file was larger than this size, the extra data is lost. If the file was smaller...
 umask(2) -- set file creation mode mask
    The umask() routine sets the process's file mode creation mask to numask and returns the previous value of the mask. The 9 low-order access permission bits of numask are used by system calls, includi...
 unlink(2) -- remove directory entry
    The unlink() function removes the link named by path from its directory and decrements the link count of the file which was referenced by the link. If that decrement reduces the link count of the file...
 alpha/unmap_memory(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 unmount(2) -- mount or dismount a filesystem
    The mount() function grafts a filesystem object onto the system file tree at the point dir. The argument data describes the filesystem object to be mounted. The argument type tells the kernel how to i...
 utimes(2) -- set file access and modification times
    The access and modification times of the file named by path or referenced by fd are changed as specified by the argument times. If times is NULL, the access and modification times are set to the curre...
 vfork(2) -- spawn new process and block parent
    vfork() was originally used to create new processes without fully copying the address space of the old process, which is horrendously inefficient in a paged environment. It was useful when the purpose...
 wait(2) -- wait for process termination
    The wait() function suspends execution of its calling process until status information is available for a terminated child process, or a signal is received. On return from a successful wait() call, th...
 wait3(2) -- wait for process termination
    The wait() function suspends execution of its calling process until status information is available for a terminated child process, or a signal is received. On return from a successful wait() call, th...
 wait4(2) -- wait for process termination
    The wait() function suspends execution of its calling process until status information is available for a terminated child process, or a signal is received. On return from a successful wait() call, th...
 waitpid(2) -- wait for process termination
    The wait() function suspends execution of its calling process until status information is available for a terminated child process, or a signal is received. On return from a successful wait() call, th...
 write(2) -- write output
    write() attempts to write nbytes of data to the object referenced by the descriptor d from the buffer pointed to by buf. writev() performs the same action, but gathers the output data from the iovcnt ...
 alpha/writeb(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 alpha/writel(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 writev(2) -- write output
    write() attempts to write nbytes of data to the object referenced by the descriptor d from the buffer pointed to by buf. writev() performs the same action, but gathers the output data from the iovcnt ...
 alpha/writew(2) -- Alpha devices I/O ports and memory access functions
    The functions in libalpha give userland programs access to the I/O ports on the OpenBSD/alpha platform. The in*() functions return data read from the specified I/O port. The out*() functions write dat...
 _exit(2) -- terminate the calling process
    The _exit() function terminates a process with the following consequences: +o All open file descriptors in the calling process are closed. This may entail delays; for example, waiting for output to dr...
 __syscall(2) -- indirect system call
    syscall() performs the system call whose assembly language interface has the specified number with the specified arguments. Symbolic constants for system calls can be found in the header file
Page 0 of 0
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service