Return to atomicio.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.16, 2006/03/25 13:17:01 | version 1.17, 2006/04/01 05:51:34 | ||
---|---|---|---|
|
|
||
* ensure all of data on socket comes through. f==read || f==vwrite | * ensure all of data on socket comes through. f==read || f==vwrite | ||
*/ | */ | ||
size_t | size_t | ||
atomicio(f, fd, _s, n) | atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n) | ||
ssize_t (*f) (int, void *, size_t); | |||
int fd; | |||
void *_s; | |||
size_t n; | |||
{ | { | ||
char *s = _s; | char *s = _s; | ||
size_t pos = 0; | size_t pos = 0; |