Annotation of coherent/d/usr/lib/misc/fatal.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Put message and die.
                      3:  */
                      4: #include <stdio.h>
                      5: #include <errno.h>
                      6: 
                      7: fatal(s)
                      8: char *s;
                      9: {
                     10:        int save = errno;
                     11: 
                     12:        fprintf(stderr, "\nfatal: %r\n", &s);
                     13:        if (0 != (errno = save))
                     14:                perror("errno reports");
                     15:        exit(1);
                     16: }
                     17: 
                     18: #ifdef TEST
                     19: main()
                     20: {
                     21:        sqrt(-1.0);
                     22:        fatal("test %d", 1);
                     23: }
                     24: #endif

unix.superglobalmegacorp.com

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