rm sdb bug; more sdb left
[unix-history] / usr / src / share / man / man3f / unlink.3
CommitLineData
9d3b88c8
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
7218922d 5.\" @(#)unlink.3 6.1 (Berkeley) %G%
9d3b88c8 6.\"
7218922d 7.TH UNLINK 3F ""
9d3b88c8
KM
8.UC 5
9.SH NAME
10unlink \- remove a directory entry
11.SH SYNOPSIS
12.B integer function unlink (name)
13.br
14.B character*(*) name
15.SH DESCRIPTION
16.I Unlink
17causes the directory entry specified by pathname
18.I name
19to be removed.
20If this was the last link to the file, the contents of the file are lost.
21The returned value will be zero if successful; a system error code otherwise.
22.SH FILES
23.ie \nM /usr/ucb/lib/libU77.a
24.el /usr/lib/libU77.a
25.SH "SEE ALSO"
26unlink(2), link(3F), filsys(5), perror(3F)
27.SH BUGS
28Pathnames can be no longer than MAXPATHLEN as defined in
29.RI < sys/param.h >.