xref: /386bsd/usr/share/man/cat3/remove.0 (revision a2142627)
1REMOVE(3)                 386BSD Programmer's Manual                 REMOVE(3)
2
3NNAAMMEE
4     rreemmoovvee - remove directory entry
5
6SSYYNNOOPPSSIISS
7     ##iinncclluuddee <<ssttddiioo..hh>>
8
9     _i_n_t
10     rreemmoovvee(_c_o_n_s_t _c_h_a_r *_p_a_t_h)
11
12DDEESSCCRRIIPPTTIIOONN
13     The rreemmoovvee() function is an alias for the unlink(2) system call.  It
14     deletes the file referenced by _p_a_t_h.
15
16RREETTUURRNN VVAALLUUEESS
17     Upon successful completion, rreemmoovvee() returns 0.  Otherwise, -1 is
18     returned and the global variable _e_r_r_n_o is set to indicate the error.
19
20EERRRROORRSS
21     The rreemmoovvee() function may fail and set _e_r_r_n_o for any of the errors
22     specified for the routine unlink(2).
23
24SSEEEE AALLSSOO
25     unlink(2)
26
27SSTTAANNDDAARRDDSS
28     The rreemmoovvee() function conforms to ANSI C3.159-1989 (``ANSI C'').
29
30BSD Experimental                 June 29, 1991                               1
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67