Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/signal.h

    r098eeba3 r491e1ee  
    2727 */
    2828
     29/** @addtogroup libposix
     30 * @{
     31 */
     32/** @file
     33 */
     34
    2935#ifndef POSIX_SIGNAL_H_
    3036#define POSIX_SIGNAL_H_
    3137
    32 #include <errno.h>
     38#include "libc/errno.h"
    3339
    3440/* HelenOS doesn't have signals, so calls to functions of this header
     
    4147 */
    4248
     49#undef SIG_DFL
    4350#define SIG_DFL ((void (*)(int)) 0)
     51#undef SIG_ERR
    4452#define SIG_ERR ((void (*)(int)) 0)
     53#undef SIG_IGN
    4554#define SIG_IGN ((void (*)(int)) 0)
    4655
    4756#define signal(sig,func) (errno = ENOTSUP, SIG_ERR)
    48 #define raise(sig) ((int)-1)
     57#define raise(sig) ((int) -1)
    4958
    50 typedef int sig_atomic_t;
     59typedef int posix_sig_atomic_t;
    5160
    5261/* full POSIX set */
     
    8291};
    8392
     93#ifndef LIBPOSIX_INTERNAL
     94        #define sig_atomic_t posix_sig_atomic_t
     95#endif
     96
    8497#endif /* POSIX_SIGNAL_H_ */
    8598
     99/** @}
     100 */
Note: See TracChangeset for help on using the changeset viewer.