Commit | Line | Data |
---|---|---|
cf88ddb9 KB |
1 | .\" Copyright (c) 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" This code is derived from software contributed to Berkeley by | |
5 | .\" Chris Torek. | |
6 | .\" | |
7 | .\" %sccs.include.redist.man% | |
8 | .\" | |
9 | .\" @(#)remove.3 5.1 (Berkeley) %G% | |
10 | .\" | |
11 | .TH REMOVE 3 "" | |
12 | .UC 7 | |
13 | .SH NAME | |
14 | remove \- remove directory entry | |
15 | .SH SYNOPSIS | |
16 | .nf | |
17 | .ft B | |
18 | int | |
19 | remove(char *path); | |
20 | .ft R | |
21 | .fi | |
22 | .SH DESCRIPTION | |
23 | .I Remove | |
24 | is an alias for the | |
25 | .IR unlink (2) | |
26 | system call. | |
27 | It deletes the file referenced by | |
28 | .IR path . | |
29 | .SH "SEE ALSO" | |
30 | unlink(2) | |
31 | .SH "RETURN VALUE" | |
32 | Upon successful completion, | |
33 | .I remove | |
34 | returns 0. | |
35 | Otherwise, \-1 is returned and the global variable | |
36 | .I errno | |
37 | is set to indicate the error. | |
38 | .SH ERRORS | |
39 | .I Remove | |
40 | may fail and set | |
41 | .I errno | |
42 | for any of the errors specified for the routine | |
43 | .IR unlink (2). | |
44 | .SH STANDARDS | |
45 | The | |
46 | .I remove | |
47 | function conforms to ANSI X3.159-1989 (``ANSI C''). |