Annotation of 43BSDTahoe/lib/old_compiler/dbx/cerror.sun.s, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1983 Regents of the University of California.
        !             3:  * All rights reserved.  The Berkeley software License Agreement
        !             4:  * specifies the terms and conditions for redistribution.
        !             5:  *
        !             6:  *     @(#)cerror.sun.s        5.1 (Berkeley) 1/12/88
        !             7:  *
        !             8:  * static char rcsid[] = "$Header: cerror.s,v 1.2 87/03/25 19:32:31 donn Exp $";
        !             9:  *
        !            10:  * modified version of cerror
        !            11:  *
        !            12:  * The idea is that every time an error occurs in a system call
        !            13:  * I want a special function "syserr" called.  This function will
        !            14:  * either print a message and exit or do nothing depending on
        !            15:  * defaults and use of "onsyserr".
        !            16:  */
        !            17: 
        !            18: .data
        !            19: .globl _errno
        !            20: _errno:
        !            21:        .long   0
        !            22: .text
        !            23: 
        !            24: .globl cerror
        !            25: cerror:
        !            26:        movl    d0,_errno
        !            27:        jbsr    _syserr         /* new code */
        !            28:        moveq   #-1,d0
        !            29:        rts
        !            30: 
        !            31: .globl __mycerror              /* clumsy way to get this loaded */
        !            32: 
        !            33: __mycerror:
        !            34:        rts

unix.superglobalmegacorp.com

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