mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 04:26:12 +00:00
2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* network.h: Define a new ERRNO_IO_RETRY macro to test whether an I/O operation should be retried. This eliminates the need to duplicate the same logic testing for EAGAIN or EINTR in multiple places.
This commit is contained in:
parent
038163fa87
commit
d7e2a8188f
@ -1,3 +1,9 @@
|
||||
2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||
|
||||
* network.h: Define a new ERRNO_IO_RETRY macro to test whether an I/O
|
||||
operation should be retried. This eliminates the need to duplicate
|
||||
the same logic testing for EAGAIN or EINTR in multiple places.
|
||||
|
||||
2005-02-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||
|
||||
* stream.h: Declare new function stream_read_try suitable for use
|
||||
|
@ -33,4 +33,8 @@ int writen (int, const u_char *, int);
|
||||
-1 on error. */
|
||||
extern int set_nonblocking(int fd);
|
||||
|
||||
/* Does the I/O error indicate that the operation should be retried later? */
|
||||
#define ERRNO_IO_RETRY(EN) \
|
||||
(((EN) == EAGAIN) || ((EN) == EWOULDBLOCK) || ((EN) == EINTR))
|
||||
|
||||
#endif /* _ZEBRA_NETWORK_H */
|
||||
|
Loading…
Reference in New Issue
Block a user