diff options
author | Benoît Dejean <bdejean@gmail.com> | 2018-03-07 19:37:28 +0100 |
---|---|---|
committer | Benoît Dejean <bdejean@gmail.com> | 2018-03-07 19:44:41 +0100 |
commit | c65cb3e46b271535fc475f4ba3118d60b17a450c (patch) | |
tree | 323244fbf9cbcebb0beae3473aa308c065bd3ba3 /lib | |
parent | b450bbc67c31bd6e2d111261dd8d8baa66635405 (diff) | |
download | libgtop-c65cb3e46b271535fc475f4ba3118d60b17a450c.tar.gz |
Rename GLIBTOP_SUID_PROC_FILE to GLIBTOP_SUID_PROC_OPEN_FILES.
The previous name is incorrect and inconsistent with the code generated
by lib.pl.
Also add missing hooks.
This symbol, although exposed in public headers is not part of the API
and is only used internally.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sysdeps.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sysdeps.c b/lib/sysdeps.c index e942fd4a..2a761576 100644 --- a/lib/sysdeps.c +++ b/lib/sysdeps.c @@ -44,6 +44,7 @@ GLIBTOP_SUID_PROC_KERNEL + GLIBTOP_SUID_PROC_SEGMENT + GLIBTOP_SUID_PROC_ARGS + GLIBTOP_SUID_PROC_MAP + +GLIBTOP_SUID_PROC_OPEN_FILES + GLIBTOP_SUID_NETLOAD + GLIBTOP_SUID_NETLIST + GLIBTOP_SUID_PROC_WD + @@ -124,6 +125,9 @@ const _glibtop_init_func_t _glibtop_init_hook_s [] = { #if !GLIBTOP_SUID_PROC_IO _glibtop_init_proc_io_s, #endif +#if !GLIBTOP_SUID_PROC_OPEN_FILES + _glibtop_init_proc_open_files_s, +#endif NULL }; @@ -200,6 +204,9 @@ const _glibtop_init_func_t _glibtop_init_hook_p [] = { #if GLIBTOP_SUID_PROC_IO _glibtop_init_proc_io_p, #endif +#if GLIBTOP_SUID_PROC_OPEN_FILES + _glibtop_init_proc_open_files_p, +#endif NULL }; |