usb_moded 0.86.0+mer58
usb_moded-sigpipe.h
Go to the documentation of this file.
1
24
25#ifndef USB_MODED_SIGPIPE_H_
26# define USB_MODED_SIGPIPE_H_
27
28#include <stdbool.h>
29
30/* ========================================================================= *
31 * Prototypes
32 * ========================================================================= */
33
34/* ------------------------------------------------------------------------- *
35 * SIGPIPE
36 * ------------------------------------------------------------------------- */
37
38bool sigpipe_init(void);
39
40/* Used to retry syscalls that can return EINTR. Taken from Bionic unistd.h */
41#ifndef TEMP_FAILURE_RETRY
42#define TEMP_FAILURE_RETRY(exp) ({ \
43 __typeof__(exp) _rc; \
44 do { \
45 _rc = (exp); \
46 } while (_rc == -1 && errno == EINTR); \
47 _rc; })
48#endif
49
50#endif /* USB_MODED_SIGPIPE_H_ */
bool sigpipe_init(void)