Lines Matching defs:count
157 { size_t count ;
163 count = snprintf (psf->rsrc.path, sizeof (psf->rsrc.path), "%s/..namedfork/rsrc", psf->file.path) ;
165 if (count < sizeof (psf->rsrc.path))
184 count = snprintf (psf->rsrc.path, sizeof (psf->rsrc.path), "%s._%s", psf->file.dir, psf->file.name) ;
186 if (count < sizeof (psf->rsrc.path) && (psf->rsrc.filedes = psf_open_fd (&psf->rsrc)) >= 0)
195 count = snprintf (psf->rsrc.path, sizeof (psf->rsrc.path), "%s.AppleDouble/%s", psf->file.dir, psf->file.name) ;
197 if (count < sizeof (psf->rsrc.path))
346 ssize_t count ;
359 count = (items > SENSIBLE_SIZE) ? SENSIBLE_SIZE : (ssize_t) items ;
361 count = read (psf->file.filedes, ((char*) ptr) + total, (size_t) count) ;
363 if (count == -1)
371 if (count == 0)
374 total += count ;
375 items -= count ;
387 ssize_t count ;
403 count = (items > SENSIBLE_SIZE) ? SENSIBLE_SIZE : items ;
405 count = write (psf->file.filedes, ((const char*) ptr) + total, count) ;
407 if (count == -1)
415 if (count == 0)
418 total += count ;
419 items -= count ;
464 sf_count_t count ;
467 { count = read (psf->file.filedes, &(buffer [k]), 1) ;
469 if (count == -1)
477 if (count == 0 || buffer [k++] == '\n')
982 ssize_t count ;
996 count = (items > SENSIBLE_SIZE) ? SENSIBLE_SIZE : (ssize_t) items ;
998 if (ReadFile (psf->file.handle, ((char*) ptr) + total, count, &dwNumberOfBytesRead, 0) == 0)
1003 count = dwNumberOfBytesRead ;
1005 if (count == 0)
1008 total += count ;
1009 items -= count ;
1021 ssize_t count ;
1035 count = (items > SENSIBLE_SIZE) ? SENSIBLE_SIZE : (ssize_t) items ;
1037 if (WriteFile (psf->file.handle, ((const char*) ptr) + total, count, &dwNumberOfBytesWritten, 0) == 0)
1042 count = dwNumberOfBytesWritten ;
1044 if (count == 0)
1047 total += count ;
1048 items -= count ;
1103 sf_count_t count ;
1112 { count = dwNumberOfBytesRead ;
1114 if (count == 0 || buffer [k++] == '\n')