Removed some dead files. Don't install private headers.
* backends/server/server.h: * configure.in: * glibtop.h: * include/glibtop/Makefile.am: * include/glibtop/gnuserv.h: * include/glibtop/open.h: * include/glibtop/read.h: * include/glibtop/read_data.h: * include/glibtop/types.h: * include/glibtop/write.h: * lib/close.c: * lib/init.c: * lib/lib.pl: * lib/open.c: * lib/parameter.c: * lib/read.c: * lib/read_data.c: * lib/write.c: * src/daemon/daemon.h: * src/daemon/io.c: * src/daemon/main.c: (handle_parent_connection): * src/daemon/slave.c: (handle_slave_connection), (handle_slave_command): * sysdeps/common/gnuslib.c: * sysdeps/solaris/glibtop_private.h: Removed some dead files. Don't install private headers.
This commit is contained in:
29
ChangeLog
29
ChangeLog
@@ -1,3 +1,32 @@
|
|||||||
|
2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
|
||||||
|
|
||||||
|
* backends/server/server.h:
|
||||||
|
* configure.in:
|
||||||
|
* glibtop.h:
|
||||||
|
* include/glibtop/Makefile.am:
|
||||||
|
* include/glibtop/gnuserv.h:
|
||||||
|
* include/glibtop/open.h:
|
||||||
|
* include/glibtop/read.h:
|
||||||
|
* include/glibtop/read_data.h:
|
||||||
|
* include/glibtop/types.h:
|
||||||
|
* include/glibtop/write.h:
|
||||||
|
* lib/close.c:
|
||||||
|
* lib/init.c:
|
||||||
|
* lib/lib.pl:
|
||||||
|
* lib/open.c:
|
||||||
|
* lib/parameter.c:
|
||||||
|
* lib/read.c:
|
||||||
|
* lib/read_data.c:
|
||||||
|
* lib/write.c:
|
||||||
|
* src/daemon/daemon.h:
|
||||||
|
* src/daemon/io.c:
|
||||||
|
* src/daemon/main.c: (handle_parent_connection):
|
||||||
|
* src/daemon/slave.c: (handle_slave_connection),
|
||||||
|
(handle_slave_command):
|
||||||
|
* sysdeps/common/gnuslib.c:
|
||||||
|
* sysdeps/solaris/glibtop_private.h: Removed some dead files.
|
||||||
|
Don't install private headers.
|
||||||
|
|
||||||
2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
|
2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
|
||||||
|
|
||||||
* include/glibtop/error.h: Don't export private symbols.
|
* include/glibtop/error.h: Don't export private symbols.
|
||||||
|
@@ -27,7 +27,6 @@
|
|||||||
#define __GLIBTOP_DAEMON_H__
|
#define __GLIBTOP_DAEMON_H__
|
||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/error.h>
|
|
||||||
|
|
||||||
#include <glibtop/open.h>
|
#include <glibtop/open.h>
|
||||||
#include <glibtop/union.h>
|
#include <glibtop/union.h>
|
||||||
|
@@ -8,7 +8,7 @@ AC_CANONICAL_SYSTEM
|
|||||||
|
|
||||||
LIBGTOP_MAJOR_VERSION=2
|
LIBGTOP_MAJOR_VERSION=2
|
||||||
LIBGTOP_MINOR_VERSION=9
|
LIBGTOP_MINOR_VERSION=9
|
||||||
LIBGTOP_MICRO_VERSION=91
|
LIBGTOP_MICRO_VERSION=92
|
||||||
LIBGTOP_VERSION=$LIBGTOP_MAJOR_VERSION.$LIBGTOP_MINOR_VERSION.$LIBGTOP_MICRO_VERSION
|
LIBGTOP_VERSION=$LIBGTOP_MAJOR_VERSION.$LIBGTOP_MINOR_VERSION.$LIBGTOP_MICRO_VERSION
|
||||||
AM_INIT_AUTOMAKE(libgtop, $LIBGTOP_VERSION)
|
AM_INIT_AUTOMAKE(libgtop, $LIBGTOP_VERSION)
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ AM_CONDITIONAL(ENABLE_SHARED, test x$enable_static = xyes)
|
|||||||
AC_SUBST(static_targets)
|
AC_SUBST(static_targets)
|
||||||
AC_SUBST(smp_examples)
|
AC_SUBST(smp_examples)
|
||||||
|
|
||||||
GLIB_REQUIRED=2.4.0
|
GLIB_REQUIRED=2.6.0
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
|
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
|
||||||
AC_SUBST(GLIB_CFLAGS)
|
AC_SUBST(GLIB_CFLAGS)
|
||||||
|
@@ -51,7 +51,6 @@ LIBGTOP_MICRO_VERSION >= (micro)))
|
|||||||
#include <glibtop/global.h>
|
#include <glibtop/global.h>
|
||||||
|
|
||||||
#include <glibtop_server.h>
|
#include <glibtop_server.h>
|
||||||
#include <glibtop/types.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_GLIBTOP_MACHINE_H
|
#ifdef HAVE_GLIBTOP_MACHINE_H
|
||||||
#include <glibtop_machine.h>
|
#include <glibtop_machine.h>
|
||||||
|
@@ -3,9 +3,11 @@ glibtopdir = $(includedir)/libgtop-2.0/glibtop
|
|||||||
glibtop_HEADERS = close.h loadavg.h prockernel.h procstate.h \
|
glibtop_HEADERS = close.h loadavg.h prockernel.h procstate.h \
|
||||||
sem_limits.h uptime.h command.h mem.h proclist.h \
|
sem_limits.h uptime.h command.h mem.h proclist.h \
|
||||||
proctime.h shm_limits.h version.h cpu.h msg_limits.h \
|
proctime.h shm_limits.h version.h cpu.h msg_limits.h \
|
||||||
procmem.h procuid.h swap.h write.h error.h open.h \
|
procmem.h procuid.h swap.h \
|
||||||
procsegment.h read.h sysdeps.h global.h \
|
procsegment.h sysdeps.h global.h \
|
||||||
procsignal.h read_data.h union.h types.h gnuserv.h \
|
procsignal.h union.h gnuserv.h \
|
||||||
parameter.h mountlist.h fsusage.h procmap.h signal.h \
|
parameter.h mountlist.h fsusage.h procmap.h signal.h \
|
||||||
inodedb.h sysinfo.h ppp.h procargs.h netload.h \
|
inodedb.h sysinfo.h ppp.h procargs.h netload.h \
|
||||||
netlist.h procopenfiles.h
|
netlist.h procopenfiles.h
|
||||||
|
|
||||||
|
noinst_HEADERS = error.h write.h open.h read_data.h read.h
|
||||||
|
@@ -42,7 +42,6 @@ static char header_rcsid [] = "!Header: gnuserv.h,v 2.4 95/02/16 11:58:11 arup a
|
|||||||
/* gnuserv should not be compiled using SOCKS */
|
/* gnuserv should not be compiled using SOCKS */
|
||||||
#define DO_NOT_SOCKSIFY
|
#define DO_NOT_SOCKSIFY
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/error.h>
|
|
||||||
#undef read
|
#undef read
|
||||||
#undef write
|
#undef write
|
||||||
#undef open
|
#undef open
|
||||||
|
@@ -23,8 +23,6 @@
|
|||||||
#define __GLIBTOP_OPEN_H__
|
#define __GLIBTOP_OPEN_H__
|
||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/read.h>
|
|
||||||
#include <glibtop/error.h>
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
@@ -25,7 +25,6 @@
|
|||||||
#define __GLIBTOP_READ_H__
|
#define __GLIBTOP_READ_H__
|
||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/error.h>
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
@@ -25,7 +25,6 @@
|
|||||||
#define __GLIBTOP_READ_DATA_H__
|
#define __GLIBTOP_READ_DATA_H__
|
||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/error.h>
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
@@ -1,38 +0,0 @@
|
|||||||
/* $Id$ */
|
|
||||||
|
|
||||||
/* Copyright (C) 1998-99 Martin Baulig
|
|
||||||
This file is part of LibGTop 1.0.
|
|
||||||
|
|
||||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
|
||||||
|
|
||||||
LibGTop is free software; you can redistribute it and/or modify it
|
|
||||||
under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2 of the License,
|
|
||||||
or (at your option) any later version.
|
|
||||||
|
|
||||||
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with LibGTop; see the file COPYING. If not, write to the
|
|
||||||
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
||||||
Boston, MA 02111-1307, USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __GLIBTOP_TYPES_H__
|
|
||||||
#define __GLIBTOP_TYPES_H__
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
|
||||||
|
|
||||||
#define GLIBTOP_TYPE_LONG 1
|
|
||||||
#define GLIBTOP_TYPE_ULONG 2
|
|
||||||
#define GLIBTOP_TYPE_DOUBLE 3
|
|
||||||
#define GLIBTOP_TYPE_INT 4
|
|
||||||
#define GLIBTOP_TYPE_CHAR 5
|
|
||||||
#define GLIBTOP_TYPE_STRING 6
|
|
||||||
|
|
||||||
G_END_DECLS
|
|
||||||
|
|
||||||
#endif
|
|
@@ -25,7 +25,6 @@
|
|||||||
#define __GLIBTOP_WRITE_H__
|
#define __GLIBTOP_WRITE_H__
|
||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/error.h>
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/open.h>
|
#include <glibtop/open.h>
|
||||||
|
#include <glibtop/error.h>
|
||||||
#include <glibtop/close.h>
|
#include <glibtop/close.h>
|
||||||
#include <glibtop/command.h>
|
#include <glibtop/command.h>
|
||||||
|
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
|
#include <glibtop/error.h>
|
||||||
#include <glibtop/sysdeps.h>
|
#include <glibtop/sysdeps.h>
|
||||||
#include <glibtop/parameter.h>
|
#include <glibtop/parameter.h>
|
||||||
|
|
||||||
|
@@ -23,6 +23,7 @@ print '';
|
|||||||
print '#include <config.h>';
|
print '#include <config.h>';
|
||||||
print '';
|
print '';
|
||||||
print '#include <glibtop.h>';
|
print '#include <glibtop.h>';
|
||||||
|
print '#include <glibtop/error.h>';
|
||||||
print '#include <glibtop/open.h>';
|
print '#include <glibtop/open.h>';
|
||||||
print '';
|
print '';
|
||||||
print '#include <glibtop/sysdeps.h>';
|
print '#include <glibtop/sysdeps.h>';
|
||||||
|
@@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/open.h>
|
#include <glibtop/open.h>
|
||||||
|
#include <glibtop/read.h>
|
||||||
|
#include <glibtop/error.h>
|
||||||
#include <glibtop/version.h>
|
#include <glibtop/version.h>
|
||||||
#include <glibtop/sysdeps.h>
|
#include <glibtop/sysdeps.h>
|
||||||
#include <glibtop/command.h>
|
#include <glibtop/command.h>
|
||||||
|
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/parameter.h>
|
#include <glibtop/parameter.h>
|
||||||
|
#include <glibtop/error.h>
|
||||||
|
|
||||||
#define _write_data(ptr,size) \
|
#define _write_data(ptr,size) \
|
||||||
if ((data_ptr == NULL) || (data_size < size)) return -size; \
|
if ((data_ptr == NULL) || (data_size < size)) return -size; \
|
||||||
|
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <glibtop/read.h>
|
#include <glibtop/read.h>
|
||||||
|
#include <glibtop/error.h>
|
||||||
#include "libgtop-i18n.h"
|
#include "libgtop-i18n.h"
|
||||||
|
|
||||||
|
|
||||||
|
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#include <glibtop/error.h>
|
||||||
#include <glibtop/read_data.h>
|
#include <glibtop/read_data.h>
|
||||||
#include "libgtop-i18n.h"
|
#include "libgtop-i18n.h"
|
||||||
|
|
||||||
|
@@ -24,6 +24,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <glibtop/write.h>
|
#include <glibtop/write.h>
|
||||||
|
#include <glibtop/error.h>
|
||||||
#include "libgtop-i18n.h"
|
#include "libgtop-i18n.h"
|
||||||
|
|
||||||
/* Writes some data to server. */
|
/* Writes some data to server. */
|
||||||
|
@@ -25,7 +25,6 @@
|
|||||||
#define __GLIBTOP_DAEMON_H__
|
#define __GLIBTOP_DAEMON_H__
|
||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/error.h>
|
|
||||||
#include <glibtop/gnuserv.h>
|
#include <glibtop/gnuserv.h>
|
||||||
|
|
||||||
#include <glibtop/open.h>
|
#include <glibtop/open.h>
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "daemon.h"
|
#include "daemon.h"
|
||||||
|
#include <glibtop/error.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
do_output (int s, glibtop_response *resp, off_t offset,
|
do_output (int s, glibtop_response *resp, off_t offset,
|
||||||
|
@@ -62,13 +62,13 @@ handle_parent_connection (int s)
|
|||||||
while (do_read (s, cmnd, sizeof (glibtop_command))) {
|
while (do_read (s, cmnd, sizeof (glibtop_command))) {
|
||||||
if (enable_debug)
|
if (enable_debug)
|
||||||
syslog_message (LOG_DEBUG,
|
syslog_message (LOG_DEBUG,
|
||||||
"Parent (%d) received command %d from client.",
|
"Parent (%d) received command %llu from client.",
|
||||||
getpid (), (int)cmnd->command);
|
getpid (), cmnd->command);
|
||||||
|
|
||||||
if (cmnd->data_size >= BUFSIZ) {
|
if (cmnd->data_size >= BUFSIZ) {
|
||||||
syslog_message (LOG_WARNING,
|
syslog_message (LOG_WARNING,
|
||||||
"Client sent %d bytes, but buffer is %lu",
|
"Client sent %llu bytes, but buffer is %lu",
|
||||||
(int)cmnd->data_size, (unsigned long)BUFSIZ);
|
cmnd->data_size, (unsigned long)BUFSIZ);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,8 +78,8 @@ handle_parent_connection (int s)
|
|||||||
|
|
||||||
if (cmnd->data_size) {
|
if (cmnd->data_size) {
|
||||||
if (enable_debug)
|
if (enable_debug)
|
||||||
syslog_message (LOG_DEBUG, "Client has %d bytes of data.",
|
syslog_message (LOG_DEBUG, "Client has %llu bytes of data.",
|
||||||
(int) cmnd->data_size);
|
cmnd->data_size);
|
||||||
|
|
||||||
do_read (s, parameter, cmnd->data_size);
|
do_read (s, parameter, cmnd->data_size);
|
||||||
|
|
||||||
@@ -229,8 +229,8 @@ handle_parent_connection (int s)
|
|||||||
0, NULL);
|
0, NULL);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
syslog_message (LOG_ERR, "Parent received unknown command %d.",
|
syslog_message (LOG_ERR, "Parent received unknown command %llu.",
|
||||||
(int)cmnd->command);
|
cmnd->command);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "daemon.h"
|
#include "daemon.h"
|
||||||
|
#include <glibtop/error.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
handle_slave_connection (int input, int output)
|
handle_slave_connection (int input, int output)
|
||||||
@@ -42,11 +43,11 @@ handle_slave_connection (int input, int output)
|
|||||||
while (do_read (input, cmnd, sizeof (glibtop_command))) {
|
while (do_read (input, cmnd, sizeof (glibtop_command))) {
|
||||||
#ifdef SLAVE_DEBUG
|
#ifdef SLAVE_DEBUG
|
||||||
fprintf (stderr, "Slave %d received command "
|
fprintf (stderr, "Slave %d received command "
|
||||||
"%d from client.\n", getpid (), cmnd->command);
|
"%llu from client.\n", getpid (), cmnd->command);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (cmnd->data_size >= BUFSIZ)
|
if (cmnd->data_size >= BUFSIZ)
|
||||||
glibtop_error ("Client sent %d bytes, "
|
glibtop_error ("Client sent %llu bytes, "
|
||||||
"but buffer is %lu",
|
"but buffer is %lu",
|
||||||
cmnd->size, (unsigned long)BUFSIZ);
|
cmnd->size, (unsigned long)BUFSIZ);
|
||||||
|
|
||||||
@@ -56,7 +57,7 @@ handle_slave_connection (int input, int output)
|
|||||||
|
|
||||||
if (cmnd->data_size) {
|
if (cmnd->data_size) {
|
||||||
#ifdef SLAVE_DEBUG
|
#ifdef SLAVE_DEBUG
|
||||||
fprintf (stderr, "Client has %d bytes of data.\n",
|
fprintf (stderr, "Client has %llu bytes of data.\n",
|
||||||
cmnd->data_size);
|
cmnd->data_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -249,7 +250,7 @@ handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
glibtop_error ("Child received unknown command %d",
|
glibtop_error ("Child received unknown command %llu",
|
||||||
cmnd->command);
|
cmnd->command);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -30,6 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
|
#include <glibtop/error.h>
|
||||||
#include <glibtop/gnuserv.h>
|
#include <glibtop/gnuserv.h>
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@@ -25,7 +25,6 @@
|
|||||||
#define __GLIBTOP_PRIVATE_H__
|
#define __GLIBTOP_PRIVATE_H__
|
||||||
|
|
||||||
#include <glibtop.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/error.h>
|
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <kstat.h>
|
#include <kstat.h>
|
||||||
|
Reference in New Issue
Block a user