diff options
Diffstat (limited to 'REORG.TODO/signal/bits')
-rw-r--r-- | REORG.TODO/signal/bits/types/sig_atomic_t.h | 10 | ||||
-rw-r--r-- | REORG.TODO/signal/bits/types/sigset_t.h | 9 | ||||
-rw-r--r-- | REORG.TODO/signal/bits/types/sigval_t.h | 13 | ||||
-rw-r--r-- | REORG.TODO/signal/bits/types/struct_sigstack.h | 29 |
4 files changed, 61 insertions, 0 deletions
diff --git a/REORG.TODO/signal/bits/types/sig_atomic_t.h b/REORG.TODO/signal/bits/types/sig_atomic_t.h new file mode 100644 index 0000000000..47eaa28311 --- /dev/null +++ b/REORG.TODO/signal/bits/types/sig_atomic_t.h @@ -0,0 +1,10 @@ +#ifndef __sig_atomic_t_defined +#define __sig_atomic_t_defined 1 + +#include <bits/types.h> + +/* An integral type that can be modified atomically, without the + possibility of a signal arriving in the middle of the operation. */ +typedef __sig_atomic_t sig_atomic_t; + +#endif diff --git a/REORG.TODO/signal/bits/types/sigset_t.h b/REORG.TODO/signal/bits/types/sigset_t.h new file mode 100644 index 0000000000..8b27e9112d --- /dev/null +++ b/REORG.TODO/signal/bits/types/sigset_t.h @@ -0,0 +1,9 @@ +#ifndef __sigset_t_defined +#define __sigset_t_defined 1 + +#include <bits/types/__sigset_t.h> + +/* A set of signals to be blocked, unblocked, or waited for. */ +typedef __sigset_t sigset_t; + +#endif diff --git a/REORG.TODO/signal/bits/types/sigval_t.h b/REORG.TODO/signal/bits/types/sigval_t.h new file mode 100644 index 0000000000..666598f0ca --- /dev/null +++ b/REORG.TODO/signal/bits/types/sigval_t.h @@ -0,0 +1,13 @@ +#ifndef __sigval_t_defined +#define __sigval_t_defined + +/* Type for data associated with a signal. */ +union sigval +{ + int sival_int; + void *sival_ptr; +}; + +typedef union sigval sigval_t; + +#endif diff --git a/REORG.TODO/signal/bits/types/struct_sigstack.h b/REORG.TODO/signal/bits/types/struct_sigstack.h new file mode 100644 index 0000000000..5e93ce0091 --- /dev/null +++ b/REORG.TODO/signal/bits/types/struct_sigstack.h @@ -0,0 +1,29 @@ +/* Define struct sigstack. + Copyright (C) 1998-2017 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 + 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, see + <http://www.gnu.org/licenses/>. */ + +#ifndef __sigstack_defined +#define __sigstack_defined 1 + +/* Structure describing a signal stack (obsolete). */ +struct sigstack + { + void *ss_sp; /* Signal stack pointer. */ + int ss_onstack; /* Nonzero if executing on this stack. */ + }; + +#endif |