Annotation of 43BSDReno/lib/libc/tahoe/sys/sigprocmask.s, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1989 Regents of the University of California.
                      3:  * All rights reserved.
                      4:  *
                      5:  * Redistribution and use in source and binary forms are permitted
                      6:  * provided that: (1) source distributions retain this entire copyright
                      7:  * notice and comment, and (2) distributions including binaries display
                      8:  * the following acknowledgement:  ``This product includes software
                      9:  * developed by the University of California, Berkeley and its contributors''
                     10:  * in the documentation or other materials provided with the distribution
                     11:  * and in all advertising materials mentioning features or use of this
                     12:  * software. Neither the name of the University nor the names of its
                     13:  * contributors may be used to endorse or promote products derived
                     14:  * from this software without specific prior written permission.
                     15:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
                     16:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
                     17:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     18:  */
                     19: 
                     20: #if defined(SYSLIBC_SCCS) && !defined(lint)
                     21:        .asciz "@(#)sigprocmask.s       5.2 (Berkeley) 6/1/90"
                     22: #endif /* SYSLIBC_SCCS and not lint */
                     23: 
                     24: #include "SYS.h"
                     25: 
                     26: err:
                     27:        jmp     cerror
                     28: 
                     29: ENTRY(sigprocmask)
                     30:        tstl    8(fp)                   # check new sigset pointer
                     31:        bneq    1f                      # if not null, indirect
                     32:        movl    $0,8(fp)                # null mask pointer: block empty set
                     33:        movl    $1,4(fp)                # SIG_BLOCK
                     34:        jbr     2f
                     35: 1:     movl    *8(fp),8(fp)            # indirect to new mask arg
                     36: 2:     kcall   $SYS_sigprocmask
                     37:        jcs     err
                     38:        tstl    12(fp)                  # test if old mask requested
                     39:        beql    out
                     40:        movl    r0,*12(fp)              # store old mask
                     41: out:
                     42:        clrl    r0
                     43:        ret

unix.superglobalmegacorp.com

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