usb_moded  0.86.0+mer57
usb_moded-sigpipe.h
Go to the documentation of this file.
1 
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 
38 bool 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_ */
sigpipe_init
bool sigpipe_init(void)
Definition: usb_moded-sigpipe.c:204