(2) - System calls

(2) - System calls


Intro
introduction to system calls, error numbers, privileges, large file support, threads, and lightweight processes

intro
introduction to system calls, error numbers, privileges, large file support, threads, and lightweight processes

access
determine accessibility of a file

acct
enable or disable process accounting

acl
manipulate a file's Access Control List (ACL)

aclipc
get or set an IPC object's ACL, return the number of ACL entries

adjtime
correct the time to allow synchronization of the system clock

alarm
set process alarm clock

auditbuf
get or set the audit buffer attributes

auditctl
get or set the status of auditing

auditdmp
write audit record to audit buffer

auditevt
get or set auditable events

auditlog
get or set audit log file attributes

brk, sbrk
change data segment space allocation

cg_bind
set a target CPU-Group for a process or its children

cg_current
obtain identifier for the current CPU-Group

cg_ids
return the CPU-Groups in the system

cg_info
get information about a CPU-Group

cg_memloc
determine physical location of memory pages

cg_processors
return the processors within a CPU-Group

chdir, fchdir
change working directory

chmod, fchmod
change mode of file

chown, lchown, fchown
change owner and group of a file

chroot
change root directory

close
close a file descriptor

creat64
create a new ordinary file or rewrite an existing one (supports large files)

creat, creat64
create a new file or rewrite an existing one

dup
duplicate an open file descriptor

errno
variable set by system calls on error

errno.h
system error numbers and names

exec: execl, execv, execle, execve, execlp, execvp
execute a file

exit, _exit, _Exit
terminate process

facl
manipulate a file's Access Control List (ACL)

fcntl
file control

filepriv
set, retrieve, or count the privileges associated with a file

fork1
create a new process to exec immediately

forkall
create a new process duplicating all threads and LWPs

fork, forkall, fork1
create a new process

fpathconf
get configurable pathname variables

fpathconf, pathconf
get configurable pathname variables

fstat
get status of an open file

fstat64
get status of an open file (supports large files)

fstatvfs
get file system information

fstatvfs64
get file system information (supports large files)

fsync
synchronize a file's in-memory state with that on the physical medium

ftruncate
set an open file to a specified length

ftruncate64
set an open file to a specified length (supports large files)

getcontext
get current user context

getdents
read directory entries and put in a file system independent format

getgroups, setgroups
get or set supplementary group access list IDs

getksym
get information for a global kernel symbol

getmsg
get next message off a stream

getmsg, getpmsg
get next message off a stream

getpid, getpgrp, getppid, getpgid
get process, process group, and parent process IDs

getpmsg
get next message off a stream

getrlimit
get maximum system resource consumption

getrlimit64
get maximum system resource consumption (supports large files)

getrlimit, getrlimit64, setrlimit, setrlimit64
control maximum system resource consumption

getsid
get session ID

gettimeofday
get date and time

gettimeofday, settimeofday
date and time functions

getuid, geteuid, getgid, getegid
get real user, effective user, real group, and effective group IDs

ioctl
control device

keyctl
sets and retrieves user and processor limits

kill
send a signal to a process or a group of processes

link
link to a file

lseek64
move read/write file pointer (supports large files)

lseek, lseek64
move read/write file pointer

lstat
get file or symbolic link status

lstat64
get file or symbolic link status (supports large files)

_lwp_cond_broadcast
broadcast a wake up to all LWPs waiting on a condition variable

_lwp_cond_signal
wake up a single LWP waiting on a condition variable

_lwp_cond_timedwait
wait on a condition variable for a limited time

_lwp_cond_wait
wait on a condition variable

_lwp_continue
continue LWP execution

_lwp_create
create a new LWP associated with the current process

_lwp_exit
terminate the calling LWP

_lwp_getprivate
get LWP-specific reference

_lwp_info
get time-accounting information of a single LWP

_lwp_kill
send a signal to a sibling lightweight process

_lwp_makecontext
make an LWP context

_lwp_mutex_lock
lock a mutex

_lwp_mutex_trylock
conditionally lock a mutex

_lwp_mutex_unlock
unlock a mutex

_lwp_self
get current LWP's identifier

_lwp_sema_init
initialize a semaphore

_lwp_sema_post
release a semaphore

_lwp_sema_trywait
conditionally acquire the semaphore

_lwp_sema_wait
acquire a semaphore

_lwp_setprivate
set LWP-specific reference

