[BACK]Return to atomicio.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/atomicio.c between version 1.1 and 1.2

version 1.1, 1999/12/06 20:15:25 version 1.2, 2000/02/01 22:32:53
Line 32 
Line 32 
 /*  /*
  * ensure all of data on socket comes through. f==read || f==write   * ensure all of data on socket comes through. f==read || f==write
  */   */
 int  ssize_t
 atomicio(f, fd, s, n)  atomicio(f, fd, s, n)
         int (*f) ();          ssize_t (*f) ();
         int fd;          int fd;
         void *s;          void *s;
         size_t n;          size_t n;
 {  {
         int res, pos = 0;          ssize_t res, pos = 0;
   
         while (n > pos) {          while (n > pos) {
                 res = (f) (fd, s + pos, n - pos);                  res = (f) (fd, s + pos, n - pos);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2