aboutsummaryrefslogtreecommitdiffstats
path: root/guts/rmdir.c
blob: 811ce875ac179ca0c57a34ee905e9e9c2d0d6a4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* 
 * Copyright (c) 2008-2010 Wind River Systems; see
 * guts/COPYRIGHT for information.
 *
 * static int
 * wrap_rmdir(const char *path) {
 *	int rc = -1;
 */
 	struct stat64 buf;
	int save_errno;

	rc = real___lxstat64(_STAT_VER, path, &buf);
	if (rc == -1) {
		return rc;
	}
	rc = real_rmdir(path);
	save_errno = errno;
	if (rc != -1) {
		pseudo_client_op(OP_UNLINK, 0, -1, -1, path, &buf);
	}

	errno = save_errno;
/*	return rc;
 * }
 */