Replace all __BEGIN_DELCS with LIBGTOP_BEGIN_DECLS and all __END_DECLS

1999-02-19  Martin Baulig  <martin@home-of-linux.org>

	* Replace all __BEGIN_DELCS with LIBGTOP_BEGIN_DECLS and all
	__END_DECLS with LIBGTOP_END_DECLS; remove all __P macros and
	use real function prototypes.
This commit is contained in:
Martin Baulig
1999-02-19 09:54:18 +00:00
committed by Martin Baulig
parent 2b96f77245
commit 1272d38f72
72 changed files with 198 additions and 186 deletions

View File

@@ -1,5 +1,9 @@
1999-02-19 Martin Baulig <martin@home-of-linux.org>
* Replace all __BEGIN_DELCS with LIBGTOP_BEGIN_DECLS and all
__END_DECLS with LIBGTOP_END_DECLS; remove all __P macros and
use real function prototypes.
* LIBGTOP-VERSION: Set version number to 0.99.9 binary age 0,
interface age 0.

View File

@@ -72,14 +72,21 @@ extern const unsigned long glibtop_server_features;
#define glibtop_close() glibtop_close_r(glibtop_global_server);
extern glibtop *glibtop_init_r __P((glibtop **, unsigned long, unsigned));
extern glibtop *glibtop_init_s __P((glibtop **, unsigned long, unsigned));
glibtop *
glibtop_init_r (glibtop **server_ptr,
unsigned long features,
unsigned flags);
glibtop *
glibtop_init_s (glibtop **server_ptr,
unsigned long features,
unsigned flags);
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */
extern void glibtop_boot_guile __P((void));
void glibtop_boot_guile (void);
#endif
@@ -87,7 +94,7 @@ extern void glibtop_boot_guile __P((void));
/* You need to link with -lgtop_guile_names to get this stuff here. */
extern void glibtop_boot_guile_names __P((void));
void glibtop_boot_guile_names (void);
#ifndef GLIBTOP_NAMES
#define GLIBTOP_NAMES

View File

