read.c 179 B

1234567891011
  1. #include "lib.h"
  2. PUBLIC int read(fd, buffer, nbytes)
  3. int fd;
  4. char *buffer;
  5. int nbytes;
  6. {
  7. int n;
  8. n = callm1(FS, READ, fd, nbytes, 0, buffer, NIL_PTR, NIL_PTR);
  9. return(n);
  10. }