New file.
1998-08-25 Martin Baulig <martin@home-of-linux.org> * src/daemon/ChangeLog: New file. * sysdeps/sun4/ChangeLog: New file. * sysdeps/stub/ChangeLog: New file. * configure.in: Added check for `-lsocket'. (LIBGTOP_INCS): Added $(SUPPORTINCS). (INCLUDES): Added $(SUPPORTINCS). (LIBGTOP_EXTRA_LIBS): Added $(LIBSUPPORT). * acconfig.h: Added `NEED_DECLARATION_GETHOSTNAME', `NEED_DECLARATION_SETREUID', `NEED_DECLARATION_SETREGID' and `NEED_DECLARATION_GETPAGESIZE'. * includue/glibtop/global.h (<gnomesupport.h>): Include this. * lib/init.c (_init_server): Declared `static'. * lib/read_data.c: Added cast to `const void *' in calls to `recv' and `read' to avoid compiler warnings.
This commit is contained in:
committed by
Martin Baulig
parent
f353017948
commit
db3d7adbaa
24
ChangeLog
24
ChangeLog
@@ -1,4 +1,26 @@
|
|||||||
1998-08-24 Martin Baulig <martin@home-of-linux.org>
|
1998-08-25 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
|
* src/daemon/ChangeLog: New file.
|
||||||
|
|
||||||
|
* sysdeps/sun4/ChangeLog: New file.
|
||||||
|
|
||||||
|
* sysdeps/stub/ChangeLog: New file.
|
||||||
|
|
||||||
|
* configure.in: Added check for `-lsocket'.
|
||||||
|
(LIBGTOP_INCS): Added $(SUPPORTINCS).
|
||||||
|
(INCLUDES): Added $(SUPPORTINCS).
|
||||||
|
(LIBGTOP_EXTRA_LIBS): Added $(LIBSUPPORT).
|
||||||
|
|
||||||
|
* acconfig.h: Added `NEED_DECLARATION_GETHOSTNAME',
|
||||||
|
`NEED_DECLARATION_SETREUID', `NEED_DECLARATION_SETREGID'
|
||||||
|
and `NEED_DECLARATION_GETPAGESIZE'.
|
||||||
|
|
||||||
|
* includue/glibtop/global.h (<gnomesupport.h>): Include this.
|
||||||
|
|
||||||
|
* lib/init.c (_init_server): Declared `static'.
|
||||||
|
|
||||||
|
* lib/read_data.c: Added cast to `const void *' in calls to
|
||||||
|
`recv' and `read' to avoid compiler warnings.
|
||||||
|
|
||||||
* configure.in (INCLUDES): No longer using installed header files.
|
* configure.in (INCLUDES): No longer using installed header files.
|
||||||
|
|
||||||
|
15
acconfig.h
15
acconfig.h
@@ -1,3 +1,18 @@
|
|||||||
|
|
||||||
|
/* Define if gethostname () must be declared. */
|
||||||
|
#undef NEED_DECLARATION_GETHOSTNAME
|
||||||
|
|
||||||
|
/* Define if setreuid () must be declared. */
|
||||||
|
#undef NEED_DECLARATION_SETREUID
|
||||||
|
|
||||||
|
/* Define if setregid () must be declared. */
|
||||||
|
#undef NEED_DECLARATION_SETREGID
|
||||||
|
|
||||||
|
/* Define if getpagesize () must be declared. */
|
||||||
|
#undef NEED_DECLARATION_GETPAGESIZE
|
||||||
|
|
||||||
|
@TOP@
|
||||||
|
|
||||||
#undef ENABLE_NLS
|
#undef ENABLE_NLS
|
||||||
#undef HAVE_CATGETS
|
#undef HAVE_CATGETS
|
||||||
#undef HAVE_GETTEXT
|
#undef HAVE_GETTEXT
|
||||||
|
43
configure.in
43
configure.in
@@ -59,6 +59,9 @@ GNOME_LIBGTOP_TYPES
|
|||||||
|
|
||||||
GNOME_CHECK_GUILE
|
GNOME_CHECK_GUILE
|
||||||
|
|
||||||
|
dnl For Solaris
|
||||||
|
AC_CHECK_LIB(socket, socket)
|
||||||
|
|
||||||
AC_ARG_WITH(libgtop-guile,
|
AC_ARG_WITH(libgtop-guile,
|
||||||
[ --with-libgtop-guile Build the libgtop guile interface (default=yes)],
|
[ --with-libgtop-guile Build the libgtop guile interface (default=yes)],
|
||||||
[build_guile="$withval"], [build_guile=yes])
|
[build_guile="$withval"], [build_guile=yes])
|
||||||
@@ -177,17 +180,20 @@ GNOME_FILEUTILS_CHECKS
|
|||||||
|
|
||||||
AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],AC_DEFINE(GNOME_ENABLE_DEBUG),)
|
AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],AC_DEFINE(GNOME_ENABLE_DEBUG),)
|
||||||
|
|
||||||
dnl If you want to use libgtop without gnome, uncomment the following paragraph:
|
LIBSUPPORT=
|
||||||
dnl LIBSUPPORT=
|
SUPPORTINCS=
|
||||||
dnl SUPPORTINCS=
|
if test "$need_gnome_support" = yes; then
|
||||||
dnl if test "$need_gnome_support" = yes; then
|
if test "x$gnome_found" = xyes ; then
|
||||||
dnl LIBSUPPORT='$(top_builddir)/support/libgnomesupport.la'
|
LIBSUPPORT="$GNOME_LIBDIR -lgnomesupport"
|
||||||
dnl SUPPORTINCS='-I$(top_srcdir)/support'
|
SUPPORTINCS="$GNOME_INCLUDEDIR"
|
||||||
dnl fi
|
else
|
||||||
dnl AC_SUBST(LIBSUPPORT)
|
LIBSUPPORT='$(top_builddir)/support/libgnomesupport.la'
|
||||||
dnl AC_SUBST(SUPPORTINCS)
|
SUPPORTINCS='-DNEED_GNOMESUPPORT_H -I$(top_builddir)/support -I$(top_srcdir)/support'
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
dnl Some ugly hack; if '-lgnomesupport' is part of $GNOME_LIBS, we include it here.
|
dnl Some ugly hack; if '-lgnomesupport' is part of $GNOME_LIBS,
|
||||||
|
dnl we include it here.
|
||||||
echo "$GNOME_LIBS" | grep -q -e '-lgnomesupport'
|
echo "$GNOME_LIBS" | grep -q -e '-lgnomesupport'
|
||||||
if test $? = 0 ; then
|
if test $? = 0 ; then
|
||||||
LIBSUPPORT="$GNOME_LIBDIR -lgnomesupport"
|
LIBSUPPORT="$GNOME_LIBDIR -lgnomesupport"
|
||||||
@@ -204,6 +210,9 @@ if test x$build_inodedb = xyes ; then
|
|||||||
LIBGTOP_INCS="$LIBGTOP_INCS -DGLIBTOP_INODEDB"
|
LIBGTOP_INCS="$LIBGTOP_INCS -DGLIBTOP_INODEDB"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LIBGTOP_INCS="$LIBGTOP_INCS $SUPPORTINCS"
|
||||||
|
LIBGTOP_EXTRA_LIBS="$LIBGTOP_LIBS $LIBSUPPORT"
|
||||||
|
|
||||||
LIBGTOP_GUILE_LIBS="$LIBGTOP_LIBS"
|
LIBGTOP_GUILE_LIBS="$LIBGTOP_LIBS"
|
||||||
LIBGTOP_GUILE_INCS="$LIBGTOP_INCS"
|
LIBGTOP_GUILE_INCS="$LIBGTOP_INCS"
|
||||||
LIBGTOP_BINDIR='$(bindir)'
|
LIBGTOP_BINDIR='$(bindir)'
|
||||||
@@ -256,7 +265,7 @@ else
|
|||||||
guile_def=""
|
guile_def=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
INCLUDES="-D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include -I\$(top_srcdir)/intl $CFLAGS $guile_def "'-DGTOPLOCALEDIR=\"$(datadir)/locale\" -DLIBGTOP_VERSION=\"'"$LIBGTOP_VERSION"'\" -DLIBGTOP_SERVER_VERSION=\"'"$LIBGTOP_SERVER_VERSION"'\" -DLIBGTOP_SERVER=\"'"$LIBGTOP_SERVER"'\"'
|
INCLUDES="-D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include -I\$(top_srcdir)/intl $SUPPORTINCS -W -Wall -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith $CFLAGS $guile_def "'-DGTOPLOCALEDIR=\"$(datadir)/locale\" -DLIBGTOP_VERSION=\"'"$LIBGTOP_VERSION"'\" -DLIBGTOP_SERVER_VERSION=\"'"$LIBGTOP_SERVER_VERSION"'\" -DLIBGTOP_SERVER=\"'"$LIBGTOP_SERVER"'\"'
|
||||||
|
|
||||||
AC_SUBST(INCLUDES)
|
AC_SUBST(INCLUDES)
|
||||||
|
|
||||||
@@ -273,18 +282,6 @@ AC_SUBST(LIBGTOP_GUILE_NAMES_INCS)
|
|||||||
AC_SUBST(LIBGTOP_BINDIR)
|
AC_SUBST(LIBGTOP_BINDIR)
|
||||||
AC_SUBST(LIBGTOP_SERVER)
|
AC_SUBST(LIBGTOP_SERVER)
|
||||||
|
|
||||||
LIBSUPPORT=
|
|
||||||
SUPPORTINCS=
|
|
||||||
if test "$need_gnome_support" = yes; then
|
|
||||||
if test "x$gnome_found" = xyes ; then
|
|
||||||
LIBSUPPORT="$GNOME_LIBDIR -lgnomesupport"
|
|
||||||
SUPPORTINCS="$GNOME_INCLUDEDIR"
|
|
||||||
else
|
|
||||||
LIBSUPPORT='$(top_builddir)/support/libgnomesupport.la'
|
|
||||||
SUPPORTINCS='-DNEED_GNOMESUPPORT_H -I$(top_builddir)/support -I$(top_srcdir)/support'
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x$libgtop_need_server = xyes ; then
|
if test x$libgtop_need_server = xyes ; then
|
||||||
sysdeps_suid_lib="\$(top_builddir)/sysdeps/\$(sysdeps_dir)/libgtop_sysdeps_suid.la"
|
sysdeps_suid_lib="\$(top_builddir)/sysdeps/\$(sysdeps_dir)/libgtop_sysdeps_suid.la"
|
||||||
server_programs='libgtop_server'
|
server_programs='libgtop_server'
|
||||||
|
@@ -62,6 +62,10 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_GNOMESUPPORT_H
|
||||||
|
#include <gnomesupport.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WITHOUT_GUILE
|
#ifdef WITHOUT_GUILE
|
||||||
#undef GLIBTOP_GUILE
|
#undef GLIBTOP_GUILE
|
||||||
#undef GLIBTOP_GUILE_NAMES
|
#undef GLIBTOP_GUILE_NAMES
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
static glibtop _glibtop_global_server;
|
static glibtop _glibtop_global_server;
|
||||||
glibtop *glibtop_global_server = &_glibtop_global_server;
|
glibtop *glibtop_global_server = &_glibtop_global_server;
|
||||||
|
|
||||||
void
|
static void
|
||||||
_init_server (glibtop *server, const unsigned features)
|
_init_server (glibtop *server, const unsigned features)
|
||||||
{
|
{
|
||||||
char *command, *temp;
|
char *command, *temp;
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
void *
|
void *
|
||||||
glibtop_read_data_l (glibtop *server)
|
glibtop_read_data_l (glibtop *server)
|
||||||
{
|
{
|
||||||
size_t size;
|
size_t size;
|
||||||
void *ptr;
|
void *ptr;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@@ -38,9 +38,9 @@ glibtop_read_data_l (glibtop *server)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (server->socket) {
|
if (server->socket) {
|
||||||
ret = recv (server->socket, &size, sizeof (size_t), 0);
|
ret = recv (server->socket, (void *)&size, sizeof (size_t), 0);
|
||||||
} else {
|
} else {
|
||||||
ret = read (server->input [0], &size, sizeof (size_t));
|
ret = read (server->input [0], (void *)&size, sizeof (size_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Reference in New Issue
Block a user