13#include <sys/select.h>
19#include <sys/socket.h>
28#ifndef SINGULAR_SI_SIGNALS_H
29#define SINGULAR_SI_SIGNALS_H
31#define SI_EINTR_SAVE_FUNC_TEMPLATE(return_type, newfunc, func, decl, args, err_domain) \
32static inline return_type newfunc decl \
38 } while((res err_domain) && (errno == EINTR));\
42#define SI_EINTR_SAVE_FUNC(return_type, func, decl, args) \
43 SI_EINTR_SAVE_FUNC_TEMPLATE(return_type, si_##func, func, decl, args, < 0)
45#define SI_EINTR_SAVE_SCANF(return_type, func, decl, args) \
46 SI_EINTR_SAVE_FUNC_TEMPLATE(return_type, si_##func, func, decl, args, == EOF)
90#define SI_GET_FIFTH(_4,_3, _2, _1, N, ...) N
91#define si_open(...) SI_GET_FIFTH(X,##__VA_ARGS__, si_open2, si_open1)(__VA_ARGS__)
123static inline unsigned int
145int si_scanf(
const char *format, ...)
169 (
const char *str,
const char *format,
va_list ap),
173si_sscanf(
const char *str,
const char *format, ...)
196#ifdef HAVE_SIGINTERRUPT
200#define si_siginterrupt(arg1, arg2)
211#undef SI_EINTR_SAVE_FUNC
void select(const ListCFList &ppi, int length, ListCFList &ppi1, ListCFList &ppi2)
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)
#define SI_EINTR_SAVE_FUNC_TEMPLATE(return_type, newfunc, func, decl, args, err_domain)
int status int void size_t count const char int flags
int status int void size_t count open
int status int void size_t count si_open1
int status int void size_t count
int status int void size_t count const char * pathname
int status int void * buf