Commit | Line | Data |
---|---|---|
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 | |
10 | unlink \- 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 | |
17 | causes the directory entry specified by pathname | |
18 | .I name | |
19 | to be removed. | |
20 | If this was the last link to the file, the contents of the file are lost. | |
21 | The 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" | |
26 | unlink(2), link(3F), filsys(5), perror(3F) | |
27 | .SH BUGS | |
28 | Pathnames can be no longer than MAXPATHLEN as defined in | |
29 | .RI < sys/param.h >. |