Debian Codegraph @

agent/mibgroup/util_funcs/get_pid_from_inode.h

raw
1 /*
2 * util_funcs/get_pid_from_inode.h: utilitiy function to retrieve the pid
3 * that controls a given inode on linux.
4 */
5 #ifndef NETSNMP_MIBGROUP_UTIL_FUNCS_GET_PID_FROM_INODE_H
6 #define NETSNMP_MIBGROUP_UTIL_FUNCS_GET_PID_FROM_INODE_H
7
8 #ifndef linux
9 config_error(get_pid_from_inode is only suppored on linux);
10 #endif
11
12 #define _LARGEFILE64_SOURCE 1
13
14 #ifdef HAVE_DIRENT_H
15 #include <dirent.h>
16 #else
17 # define dirent direct
18 # ifdef HAVE_SYS_NDIR_H
19 # include <sys/ndir.h>
20 # endif
21 # ifdef HAVE_SYS_DIR_H
22 # include <sys/dir.h>
23 # endif
24 # ifdef HAVE_NDIR_H
25 # include <ndir.h>
26 # endif
27 #endif
28
29 #include <sys/types.h>
30
31 void netsnmp_get_pid_from_inode_init(void);
32 pid_t netsnmp_get_pid_from_inode(ino64_t);
33
34 #endif /* NETSNMP_MIBGROUP_UTIL_FUNCS_GET_PID_FROM_INODE_H */