_lwp_suspend
suspend LWP execution

_lwp_wait
wait for termination of a sibling LWP

memcntl
memory management control

mincore
determine residency of memory pages

mkdir
make a directory

mknod
make a directory, or a special or ordinary file

mmap
map pages of memory

mmap64
map pages of memory (supports large files)

mmap, mmap64
map pages of memory

modload
load a loadable kernel module on demand

modpath
change loadable kernel modules search path

modstat
get information for loadable kernel modules

moduload
unload a loadable kernel module on demand

mount
mount a file system

mprotect
set protection of memory mapping

msgctl
message control operations

msgget
get message queue

msgop: msgsnd, msgrcv
message operations

munmap
unmap pages of memory

nice
change priority of a time-sharing process

open64
open for reading or writing (supports large files)

open, open64
open for reading or writing

pathconf
get configurable pathname variables

pause
suspend process until signal

pipe
create an interprocess channel

plock
lock into memory or unlock process, text, or data

poll
input/output multiplexing

p_online
take a processor online or offline or disable it

pread
atomic position and read

pread64
atomic position and read (supports large files)

pread, pread64
atomic position and read

priocntl
process scheduler control

priocntllist
generalized process scheduler control for a set of LWPs

priocntlset
generalized process scheduler control

processor_bind
bind or unbind to a processor

processor_exbind
exclusively bind or unbind a processor

processor_info
get information about a processor

procpriv
add, retrieve, remove, count, or put privileges associated with the calling process

profil
execution time profile

ptrace
process trace

putmsg
send a message on a stream

putmsg, putpmsg
send a message on a stream

putpmsg
send a message on a stream

pwrite
atomic position and write

pwrite64
atomic position and write (supports large files)

pwrite, pwrite64
atomic position and write

read
read from file

readlink
read the value of a symbolic link

read, readv
read from file

readv
read from file

rename
change the name of a file

rmdir
remove a directory

secadvise
get kernel advisory access information

semctl
semaphore control operations

semget
get set of semaphores

semop
semaphore operations

sendv
vectored write to a stream

sendv64
64-bit vectored write to a stream

sendv, sendv64
vectored write to a stream

setcontext
set current user context

setpgid
set process group ID

setpgrp
set process group ID

setrlimit
set maximum system resource consumption

setrlimit64
set maximum system resource consumption (supports large files)

setsid
set session ID

settimeofday
set date and time

setuid, setgid
set user and group IDs

shmat
attach shared memory segment

shmctl
shared memory control operations

shmdt
detach shared memory segment

shmget
get shared memory segment identifier

shmop: shmat, shmdt
shared memory operations

sigaction
detailed signal management

sigaltstack
set or get signal alternate stack context

sighold
add signal to signal mass

sigignore
set signal disposition to SIG_IGN

signal, sigset, sighold, sigrelse, sigignore, sigpause
simplified signal management

sigpause
suspend process until signal is received

sigpending
examine signals that are blocked and pending

sigprocmask
change or examine signal mask

sigrelse
remove signal from signal mass

sigsend, sigsendset
send a signal to a process or a group of processes

sigset
modify signal dispositions

sigsuspend
install a signal mask and suspend process until signal

sigwait
wait for a signal to be posted

stat
get file status

stat64
get file status (supports large files)

stat, stat64, lstat, lstat64 fstat, fstat64
get file status

statvfs
get information about mounted filesystems

statvfs64
get information about mounted filesystems (supports large files)

statvfs, statvfs64, fstatvfs, fstatvfs64
get file system information

stime
set time

swapctl
manage swap space

symlink
make a symbolic link to a file

sync
update super block

sysfs
get file system type information

sysi86
machine-specific functions

sysinfo
get and set system information strings

time
get time

times
get process and child process times

truncate
set a file to a specified length

truncate64
set a file to a specified length (supports large files)

truncate, truncate64, ftruncate, ftruncate64
set a file to a specified length

uadmin
administrative control

ulimit
get and set user limits

umask
set and get file creation mask

umount
unmount a file system

uname
get name of current UNIX system

unlink
remove directory entry

ustat
get file system statistics

utime
set file access and modification times

vfork
spawn new process in a virtual memory efficient way

wait
wait for child process to stop or terminate

waitid
wait for child process to change state

waitpid
wait for child process to change state

write
write on a file

writev
set of writes on a file

write, writev
write on a file

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004