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

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: --*/
                     15: 
                     16: #ifndef _SIGNAL_
                     17: #define _SIGNAL_
                     18: 
                     19: #include <sys/types.h>
                     20: 
1.1.1.2 ! root       21: #ifdef __cplusplus
        !            22: extern "C" {
        !            23: #endif
        !            24: 
1.1       root       25: typedef unsigned long sigset_t;
                     26: 
1.1.1.2 ! root       27: #ifndef _SIG_ATOMIC_T_DEFINED
        !            28: typedef int sig_atomic_t;
        !            29: #define _SIG_ATOMIC_T_DEFINED
        !            30: #endif
        !            31: 
1.1       root       32: #define SIG_DFL (void (_CRTAPI1 *)(int))0xffffffff  /* default signal action */
                     33: #define SIG_ERR (void (_CRTAPI1 *)(int))0           /* signal error value */
                     34: #define SIG_IGN (void (_CRTAPI1 *)(int))1           /* ignore signal */
                     35: 
                     36: #define SIGABRT     1
                     37: #define SIGALRM     2
                     38: #define SIGFPE      3
                     39: #define SIGHUP      4
                     40: #define SIGILL      5
                     41: #define SIGINT      6
                     42: #define SIGKILL     7
                     43: #define SIGPIPE     8
                     44: #define SIGQUIT     9
                     45: #define SIGSEGV     10
                     46: #define SIGTERM     11
                     47: #define SIGUSR1     12
                     48: #define SIGUSR2     13
                     49: #define SIGCHLD     14
                     50: #define SIGCONT     15
                     51: #define SIGSTOP     16
                     52: #define SIGTSTP     17
                     53: #define SIGTTIN     18
                     54: #define SIGTTOU     19
                     55: 
1.1.1.2 ! root       56: typedef void (_CRTAPI1 * _handler)(int);
1.1       root       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: int _CRTAPI1 kill(pid_t, int);
                     71: int _CRTAPI1 sigemptyset(sigset_t *);
                     72: int _CRTAPI1 sigfillset(sigset_t *);
                     73: int _CRTAPI1 sigaddset(sigset_t *, int);
                     74: int _CRTAPI1 sigdelset(sigset_t *, int);
                     75: int _CRTAPI1 sigismember(const sigset_t *, int);
                     76: int _CRTAPI1 sigaction(int, const struct sigaction *, struct sigaction *);
                     77: int _CRTAPI1 sigprocmask(int, const sigset_t *, sigset_t *);
                     78: int _CRTAPI1 sigpending(sigset_t *);
                     79: int _CRTAPI1 sigsuspend(const sigset_t *);
                     80: 
1.1.1.2 ! root       81: _handler _CRTAPI1 signal(int, _handler);
1.1       root       82: int _CRTAPI1 raise(int);
                     83: 
1.1.1.2 ! root       84: #ifdef __cplusplus
        !            85: }
        !            86: #endif
        !            87: 
1.1       root       88: #endif /* _SIGNAL_ */

unix.superglobalmegacorp.com

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