usb_moded
0.86.0+mer64
src
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
38
bool
sigpipe_init
(
void
);
39
40
/* ========================================================================= *
41
* Macros
42
* ========================================================================= */
43
44
/* Used to retry syscalls that can return EINTR. Taken from Bionic unistd.h */
45
#ifndef TEMP_FAILURE_RETRY
46
#define TEMP_FAILURE_RETRY(exp) ({ \
47
__typeof__(exp) _rc; \
48
do { \
49
_rc = (exp); \
50
} while (_rc == -1 && errno == EINTR); \
51
_rc; })
52
#endif
53
54
#endif
/* USB_MODED_SIGPIPE_H_ */
sigpipe_init
bool sigpipe_init(void)
Definition
usb_moded-sigpipe.c:205
Generated on Thu Dec 7 2023 22:56:56 for usb_moded by
1.13.2