remove 518 B

12345678910111213141516171819202122232425262728293031
  1. .TH REMOVE 2
  2. .SH NAME
  3. remove \- remove a file
  4. .SH SYNOPSIS
  5. .B #include <u.h>
  6. .br
  7. .B #include <libc.h>
  8. .PP
  9. .B
  10. int remove(char *file)
  11. .SH DESCRIPTION
  12. .I Remove
  13. removes
  14. .I file
  15. from the directory containing it and discards the contents of the file.
  16. The user must have write permission in the containing directory.
  17. If
  18. .I file
  19. is a directory, it must be empty.
  20. .SH SOURCE
  21. .B /sys/src/libc/9syscall
  22. .SH SEE ALSO
  23. .IR intro (2),
  24. .IR remove (5),
  25. the description of
  26. .B ORCLOSE
  27. in
  28. .IR open (2).
  29. .SH DIAGNOSTICS
  30. Sets
  31. .IR errstr .