- fixed compilation
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
2003-10-20 Bastien Nocera <hadess@hadess.net>
|
||||
|
||||
* glibtop_machine.h:
|
||||
* glibtop_private.h:
|
||||
* glibtop_server.h:
|
||||
* glibtop_suid.h:
|
||||
* procargs.c:
|
||||
* proclist.c:
|
||||
* procmap.c:
|
||||
* safeio.h: fixed compilation
|
||||
|
||||
2003-10-20 Bastien Nocera <hadess@hadess.net>
|
||||
|
||||
* procargs.c: (glibtop_get_proc_args_s):
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <kvm.h>
|
||||
#include <sys/sysinfo.h>
|
||||
|
||||
BEGIN_LIBGTOP_DECLS
|
||||
G_BEGIN_DECLS
|
||||
|
||||
typedef struct _glibtop_machine glibtop_machine;
|
||||
|
||||
@@ -73,6 +73,6 @@ struct _glibtop_machine
|
||||
#endif
|
||||
};
|
||||
|
||||
END_LIBGTOP_DECLS
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GLIBTOP_MACHINE_H__ */
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
# error Cannot compile without <procfs.h> or <sys/procfs.h>
|
||||
#endif
|
||||
|
||||
BEGIN_LIBGTOP_DECLS
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifdef HAVE_PROCFS_H
|
||||
|
||||
@@ -63,6 +63,6 @@ int glibtop_get_proc_credentials_s(glibtop *, struct prcred *, gid_t *, pid_t);
|
||||
/* Reread kstat chains */
|
||||
void glibtop_get_kstats(glibtop *);
|
||||
|
||||
END_LIBGTOP_DECLS
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GLIBTOP_PRIVATE_H__ */
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#ifndef __GLIBTOP_SERVER_H__
|
||||
#define __GLIBTOP_SERVER_H__
|
||||
|
||||
BEGIN_LIBGTOP_DECLS
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GLIBTOP_SUID_CPU 0
|
||||
#define GLIBTOP_SUID_MEM 0
|
||||
@@ -47,6 +47,6 @@ BEGIN_LIBGTOP_DECLS
|
||||
#define GLIBTOP_SUID_NETLOAD 0
|
||||
#define GLIBTOP_SUID_PPP 0
|
||||
|
||||
END_LIBGTOP_DECLS
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#ifndef __GLIBTOP_SUID_H__
|
||||
#define __GLIBTOP_SUID_H__
|
||||
|
||||
BEGIN_LIBGTOP_DECLS
|
||||
G_BEGIN_DECLS
|
||||
|
||||
static inline void glibtop_suid_enter (glibtop *server) {
|
||||
setreuid (server->machine.uid, server->machine.euid);
|
||||
@@ -43,6 +43,6 @@ glibtop_open_p (glibtop *server, const char *program_name,
|
||||
const unsigned long features,
|
||||
const unsigned flags);
|
||||
|
||||
END_LIBGTOP_DECLS
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/error.h>
|
||||
#include <glibtop/xmalloc.h>
|
||||
#include <glibtop/procargs.h>
|
||||
|
||||
static const unsigned long _glibtop_sysdeps_proc_args =
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/proclist.h>
|
||||
#include <glibtop/xmalloc.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/error.h>
|
||||
#include <glibtop/xmalloc.h>
|
||||
#include <glibtop/procmap.h>
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <dirent.h>
|
||||
|
||||
BEGIN_LIBGTOP_DECLS
|
||||
G_BEGIN_DECLS
|
||||
|
||||
int
|
||||
s_open(const char *, int);
|
||||
@@ -43,6 +43,6 @@ s_pread(int, void *, size_t, off_t);
|
||||
int
|
||||
s_closedir(DIR *);
|
||||
|
||||
END_LIBGTOP_DECLS
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user