Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
2 | #include |
||
3 | #include |
||
4 | #include |
||
5 | #include |
||
6 | #include |
||
7 | #include |
||
8 | |||
9 | int remove(const char *fn) |
||
10 | { |
||
11 | struct systree_info2 inf; |
||
12 | int res; |
||
13 | _fixpath(fn,inf.name); |
||
14 | inf.command = 8; |
||
15 | inf.file_offset_low = inf.file_offset_high = 0; |
||
16 | inf.size = inf.data_pointer = 0; |
||
17 | res = __kolibri__system_tree_access2(&inf); |
||
18 | if (res == 0) return 0; |
||
19 | if (res == 5) errno = ENOENT; |
||
20 | else errno = EACCES; |
||
21 | return -1; |
||
22 | } |