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.
This commit is contained in:
Benoît Dejean
2018-03-07 19:37:28 +01:00
parent b450bbc67c
commit c65cb3e46b
4 changed files with 11 additions and 4 deletions

View File

@@ -105,7 +105,7 @@ struct _glibtop_proc_open_files
glibtop_open_files_entry *
glibtop_get_proc_open_files(glibtop_proc_open_files *buf, pid_t pid);
#if GLIBTOP_SUID_PROC_FILE
#if GLIBTOP_SUID_PROC_OPEN_FILES
#define glibtop_get_proc_open_files_r glibtop_get_proc_open_files_p
#else
#define glibtop_get_proc_open_files_r glibtop_get_proc_open_files_s
@@ -124,7 +124,7 @@ glibtop_get_proc_open_files(glibtop_proc_open_files *buf, pid_t pid);
glibtop_open_files_entry *
glibtop_get_proc_open_files_l (glibtop *server, glibtop_proc_open_files *buf, pid_t pid);
#if GLIBTOP_SUID_PROC_FILE
#if GLIBTOP_SUID_PROC_OPEN_FILES
void _glibtop_init_proc_open_files_p (glibtop *server);