Annotation of mstools/posix/h/signal.h, revision 1.1.1.1

1.1       root        1: /*++
                      2: 
                      3: Copyright (c) 1989  Microsoft Corporation
                      4: 
                      5: Module Name:
                      6: 
                      7:    signal.h
                      8: 
                      9: Abstract:
                     10: 
                     11:    This module contains the signal related types and data structures described
                     12:    in sections 3.3.1 thru 3.3.7 of IEEE P1003.1/Draft 13.
                     13: 
                     14: Author:
                     15: 
                     16:    Mark Lucovsky     10-Mar-1989
                     17: 
                     18: Revision History:
                     19: 
                     20: --*/
                     21: 
                     22: #ifndef _SIGNAL_
                     23: #define _SIGNAL_
                     24: 
                     25: #include <sys/types.h>
                     26: 
                     27: typedef unsigned long sigset_t;
                     28: 
                     29: #define SIG_DFL (void (_CRTAPI1 *)(int))0xffffffff  /* default signal action */
                     30: #define SIG_ERR (void (_CRTAPI1 *)(int))0           /* signal error value */
                     31: #define SIG_IGN (void (_CRTAPI1 *)(int))1           /* ignore signal */
                     32: 
                     33: 
                     34: 
                     35: #define SIGABRT     1
                     36: #define SIGALRM     2
                     37: #define SIGFPE      3
                     38: #define SIGHUP      4
                     39: #define SIGILL      5
                     40: #define SIGINT      6
                     41: #define SIGKILL     7
                     42: #define SIGPIPE     8
                     43: #define SIGQUIT     9
                     44: #define SIGSEGV     10
                     45: #define SIGTERM     11
                     46: #define SIGUSR1     12
                     47: #define SIGUSR2     13
                     48: #define SIGCHLD     14
                     49: #define SIGCONT     15
                     50: #define SIGSTOP     16
                     51: #define SIGTSTP     17
                     52: #define SIGTTIN     18
                     53: #define SIGTTOU     19
                     54: 
                     55: 
                     56: typedef void (_CRTAPI1 * _handler)();
                     57: 
                     58: struct sigaction {
                     59:     _handler sa_handler;
                     60:     sigset_t sa_mask;
                     61:     int sa_flags;
                     62: };
                     63: 
                     64: #define SA_NOCLDSTOP 0x00000001
                     65: 
                     66: #define SIG_BLOCK    1
                     67: #define SIG_UNBLOCK  2
                     68: #define SIG_SETMASK  3
                     69: 
                     70: 
                     71: int _CRTAPI1 kill(pid_t, int);
                     72: int _CRTAPI1 sigemptyset(sigset_t *);
                     73: int _CRTAPI1 sigfillset(sigset_t *);
                     74: int _CRTAPI1 sigaddset(sigset_t *, int);
                     75: int _CRTAPI1 sigdelset(sigset_t *, int);
                     76: int _CRTAPI1 sigismember(const sigset_t *, int);
                     77: int _CRTAPI1 sigaction(int, const struct sigaction *, struct sigaction *);
                     78: int _CRTAPI1 sigprocmask(int, const sigset_t *, sigset_t *);
                     79: int _CRTAPI1 sigpending(sigset_t *);
                     80: int _CRTAPI1 sigsuspend(const sigset_t *);
                     81: 
                     82: void (_CRTAPI1 * _CRTAPI1 signal(int, void (_CRTAPI1 *)(int)))(int);
                     83: int _CRTAPI1 raise(int);
                     84: 
                     85: #endif /* _SIGNAL_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.