VirtualBox

Changeset 809 in kBuild for trunk/src/ash/trap.c


Ignore:
Timestamp:
Jan 29, 2007 5:54:36 AM (18 years ago)
Author:
bird
Message:

Solaris + cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ash/trap.c

    r630 r809  
    3333 */
    3434
     35#ifdef HAVE_SYS_CDEFS_H
    3536#include <sys/cdefs.h>
     37#endif
    3638#ifndef lint
    3739#if 0
     
    6466extern void init_sys_signame(void);
    6567extern char sys_signame[NSIG][16];
    66 #endif 
     68#endif
    6769
    6870/*
     
    8486int pendingsigs;                /* indicates some signal received */
    8587
     88#ifdef __sun__
     89typedef void (*sig_t) (int);
     90#endif
    8691static int getsigaction(int, sig_t *);
    8792
     
    101106        if (strcasecmp(p, "exit") == 0 )
    102107                return 0;
    103        
     108
    104109        if (strncasecmp(p, "sig", 3) == 0)
    105110                p += 3;
     
    107112#ifndef HAVE_SYS_SIGNAME
    108113        init_sys_signame();
    109 #endif 
     114#endif
    110115        for (i = 0; i < NSIG; ++i)
    111116                if (strcasecmp (p, sys_signame[i]) == 0)
     
    125130#ifndef HAVE_SYS_SIGNAME
    126131        init_sys_signame();
    127 #endif 
     132#endif
    128133
    129134        for (n = 1; n < NSIG; n++) {
     
    148153#ifndef HAVE_SYS_SIGNAME
    149154        init_sys_signame();
    150 #endif 
     155#endif
    151156
    152157        if (argc <= 1) {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette