Copyright (c) 1983 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)unlink.3 5.1 (Berkeley) 05/15/85
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)unlink.3 5.1 (Berkeley) 05/15/85
UNLINK 3F "18 July 1983"
C 5 NAME
unlink - remove a directory entry
SYNOPSIS
integer function unlink (name) character*(*) name
DESCRIPTION
Unlink causes the directory entry specified by pathname
name to be removed.
If this was the last link to the file, the contents of the file are lost.
The returned value will be zero if successful; a system error code otherwise.
FILES
"SEE ALSO"
unlink(2), link(3F), filsys(5), perror(3F)
BUGS
Pathnames can be no longer than MAXPATHLEN as defined in
< sys/param.h >.