blob: 6aa6db0f817e5001c712382e7463954685c7abed (
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
|
/*
* opendir.c
*
* opendir() wrapper.
*
* Copyright 1999-2008 Gentoo Foundation
* Licensed under the GPL-2
*/
extern DIR *WRAPPER_NAME(const char *);
static DIR * (*WRAPPER_TRUE_NAME) (const char *) = NULL;
DIR *WRAPPER_NAME(const char *name)
{
DIR *result = NULL;
if FUNCTION_SANDBOX_SAFE("opendir", name) {
check_dlsym(WRAPPER_TRUE_NAME, WRAPPER_SYMNAME,
WRAPPER_SYMVER);
result = WRAPPER_TRUE_NAME(name);
}
return result;
}
|