1f2195ee4b1311cfb6218c0331bfecf25f33d641
9 #include <sys/socket.h>
13 /* This write is patient because it restarts if it was incomplete.
16 static __inline__ ssize_t
patient_write(int fd
, const void *buf
, size_t count
)
18 const char *bufc
= (const char *) buf
;
22 result
= write(fd
, bufc
, count
);
23 if(result
== -1 && errno
== EINTR
) {
37 return bufc
-(const char *)buf
;
40 static __inline__ ssize_t
patient_send(int fd
, const void *buf
, size_t count
, int flags
)
42 const char *bufc
= (const char *) buf
;
46 result
= send(fd
, bufc
, count
, flags
);
47 if(result
== -1 && errno
== EINTR
) {
61 return bufc
-(const char *)buf
;
64 #endif /* UST_SHARE_H */
This page took 0.039735 seconds and 3 git commands to generate.