@@ -24,13 +24,13 @@
#include <glibtop.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
void glibtop_close_r (glibtop *server);
void glibtop_close_s (glibtop *server);
void glibtop_close_p (glibtop *server);
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -26,7 +26,7 @@
#include <glibtop/sysdeps.h>
#include <glibtop/union.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_CMND_QUIT 0
#define GLIBTOP_CMND_SYSDEPS 1
@@ -95,6 +95,6 @@ void *
glibtop_call_s (glibtop *server, unsigned command, size_t send_size,
const void *send_buf, size_t recv_size, void *recv_buf);
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_CPU_TOTAL 0
#define GLIBTOP_CPU_USER 1
@@ -71,7 +71,7 @@ struct _glibtop_cpu
#define glibtop_get_cpu_r glibtop_get_cpu_s
#endif
void glibtop_get_cpu_l __P((glibtop *, glibtop_cpu *));
void glibtop_get_cpu_l (glibtop *server, glibtop_cpu *buf);
#if GLIBTOP_SUID_CPU
void glibtop_init_cpu_p (glibtop *server);
@@ -92,6 +92,6 @@ extern const char *glibtop_descriptions_cpu [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glib.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
void glibtop_error_vr (glibtop *server, char *format, va_list args);
void glibtop_warn_vr (glibtop *server, char *format, va_list args);
@@ -121,6 +121,6 @@ glibtop_warn_io (char *format, ...)
#endif /* no __GNUC__ */
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_FSUSAGE_BLOCKS 0
#define GLIBTOP_FSUSAGE_BFREE 1
@@ -65,6 +65,6 @@ extern const char *glibtop_descriptions_fsusage [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -26,37 +26,22 @@
#include <config.h>
#endif
#ifdef WITHOUT_GNOME
/*
* All declarations are enclosed in BEGIN_LIBGTOP_DECLS and
* END_LIBGTOP_DECLS so that C++ compilers don't mangle their names.
*
*/
/* __BEGIN_DECLS should be used at the beginning of your declarations,
so that C++ compilers don't mangle their names. Use __END_DECLS at
the end of C declarations. */
#undef __BEGIN_DECLS
#undef __END_DECLS
#undef BEGIN_LIBGTOP_DECLS
#undef END_LIBGTOP_DECLS
#ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
# define BEGIN_LIBGTOP_DECLS extern "C" {
# define END_LIBGTOP_DECLS }
#else
# define __BEGIN_DECLS /* empty */
# define __END_DECLS /* empty */
# define BEGIN_LIBGTOP_DECLS /* empty */
# define END_LIBGTOP_DECLS /* empty */
#endif
/* __P is a macro used to wrap function prototypes, so that compilers
that don't understand ANSI C prototypes still work, and ANSI C
compilers can issue warnings about type mismatches. */
#undef __P
#if defined (__STDC__) || defined (_AIX) \
|| (defined (__mips) && defined (_SYSTYPE_SVR4)) \
|| defined(WIN32) || defined(__cplusplus)
# define __P(protos) protos
#else
# define __P(protos) ()
#endif
#endif /* WITHOUT_GNOME */
#ifdef _IN_LIBGTOP
/* Provide macros to feature the GCC function attribute.
@@ -137,7 +122,7 @@
#ifdef _IN_LIBGTOP
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#ifndef _
#define _(String) dgettext (PACKAGE, String)
@@ -145,10 +130,10 @@ __BEGIN_DECLS
#endif
#ifndef HAVE_STRERROR
extern char *strerror __P((int));
char *strerror (int errno);
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif /* _IN_LIBGTOP */

View File

@@ -29,7 +29,7 @@
#define GLIBTOP_INODEDB_ALL 7
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
typedef struct _glibtop_inodedb glibtop_inodedb;
@@ -60,6 +60,6 @@ glibtop_inodedb_lookup_s (glibtop *server,
void
glibtop_inodedb_close_s (glibtop *server, glibtop_inodedb *inodedb);
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_LOADAVG_LOADAVG 0
#define GLIBTOP_LOADAVG_NR_RUNNING 1
@@ -74,6 +74,6 @@ extern const char *glibtop_descriptions_loadavg [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_MEM_TOTAL 0
#define GLIBTOP_MEM_USED 1
@@ -82,6 +82,6 @@ extern const char *glibtop_descriptions_mem [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_MOUNTLIST_NUMBER 0
#define GLIBTOP_MOUNTLIST_TOTAL 1
@@ -74,6 +74,6 @@ extern const char *glibtop_descriptions_mountlist [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_IPC_MSGPOOL 0
#define GLIBTOP_IPC_MSGMAP 1
@@ -80,7 +80,7 @@ extern const char *glibtop_descriptions_msg_limits [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_NETLOAD_IF_FLAGS 0
#define GLIBTOP_NETLOAD_MTU 1
@@ -113,6 +113,6 @@ extern const char *glibtop_descriptions_netload [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -24,7 +24,7 @@
#include <glibtop/read.h>
#include <glibtop/error.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define _GLIBTOP_INIT_STATE_INIT 0x10000
#define _GLIBTOP_INIT_STATE_OPEN 0x20000
@@ -66,6 +66,6 @@ glibtop_open_s (glibtop *server, const char *program_name,
const unsigned long features, const unsigned flags);
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -23,7 +23,7 @@
#include <glibtop.h>
#include <glibtop/open.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PARAM_METHOD 1
#define GLIBTOP_PARAM_FEATURES 2
@@ -44,6 +44,6 @@ void
glibtop_set_parameter_l (glibtop *server, const unsigned parameter,
const void *data_ptr, size_t data_size);
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PPP_STATE 0
#define GLIBTOP_PPP_BYTES_IN 1
@@ -78,6 +78,6 @@ extern const char *glibtop_descriptions_ppp [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PROC_ARGS_SIZE 0
@@ -76,6 +76,6 @@ extern const char *glibtop_descriptions_proc_args [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PROC_KERNEL_K_FLAGS 0
#define GLIBTOP_PROC_KERNEL_MIN_FLT 1
@@ -91,6 +91,6 @@ extern const char *glibtop_descriptions_proc_kernel [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PROCLIST_NUMBER 0
#define GLIBTOP_PROCLIST_TOTAL 1
@@ -97,6 +97,6 @@ extern const char *glibtop_descriptions_proclist [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PROC_MAP_NUMBER 0
#define GLIBTOP_PROC_MAP_TOTAL 1
@@ -103,6 +103,6 @@ extern const char *glibtop_descriptions_proc_map [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PROC_MEM_SIZE 0
#define GLIBTOP_PROC_MEM_VSIZE 1
@@ -82,6 +82,6 @@ extern const char *glibtop_descriptions_proc_mem [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PROC_SEGMENT_TEXT_RSS 0
#define GLIBTOP_PROC_SEGMENT_SHLIB_RSS 1
@@ -85,6 +85,6 @@ extern const char *glibtop_descriptions_proc_segment [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PROC_SIGNAL_SIGNAL 0
#define GLIBTOP_PROC_SIGNAL_BLOCKED 1
@@ -76,6 +76,6 @@ extern const char *glibtop_descriptions_proc_signal [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PROC_STATE_CMD 0
#define GLIBTOP_PROC_STATE_STATE 1
@@ -83,6 +83,6 @@ extern const char *glibtop_descriptions_proc_state [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -26,7 +26,7 @@
#include <glibtop/cpu.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PROC_TIME_START_TIME 0
#define GLIBTOP_PROC_TIME_RTIME 1
@@ -97,6 +97,6 @@ extern const char *glibtop_descriptions_proc_time [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PROC_UID_UID 0
#define GLIBTOP_PROC_UID_EUID 1
@@ -92,6 +92,6 @@ extern const char *glibtop_descriptions_proc_uid [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,13 +25,13 @@
#include <glibtop.h>
#include <glibtop/error.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define glibtop_read(p1, p2) glibtop_read(glibtop_global_server, p1, p2)
void glibtop_read_l (glibtop *server, size_t size, void *buf);
void glibtop_read_s (glibtop *server, size_t size, void *buf);
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,13 +25,13 @@
#include <glibtop.h>
#include <glibtop/error.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define glibtop_read_data() glibtop_read_data_r(glibtop_global_server)
void *glibtop_read_data_l (glibtop *server);
void *glibtop_read_data_s (glibtop *server);
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_IPC_SEMMAP 0
#define GLIBTOP_IPC_SEMMNI 1
@@ -86,6 +86,6 @@ extern const char *glibtop_descriptions_sem_limits [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_IPC_SHMMAX 0
#define GLIBTOP_IPC_SHMMIN 1
@@ -76,6 +76,6 @@ extern const char *glibtop_descriptions_shm_limits [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -28,7 +28,7 @@
#include <sys/signal.h>
#endif
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
typedef struct _glibtop_signame glibtop_signame;
@@ -40,6 +40,6 @@ struct _glibtop_signame
extern const glibtop_signame glibtop_sys_siglist [];
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_SWAP_TOTAL 0
#define GLIBTOP_SWAP_USED 1
@@ -76,6 +76,6 @@ extern const char *glibtop_descriptions_swap [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -24,7 +24,7 @@
#include <glibtop.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_SYSDEPS_FEATURES 0
#define GLIBTOP_SYSDEPS_CPU 1
@@ -103,6 +103,6 @@ extern const char *glibtop_descriptions_sysdeps [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -28,7 +28,7 @@
#include <glib.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_SYSINFO_CPUINFO 0
@@ -57,6 +57,6 @@ struct _glibtop_sysinfo
glibtop_sysinfo *glibtop_get_sysinfo_s (glibtop *server);
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -22,7 +22,7 @@
#ifndef __GLIBTOP_TYPES_H__
#define __GLIBTOP_TYPES_H__
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_TYPE_LONG 1
#define GLIBTOP_TYPE_ULONG 2
@@ -31,6 +31,6 @@ __BEGIN_DECLS
#define GLIBTOP_TYPE_CHAR 5
#define GLIBTOP_TYPE_STRING 6
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -48,7 +48,7 @@
#include <glibtop/netload.h>
#include <glibtop/ppp.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
typedef union _glibtop_union glibtop_union;
@@ -78,6 +78,6 @@ union _glibtop_union
glibtop_ppp ppp;
};
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_UPTIME_UPTIME 0
#define GLIBTOP_UPTIME_IDLETIME 1
@@ -70,6 +70,6 @@ extern const char *glibtop_descriptions_uptime [];
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -27,7 +27,7 @@
#define LIBGTOP_VERSION_STRING "Libgtop %s server version %s (%u,%u,%u,%u)."
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#if _IN_LIBGTOP
@@ -35,6 +35,6 @@ void glibtop_send_version (glibtop *server, int fd);
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,13 +25,13 @@
#include <glibtop.h>
#include <glibtop/error.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define glibtop_write(p1, p2) glibtop_write(glibtop_global_server, p1, p2)
void glibtop_write_l (glibtop *server, size_t size, void *buf);
void glibtop_write_s (glibtop *server, size_t size, void *buf);
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <glibtop.h>
#include <glibtop/error.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define glibtop_malloc(p1) glibtop_malloc_r(glibtop_global_server, p1)
#define glibtop_calloc(p1, p2) glibtop_calloc_r(glibtop_global_server, p1, p2)
@@ -39,6 +39,6 @@ void *glibtop_realloc_r (glibtop *server, void *ptr, size_t size);
char *glibtop_strdup_r (glibtop *server, const char *string);
void glibtop_free_r (glibtop *server, const void *ptr);
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop VERSION\n"
"POT-Creation-Date: 1999-02-18 22:12+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Martin Baulig <martin@home-of-linux.org>\n"
"Language-Team: Martin Baulig <martin@home-of-linux.org>\n"

View File

@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: glibtop 0.99.3\n"
"POT-Creation-Date: 1999-02-18 22:12+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: 1998-12-13 04:38+0100\n"
"Last-Translator: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
"Language-Team: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"

View File

@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 1999-02-18 22:12+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 1999-02-18 22:12+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 1999-02-18 22:12+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 1999-02-15 22:39+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 1999-02-15 22:39+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 1999-02-15 22:39+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 1999-02-15 22:39+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop VERSION\n"
"POT-Creation-Date: 1999-02-15 22:39+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Vincent Renardias <vincent@waw.com>\n"
"Language-Team: Vincent Renardias <vincent@waw.com>\n"

View File

@@ -4,7 +4,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop VERSION\n"
"POT-Creation-Date: 1999-02-15 22:39+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: 1998-12-11 06:53+09:00\n"
"Last-Translator: Eiichiro ITANI <emu@ceres.dti.ne.jp>\n"
"Language-Team: <gnome@lists.hypercore.co.jp>\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop VERSION\n"
"POT-Creation-Date: 1999-02-15 22:39+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: 1999-02-04 14:31:38+0900\n"
"Last-Translator: Sung-Hyun Nam <namsh@lgic.co.kr>\n"
"Language-Team: Korean <ko@li.org>\n"

View File

@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: libgtop 0.99.3\n"
"POT-Creation-Date: 1999-02-15 22:39+0100\n"
"POT-Creation-Date: 1999-02-19 10:33+0100\n"
"PO-Revision-Date: 1999-01-27 23:22+0100\n"
"Last-Translator: Kjartan Maraas <kmaraas@fib.hl.no>\n"
"Language-Team: Norwegian <no@li.org>\n"

View File

@@ -38,7 +38,7 @@
#include <sys/socket.h>
#include <syslog.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
/* Some don't have LOG_PERROR */
#ifndef LOG_PERROR
@@ -59,19 +59,21 @@ __BEGIN_DECLS
#define MSG_BUFSZ sizeof (struct _glibtop_ipc_message)
#define MSG_MSGSZ (MSG_BUFSZ - sizeof (long))
extern void handle_parent_connection __P((int));
extern void handle_slave_connection __P((int, int));
extern void handle_slave_command __P((glibtop_command *, glibtop_response *, const void *));
void handle_parent_connection (int s);
void handle_slave_connection (int input, int output);
void handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
const void *parameter);
extern void do_output __P((int, glibtop_response *, off_t, size_t, const void *));
extern int do_read __P((int, void *, size_t));
void do_output (int s, glibtop_response *resp, off_t offset,
size_t data_size, const void *data);
int do_read (int s, void *ptr, size_t total_size);
extern void syslog_message __P((int, char *, ...));
extern void syslog_io_message __P((int, char *, ...));
void syslog_message (int priority, char *format, ...);
void syslog_io_message (int priority, char *format, ...);
extern int enable_debug;
extern int verbose_output;
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -36,7 +36,7 @@
#include <osreldate.h>
#endif
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
typedef struct _glibtop_machine glibtop_machine;
@@ -51,6 +51,6 @@ struct _glibtop_machine
kvm_t *kd;
};
__END_DECLS
END_LIBGTOP_DECLS
#endif __GLIBTOP_MACHINE_H__

View File

@@ -22,7 +22,7 @@
#ifndef __GLIBTOP_SERVER_H__
#define __GLIBTOP_SERVER_H__
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU)
#define GLIBTOP_SUID_MEM (1 << GLIBTOP_SYSDEPS_MEM)
@@ -45,6 +45,6 @@ __BEGIN_DECLS
#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
#define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP)
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -22,7 +22,7 @@
#ifndef __GLIBTOP_SUID_H__
#define __GLIBTOP_SUID_H__
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define KI_PROC(ki) (&(ki))->kp_proc)
#define KI_EPROC(ki) (&(ki))->kp_eproc)
@@ -39,10 +39,14 @@ static inline void glibtop_suid_leave (glibtop *server) {
_exit (1);
};
extern void glibtop_init_p __P((glibtop *, const unsigned long, const unsigned));
void
glibtop_init_p (glibtop *server, const unsigned long features,
const unsigned flags);
void
glibtop_open_p (glibtop *server, const char *program_name,
const unsigned long features,
const unsigned flags);
extern void glibtop_open_p __P((glibtop *, const char *, const unsigned long, const unsigned));
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -22,7 +22,7 @@
#ifndef __GLIBTOP_SERVER_H__
#define __GLIBTOP_SERVER_H__
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_SUID_CPU 0
#define GLIBTOP_SUID_MEM 0
@@ -45,6 +45,6 @@ __BEGIN_DECLS
#define GLIBTOP_SUID_NETLOAD 0
#define GLIBTOP_SUID_PPP 0
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -29,10 +29,10 @@
#include <syscall.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
extern int table (int, union table *, const void *);
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -26,7 +26,7 @@
#include <fcntl.h>
#include <ctype.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#if _IN_LIBGTOP
@@ -51,6 +51,6 @@ struct _glibtop_machine
char proc_status [BUFSIZ];
};
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -25,7 +25,7 @@
#include <fcntl.h>
#include <ctype.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#ifdef _IN_LIBGTOP
@@ -127,6 +127,6 @@ proc_stat_after_cmd (char *p)
#define GLIBTOP_SUID_NETLOAD 0
#define GLIBTOP_SUID_PPP 0
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -30,9 +30,9 @@
#undef user
#undef idle
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
extern int table __P((int id, int index, char *addr, int nel, u_int lel));
int table (int id, int index, char *addr, int nel, u_int lel);
typedef struct _glibtop_machine glibtop_machine;
@@ -43,6 +43,6 @@ struct _glibtop_machine
unsigned proctable_entries; /* Max entries in the proctable */
};
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -22,7 +22,7 @@
#ifndef __GLIBTOP_SERVER_H__
#define __GLIBTOP_SERVER_H__
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_SUID_CPU 0
#define GLIBTOP_SUID_MEM 0
@@ -41,6 +41,6 @@ __BEGIN_DECLS
#define GLIBTOP_SUID_PROC_KERNEL (1 << GLIBTOP_SYSDEPS_PROC_KERNEL)
#define GLIBTOP_SUID_PROC_SEGMENT (1 << GLIBTOP_SYSDEPS_PROC_SEGMENT)
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -24,7 +24,7 @@
#include <sys/table.h>
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
static inline void glibtop_suid_enter (glibtop *server) {
setreuid (server->machine.uid, server->machine.euid);
@@ -35,10 +35,14 @@ static inline void glibtop_suid_leave (glibtop *server) {
_exit (1);
};
extern void glibtop_init_p __P((glibtop *, const unsigned long, const unsigned));
void
glibtop_init_p (glibtop *server, const unsigned long features,
const unsigned flags);
void
glibtop_open_p (glibtop *server, const char *program_name,
const unsigned long features,
const unsigned flags);
extern void glibtop_open_p __P((glibtop *, const char *, const unsigned long, const unsigned));
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -22,7 +22,7 @@
#ifndef __GLIBTOP_SERVER_H__
#define __GLIBTOP_SERVER_H__
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_SUID_CPU 0
#define GLIBTOP_SUID_MEM 0
@@ -45,6 +45,6 @@ __BEGIN_DECLS
#define GLIBTOP_SUID_NETLOAD 0
#define GLIBTOP_SUID_PPP 0
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -22,7 +22,7 @@
#ifndef __GLIBTOP_MACHINE_H__
#define __GLIBTOP_MACHINE_H__
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
typedef struct _glibtop_machine glibtop_machine;
@@ -32,6 +32,6 @@ struct _glibtop_machine
gid_t gid, egid; /* Real and effective group id */
};
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -22,7 +22,7 @@
#ifndef __GLIBTOP_SERVER_H__
#define __GLIBTOP_SERVER_H__
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU)
#define GLIBTOP_SUID_MEM (1 << GLIBTOP_SYSDEPS_MEM)
@@ -45,6 +45,6 @@ __BEGIN_DECLS
#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
#define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP)
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -22,7 +22,7 @@
#ifndef __GLIBTOP_SUID_H__
#define __GLIBTOP_SUID_H__
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
static inline void glibtop_suid_enter (glibtop *server) {
setreuid (server->machine.uid, server->machine.euid);
@@ -33,10 +33,14 @@ static inline void glibtop_suid_leave (glibtop *server) {
_exit (1);
};
extern void glibtop_init_p __P((glibtop *, const unsigned long, const unsigned));
void
glibtop_init_p (glibtop *server, const unsigned long features,
const unsigned flags);
void
glibtop_open_p (glibtop *server, const char *program_name,
const unsigned long features,
const unsigned flags);
extern void glibtop_open_p __P((glibtop *, const char *, const unsigned long, const unsigned));
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -46,7 +46,7 @@
#include "loadavg.h"
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
/* Older versions of SunOS don't have a typedef for pid_t.
Hopefully this will catch all those cases without causing other problems.
@@ -102,16 +102,14 @@ struct _glibtop_machine
extern struct nlist _glibtop_nlist[];
extern int _glibtop_check_nlist __P((void *, register struct nlist *));
extern int _glibtop_getkval __P((void *, unsigned long, int *, int, char *));
extern void _glibtop_read_proc_table __P((void *));
extern struct proc *_glibtop_find_pid __P((void *, pid_t));
int _glibtop_check_nlist (void *server, register struct nlist *nlst);
int _glibtop_getkval (void *void_server, unsigned long offset, int *ptr,
int size, char *refstr);
void _glibtop_read_proc_table (void *void_server);
struct proc *_glibtop_find_pid (void *void_server, pid_t pid);
#endif
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -22,7 +22,7 @@
#ifndef __GLIBTOP_SERVER_H__
#define __GLIBTOP_SERVER_H__
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
#define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU)
#define GLIBTOP_SUID_MEM (1 << GLIBTOP_SYSDEPS_MEM)
@@ -42,6 +42,6 @@ __BEGIN_DECLS
#define GLIBTOP_SUID_PROC_SEGMENT (1 << GLIBTOP_SYSDEPS_PROC_SEGMENT)
#define GLIBTOP_SUID_PROC_MAP (1 << GLIBTOP_SYSDEPS_PROC_MAP)
__END_DECLS
END_LIBGTOP_DECLS
#endif

View File

@@ -22,7 +22,7 @@
#ifndef __GLIBTOP_SUID_H__
#define __GLIBTOP_SUID_H__
__BEGIN_DECLS
BEGIN_LIBGTOP_DECLS
static inline void glibtop_suid_enter (glibtop *server) {
setregid (server->machine.gid, server->machine.egid);
@@ -33,10 +33,14 @@ static inline void glibtop_suid_leave (glibtop *server) {
_exit (1);
};
extern void glibtop_init_p __P((glibtop *, const unsigned long, const unsigned));
void
glibtop_init_p (glibtop *server, const unsigned long features,
const unsigned flags);
void
glibtop_open_p (glibtop *server, const char *program_name,
const unsigned long features,
const unsigned flags);
extern void glibtop_open_p __P((glibtop *, const char *, const unsigned long, const unsigned));
__END_DECLS
END_LIBGTOP_DECLS
#endif