close.c 295 B

12345678910111213141516
  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 sys_close(File *fp)
  8. {
  9. if (fp) {
  10. fp->o_flags = 0;
  11. close(fp->o_fd);
  12. fp->o_fd = -1;
  13. }
  14. }