COMMON data.
/* POSIX.1 `sigaction' call for Linux/i386.
- Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
/* The variable is shared between all wrappers around signal handling
functions which have RT equivalents. */
-int __libc_have_rt_sigs = -1;
+int __libc_missing_rt_sigs;
/* If ACT is not NULL, change the action for SIG to *ACT.
int result;
/* First try the RT signals. */
- if (__libc_have_rt_sigs)
+ if (!__libc_missing_rt_sigs)
{
struct sigaction nact, *nactp;
if (result >= 0 || errno != ENOSYS)
return result;
- __libc_have_rt_sigs = 0;
+ __libc_missing_rt_sigs = 1;
}
if (act)
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
/* The variable is shared between all wrappers around signal handling
- functions which have RT equivalents. It is defined in sigaction.c. */
-extern int __libc_have_rt_sigs;
+ functions which have RT equivalents. */
+int __libc_missing_rt_sigs;
/* Change the set of blocked signals to SET,
sigset_t *set;
{
/* First try the RT signals. */
- if (__libc_have_rt_sigs)
+ if (!__libc_missing_rt_sigs)
{
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
if (result >= 0 || errno != ENOSYS)
return result;
- __libc_have_rt_sigs = 0;
+ __libc_missing_rt_sigs = 1;
}
return __syscall_sigpending (set);
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
size_t);
/* The variable is shared between all wrappers around signal handling
- functions which have RT equivalents. It is defined in sigaction.c. */
-extern int __libc_have_rt_sigs;
+ functions which have RT equivalents. */
+int __libc_missing_rt_sigs;
/* Get and/or change the set of blocked signals. */
sigset_t *oset;
{
/* First try the RT signals. */
- if (__libc_have_rt_sigs)
+ if (!__libc_missing_rt_sigs)
{
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
if (result >= 0 || errno != ENOSYS)
return result;
- __libc_have_rt_sigs = 0;
+ __libc_missing_rt_sigs = 1;
}
return __syscall_sigprocmask (how, set, oset);
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
/* The variable is shared between all wrappers around signal handling
- functions which have RT equivalents. It is defined in sigaction.c. */
-extern int __libc_have_rt_sigs;
+ functions which have RT equivalents. */
+int __libc_missing_rt_sigs;
/* Change the set of blocked signals to SET,
const sigset_t *set;
{
/* First try the RT signals. */
- if (__libc_have_rt_sigs)
+ if (!__libc_missing_rt_sigs)
{
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
if (result >= 0 || errno != ENOSYS)
return result;
- __libc_have_rt_sigs = 0;
+ __libc_missing_rt_sigs = 1;
}
return __syscall_sigsuspend (0, 0, set->__val[0]);