OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [include/] [sys/] [signal.h] - Diff between revs 39 and 56

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 39 Rev 56
Line 7... Line 7...
extern "C" {
extern "C" {
#endif
#endif
 
 
#include "_ansi.h"
#include "_ansi.h"
 
 
#ifndef _STRICT_ANSI
#ifndef __STRICT_ANSI__
typedef unsigned long sigset_t;
typedef unsigned long sigset_t;
struct sigaction
struct sigaction
{
{
        void (*sa_handler)(int);
        void (*sa_handler)(int);
        sigset_t sa_mask;
        sigset_t sa_mask;
Line 26... Line 26...
   is always a long.. They're in the POSIX namespace, but
   is always a long.. They're in the POSIX namespace, but
   are not ANSI. */
   are not ANSI. */
#define sigaddset(what,sig) (*(what) |= (1<<(sig)))
#define sigaddset(what,sig) (*(what) |= (1<<(sig)))
#define sigemptyset(what)   (*(what) = 0)
#define sigemptyset(what)   (*(what) = 0)
 
 
int sigprocmask (int how, const sigset_t *a, sigset_t *b);
int sigprocmask (int __how, const sigset_t *__a, sigset_t *__b);
 
 
/* protos for functions found in winsup sources */
/* protos for functions found in winsup sources */
#if defined(__CYGWIN32__)
#if defined(__CYGWIN32__)
#undef sigaddset
#undef sigaddset
#undef sigemptyset
#undef sigemptyset
Line 48... Line 48...
int _EXFUN(sigpending, (sigset_t *));
int _EXFUN(sigpending, (sigset_t *));
int _EXFUN(sigsuspend, (const sigset_t *));
int _EXFUN(sigsuspend, (const sigset_t *));
int _EXFUN(sigpause, (int));
int _EXFUN(sigpause, (int));
#endif
#endif
 
 
#endif /* _STRICT_ANSI */
#endif /* __STRICT_ANSI__ */
 
 
#if defined(___AM29K__)
#if defined(___AM29K__)
/* These all need to be defined for ANSI C, but I don't think they are
/* These all need to be defined for ANSI C, but I don't think they are
   meaningful.  */
   meaningful.  */
#define SIGABRT 1
#define SIGABRT 1

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.