source: trunk/System/Sources/libc/patches/patch-linux_signal.diff @ 444

Last change on this file since 444 was 444, checked in by khorben, 11 years ago

Added sigemptyset() and sigfillset() on Linux

File size: 962 bytes
  • include/kernel/linux/signal.h

    old new  
    1 /* $Id: signal.h,v 1.9 2009-05-25 22:40:37 khorben Exp $ */
     1/* $Id: signal.h,v 1.10 2009/11/20 22:55:57 khorben Exp $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2929        int _padding1[5];
    3030} siginfo_t;
    3131
    32 typedef struct { unsigned long bits[16]; } sigset_t;
     32typedef struct { unsigned int bits[2]; } sigset_t;
    3333
    3434struct sigaction
    3535{
     
    7979# define SA_RESTART     0
    8080# define SA_NOCLDSTOP   1
    8181
     82
     83/* macros */
     84# define sigemptyset(s) ((s)->bits[0] = 0x00000000, (s)->bits[1] = 0x00000000)
     85# define sigfillset(s) ((s)->bits[0] = 0xffffffff, (s)->bits[1] = 0xffffffff)
     86
    8287#endif /* !LIBC_KERNEL_LINUX_SIGNAL_H */
Note: See TracBrowser for help on using the repository browser.