close.c 309 B

123456789101112131415161718
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. #include "system.h"
  7. void
  8. sys_close(fp)
  9. register File *fp;
  10. {
  11. if (fp) {
  12. fp->o_flags = 0;
  13. close(fp->o_fd);
  14. fp->o_fd = -1;
  15. }
  16. }