31 lines · 518 B · Text
RawDownload
.TH REMOVE 2.SH NAMEremove \- remove a file.SH SYNOPSIS.B #include <u.h>.br.B #include <libc.h>.PP.Bint remove(char *file).SH DESCRIPTION.I Removeremoves.I filefrom the directory containing it and discards the contents of the file.The user must have write permission in the containing directory.If.I fileis a directory, it must be empty..SH SOURCE.B /sys/src/libc/9syscall.SH SEE ALSO.IR intro (2),.IR remove (5),the description of.B ORCLOSEin.IR open (2)..SH DIAGNOSTICSSets.IR errstr .