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

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [gdb-5.0/] [libiberty/] [sigsetmask.c] - Diff between revs 579 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 579 Rev 1765
/* Version of sigsetmask.c
/* Version of sigsetmask.c
   Written by Steve Chamberlain (sac@cygnus.com).
   Written by Steve Chamberlain (sac@cygnus.com).
   Contributed by Cygnus Support.
   Contributed by Cygnus Support.
   This file is in the public doamin. */
   This file is in the public doamin. */
 
 
/* Set the current signal mask to the set provided, and return the
/* Set the current signal mask to the set provided, and return the
   previous value */
   previous value */
 
 
#define _POSIX_SOURCE
#define _POSIX_SOURCE
#include <ansidecl.h>
#include <ansidecl.h>
/* Including <sys/types.h> seems to be needed by ISC. */
/* Including <sys/types.h> seems to be needed by ISC. */
#include <sys/types.h>
#include <sys/types.h>
#include <signal.h>
#include <signal.h>
 
 
#ifdef SIG_SETMASK
#ifdef SIG_SETMASK
int
int
DEFUN(sigsetmask,(set),
DEFUN(sigsetmask,(set),
      int set)
      int set)
{
{
    sigset_t new;
    sigset_t new;
    sigset_t old;
    sigset_t old;
 
 
    sigemptyset (&new);
    sigemptyset (&new);
    if (set != 0) {
    if (set != 0) {
      abort();  /* FIXME, we don't know how to translate old mask to new */
      abort();  /* FIXME, we don't know how to translate old mask to new */
    }
    }
    sigprocmask(SIG_SETMASK, &new, &old);
    sigprocmask(SIG_SETMASK, &new, &old);
    return 1;   /* FIXME, we always return 1 as old value.  */
    return 1;   /* FIXME, we always return 1 as old value.  */
}
}
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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