]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/network.h
2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
[mirror_frr.git] / lib / network.h
index 589b80e9c17a71ad80bc152aff9325814a9d6407..9333ef81d54ef4b6a39dd304e806c93427c36d69 100644 (file)
@@ -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 */