Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference

Part III Section 2: System Calls

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

Section 2: System Calls

Table of Contents

Introduction
intro(2) - introduction to system calls
Symbols
__pset_rtctl(2) - real-time processor set control
_Exit(2) - terminate a process — see exit(2)
_exit(2) - terminate a process — see exit(2)
A
accept(2) - accept a connection on a socket
access(2) - determine accessibility of a file
acct(2) - enable or disable process accounting
acl(2) - set a file's Access Control List (ACL) information; JFS File Systems only
adjtime(2) - correct the time to synchronize the system clock
aio_cancel(2) - cancel an asynchronous I/O operation
aio_error(2) - return error status of an asynchronous I/O operation
aio_fsync(2) - force outstanding asynchronous operations on a file to the synchronized state
aio_read(2) - start an asynchronous read operation
aio_reap(2) - wait for multiple asynchronous I/O requests
aio_return(2) - return status of an asynchronous I/O operation
aio_suspend(2) - wait for an asynchronous I/O operation to complete
aio_write(2) - start asynchronous write operation
alarm(2) - set a process's alarm clock
audctl(2) - start or halt the auditing system and set or get audit files
audswitch(2) - suspend or resume auditing on the current process
audwrite(2) - write an audit record for a self-auditing process
B
bind(2) - bind an address to a socket
brk(2) - change data segment space allocation
C
chdir(2) - change working directory
chmod(2) - change file mode access permissions
chown(2) - change owner and group of a file
chroot(2) - change root directory
clock_getres(2) - clock operations — see clocks(2)
clock_gettime(2) - clock operations — see clocks(2)
clock_settime(2) - clock operations — see clocks(2)
clocks(2) - clock operations
close(2) - close a file descriptor
connect(2) - initiate a connection on a socket
coreadm(2) - application core file administration
CPU_IS_PA_RISC(2) - get configurable system variables — see sysconf(2)
cpu_is_pa_risc(2) - get configurable system variables — see sysconf(2)
crashconf(2) - configure system crash dumps
creat(2) - create a new file or rewrite an existing one
creat64(2) - non-POSIX standard API interfaces to support large files
D
dup(2) - duplicate an open file descriptor
dup2(2) - duplicate an open file descriptor to a specific slot
E
errno(2) - error indicator for function calls
exec(2) - execute a file
execl(2) - execute a file — see exec(2)
execle(2) - execute a file — see exec(2)
execlp(2) - execute a file — see exec(2)
execv(2) - execute a file — see exec(2)
execve(2) - execute a file — see exec(2)
execvp(2) - execute a file — see exec(2)
exit(2) - terminate a process
F
fadvise(2) - file advisory information
fchdir(2) - change working directory — see chdir(2)
fchmod(2) - change file mode access permissions — see chmod(2)
fchown(2) - change owner and group of a file — see chown(2)
fcntl(2) - file control
FD_CLR(2) - synchronous I/O multiplexing — see select(2)
FD_ISSET(2) - synchronous I/O multiplexing — see select(2)
FD_SET(2) - synchronous I/O multiplexing — see select(2)
FD_ZERO(2) - synchronous I/O multiplexing — see select(2)
fdatasync(2) - synchronize a file's in-core and on-disk states — see fsync(2)
fgetacl(2) - get access control list (ACL) information (HFS File Systems only) — see getacl(2)
flock(2) - apply or remove an advisory or enforced lock on an open file
fork(2) - create a new process
fpathconf(2) - get configurable path name variables — see pathconf(2)
fsctl(2) - file system control
fsetacl(2) - set access control list (ACL) information — see setacl(2)
fstat(2) - get file status
fstat64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
fstatfs(2) - get file system statistics — see statfs(2)
fstatvfs(2) - get file system information — see statvfs(2)
fstatvfs64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
fsync(2) - synchronize a file's in-core and on-disk states
ftime(2) - get date and time more precisely
ftruncate(2) - truncate a file to a specified length — see truncate(2)
ftruncate64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
G
getaccess(2) - get a user's effective access rights to a file
getacl(2) - get access control list (ACL) information (HFS File Systems only)
getaudid(2) - get the audit ID (aid) for the current process
getaudproc(2) - get the audit process flag for the calling process
getcontext(2) - get and set current user context; DEPRECATED
getdirentries(2) - get entries from a directory in a file-system-independent format
getdomainname(2) - get or set name of current Network Information Service domain
getdtablesize(2) - get the size of the per-process file descriptor table
getegid(2) - get real user, effective user, real group, and effective group IDs — see getuid(2)
geteuid(2) - get real user, effective user, real group, and effective group IDs — see getuid(2)
getevent(2) - get events and system calls that are currently being audited
getfh(2) - return file handle for file on remote node
getgid(2) - get real user, effective user, real group, and effective group IDs — see getuid(2)
getgroups(2) - get group access list
gethostid(2) - get an identifier for the current host
gethostname(2) - get name of current host system
getitimer(2) - get and set value of interval timer
getksym(2) - get information for local and global kernel symbols
getmsg(2) - receive next message from a STREAMS file
getpagesize(2) - get the current page size
getpeername(2) - get address of connected peer
getpgid(2) - get process, process group and parent process ID. — see getpid(2)
getpgrp(2) - get process, process group and parent process ID. — see getpid(2)
getpgrp2(2) - get process, process group and parent process ID. — see getpid(2)
getpid(2) - get process, process group and parent process ID.
getpmsg(2) - receive next message from a STREAMS file — see getmsg(2)
getppid(2) - get process, process group and parent process ID. — see getpid(2)
getpriority(2) - get or set process priority
getprivgrp(2) - get and set special attributes for group
getrlimit(2) - control maximum resource consumption
getrlimit64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
getrusage(2) - get information about resource utilization
getsid(2) - get session ID
getsockname(2) - get socket address
getsockopt(2) - get and set options on sockets
gettimeofday(2) - get the date and time
gettune(2) - get the value of a kernel tunable parameter
getuid(2) - get real user, effective user, real group, and effective group IDs
gtty(2) - control terminal device (Bell Version 6 compatibility) — see stty(2)
I
ioctl(2) - control device
iscomsec(2) - check if system has been converted to a trusted system
K
kill(2) - send a signal to a process or a group of processes
killpg(2) - 4.2 BSD-compatible process control facilities
L
lchown(2) - change owner and group of a file — see chown(2)
link(2) - link to a file
lio_listio(2) - start a list of asynchronous I/O operations
listen(2) - listen for connections on a socket
lockf(2) - provide semaphores and record locking on files
lockf64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
lseek(2) - move read/write file pointer; seek
lseek64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
lstat(2) - get symbolic link status
lstat64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
lsync(2) - update disk — see sync(2)
M
madvise(2) - advise the system of a process's expected paging behavior
makecontext(2) - manipulate user contexts; DEPRECATED
memcntl(2) - memory management control
mkdir(2) - make a directory file
mknod(2) - make a directory, special, or ordinary file
mlock(2) - lock a segment of the process virtual address space in memory
mlockall(2) - lock a process virtual address space in memory
mmap(2) - map pages of memory
mmap64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
modload(2) - load kernel modules on demand
modpath(2) - change global search path for dynamically loadable kernel modules
modstat(2) - get information for a dynamically loaded kernel module
moduload(2) - unload a kernel module on demand
mount(2) - mount a file system
mpctl(2) - multiprocessor control
mprotect(2) - set or check protection of memory mapping
mq_close(2) - close a message queue descriptor
mq_getattr(2) - get status information and attributes associated with a message queue
mq_notify(2) - register or cancel a notification request with a message queue
mq_open(2) - create or open a message queue
mq_receive(2) - receive a message from a message queue
mq_send(2) - send a message to a message queue
mq_setattr(2) - set the blocking status of a message queue associated with a descriptor
mq_unlink(2) - unlink a message queue
msem_init(2) - initialize a semaphore in a mapped file or anonymous memory region
msem_lock(2) - lock a semaphore
msem_remove(2) - remove a semaphore in mapped file or anonymous region
msem_unlock(2) - unlock a semaphore
msgctl(2) - message control operations
msgget(2) - get message queue
msgop(2) - message operations
msgrcv(2) - message operations — see msgop(2)
msgsnd(2) - message operations — see msgop(2)
msync(2) - synchronize the memory of a mapped file with physical storage
munlock(2) - unlock a segment of the process virtual address space
munlockall(2) - unlock the entire virtual address space of a process
munmap(2) - unmap pages of memory
mvalid(2) - check memory region for validity
N
nanosleep(2) - high resolution sleep
nice(2) - change priority of a process
O
open(2) - open file for reading or writing
open64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
P
pathconf(2) - get configurable path name variables
pause(2) - suspend process until signal
pipe(2) - create an interprocess channel
plock(2) - lock process, text, data, stack, or shared library in memory
poll(2) - monitor I/O conditions on multiple file descriptors
posix_fadvise(2) - file advisory information
posix_fadvise64(2) - file advisory information — see posix_fadvise(2)
postwait(2) - lightweight synchronization mechanism
pread(2) - read from file — see read(2)
pread64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
prealloc(2) - preallocate fast disk storage
prealloc64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
pri_hpux_to(2) - real-time scheduling operations — see rtsched(2)
PRI_HPUX_TO_POSIX(2) - real-time scheduling operations — see rtsched(2)
pri_hpux_to_posix(2) - real-time scheduling operations — see rtsched(2)
pri_posix_t(2) - real-time scheduling operations — see rtsched(2)
PRI_POSIX_TO_HPUX(2) - real-time scheduling operations — see rtsched(2)
pri_posix_to_hpux(2) - real-time scheduling operations — see rtsched(2)
profil(2) - execution time profile
pselect(2) - synchronous I/O multiplexing — see select(2)
pset_assign(2) - change processor set assignment
pset_bind(2) - bind process or thread to a processor set
pset_create(2) - create a processor set
pset_ctl(2) - processor set control
pset_destroy(2) - destroy a processor set
pset_getattr(2) - manage processor set attributes
pset_setattr(2) - manage processor set attributes — see pset_getattr(2)
pstat(2) - an infrastructure for obtaining information from the kernel
pstat_getcommandline(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getcrashdev(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getcrashinfo(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getdisk(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getdynamic(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getfile2(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getfiledetails(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getio(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getipc(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getlocality(2) - returns system-wide or per-process information of a ccNUMA system
pstat_getlv(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getlwp(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getmpathname(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getmsg(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getnode(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getpathname(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getpmq(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getproc(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getprocessor(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getproclocality(2) - returns system-wide or per-process information of a ccNUMA system — see pstat_getlocality(2)
pstat_getprocvm(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getpsem(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getpset(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getsem(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getshm(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getsocket(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getstable(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getstatic(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getstream(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getswap(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
pstat_getvminfo(2) - an infrastructure for obtaining information from the kernel — see pstat(2)
putmsg(2) - send a message on a stream
putpmsg(2) - send a message on a stream — see putmsg(2)
pw_getukid(2) - lightweight synchronization mechanism — see postwait(2)
pw_getvmax(2) - lightweight synchronization mechanism — see postwait(2)
pw_post(2) - lightweight synchronization mechanism — see postwait(2)
pw_postv(2) - lightweight synchronization mechanism — see postwait(2)
pw_wait(2) - lightweight synchronization mechanism — see postwait(2)
pwrite(2) - write on a file — see write(2)
pwrite64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
Q
quotactl(2) - manipulate disk quotas
R
raise(2) - send a signal to a process or a group of processes — see kill(2)
read(2) - read from file
readlink(2) - read the contents of a symbolic link
readv(2) - read from file — see read(2)
reboot(2) - boot the system
recv(2) - receive a message from a socket
recvfrom(2) - receive a message from a socket — see recv(2)
recvmsg(2) - receive a message from a socket — see recv(2)
rename(2) - change the name of a file
rmdir(2) - remove a directory file
rtprio(2) - change or read real-time priority
rtsched(2) - real-time scheduling operations
S
sbrk(2) - change data segment space allocation — see brk(2)
sched_get_priority_max(2) - real-time scheduling operations — see rtsched(2)
sched_get_priority_min(2) - real-time scheduling operations — see rtsched(2)
sched_getparam(2) - real-time scheduling operations — see rtsched(2)
sched_getscheduler(2) - real-time scheduling operations — see rtsched(2)
sched_rr_get_interval(2) - real-time scheduling operations — see rtsched(2)
sched_setparam(2) - real-time scheduling operations — see rtsched(2)
sched_setscheduler(2) - real-time scheduling operations — see rtsched(2)
sched_yield(2) - real-time scheduling operations — see rtsched(2)
select(2) - synchronous I/O multiplexing
sem_close(2) - close a named POSIX semaphore
sem_destroy(2) - destroy an unnamed POSIX semaphore
sem_getvalue(2) - get the value of a POSIX semaphore
sem_init(2) - initialize an unnamed POSIX semaphore
sem_open(2) - create/open a named POSIX semaphore
sem_post(2) - unlock a POSIX semaphore
sem_trywait(2) - lock a POSIX semaphore — see sem_wait(2)
sem_unlink(2) - unlink a named POSIX semaphore
sem_wait(2) - lock a POSIX semaphore
semctl(2) - semaphore control operations
semget(2) - get set of semaphores
semop(2) - semaphore operations
semtimedop(2) - semaphore operations — see semop(2)
send(2) - send a message from a socket
sendfile(2) - send the contents of a file through a socket
sendfile64(2) - send the contents of a Large File through a socket
sendmsg(2) - send a message from a socket — see send(2)
sendto(2) - send a message from a socket — see send(2)
serialize(2) - force target process to run serially with other processes
setacl(2) - set access control list (ACL) information
setaudid(2) - set the audit ID (aid) for the current process
setaudproc(2) - controls process level auditing for the current process and its decendents
setcontext(2) - get and set current user context; DEPRECATED — see getcontext(2)
setdomainname(2) - get or set name of current Network Information Service domain — see getdomainname(2)
setegid(2) - set effective user and group IDs — see seteuid(2)
seteuid(2) - set effective user and group IDs
setevent(2) - set current events and system calls which are to be audited
setgid(2) - set user and group IDs — see setuid(2)
setgroups(2) - set group access list
sethostname(2) - set name of current host system
setitimer(2) - get and set value of interval timer — see getitimer(2)
setpgid(2) - set process group ID for job control
setpgrp(2) - set process group ID
setpgrp2(2) - set process group ID for job control — see setpgid(2)
setpgrp3(2) - create session and set process group ID; for HP-UX 9.x compatibility.
setpriority(2) - get or set process priority — see getpriority(2)
setprivgrp(2) - get and set special attributes for group — see getprivgrp(2)
setregid(2) - sets the real and effective group IDs
setresgid(2) - set real, effective, and saved user and group IDs — see setresuid(2)
setresuid(2) - set real, effective, and saved user and group IDs
setreuid(2) - set real and effective user IDs
setrlimit(2) - control maximum resource consumption — see getrlimit(2)
setrlimit64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
setsid(2) - create session and set process group ID
setsockopt(2) - get and set options on sockets — see getsockopt(2)
settimeofday(2) - set the date and time
settune(2) - set the value of a kernel tunable parameter
settune_txn(2) - sets the values of kernel tunable parameters in a transaction
setuid(2) - set user and group IDs
setuname(2) - get information about computer system; set node name (system name) — see uname(2)
shm_open(2) - create/open a shared memory object
shm_unlink(2) - unlink a shared memory object
shmat(2) - shared memory operations — see shmop(2)
shmctl(2) - shared memory control operations
shmdt(2) - shared memory operations — see shmop(2)
shmget(2) - get shared memory segment
shmop(2) - shared memory operations
shutdown(2) - shut down a socket
sigaction(2) - examine and change signal action
sigaltstack(2) - set and/or get signal alternate stack context.
siginterrupt(2) - allow signals to interrupt functions
signal(2) - signal management
sigpending(2) - examine pending signals
sigprocmask(2) - examine and change blocked signals
sigqueue(2) - queue a signal to a process
sigsend(2) - send a signal to a process or a group of processes
sigsendset(2) - send a signal to a process or a group of processes — see sigsend(2)
sigspace(2) - assure sufficient signal stack space
sigsuspend(2) - wait for a signal
sigtimedwait(2) - synchronously accept a signal — see sigwait(2)
sigvec(2) - 4.2 BSD-compatible process control facilities — see killpg(2)
sigwait(2) - synchronously accept a signal
sigwaitinfo(2) - synchronously accept a signal — see sigwait(2)
socket(2) - create an endpoint for communication
socketpair(2) - create a pair of connected sockets
sprofil(2) - execution time profile for disjointed text spaces
stat(2) - get file status
stat64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
statfs(2) - get file system statistics
statvfs(2) - get file system information
statvfs64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
stime(2) - set time and date
stream(2) - STREAMS enhancements to standard system calls
stty(2) - control terminal device (Bell Version 6 compatibility)
swapcontext(2) - manipulate user contexts; DEPRECATED — see makecontext(2)
swapctl(2) - manage and configure system swap space
swapon(2) - add swap space for interleaved paging and swapping
symlink(2) - make symbolic link to a file
sync(2) - update disk
sysconf(2) - get configurable system variables
sysfs(2) - get file system type information
T
time(2) - get time
timer_create(2) - timer operations — see timers(2)
timer_delete(2) - timer operations — see timers(2)
timer_getoverrun(2) - timer operations — see timers(2)
timer_gettime(2) - timer operations — see timers(2)
timer_settime(2) - timer operations — see timers(2)
timers(2) - timer operations
times(2) - get process and child process times
truncate(2) - truncate a file to a specified length
truncate64(2) - non-POSIX standard API interfaces to support large files — see creat64(2)
ttrace(2) - tracing facility for multithreaded processes
ttrace_wait(2) - wait for ttrace event
tuneinfo2(2) - retrieve detailed information about kernel tunable parameters
U
ualarm(2) - set the interval timer
ulimit(2) - get and set user limits
umask(2) - set and get file creation mask
umount(2) - unmount a file system
umount2(2) - unmount a file system — see umount(2)
uname(2) - get information about computer system; set node name (system name)
unlink(2) - remove directory entry; delete file
usleep(2) - suspend execution for an interval
ustat(2) - get mounted file system statistics
utime(2) - set file access and modification times
utimes(2) - set file access and modification times
V
vfork(2) - spawn new process; share virtual memory
vfsmount(2) - mount a file system
W
wait(2) - wait for child process to stop or terminate
wait3(2) - wait for child process to change state
wait4(2) - wait for child process to change state — see wait3(2)
waitid(2) - wait for child process to change state
waitpid(2) - wait for child process to stop or terminate — see wait(2)
write(2) - write on a file
writev(2) - write on a file — see write(2)
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.