#include <signal.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/select.h>
#include <unistd.h>
#include <sys/uio.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <time.h>
#include <stdio.h>
#include <semaphore.h>
#include <stdarg.h>
Go to the source code of this file.
|
#define | SINGULAR_SI_SIGNALS_H |
|
#define | SI_EINTR_SAVE_FUNC_TEMPLATE(return_type, newfunc, func, decl, args, err_domain) |
|
#define | SI_EINTR_SAVE_FUNC(return_type, func, decl, args) SI_EINTR_SAVE_FUNC_TEMPLATE(return_type, si_##func, func, decl, args, < 0) |
|
#define | SI_EINTR_SAVE_SCANF(return_type, func, decl, args) SI_EINTR_SAVE_FUNC_TEMPLATE(return_type, si_##func, func, decl, args, == EOF) |
|
#define | SI_GET_FIFTH(_4, _3, _2, _1, N, ...) N |
|
#define | si_open(...) SI_GET_FIFTH(X,##__VA_ARGS__, si_open2, si_open1)(__VA_ARGS__) |
|
#define | si_siginterrupt(arg1, arg2) |
|
|
| SI_EINTR_SAVE_FUNC (int, select,(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout),(nfds, readfds, writefds, exceptfds, timeout)) SI_EINTR_SAVE_FUNC(pid_t |
|
int status | SI_EINTR_SAVE_FUNC (pid_t, waitpid,(pid_t pid, int *status, int options),(pid, status, options)) SI_EINTR_SAVE_FUNC(ssize_t |
|
int status int void size_t count | SI_EINTR_SAVE_FUNC (ssize_t, write,(int fd, const void *buf, size_t count),(fd, buf, count)) SI_EINTR_SAVE_FUNC_TEMPLATE(int |
|
◆ SI_EINTR_SAVE_FUNC
Definition at line 42 of file si_signals.h.
112{
114 do
115 {
119}
120#endif
121
122static inline unsigned int
124{
125 do
126 {
129 return 0;
130}
131
132
134
135
136
138
142
143static inline
144int si_scanf(
const char *format, ...)
145{
151}
152
156
157static inline int
159{
165}
166
168 (
const char *str,
const char *format,
va_list ap),
170
171static inline int
172si_sscanf(
const char *str,
const char *format, ...)
173{
179}
180
187
188
193
194
195#ifdef HAVE_SIGINTERRUPT
197 (sig, flag))
198#else
199#define si_siginterrupt(arg1, arg2)
200#endif
201
202
205
206
207
208
209
210#undef SI_EINTR_SAVE_FUNC
211
212
213#endif
void rem(unsigned long *a, unsigned long *q, unsigned long p, int °a, int degq)
#define SI_EINTR_SAVE_FUNC(return_type, func, decl, args)
#define SI_EINTR_SAVE_SCANF(return_type, func, decl, args)
int status int void size_t count const char * pathname
int status int void * buf
◆ SI_EINTR_SAVE_FUNC_TEMPLATE
◆ SI_EINTR_SAVE_SCANF
◆ SI_GET_FIFTH
◆ si_open
◆ si_siginterrupt
#define si_siginterrupt |
( |
|
arg1, |
|
|
|
arg2 |
|
) |
| |
◆ SINGULAR_SI_SIGNALS_H
◆ SI_EINTR_SAVE_FUNC() [1/3]
SI_EINTR_SAVE_FUNC |
( |
int |
, |
|
|
select |
, |
|
|
(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) |
, |
|
|
(nfds, readfds, writefds, exceptfds, timeout) |
|
|
) |
| |
◆ SI_EINTR_SAVE_FUNC() [2/3]
◆ SI_EINTR_SAVE_FUNC() [3/3]
◆ buf
◆ count
◆ fd
◆ flags
◆ open
◆ pathname
◆ read
◆ si_open1
◆ status
◆ wait