Annotation of 42BSD/lib/libc/gen/signal.c, revision 1.1.1.1

1.1       root        1: /*     signal.c        4.3     83/07/02        */
                      2: 
                      3: /*
                      4:  * Almost backwards compatible signal.
                      5:  */
                      6: #include <signal.h>
                      7: 
                      8: int (*
                      9: signal(s, a))()
                     10:        int s, (*a)();
                     11: {
                     12:        struct sigvec osv, sv;
                     13: 
                     14:        sv.sv_handler = a;
                     15:        sv.sv_mask = sv.sv_onstack = 0;
                     16:        if (sigvec(s, &sv, &osv) < 0)
                     17:                return (BADSIG);
                     18:        return (osv.sv_handler);
                     19: }

unix.superglobalmegacorp.com

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