[BACK]Return to siglist.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/siglist.c between version 1.5 and 1.6

version 1.5, 1994/10/10 04:46:45 version 1.6, 1994/12/12 22:42:13
Line 1 
Line 1 
 /*  /*
  * Written by J.T. Conklin, 10/06/94   * Copyright (c) 1983 Regents of the University of California.
  * Public domain.   * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    * 1. Redistributions of source code must retain the above copyright
    *    notice, this list of conditions and the following disclaimer.
    * 2. Redistributions in binary form must reproduce the above copyright
    *    notice, this list of conditions and the following disclaimer in the
    *    documentation and/or other materials provided with the distribution.
    * 3. All advertising materials mentioning features or use of this software
    *    must display the following acknowledgement:
    *      This product includes software developed by the University of
    *      California, Berkeley and its contributors.
    * 4. Neither the name of the University nor the names of its contributors
    *    may be used to endorse or promote products derived from this software
    *    without specific prior written permission.
    *
    * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    * SUCH DAMAGE.
  */   */
   
 #include <sys/cdefs.h>  #if defined(LIBC_SCCS) && !defined(lint)
   /*static char *sccsid = "from: @(#)siglist.c    5.6 (Berkeley) 2/23/91";*/
   static char *rcsid = "$Id$";
   #endif /* LIBC_SCCS and not lint */
   
 #ifdef __weak_reference  #include <signal.h>
 __weak_reference(__sys_siglist, sys_siglist);  #include <unistd.h>
 #else  
   
 /*  const char *const _sys_siglist[NSIG] = {
  * Without weak references, we're forced to have to have two copies of          "Signal 0",
  * the signal name string table in the library.  Fortunately, unless          "Hangup",                       /* SIGHUP */
  * a program uses both sys_siglist[] and strsignal(), only one of the          "Interrupt",                    /* SIGINT */
  * copies will be linked into the executable.          "Quit",                         /* SIGQUIT */
  */          "Illegal instruction",          /* SIGILL */
           "Trace/BPT trap",               /* SIGTRAP */
 #define __sys_siglist   sys_siglist          "Abort trap",                   /* SIGABRT */
 #include "_siglist.c"          "EMT trap",                     /* SIGEMT */
 #endif          "Floating point exception",     /* SIGFPE */
           "Killed",                       /* SIGKILL */
           "Bus error",                    /* SIGBUS */
           "Segmentation fault",           /* SIGSEGV */
           "Bad system call",              /* SIGSYS */
           "Broken pipe",                  /* SIGPIPE */
           "Alarm clock",                  /* SIGALRM */
           "Terminated",                   /* SIGTERM */
           "Urgent I/O condition",         /* SIGURG */
           "Stopped (signal)",             /* SIGSTOP */
           "Stopped",                      /* SIGTSTP */
           "Continued",                    /* SIGCONT */
           "Child exited",                 /* SIGCHLD */
           "Stopped (tty input)",          /* SIGTTIN */
           "Stopped (tty output)",         /* SIGTTOU */
           "I/O possible",                 /* SIGIO */
           "Cputime limit exceeded",       /* SIGXCPU */
           "Filesize limit exceeded",      /* SIGXFSZ */
           "Virtual timer expired",        /* SIGVTALRM */
           "Profiling timer expired",      /* SIGPROF */
           "Window size changes",          /* SIGWINCH */
           "Information request",          /* SIGINFO */
           "User defined signal 1",        /* SIGUSR1 */
           "User defined signal 2"         /* SIGUSR2 */
   };

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>