blob: 902a64000c8a0baf157e59a1dc66e30c6d0a5fc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* Copyright (c) 2008-2010 Wind River Systems; see
* guts/COPYRIGHT for information.
*
* static int
* wrap_remove(const char *path) {
* int rc = -1;
*/
struct stat buf;
if (real_lstat(path, &buf) == -1) {
errno = ENOENT;
return -1;
}
if (S_ISDIR(buf.st_mode)) {
rc = wrap_rmdir(path);
} else {
rc = wrap_unlink(path);
}
/* return rc;
* }
*/
|