*** empty log message ***
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
1998-06-02 Martin Baulig <baulig@merkur.uni-trier.de>
|
1998-06-02 Martin Baulig <baulig@merkur.uni-trier.de>
|
||||||
|
|
||||||
|
* lib/open.c (glibtop_open): renamed to `glibtop_open__l'.
|
||||||
|
|
||||||
|
* sysdeps/linux/open.c (glibtop_open): renamed to
|
||||||
|
`glibtop_open__r'.
|
||||||
|
|
||||||
* include/glibtop/open.h (GLIBTOP_OPEN_NO_OVERRIDE):
|
* include/glibtop/open.h (GLIBTOP_OPEN_NO_OVERRIDE):
|
||||||
tells `glibtop_open' to use the default server and not
|
tells `glibtop_open' to use the default server and not
|
||||||
to check the environment variables.
|
to check the environment variables.
|
||||||
|
@@ -28,7 +28,9 @@ __BEGIN_DECLS
|
|||||||
|
|
||||||
#define GLIBTOP_OPEN_NO_OVERRIDE 1
|
#define GLIBTOP_OPEN_NO_OVERRIDE 1
|
||||||
|
|
||||||
extern void glibtop_open __P((glibtop *, const char *, const unsigned long, const unsigned));
|
extern void glibtop_open__l __P((glibtop *, const char *, const unsigned long, const unsigned));
|
||||||
|
|
||||||
|
extern void glibtop_open__r __P((glibtop *, const char *, const unsigned long, const unsigned));
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
@@ -54,7 +54,7 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
glibtop_version ();
|
glibtop_version ();
|
||||||
|
|
||||||
glibtop_open (&server, argv [0], 0, GLIBTOP_OPEN_NO_OVERRIDE);
|
glibtop_open__l (&server, argv [0], 0, GLIBTOP_OPEN_NO_OVERRIDE);
|
||||||
|
|
||||||
/* close all file descriptors except ones used by the pipes (0 and 1). */
|
/* close all file descriptors except ones used by the pipes (0 and 1). */
|
||||||
max_fd = GET_MAX_FDS();
|
max_fd = GET_MAX_FDS();
|
||||||
|
@@ -73,7 +73,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
setreuid (uid, euid); setregid (gid, egid);
|
setreuid (uid, euid); setregid (gid, egid);
|
||||||
|
|
||||||
glibtop_open (&server, argv [0], 0, 0);
|
glibtop_open__r (&server, argv [0], 0, 0);
|
||||||
|
|
||||||
if (setreuid (euid, uid)) _exit (1);
|
if (setreuid (euid, uid)) _exit (1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user