summaryrefslogtreecommitdiff
path: root/ports/sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h
diff options
context:
space:
mode:
authorgcc <gcc@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2006-08-17 01:30:22 +0000
committergcc <gcc@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2006-08-17 01:30:22 +0000
commitd5eb8bbe5f32d1af4db8b731c3bf290217fcb18e (patch)
tree7cef18fec81193830f7bff57599d11d34dc565bf /ports/sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h
parent976b1f28a501872989e39e2db5cbe16ee7c4548e (diff)
Import glibc-ports-2.3 for 2006-08-16eglibc-2_3@52
git-svn-id: svn://svn.eglibc.org/fsf/glibc-2_3-branch@12 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'ports/sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h')
-rw-r--r--ports/sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/ports/sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h b/ports/sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h
new file mode 100644
index 000000000..5b7ea2588
--- /dev/null
+++ b/ports/sysdeps/unix/sysv/sysv4/sigset-cvt-mask.h
@@ -0,0 +1,37 @@
+/* Convert between lowlevel sigmask and libc representation of sigset_t.
+ SysVr4 version.
+ Copyright (C) 1998, 2002 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+ Contributed by Joe Keane <jgk@jgk.org>.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+static inline int __attribute__ ((unused))
+sigset_set_old_mask (sigset_t *set, int mask)
+{
+ set->__sigbits[0] = (unsigned int) mask;
+ set->__sigbits[1] = 0ul;
+ set->__sigbits[2] = 0ul;
+ set->__sigbits[3] = 0ul;
+
+ return 0;
+}
+
+static inline int __attribute__ ((unused))
+sigset_get_old_mask (const sigset_t *set)
+{
+ return (unsigned int) set->__sigbits[0];
+}