4 Pages

sigvec.3

Course: RELEASE 0, Fall 2009
School: Harvard
Rating:
 
 
 
 
 

Word Count: 1228

Document Preview

BSD SIGVEC(3) Programmer's Manual SIGVEC(3) NAME sigvec - software signal facilities SYNOPSIS #include <signal.h> struct sigvec { void (*sv_handler)(); sigset_t sv_mask; int sv_flags; }; sigvec(int sig, struct sigvec *vec, struct sigvec *ovec); DESCRIPTION This interface is made...

Register Now

Unformatted Document Excerpt

Coursehero >> Massachusetts >> Harvard >> RELEASE 0

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
BSD SIGVEC(3) Programmer's Manual SIGVEC(3) NAME sigvec - software signal facilities SYNOPSIS #include <signal.h> struct sigvec { void (*sv_handler)(); sigset_t sv_mask; int sv_flags; }; sigvec(int sig, struct sigvec *vec, struct sigvec *ovec); DESCRIPTION This interface is made obsolete by sigaction(2). 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 blocked from further occurrence, the current process context is saved, and a new one is built. A process may specify a handler to which a signal is delivered, or specify that a signal is to be blocked or ignored. A process may also specify that a default action is to be taken by the system when a signal occurs. Normally, signal handlers execute on the current stack of the process. This may be changed, on a per-handler basis, so that signals are taken on a special signal stack. All signals have the same priority. Signal routines execute with the sig- nal that caused their invocation blocked, but other signals may yet oc- cur. A global signal mask defines the set of signals currently blocked from delivery to a process. The signal mask for a process is initialized from that of its parent (normally 0). It may be changed with a sig- block(2) or sigsetmask(2) call, or when a signal is delivered to the pro- cess. When a signal condition arises for a process, the signal is added to a set of signals pending for the process. If the signal is not currently blocked by the process then it is delivered to the process. When a sig- nal is delivered, the current state of the process is saved, a new signal mask is calculated (as described below), and the signal handler is in- voked. The call to the handler is arranged so that if the signal han- dling routine returns normally the process will resume execution in the context from before the signal's delivery. If the process wishes to re- sume in a different context, then it must arrange to restore the previous context itself. When a signal is delivered to a process a new signal mask is installed for the duration of the process' signal handler (or until a sigblock or sigsetmask call is made). This mask is formed by taking the current sig- nal mask, adding the signal to be delivered, and or'ing in the signal mask associated with the handler to be invoked. Sigvec() assigns a handler for a specific signal. If vec is non-zero, it specifies a handler routine and mask to be used when delivering the spec- ified signal. Further, if the SV_ONSTACK bit is set in sv_flags, the system will deliver the signal to the process on a signal stack, speci- fied with sigstack(2). If ovec is non-zero, the previous handling infor- mation for the signal is returned to the user. The following is a list of all signals with names as in the include file <signal.h>: NAME Default Action Description SIGHUP terminate process terminal line hangup SIGINT terminate process interrupt program SIGQUIT create core image quit program SIGILL create core image illegal instruction SIGTRAP create core image trace trap SIGABRT create core image abort(2) call (formerly SIGIOT) SIGEMT create core image emulate instruction executed SIGFPE create core image floating-point exception SIGKILL terminate process kill program SIGBUS create core image bus error SIGSEGV create core image segmentation violation SIGSYS create core image system call given invalid argument SIGPIPE terminate process write on a pipe with no reader SIGALRM terminate process real-time timer expired SIGTERM terminate process software termination signal SIGURG discard signal urgent condition present on socket SIGSTOP stop process stop (cannot be caught or ignored) SIGTSTP stop process stop signal generated from keyboard SIGCONT signal discard continue after stop SIGCHLD discard signal child status has changed SIGTTIN stop process background read attempted from control terminal SIGTTOU stop process background write attempted to control terminal SIGIO discard signal I/O is possible on a descriptor (see fcntl(2)) SIGXCPU terminate process cpu time limit exceeded (see setrlimit(2)) SIGXFSZ terminate process file size limit exceeded (see setrlimit(2)) SIGVTALRM terminate process virtual time alarm (see setitimer(2)) SIGPROF terminate process profiling timer alarm (see setitimer(2)) SIGWINCH discard signal Window size change SIGINFO discard signal status request from keyboard SIGUSR1 terminate process User defined signal 1 SIGUSR2 terminate process User defined signal 2 Once a signal handler is installed, it remains installed until another sigvec() call is made, or an execve(2) is performed. A signal-specific default action may be reset by setting sv_handler to SIG_DFL. The de- faults are process termination, possibly with core dump; no action; stop- ping the process; or continuing the process. See the above signal list for each signal's default action. If sv_handler is SIG_IGN current and pending instances of the signal are ignored and discarded. If a signal is caught during the system calls listed below, the call is normally restarted. The call can be forced to terminate prematurely with an EINTR error return by setting the SV_INTERRUPT bit in sv_flags. The affected system calls include read(2), write(2), sendto(2), recvfrom(2), sendmsg(2) and recvmsg(2) on a communications channel or a slow device (such as a terminal, but not a regular file) and during a wait(2) or ioctl(2). However, calls that have already committed are not restarted, but instead return a partial success (for example, a short read count). After a fork(2) or vfork(2) all signals, the signal mask, the signal stack, and the restart/interrupt flags are inherited by the child. Execve(2) reinstates the default action for all signals which were caught and resets all signals to be caught on the user stack. Ignored signals remain ignored; the signal mask remains the same; signals t...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Harvard - RELEASE - 0
VIS(3) BSD Programmer's Manual VIS(3)NAME vis - visually encode charactersSYNOPSIS #include &lt;vis.h&gt; char * vis(char *dst, char c, int flag, char nextc); int strvis(char *dst
Harvard - RELEASE - 0
PUTC(3) BSD Programmer's Manual PUTC(3)NAME fputc, putc, putchar, putw - output a character or word to a streamSYNOPSIS #include &lt;stdio.h&gt; int fputc(int c, FILE *stream); int
Harvard - RELEASE - 0
LSEEK(2) BSD Programmer's Manual LSEEK(2)NAME lseek - reposition read/write file offsetSYNOPSIS #include &lt;unistd.h&gt; off_t lseek(int fildes, off_t offset, int whence);DESCRIPTION The
Harvard - RELEASE - 0
CREAT(3) BSD Programmer's Manual CREAT(3)NAME creat - create a new fileSYNOPSIS #include &lt;sys/types.h&gt; #include &lt;sys/stat.h&gt; #include &lt;fcntl.h&gt; int creat(const char *path, mode_t
Harvard - RELEASE - 0
SCANDIR(3) BSD Programmer's Manual SCANDIR(3)NAME scandir, alphasort - scan a directorySYNOPSIS #include &lt;sys/types.h&gt; #include &lt;dirent.h&gt; int scandir(const char *dirname, struct dirent *
Harvard - RELEASE - 0
TOLOWER(3) BSD Programmer's Manual TOLOWER(3)NAME tolower - upper case to lower case letter conversionSYNOPSIS #include &lt;ctype.h&gt; int tolower(int c);DESCRIPTION The tolower() function c
Harvard - RELEASE - 0
STRCMP(3) BSD Programmer's Manual STRCMP(3)NAME strcmp - compare stringsSYNOPSIS #include &lt;string.h&gt; int strcmp(const char *s1, const char *s2); int strncmp(const char *s1, const
Harvard - RELEASE - 0
MMAP(2) BSD Programmer's Manual MMAP(2)NAME mmap - map files or devices into memorySYNOPSIS #include &lt;sys/types.h&gt; #include &lt;sys/mman.h&gt; caddr_t mmap(caddr_t addr, size_t len, int p
Harvard - RELEASE - 0
ATEXIT(3) BSD Programmer's Manual ATEXIT(3)NAME atexit - register a function to be called on exitSYNOPSIS #include &lt;stdlib.h&gt; int atexit(void (*function)(void);DESCRIPTION The atexit(
Harvard - RELEASE - 0
MEMORY(3) BSD Programmer's Manual MEMORY(3)NAME malloc, free, realloc, calloc, alloca - general memory allocation opera- tionsSYNOPSIS #include &lt;stdlib.h&gt; void * malloc(size_t size);
Harvard - RELEASE - 0
ISASCII(3) BSD Programmer's Manual ISASCII(3)NAME isascii - test for ASCII characterSYNOPSIS #include &lt;ctype.h&gt; int isascii(int c);DESCRIPTION The isascii() function tests for an ASCII
Harvard - RELEASE - 0
RMDIR(2) BSD Programmer's Manual RMDIR(2)NAME rmdir - remove a directory fileSYNOPSIS #include &lt;unistd.h&gt; int rmdir(const char *path);DESCRIPTION Rmdir() removes a directory file wh
Harvard - RELEASE - 0
IOCTL(2) BSD Programmer's Manual IOCTL(2)NAME ioctl - control deviceSYNOPSIS #include &lt;sys/ioctl.h&gt; int ioctl(int d, unsigned long request, char *argp);DESCRIPTION The ioctl() funct
Harvard - RELEASE - 0
MEMMOVE(3) BSD Programmer's Manual MEMMOVE(3)NAME memmove - copy byte stringSYNOPSIS #include &lt;string.h&gt; void * memmove(void *dst, const void *src, size_t len);DESCRIPTION The memmove()
Harvard - RELEASE - 0
SYSLOG(3) BSD Programmer's Manual SYSLOG(3)NAME syslog, vsyslog, openlog, closelog, setlogmask - control system logSYNOPSIS #include &lt;syslog.h&gt; #include &lt;varargs.h&gt; void syslog(int prio
Harvard - RELEASE - 0
MUNMAP(2) BSD Programmer's Manual MUNMAP(2)NAME munmap - remove a mappingSYNOPSIS #include &lt;sys/types.h&gt; #include &lt;sys/mman.h&gt; int munmap(caddr_t addr, size_t len);DESCRIPTION Th
Harvard - RELEASE - 0
SWAB(3) BSD Programmer's Manual SWAB(3)NAME swab - swap adjacent bytesSYNOPSIS #include &lt;string.h&gt; void swab(const void *src, void *dst, size_t len);DESCRIPTION The function swab(
Harvard - RELEASE - 0
GETGROUPS(2) BSD Programmer's Manual GETGROUPS(2)NAME getgroups - get group access listSYNOPSIS #include &lt;sys/param.h&gt; #include &lt;sys/types.h&gt; #include &lt;unistd.h&gt; int getgroups(int gidset
Harvard - RELEASE - 0
CHOWN(2) BSD Programmer's Manual CHOWN(2)NAME chown, fchown - change owner and group of a fileSYNOPSIS #include &lt;sys/types.h&gt; #include &lt;unistd.h&gt; int chown(const char *path, uid_t own
Harvard - RELEASE - 0
ISALPHA(3) BSD Programmer's Manual ISALPHA(3)NAME isalpha - alphabetic character testSYNOPSIS #include &lt;ctype.h&gt; int isalpha(int c);DESCRIPTION The isalpha() function tests for any char
Harvard - RELEASE - 0
MEMSET(3) BSD Programmer's Manual MEMSET(3)NAME memset - write a byte to byte stringSYNOPSIS #include &lt;string.h&gt; void * memset(void *b, int c, size_t len);DESCRIPTION The memset() fun
Harvard - RELEASE - 0
REALLOC(3) BSD Programmer's Manual REALLOC(3)NAME realloc - reallocation of memory functionSYNOPSIS #include &lt;stdlib.h&gt; void * realloc(void *ptr, size_t size);DESCRIPTION The realloc()
Harvard - RELEASE - 0
WAIT(2) BSD Programmer's Manual WAIT(2)NAME wait, waitpid, wait4, wait3 - wait for process terminationSYNOPSIS #include &lt;sys/types.h&gt; #include &lt;sys/wait.h&gt; pid_t wait(int *status);
Harvard - RELEASE - 0
GETPWENT(3) BSD Programmer's Manual GETPWENT(3)NAME getpwent, getpwnam, getpwuid, setpassent, setpwent, endpwent - password database operationsSYNOPSIS #include &lt;sys/types.h&gt; #include &lt;pwd.h&gt;
Harvard - RELEASE - 0
SYSCONF(3) BSD Programmer's Manual SYSCONF(3)NAME sysconf - get configurable system variablesSYNOPSIS #include &lt;unistd.h&gt; long sysconf(int name);DESCRIPTION This interface is defined by
Harvard - RELEASE - 0
ASSERT(3) BSD Programmer's Manual ASSERT(3)NAME assert - expression verification macroSYNOPSIS #include &lt;assert.h&gt; assert(expression);DESCRIPTION The assert() macro tests the given express
Harvard - RELEASE - 0
TZFILE(5) TZFILE(5)NAME tzfile - time zone informationSYNOPSIS #include &lt;tzfile.h&gt;DESCRIPTION The time zone information files used by tzset(3) begin with bytes re
Harvard - RELEASE - 0
HOSTS_ACCESS(5) HOSTS_ACCESS(5)NAME hosts_access - format of host access control filesDESCRIPTION This manual page describes a simple access control lan- guage that is based on client
Harvard - RELEASE - 0
objcopy(1) GNU Development Tools objcopy(1)NAME objcopy - copy and translate object filesSYNOPSIS objcopy [-F bfdname | -target=bfdname] [-I bfdname | -input-target=bfdname]
Harvard - RELEASE - 0
RE_FORMAT(7) RE_FORMAT(7)NAME re_format - POSIX 1003.2 regular expressionsDESCRIPTION Regular expressions (`RE's), as defined in POSIX 1003.2, come in two forms: modern REs (roughl
Harvard - RELEASE - 0
FILE(1) FILE(1)NAME file - determine file typeSYNOPSIS file [ -vczL ] [ -f namefile ] [ -m magicfiles ] file .DESCRIPTION This manual page documents version 3.22 of the
Harvard - RELEASE - 0
ar(1) GNU Development Tools ar(1)NAME ar - create, modify, and extract from archives.SYNOPSIS ar [-]{dmpqrtx}[abcilosuvV] [membername] archive files.DESCRIPTION The GNU ar program creat
Harvard - RELEASE - 0
TSET(1) BSD Reference Manual TSET(1)NAME tset - terminal initializationSYNOPSIS tset [-IQrSs] [-] [-e ch] [-i ch] [-k ch] [-m mapping] [terminal] reset [-IQrSs] [-] [-e ch] [-i ch] [-k ch]
Harvard - RELEASE - 0
HOSTS_OPTIONS(5) HOSTS_OPTIONS(5)NAME hosts_options - host access control language extensionsDESCRIPTION This document describes optional extensions to the lan- guage described in the
Harvard - RELEASE - 0
EDITLINE(3) BSD Programmer's Manual EDITLINE(3)NAME editline, el_init, el_end, el_reset, el_gets, el_getc, el_push, el_parse, el_set, el_source, el_resize, el_line, el_insertstr, el_deletestr, history_i
Harvard - RELEASE - 0
MAIL(1) BSD Reference Manual MAIL(1)NAME mail - send and receive mailSYNOPSIS mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr. mail [-iInNv] -f [name] mail [-iInNv] [-u us
Harvard - RELEASE - 0
NETINTRO(4) BSD Programmer's Manual NETINTRO(4)NAME networking - introduction to networking facilitiesSYNOPSIS #include &lt;sys/socket.h&gt; #include &lt;net/route.h&gt; #include &lt;net/if.h&gt;DESCRIPTION
Harvard - RELEASE - 0
TUN(4) BSD Programmer's Manual TUN(4)NAME tun - tunnel software network interfaceSYNOPSIS pseudo-device tun [count]DESCRIPTION The tun interface is a software loopback mechanism that can b
Harvard - RELEASE - 0
MDOC(7) BSD Reference Manual MDOC(7)NAME mdoc - quick reference guide for the -mdoc macro packageSYNOPSIS groff -mdoc files .DESCRIPTION The -mdoc package is a set of content-based and do
Harvard - RELEASE - 0
SYMLINK(7) BSD Reference Manual SYMLINK(7)NAME symlink - symbolic link handlingSYMBOLIC LINK HANDLING Symbolic links are files that act as pointers to other files. To under- stand their behavior
Harvard - RELEASE - 0
CD(4) BSD Programmer's Manual CD(4)NAME cd - SCSI CD-ROM driverSYNOPSIS cd* at scsibus? target ? lun ? cd1 at scsibus0 target 4 lun 0DESCRIPTION The cd driver provides support for a
Harvard - RELEASE - 0
EP(4) BSD Programmer's Manual EP(4)NAME ep - Ethernet driver for 3Com Etherlink III (3c509, 3c579, 3c59x)SYNOPSIS ep? at isa? port ? irq ? ep* at isapnp? ep* at eisa? slot ? ep*
Harvard - RELEASE - 0
LINK(5) BSD Programmer's Manual LINK(5)NAME link - dynamic loader and link editor interfaceSYNOPSIS #include &lt;link.h&gt;DESCRIPTION The include file &lt;link.h&gt; declares several structures that ar
Harvard - RELEASE - 0
MAGIC(5) MAGIC(5)NAME magic - file command's magic number fileDESCRIPTION This manual page documents the format of the magic file as used by the file(1) command, version 3.2
Harvard - RELEASE - 0
RPCGEN(1) BSD Reference Manual RPCGEN(1)NAME rpcgen - RPC protocol compilerSYNOPSIS rpcgen infile rpcgen [-D [name=value] [-A] [-M] [-T] [-K secs] infile rpcgen -c | -h | -l | -m | -t | -S
Harvard - RELEASE - 0
LS(1) BSD Reference Manual LS(1)NAME ls - list directory contentsSYNOPSIS ls [-ACFLRSTWacdfikloqrstu1] [file .]DESCRIPTION For each operand that names a file of a type other than dire
Harvard - RELEASE - 0
CRONTAB(5) CRONTAB(5)NAME crontab - tables for driving cronDESCRIPTION A crontab file contains instructions to the cron(8) daemon of the general form: `run this command at this
Harvard - RELEASE - 0
CRYPT(3) BSD Programmer's Manual CRYPT(3)NAME crypt, setkey, encrypt, des_setkey, des_cipher - DES encryptionSYNOPSIS char *crypt(const char *key, const char *setting); int setkey(con
Harvard - RELEASE - 0
FSCK_FFS(8) BSD System Manager's Manual FSCK_FFS(8)NAME fsck_ffs - Fast File System consistency check and interactive repairSYNOPSIS fsck_ffs [-b block#] [-c level] [-d] [-f] [-m mode] [-p] [-y] [-n]
Harvard - RELEASE - 0
ME(7) ME(7)NAME me - macros for formatting papersSYNOPSIS nroff -me [ options ] file . troff -me [ options ] file .DESCRIPTION This package of nroff and troff
Harvard - RELEASE - 0
PR(1) BSD Reference Manual PR(1)NAME pr - print filesSYNOPSIS pr [+page] [-column] [-adFmrt] [-e] [char] [gap] [-h header] [-i] [char] [gap] [-l lines] [-o offset] [-s] [char] [-n] [
Harvard - RELEASE - 0
AT(1) BSD Reference Manual AT(1)NAME at, batch, atq, atrm - queue, examine, or delete jobs for later executionSYNOPSIS at [-q queue] [-f file] [-m] time atq [-q queue] [-v] atrm
Harvard - RELEASE - 0
DATE(1) BSD Reference Manual DATE(1)NAME date - display or set date and timeSYNOPSIS date [-r seconds] [-nu] [+format] [yy[mm[dd[hh]mm[.ss]DESCRIPTION Date displays the current date and t
Harvard - RELEASE - 0
ASCII(7) BSD Reference Manual ASCII(7)NAME ascii - octal, hexadecimal and decimal ASCII character setsDESCRIPTION The octal set: 000 nul 001 soh 002 stx 003 etx 004 eot 005 enq 006 ack
Harvard - RELEASE - 0
RESOLVER(3) BSD Programmer's Manual RESOLVER(3)NAME res_query, res_search, res_mkquery, res_send, res_init, dn_comp, dn_expand - resolver routinesSYNOPSIS #include &lt;sys/types.h&gt; #include &lt;netinet
Harvard - RELEASE - 0
PTRACE(2) BSD Programmer's Manual PTRACE(2)NAME ptrace - process tracing and debuggingSYNOPSIS #include &lt;sys/types.h&gt; #include &lt;sys/ptrace.h&gt; int ptrace(int request, pid_t pid, caddr_t
Harvard - RELEASE - 0
GLOB(3) BSD Programmer's Manual GLOB(3)NAME glob, globfree - generate pathnames matching a patternSYNOPSIS #include &lt;glob.h&gt; int glob(const char *pattern, int flags, const i
Harvard - RELEASE - 0
NFSSVC(2) BSD Programmer's Manual NFSSVC(2)NAME nfssvc - NFS servicesSYNOPSIS #include &lt;unistd.h&gt; #include &lt;nfs/nfs.h&gt; int nfssvc(int flags, void *argstructp);DESCRIPTION The nfs
Harvard - RELEASE - 0
MSGCTL(2) BSD Programmer's Manual MSGCTL(2)NAME msgctl - message control operationsSYNOPSIS #include &lt;sys/types.h&gt; #include &lt;sys/ipc.h&gt; #include &lt;sys/msg.h&gt; int msgctl(int msqid, i
Harvard - RELEASE - 0
RECNO(3) RECNO(3)NAME recno - record number database access methodSYNOPSIS #include &lt;sys/types.h&gt; #include &lt;db.h&gt;DESCRIPTION The routine dbopen is the library in
Harvard - RELEASE - 0
RECV(2) BSD Programmer's Manual RECV(2)NAME recv, recvfrom, recvmsg - receive a message from a socketSYNOPSIS #include &lt;sys/types.h&gt; #include &lt;sys/socket.h&gt; ssize_t recv(int s, void