summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2007-09-21 22:26:18 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2007-09-21 22:26:18 +0000
commit771f0848b352f0586ee687077f2548e379745b02 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904
parentfcee021a2d23a8c1d84e1c6411f2d2561514a5aa (diff)
downloadlibgtop-affinity.tar.gz
Killed branch. SVN SUCKS.affinity
Killed branch. SVN SUCKS. svn path=/branches/affinity; revision=2662
-rw-r--r--AUTHORS3
-rw-r--r--ChangeLog4100
-rw-r--r--MAINTAINERS4
-rw-r--r--Makefile.am35
-rw-r--r--NEWS343
-rw-r--r--README20
-rw-r--r--TODO0
-rw-r--r--acinclude.m4525
-rwxr-xr-xautogen.sh22
-rw-r--r--configure.in394
-rw-r--r--copyright.txt22
-rw-r--r--debian/README.Debian9
-rw-r--r--debian/changelog121
-rw-r--r--debian/control.in33
-rwxr-xr-xdebian/debconfigure109
-rw-r--r--debian/libgtop-config.134
-rw-r--r--debian/libgtop-dev.files.in21
-rw-r--r--debian/libgtop1.README.Debian5
-rw-r--r--debian/libgtop1.copyright12
-rw-r--r--debian/libgtop1.docs5
-rw-r--r--debian/libgtop1.files.in4
-rw-r--r--debian/libgtop2.README.Debian5
-rw-r--r--debian/libgtop2.copyright12
-rw-r--r--debian/libgtop2.docs7
-rw-r--r--debian/libgtop2.files.in2
-rwxr-xr-xdebian/rules.in115
-rw-r--r--doc/ChangeLog90
-rw-r--r--doc/Makefile.am8
-rw-r--r--doc/about.texi123
-rw-r--r--doc/internals.texi107
-rw-r--r--doc/libgtop2.texi88
-rw-r--r--doc/main.texi68
-rw-r--r--doc/reference.texi1846
-rw-r--r--doc/reference/Makefile.am59
-rw-r--r--doc/reference/libgtop-docs.xml206
-rw-r--r--doc/reference/libgtop-overrides.txt0
-rw-r--r--doc/reference/libgtop-sections.txt736
-rw-r--r--doc/reference/version.xml.in4
-rw-r--r--doc/white-paper.texi90
-rw-r--r--examples/ChangeLog243
-rw-r--r--examples/Makefile.am60
-rw-r--r--examples/affinity.c0
-rw-r--r--examples/df.c51
-rw-r--r--examples/first.c578
-rw-r--r--examples/mem.c21
-rw-r--r--examples/mountlist.c116
-rw-r--r--examples/netlist.c50
-rw-r--r--examples/netload.c162
-rw-r--r--examples/openfiles.c68
-rw-r--r--examples/pprint.c324
-rw-r--r--examples/procargs.c51
-rw-r--r--examples/proclist.c43
-rw-r--r--examples/procmap.c163
-rw-r--r--examples/second.c303
-rw-r--r--examples/smp.c124
-rw-r--r--examples/sysdeps.c152
-rw-r--r--examples/test.scm80
-rw-r--r--examples/timings.c360
-rw-r--r--examples/wd.c35
-rw-r--r--features.def26
-rw-r--r--glibtop.h143
-rw-r--r--include/Makefile.am2
-rw-r--r--include/glibtop/Makefile.am14
-rw-r--r--include/glibtop/call-vector.h.in41
-rw-r--r--include/glibtop/call-vector.pl116
-rw-r--r--include/glibtop/close.h38
-rw-r--r--include/glibtop/command.h103
-rw-r--r--include/glibtop/cpu.h105
-rw-r--r--include/glibtop/error.h51
-rw-r--r--include/glibtop/fsusage.h64
-rw-r--r--include/glibtop/glibtop-server.h68
-rw-r--r--include/glibtop/global.h81
-rw-r--r--include/glibtop/gnuserv.h160
-rw-r--r--include/glibtop/init_hooks.h15
-rw-r--r--include/glibtop/loadavg.h69
-rw-r--r--include/glibtop/mem.h77
-rw-r--r--include/glibtop/mountlist.h70
-rw-r--r--include/glibtop/msg_limits.h76
-rw-r--r--include/glibtop/netlist.h61
-rw-r--r--include/glibtop/netload.h130
-rw-r--r--include/glibtop/open.h71
-rw-r--r--include/glibtop/parameter.h50
-rw-r--r--include/glibtop/ppp.h73
-rw-r--r--include/glibtop/procaffinity.h0
-rw-r--r--include/glibtop/procargs.h88
-rw-r--r--include/glibtop/prockernel.h86
-rw-r--r--include/glibtop/proclist.h93
-rw-r--r--include/glibtop/procmap.h119
-rw-r--r--include/glibtop/procmem.h77
-rw-r--r--include/glibtop/procopenfiles.h121
-rw-r--r--include/glibtop/procsegment.h80
-rw-r--r--include/glibtop/procsignal.h71
-rw-r--r--include/glibtop/procstate.h95
-rw-r--r--include/glibtop/proctime.h93
-rw-r--r--include/glibtop/procuid.h102
-rw-r--r--include/glibtop/procwd.h69
-rw-r--r--include/glibtop/read.h36
-rw-r--r--include/glibtop/read_data.h36
-rw-r--r--include/glibtop/sem_limits.h81
-rw-r--r--include/glibtop/shm_limits.h71
-rw-r--r--include/glibtop/signal.h45
-rw-r--r--include/glibtop/swap.h72
-rw-r--r--include/glibtop/sysdeps.h99
-rw-r--r--include/glibtop/sysinfo.h63
-rw-r--r--include/glibtop/union.h89
-rw-r--r--include/glibtop/uptime.h67
-rw-r--r--include/glibtop/version.h39
-rw-r--r--include/glibtop/write.h36
-rw-r--r--lib/Makefile.am22
-rw-r--r--lib/close.c50
-rw-r--r--lib/command.c73
-rw-r--r--lib/error.c173
-rw-r--r--lib/glibtop-server-private.h36
-rw-r--r--lib/glibtop-server.c57
-rw-r--r--lib/init.c249
-rwxr-xr-xlib/lib.pl246
-rw-r--r--lib/libgtop.sym130
-rw-r--r--lib/open.c182
-rw-r--r--lib/parameter.c98
-rw-r--r--lib/read.c58
-rw-r--r--lib/read_data.c76
-rw-r--r--lib/structures.pl104
-rw-r--r--lib/sysdeps.c198
-rw-r--r--lib/write.c54
-rw-r--r--libgtop-2.0.pc.in13
-rw-r--r--libgtop-sysdeps.m4315
-rw-r--r--libgtop.spec.in126
-rw-r--r--libgtopconfig.h.in8
-rwxr-xr-xltconfig3114
-rw-r--r--misc/Makefile.am2
-rw-r--r--misc/README.indent8
-rw-r--r--misc/format.el5
-rw-r--r--misc/i4b_acct.h75
-rw-r--r--misc/i4b_acct.txt96
-rw-r--r--misc/porting-libgtop.txt81
-rw-r--r--misc/timings/timings.linux-proc26
-rw-r--r--misc/timings/timings.linux-sysctl27
-rw-r--r--po/ChangeLog1780
-rw-r--r--po/LINGUAS77
-rw-r--r--po/POTFILES.in20
-rw-r--r--po/POTFILES.skip2
-rw-r--r--po/am.po205
-rw-r--r--po/ar.po238
-rw-r--r--po/az.po209
-rw-r--r--po/be.po213
-rw-r--r--po/bg.po190
-rw-r--r--po/bn.po1248
-rw-r--r--po/bn_IN.po221
-rw-r--r--po/bs.po214
-rw-r--r--po/ca.po201
-rw-r--r--po/cs.po211
-rw-r--r--po/cy.po207
-rw-r--r--po/da.po203
-rw-r--r--po/de.po204
-rw-r--r--po/dz.po204
-rw-r--r--po/el.po223
-rw-r--r--po/en_CA.po208
-rw-r--r--po/en_GB.po230
-rw-r--r--po/eo.po208
-rw-r--r--po/es.po193
-rw-r--r--po/et.po192
-rw-r--r--po/eu.po193
-rw-r--r--po/fa.po206
-rw-r--r--po/fi.po201
-rw-r--r--po/fr.po192
-rw-r--r--po/ga.po203
-rw-r--r--po/gl.po217
-rw-r--r--po/gu.po190
-rw-r--r--po/he.po409
-rw-r--r--po/hi.po211
-rw-r--r--po/hr.po211
-rw-r--r--po/hu.po192
-rw-r--r--po/id.po207
-rw-r--r--po/it.po207
-rw-r--r--po/ja.po192
-rw-r--r--po/ka.po220
-rw-r--r--po/ko.po203
-rw-r--r--po/ku.po208
-rw-r--r--po/ky.po210
-rw-r--r--po/lt.po198
-rw-r--r--po/lv.po212
-rw-r--r--po/mg.po207
-rw-r--r--po/mi.po212
-rw-r--r--po/mk.po200
-rw-r--r--po/ml.po210
-rw-r--r--po/mn.po211
-rw-r--r--po/ms.po205
-rw-r--r--po/nb.po186
-rw-r--r--po/ne.po220
-rw-r--r--po/nl.po202
-rw-r--r--po/nn.po210
-rw-r--r--po/oc.po188
-rw-r--r--po/or.po210
-rw-r--r--po/pa.po214
-rw-r--r--po/pl.po199
-rw-r--r--po/pt.po201
-rw-r--r--po/pt_BR.po203
-rw-r--r--po/ro.po202
-rw-r--r--po/ru.po195
-rw-r--r--po/rw.po233
-rw-r--r--po/sk.po212
-rw-r--r--po/sl.po246
-rw-r--r--po/sq.po207
-rw-r--r--po/sr.po205
-rw-r--r--po/sr@Latn.po205
-rw-r--r--po/sv.po500
-rw-r--r--po/ta.po231
-rw-r--r--po/te.po207
-rw-r--r--po/th.po197
-rw-r--r--po/tr.po208
-rw-r--r--po/uk.po203
-rw-r--r--po/vi.po228
-rw-r--r--po/xh.po209
-rw-r--r--po/zh_CN.po197
-rw-r--r--po/zh_HK.po203
-rw-r--r--po/zh_TW.po203
-rw-r--r--scripts/ChangeLog13
-rw-r--r--scripts/Makefile.am1
-rw-r--r--scripts/c_types.pl71
-rw-r--r--src/Makefile.am10
-rw-r--r--src/daemon/ChangeLog156
-rw-r--r--src/daemon/Makefile.am53
-rw-r--r--src/daemon/daemon.h77
-rw-r--r--src/daemon/gnuserv.c645
-rw-r--r--src/daemon/io.c98
-rw-r--r--src/daemon/main.c245
-rw-r--r--src/daemon/server.c111
-rw-r--r--src/daemon/server_config.h11
-rw-r--r--src/daemon/server_config.h.in44
-rwxr-xr-xsrc/daemon/server_config.pl111
-rw-r--r--src/daemon/slave.c256
-rw-r--r--src/daemon/version.c64
-rw-r--r--structures.def5
-rw-r--r--sysdeps/Makefile.am5
-rw-r--r--sysdeps/aix/ChangeLog105
-rw-r--r--sysdeps/aix/Makefile.am24
-rw-r--r--sysdeps/aix/close.c29
-rw-r--r--sysdeps/aix/cpu.c135
-rw-r--r--sysdeps/aix/glibtop_machine.h52
-rw-r--r--sysdeps/aix/glibtop_server.h51
-rw-r--r--sysdeps/aix/glibtop_suid.h50
-rw-r--r--sysdeps/aix/loadavg.c77
-rw-r--r--sysdeps/aix/mem.c77
-rw-r--r--sysdeps/aix/msg_limits.c80
-rw-r--r--sysdeps/aix/netlist.c39
-rw-r--r--sysdeps/aix/netload.c208
-rw-r--r--sysdeps/aix/nosuid.c45
-rw-r--r--sysdeps/aix/open.c81
-rw-r--r--sysdeps/aix/ppp.c43
-rw-r--r--sysdeps/aix/procargs.c113
-rw-r--r--sysdeps/aix/prockernel.c94
-rw-r--r--sysdeps/aix/proclist.c247
-rw-r--r--sysdeps/aix/procmap.c48
-rw-r--r--sysdeps/aix/procmem.c69
-rw-r--r--sysdeps/aix/procsegment.c70
-rw-r--r--sysdeps/aix/procsignal.c85
-rw-r--r--sysdeps/aix/procstate.c124
-rw-r--r--sysdeps/aix/proctime.c69
-rw-r--r--sysdeps/aix/procuid.c97
-rw-r--r--sysdeps/aix/sem_limits.c85
-rw-r--r--sysdeps/aix/shm_limits.c78
-rw-r--r--sysdeps/aix/siglist.c71
-rw-r--r--sysdeps/aix/swap.c129
-rw-r--r--sysdeps/aix/sysinfo.c198
-rw-r--r--sysdeps/aix/uptime.c63
-rw-r--r--sysdeps/aix/utils.c139
-rw-r--r--sysdeps/aix/utils.h43
-rw-r--r--sysdeps/bsd/AUTHORS2
-rw-r--r--sysdeps/bsd/ChangeLog485
-rw-r--r--sysdeps/bsd/Makefile.am23
-rw-r--r--sysdeps/bsd/NOTES10
-rw-r--r--sysdeps/bsd/close.c30
-rw-r--r--sysdeps/bsd/cpu.c142
-rw-r--r--sysdeps/bsd/fsusage.c61
-rw-r--r--sysdeps/bsd/glibtop_machine.h65
-rw-r--r--sysdeps/bsd/glibtop_server.h51
-rw-r--r--sysdeps/bsd/glibtop_suid.h56
-rw-r--r--sysdeps/bsd/init.c44
-rw-r--r--sysdeps/bsd/loadavg.c59
-rw-r--r--sysdeps/bsd/mem.c222
-rw-r--r--sysdeps/bsd/msg_limits.c114
-rw-r--r--sysdeps/bsd/netlist.c66
-rw-r--r--sysdeps/bsd/netload.c244
-rw-r--r--sysdeps/bsd/nosuid.c36
-rw-r--r--sysdeps/bsd/open.c94
-rw-r--r--sysdeps/bsd/ppp.c143
-rw-r--r--sysdeps/bsd/procargs.c108
-rw-r--r--sysdeps/bsd/procdata.c168
-rw-r--r--sysdeps/bsd/prockernel.c270
-rw-r--r--sysdeps/bsd/proclist.c113
-rw-r--r--sysdeps/bsd/procmap.c311
-rw-r--r--sysdeps/bsd/procmem.c293
-rw-r--r--sysdeps/bsd/procopenfiles.c51
-rw-r--r--sysdeps/bsd/procsegment.c81
-rw-r--r--sysdeps/bsd/procsignal.c136
-rw-r--r--sysdeps/bsd/procstate.c148
-rw-r--r--sysdeps/bsd/proctime.c252
-rw-r--r--sysdeps/bsd/procuid.c148
-rw-r--r--sysdeps/bsd/sem_limits.c119
-rw-r--r--sysdeps/bsd/shm_limits.c114
-rw-r--r--sysdeps/bsd/siglist.c60
-rw-r--r--sysdeps/bsd/swap.c423
-rw-r--r--sysdeps/bsd/sysinfo.c91
-rw-r--r--sysdeps/bsd/uptime.c92
-rw-r--r--sysdeps/common/ChangeLog253
-rw-r--r--sysdeps/common/Makefile.am18
-rw-r--r--sysdeps/common/README.fsusage9
-rw-r--r--sysdeps/common/default.c370
-rw-r--r--sysdeps/common/error.c170
-rw-r--r--sysdeps/common/error_suid.c173
-rw-r--r--sysdeps/common/fsusage.c326
-rw-r--r--sysdeps/common/gnuslib.c373
-rw-r--r--sysdeps/common/mountlist.c622
-rw-r--r--sysdeps/common/procargs.c44
-rw-r--r--sysdeps/common/sysdeps_suid.c95
-rw-r--r--sysdeps/freebsd/AUTHORS3
-rw-r--r--sysdeps/freebsd/ChangeLog477
-rw-r--r--sysdeps/freebsd/Makefile.am26
-rw-r--r--sysdeps/freebsd/close.c30
-rw-r--r--sysdeps/freebsd/cpu.c114
-rw-r--r--sysdeps/freebsd/fsusage.c137
-rw-r--r--sysdeps/freebsd/glibtop_machine.h55
-rw-r--r--sysdeps/freebsd/glibtop_private.c54
-rw-r--r--sysdeps/freebsd/glibtop_private.h40
-rw-r--r--sysdeps/freebsd/glibtop_server.h52
-rw-r--r--sysdeps/freebsd/glibtop_suid.h56
-rw-r--r--sysdeps/freebsd/loadavg.c77
-rw-r--r--sysdeps/freebsd/mem.c90
-rw-r--r--sysdeps/freebsd/msg_limits.c102
-rw-r--r--sysdeps/freebsd/netlist.c66
-rw-r--r--sysdeps/freebsd/netload.c254
-rw-r--r--sysdeps/freebsd/nosuid.c36
-rw-r--r--sysdeps/freebsd/open.c93
-rw-r--r--sysdeps/freebsd/ppp.c145
-rw-r--r--sysdeps/freebsd/procargs.c98
-rw-r--r--sysdeps/freebsd/prockernel.c121
-rw-r--r--sysdeps/freebsd/proclist.c152
-rw-r--r--sysdeps/freebsd/procmap.c285
-rw-r--r--sysdeps/freebsd/procmem.c160
-rw-r--r--sysdeps/freebsd/procopenfiles.c184
-rw-r--r--sysdeps/freebsd/procsegment.c76
-rw-r--r--sysdeps/freebsd/procsignal.c95
-rw-r--r--sysdeps/freebsd/procstate.c96
-rw-r--r--sysdeps/freebsd/proctime.c109
-rw-r--r--sysdeps/freebsd/procuid.c90
-rw-r--r--sysdeps/freebsd/procwd.c121
-rw-r--r--sysdeps/freebsd/sem_limits.c134
-rw-r--r--sysdeps/freebsd/shm_limits.c95
-rw-r--r--sysdeps/freebsd/siglist.c60
-rw-r--r--sysdeps/freebsd/swap.c94
-rw-r--r--sysdeps/freebsd/sysinfo.c95
-rw-r--r--sysdeps/freebsd/uptime.c88
-rw-r--r--sysdeps/linux/ChangeLog784
-rw-r--r--sysdeps/linux/Makefile.am20
-rw-r--r--sysdeps/linux/close.c29
-rw-r--r--sysdeps/linux/cpu.c150
-rw-r--r--sysdeps/linux/fsusage.c143
-rw-r--r--sysdeps/linux/glibtop_machine.h44
-rw-r--r--sysdeps/linux/glibtop_private.c206
-rw-r--r--sysdeps/linux/glibtop_private.h153
-rw-r--r--sysdeps/linux/glibtop_server.h49
-rw-r--r--sysdeps/linux/loadavg.c81
-rw-r--r--sysdeps/linux/mem.c64
-rw-r--r--sysdeps/linux/msg_limits.c61
-rw-r--r--sysdeps/linux/netlist.c80
-rw-r--r--sysdeps/linux/netload.c561
-rw-r--r--sysdeps/linux/open.c99
-rw-r--r--sysdeps/linux/ppp.c197
-rw-r--r--sysdeps/linux/procaffinity.c0
-rw-r--r--sysdeps/linux/procargs.c70
-rw-r--r--sysdeps/linux/prockernel.c76
-rw-r--r--sysdeps/linux/proclist.c169
-rw-r--r--sysdeps/linux/procmap.c223
-rw-r--r--sysdeps/linux/procmem.c84
-rw-r--r--sysdeps/linux/procopenfiles.c268
-rw-r--r--sysdeps/linux/procsegment.c93
-rw-r--r--sysdeps/linux/procsignal.c64
-rw-r--r--sysdeps/linux/procstate.c120
-rw-r--r--sysdeps/linux/proctime.c132
-rw-r--r--sysdeps/linux/procuid.c124
-rw-r--r--sysdeps/linux/procwd.c96
-rw-r--r--sysdeps/linux/sem_limits.c83
-rw-r--r--sysdeps/linux/shm_limits.c58
-rw-r--r--sysdeps/linux/siglist.c143
-rw-r--r--sysdeps/linux/swap.c103
-rw-r--r--sysdeps/linux/sysinfo.c99
-rw-r--r--sysdeps/linux/uptime.c61
-rw-r--r--sysdeps/osf1/ChangeLog51
-rw-r--r--sysdeps/osf1/Makefile.am22
-rw-r--r--sysdeps/osf1/close.c29
-rw-r--r--sysdeps/osf1/close_suid.c29
-rw-r--r--sysdeps/osf1/cpu.c68
-rw-r--r--sysdeps/osf1/glibtop_machine.h48
-rw-r--r--sysdeps/osf1/glibtop_server.h51
-rw-r--r--sysdeps/osf1/glibtop_suid.h48
-rw-r--r--sysdeps/osf1/loadavg.c71
-rw-r--r--sysdeps/osf1/mem.c68
-rw-r--r--sysdeps/osf1/msg_limits.c86
-rw-r--r--sysdeps/osf1/netload.c44
-rw-r--r--sysdeps/osf1/open.c34
-rw-r--r--sysdeps/osf1/open_suid.c90
-rw-r--r--sysdeps/osf1/ppp.c43
-rw-r--r--sysdeps/osf1/procargs.c45
-rw-r--r--sysdeps/osf1/procdata.c146
-rw-r--r--sysdeps/osf1/prockernel.c48
-rw-r--r--sysdeps/osf1/proclist.c170
-rw-r--r--sysdeps/osf1/procmap.c44
-rw-r--r--sysdeps/osf1/procmem.c102
-rw-r--r--sysdeps/osf1/procsegment.c79
-rw-r--r--sysdeps/osf1/procsignal.c73
-rw-r--r--sysdeps/osf1/procstate.c152
-rw-r--r--sysdeps/osf1/proctime.c78
-rw-r--r--sysdeps/osf1/procuid.c131
-rw-r--r--sysdeps/osf1/sem_limits.c109
-rw-r--r--sysdeps/osf1/shm_limits.c88
-rw-r--r--sysdeps/osf1/siglist.c59
-rw-r--r--sysdeps/osf1/swap.c63
-rw-r--r--sysdeps/osf1/uptime.c59
-rw-r--r--sysdeps/solaris/AUTHORS2
-rw-r--r--sysdeps/solaris/ChangeLog436
-rw-r--r--sysdeps/solaris/Makefile.am28
-rw-r--r--sysdeps/solaris/close.c29
-rw-r--r--sysdeps/solaris/close_suid.c29
-rw-r--r--sysdeps/solaris/cpu.c111
-rw-r--r--sysdeps/solaris/glibtop_machine.h76
-rw-r--r--sysdeps/solaris/glibtop_private.h65
-rw-r--r--sysdeps/solaris/glibtop_server.h51
-rw-r--r--sysdeps/solaris/glibtop_suid.h46
-rw-r--r--sysdeps/solaris/loadavg.c92
-rw-r--r--sysdeps/solaris/mem.c133
-rw-r--r--sysdeps/solaris/msg_limits.c119
-rw-r--r--sysdeps/solaris/netlist.c74
-rw-r--r--sysdeps/solaris/netload.c44
-rw-r--r--sysdeps/solaris/open.c242
-rw-r--r--sysdeps/solaris/open_suid.c96
-rw-r--r--sysdeps/solaris/ppp.c43
-rw-r--r--sysdeps/solaris/procargs.c83
-rw-r--r--sysdeps/solaris/procdata.c274
-rw-r--r--sysdeps/solaris/prockernel.c43
-rw-r--r--sysdeps/solaris/proclist.c240
-rw-r--r--sysdeps/solaris/procmap.c202
-rw-r--r--sysdeps/solaris/procmem.c65
-rw-r--r--sysdeps/solaris/procopenfiles.c128
-rw-r--r--sysdeps/solaris/procsegment.c43
-rw-r--r--sysdeps/solaris/procsignal.c73
-rw-r--r--sysdeps/solaris/procstate.c101
-rw-r--r--sysdeps/solaris/proctime.c71
-rw-r--r--sysdeps/solaris/procuid.c126
-rw-r--r--sysdeps/solaris/safeio.c87
-rw-r--r--sysdeps/solaris/safeio.h50
-rw-r--r--sysdeps/solaris/sem_limits.c120
-rw-r--r--sysdeps/solaris/shm_limits.c107
-rw-r--r--sysdeps/solaris/siglist.c73
-rw-r--r--sysdeps/solaris/swap.c109
-rw-r--r--sysdeps/solaris/uptime.c54
-rw-r--r--sysdeps/stub/ChangeLog47
-rw-r--r--sysdeps/stub/Makefile.am16
-rw-r--r--sysdeps/stub/close.c29
-rw-r--r--sysdeps/stub/cpu.c42
-rw-r--r--sysdeps/stub/glibtop_server.h51
-rw-r--r--sysdeps/stub/loadavg.c42
-rw-r--r--sysdeps/stub/mem.c42
-rw-r--r--sysdeps/stub/msg_limits.c42
-rw-r--r--sysdeps/stub/netlist.c39
-rw-r--r--sysdeps/stub/netload.c44
-rw-r--r--sysdeps/stub/open.c32
-rw-r--r--sysdeps/stub/ppp.c43
-rw-r--r--sysdeps/stub/procargs.c45
-rw-r--r--sysdeps/stub/prockernel.c43
-rw-r--r--sysdeps/stub/proclist.c51
-rw-r--r--sysdeps/stub/procmap.c48
-rw-r--r--sysdeps/stub/procmem.c43
-rw-r--r--sysdeps/stub/procopenfiles.c47
-rw-r--r--sysdeps/stub/procsegment.c43
-rw-r--r--sysdeps/stub/procsignal.c43
-rw-r--r--sysdeps/stub/procstate.c43
-rw-r--r--sysdeps/stub/proctime.c43
-rw-r--r--sysdeps/stub/procuid.c43
-rw-r--r--sysdeps/stub/sem_limits.c42
-rw-r--r--sysdeps/stub/shm_limits.c42
-rw-r--r--sysdeps/stub/siglist.c27
-rw-r--r--sysdeps/stub/swap.c42
-rw-r--r--sysdeps/stub/uptime.c42
-rw-r--r--sysdeps/stub_suid/ChangeLog32
-rw-r--r--sysdeps/stub_suid/Makefile.am22
-rw-r--r--sysdeps/stub_suid/close.c29
-rw-r--r--sysdeps/stub_suid/cpu.c47
-rw-r--r--sysdeps/stub_suid/glibtop_machine.h37
-rw-r--r--sysdeps/stub_suid/glibtop_server.h51
-rw-r--r--sysdeps/stub_suid/glibtop_suid.h46
-rw-r--r--sysdeps/stub_suid/init.c44
-rw-r--r--sysdeps/stub_suid/loadavg.c47
-rw-r--r--sysdeps/stub_suid/mem.c47
-rw-r--r--sysdeps/stub_suid/msg_limits.c47
-rw-r--r--sysdeps/stub_suid/netload.c44
-rw-r--r--sysdeps/stub_suid/nosuid.c33
-rw-r--r--sysdeps/stub_suid/open.c76
-rw-r--r--sysdeps/stub_suid/ppp.c43
-rw-r--r--sysdeps/stub_suid/procargs.c45
-rw-r--r--sysdeps/stub_suid/procdata.c178
-rw-r--r--sysdeps/stub_suid/prockernel.c48
-rw-r--r--sysdeps/stub_suid/proclist.c48
-rw-r--r--sysdeps/stub_suid/procmap.c44
-rw-r--r--sysdeps/stub_suid/procmem.c48
-rw-r--r--sysdeps/stub_suid/procsegment.c48
-rw-r--r--sysdeps/stub_suid/procsignal.c48
-rw-r--r--sysdeps/stub_suid/procstate.c48
-rw-r--r--sysdeps/stub_suid/proctime.c48
-rw-r--r--sysdeps/stub_suid/procuid.c48
-rw-r--r--sysdeps/stub_suid/sem_limits.c47
-rw-r--r--sysdeps/stub_suid/shm_limits.c47
-rw-r--r--sysdeps/stub_suid/siglist.c27
-rw-r--r--sysdeps/stub_suid/swap.c47
-rw-r--r--sysdeps/stub_suid/uptime.c47
-rw-r--r--sysdeps/sun4/ChangeLog51
-rw-r--r--sysdeps/sun4/Makefile.am21
-rw-r--r--sysdeps/sun4/close.c29
-rw-r--r--sysdeps/sun4/cpu.c106
-rw-r--r--sysdeps/sun4/glibtop_machine.h115
-rw-r--r--sysdeps/sun4/glibtop_server.h51
-rw-r--r--sysdeps/sun4/glibtop_suid.h46
-rw-r--r--sysdeps/sun4/loadavg.c66
-rw-r--r--sysdeps/sun4/loadavg.h57
-rw-r--r--sysdeps/sun4/mem.c90
-rw-r--r--sysdeps/sun4/msg_limits.c74
-rw-r--r--sysdeps/sun4/nosuid.c34
-rw-r--r--sysdeps/sun4/open.c309
-rw-r--r--sysdeps/sun4/ppp.c43
-rw-r--r--sysdeps/sun4/procdata.c31
-rw-r--r--sysdeps/sun4/prockernel.c59
-rw-r--r--sysdeps/sun4/proclist.c95
-rw-r--r--sysdeps/sun4/procmem.c61
-rw-r--r--sysdeps/sun4/procsegment.c60
-rw-r--r--sysdeps/sun4/procsignal.c62
-rw-r--r--sysdeps/sun4/procstate.c59
-rw-r--r--sysdeps/sun4/proctime.c59
-rw-r--r--sysdeps/sun4/procuid.c70
-rw-r--r--sysdeps/sun4/sem_limits.c80
-rw-r--r--sysdeps/sun4/shm_limits.c73
-rw-r--r--sysdeps/sun4/siglist.c59
-rw-r--r--sysdeps/sun4/swap.c36
-rw-r--r--sysdeps/sun4/uptime.c63
542 files changed, 0 insertions, 72295 deletions
diff --git a/AUTHORS b/AUTHORS
deleted file mode 100644
index 27f1043c..00000000
--- a/AUTHORS
+++ /dev/null
@@ -1,3 +0,0 @@
-Martin Baulig (martin@home-of-linux.org)
-Drazen Kacar (dave@srce.hr)
-Benoît Dejean (tazforever@dlfp.org)
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index 2385c82d..00000000
--- a/ChangeLog
+++ /dev/null
@@ -1,4100 +0,0 @@
-2007-05-19 Benoît Dejean <benoit@placenet.org>
-
- * features.def:
- * include/glibtop/proclist.h:
-
- Small API change.
- get_proclist returns pid_t instead of unsigned for consistency.
- I have checked many archs and this doesn't break the ABI.
-
-2007-05-17 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
-
- Bumped version number.
-
-2007-05-14 Benoît Dejean <benoit@placenet.org>
-
- * include/glibtop/Makefile.am:
- * lib/Makefile.am:
-
- Fixed dist.
-
-2007-05-13 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
- * configure.in:
-
- Released 2.19.2.
-
-2007-05-10 Benoît Dejean <benoit@placenet.org>
-
- * lib/libgtop.sym:
-
- Added missing *_p symbols.
-
-2007-05-07 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
- * lib/Makefile.am:
- * lib/libgtop.sym:
-
- Updated libtool version.
- Now uses a symbol list instead of a regex.
-
-2007-05-07 Benoît Dejean <benoit@placenet.org>
-
- * New API to get cwd, root and exe path
- of a process. API not frozen yet.
-
-2007-04-27 Benoît Dejean <benoit@placenet.org>
-
- Got rid of InodeDB.
- This feature was optionnal and i have never heard of anyone using
- it. I have never touched it so it may be broken since 2.6.
-
-2007-04-11 Benoît Dejean <benoit@placenet.org>
-
- * *:
-
- Renamed all glibtop_init_xxx functions
- to _glibtop_init_xxx so they get internal visibility.
-
- * configure.in:
-
- Bumped version number.
-
-2007-03-13 Benoît Dejean <benoit@placenet.org>
-
- * MAINTAINERS:
-
- Updated.
-
-2007-02-25 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
-
- Released 2.14.8.
-
-2007-02-20 Benoît Dejean <benoit@placenet.org>
-
- * *:
-
- Removed noisy $Id$.
-
-2007-02-18 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
- * libgtop-sysdeps.m4:
- * sysdeps/Makefile.am:
-
- Huge (k)FreeBSD update.
- (k)FreeBSD support is freebsd/
- Other BSD are in bsd/
-
- Patch by Joe Marcus Clarke <marcus@freebsd.org>
- Alexander Nedotsukov <bland@FreeBSD.org>
-
- Closes #407693.
-
-2007-02-14 Benoît Dejean <benoit@placenet.org>
-
- * lib/read.c: (glibtop_read_l):
- * lib/write.c: (glibtop_write_l):
-
- Handle EINTR.
-
- * configure.in:
-
- Post release version bump.
-
-2007-02-10 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
- * configure.in:
-
- Released 2.14.7.
-
-2007-01-14 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
-
- Released 2.14.6.
-
-2007-01-11 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
-
- Bumped version number to 2.14.6.
-
- * *:
-
- Got rid of CVS admin files.
-
-2006-12-03 Benoît Dejean <benoit@placenet.org>
-
- * doc/reference/libgtop-docs.xml:
- * glibtop.h:
- * include/glibtop/sysinfo.h:
-
- Made gtk-doc happy in order to dist.
-
-2006-12-03 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
-
- Released 2.14.5.
-
-2006-12-02 Benoît Dejean <benoit@placenet.org>
-
- * Makefile.am:
- * configure.in:
- * doc/Makefile.am:
- * doc/reference/Makefile.am:
- * doc/reference/libgtop-docs.xml:
- * doc/reference/libgtop-sections.txt:
- * doc/reference/version.xml.in:
- * gtk-doc.make:
- * sysdeps/common/default.c:
-
- Converted to gtk-doc.
- Patch by Germán Poó-Caamaño <gpoo@ubiobio.cl>.
-
-2006-12-01 Julio M. Merino Vidal <jmmv@NetBSD.org>
-
- * configure.in:
- * libgtop-sysdeps.m4:
-
- Use the AS_HELP_STRING macro to format help messages.
- Fixes bug #337068.
-
-2006-11-27 Benoît Dejean <benoit@placenet.org>
-
- * libgtop-sysdeps.m4:
-
- Added kfreebsd support.
- Patch by Petr Salinger <Petr.Salinger@seznam.cz>.
-
-2006-11-27 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
-
- Bumped version number.
-
-2006-09-16 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
- * configure.in:
-
- Released 2.14.4.
-
-2006-09-10 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
- * include/glibtop/procstate.h:
-
- Removed wrong inline documentation.
- Closes #355286.
-
-2006-09-05 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
-
- Released 2.14.3.
-
-2006-08-14 Benoît Dejean <benoit@placenet.org>
-
- * src/inodedb/Makefile.am:
-
- Fixed inodedb build with --as-needed to please people
- who want to compile and optimize broken, deprecated and
- never-used feature.
- Patch by Daniel Gryniewicz <dang@gentoo.org>
- Closes #341041.
-
-2006-08-10 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
-
- Bumped version number.
-
- * glibtop.h:
- * include/glibtop/init_hooks.h:
-
- Added missing G_(BEGIN|END)_DECLS.
-
-2006-07-27 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
-
- Released 2.14.2.
-
-2006-07-27 Benoît Dejean <benoit@placenet.org>
-
- * include/glibtop/netload.h:
-
- Tiny interface addition to handle wireless interfaces.
-
-2006-06-26 Benoît Dejean <benoit@placenet.org>
-
- * po/Makefile.in.in.in:
-
- Dropped dead file.
-
-2006-06-25 Benoît Dejean <benoit@placenet.org>
-
- * Makefile.am:
-
- Fixed build.
- Closes #341779.
-
-2006-06-24 Benoît Dejean <benoit@placenet.org>
-
- * Makefile.am:
-
- Build examples only when needed.
- Patch by dmacks@netspace.org.
- Closes #342863.
-
-2006-06-24 Benoît Dejean <benoit@placenet.org>
-
- * libgtop-sysdeps.m4:
- * sysdeps/solaris/glibtop_machine.h:
-
- Updated the GLIBTOP_SOLARIS_RELEASE
-
- Patch by hua.zhang@sun.com.
- Closes #345821.
-
-2006-06-24 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
-
- Don't use kvm on newer solaris.
- Patch by hua.zhang@sun.com.
- Closes #345811.
-
-2006-06-04 Benoît Dejean <benoit@placenet.org>
-
- * libgtop-sysdeps.m4:
-
- Removed undefined LIBGTOP_HACKER_TESTS.
- Closes #342890.
-
-2006-06-03 Benoît Dejean <benoit@placenet.org>
-
- * .cvsignore:
- * Makefile.am:
- * configure.in:
- * po/LINGUAS:
-
- Use po/LINGUAS.
- Closes #337902.
-
-2006-04-18 German Poo-Caaman~o <gpoo@ubiobio.cl>
-
- * /include/glibtop/cpu.h:
- * /include/glibtop/fsusage.h:
- * /include/glibtop/loadavg.h:
- * /include/glibtop/mem.h:
- * /include/glibtop/mountlist.h:
- * /include/glibtop/msg_limits.h:
- * /include/glibtop/netload.h:
- * /include/glibtop/ppp.h:
- * /include/glibtop/procargs.h:
- * /include/glibtop/prockernel.h:
- * /include/glibtop/proclist.h:
- * /include/glibtop/procmap.h:
- * /include/glibtop/procmem.h:
- * /include/glibtop/procopenfiles.h:
- * /include/glibtop/procsegment.h:
- * /include/glibtop/procsignal.h:
- * /include/glibtop/procstate.h:
- * /include/glibtop/proctime.h:
- * /include/glibtop/procuid.h:
- * /include/glibtop/sem_limits.h:
- * /include/glibtop/shm_limits.h:
- * /include/glibtop/swap.h:
- * /include/glibtop/sysdeps.h:
- * /include/glibtop/uptime.h:
-
- Changed struct's definitions to be one type-one member. To
- avoid problems with any further gtk-doc's implementation.
-
-2006-04-18 Kjartan Maraas <kmaraas@gnome.org>
-
- * configure.in: Remove obsolete entry for no_NO
- * po/no.po: And the translation.
-
-2006-04-10 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
-
- Released 2.14.1.
-
-2006-04-10 Benoît Dejean <benoit@placenet.org>
-
- * lib/open.c: (glibtop_open_l):
- * lib/read.c: (glibtop_read_l):
- * lib/write.c: (glibtop_write_l):
-
- Fixed a bunch of signedness warnings.
-
-2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
-
- * libgtop-sysdeps.m4:
- * sysdeps/freebsd/msg_limits.c:
-
- Use configure checks to detect whether we need to define either
- KERNEL or _KERNEL to get the definition of 'struct msginfo' in a
- BSD system. This replaces the previous checks in the code that
- relied on __FreeBSD__ and similar macros.
-
- Before this change, the explicit definition of _KERNEL in the
- msg_limits.c file broke the build in NetBSD because it made the
- system headers pull in stuff unavailable to userland.
-
- Fixes bug #337207.
-
-2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
-
- * libgtop-sysdeps.m4:
- * sysdeps/freebsd/Makefile.am:
-
- Check for the kvm library and use it to link the suid freebsd
- sysdeps code (only if available). This library provides all the
- kvm_* functions used in it and is needed, at least, under NetBSD.
-
- Fixes bug #337247.
-
-2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
-
- * sysdeps/aix/glibtop_server.h:
- * sysdeps/freebsd/glibtop_server.h:
- * sysdeps/osf1/glibtop_server.h:
- * sysdeps/stub/glibtop_server.h:
- * sysdeps/stub_suid/glibtop_server.h:
-
- Synch the list of GLIBTOP_SUID_* constants with those expected by
- the lib/sysdeps.c file. Fixes the build under, at least, NetBSD
- and FreeBSD.
-
- Fixes bug #337246.
-
-2006-04-02 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
-
- Bumped version to 2.14.1.
- Removed no longer needed gcc flag.
-
-2006-04-02 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
- * src/daemon/daemon.h:
- * src/daemon/gnuserv.c: (main):
-
- Reverted. See #336837
-
-2006-03-18 Vladimer Sichinava <vlsichinava@gmail.com>
-
- * configure.in: Added "ka" (Georgian) to ALL_LINGUAS
-
-2006-03-13 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
- * configure.in:
-
- Released 2.14.0.
-
-2006-02-27 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
- * configure.in:
-
- Released 2.13.92.
-
-2006-02-20 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
-
- Bump version to 2.13.4.
- Reordered libs. Closes #329153.
-
-2006-01-23 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
- * NEW:
-
- Released 2.13.3.
-
-2006-01-02 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
- * configure.in:
-
- Released 2.13.2.
-
-2006-01-02 James Henstridge <james@jamesh.id.au>
-
- * configure.in (LT_VERSION_INFO): add quotes around symbol definition.
-
-2005-12-15 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
- * NEWS:
-
- Released 2.13.1.
-
-2005-12-13 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
-
- Released 2.13.0.
-
-2005-12-12 James Henstridge <james@jamesh.id.au>
-
- * doc/auto-macros.texi.in: remove unused file.
-
- * doc/libgtop2.texi: don't include auto-macros.texi.
-
- * doc/Makefile.am: don't build auto-macros.texi, since none of its
- macros are used in the documentation any more.
-
- * include/glibtop/global.h: don't include <config.h> from headers.
-
- * .../*.c: make sure <config.h> is the first thing included.
-
- * acinclude.m4: m4_include() libgtop-sysdeps.m4 rather than
- inlining it.
-
- * acinclude.m4, libgtop-sysdeps.m4: use third argument to
- AC_DEFINE() to set the comment.
-
- * configure.in: modernise a bit.
-
- * acconfig.h: remove file, since it is deprecated
-
- * autogen.sh: require automake 1.9 instead of 1.4.
-
-2005-12-09 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
- * glibtop.h:
- * include/glibtop/cpu.h:
- * include/glibtop/procmap.h:
-
- Increased GLIBTOP_NCPU to 32.
- Added real_ncpu to struct glibtop.
- Added smaps members to glibtop_map_entry.
-
- Bumped version number to 2.13.0
- Broke ABI again. Sorry.
-
-2005-12-08 Benoît Dejean <benoit@placenet.org>
-
- * doc/reference.texi:
- * include/glibtop/limits.h:
-
- Dropped unused file and updated documentation.
-
-2005-12-07 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
-
- Bumped version number.
-
-2005-12-04 Theppitak Karoonboonyanan <thep@linux.thai.net>
-
- * configure.in: Added 'th' (Thai) to ALL_LINGUAS.
-
-2005-11-29 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
- * configure.in:
-
- Released 2.12.2.
- No 2.12.1.
-
-2005-11-17 Timur Jamakeev <timurj@cvs.gnome.org>
-
- * configure.in: Added 'ky' (Kirghiz) to ALL_LINGUAS.
-
-2005-10-30 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
- * include/glibtop/glibtop-backend-info.h:
- * include/glibtop/glibtop-backend.h:
- * include/glibtop/glibtop-client.h:
- * lib/glibtop-backend-info.c:
- * lib/glibtop-backend.c:
- * lib/glibtop-client-private.h:
- * lib/glibtop-client.c:
- * lib/test-backends.c:
- * sysdeps/common/backend.c:
- * sysdeps/common/libgtop-common.backend:
-
- Dropped many dead files.
- Bumped release number.
- I guess this closes #320250.
-
-2005-10-28 Erdal Ronahi <erdal.ronahi@gmail.com>
-
- * configure.in: Added ku (Kurdish) to ALL_LINGUAS
-
-2005-09-04 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
- * configure.in:
-
- Released 2.12.0.
-
-2005-08-22 Benoît Dejean <benoit@placenet.org>
-
- * configure.in:
-
- Hum hum, it's better if release number is 2.11.92 too.
-
-2005-08-22 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
-
- Released 2.11.92.
-
-2005-08-08 Benoît Dejean <benoit@placenet.org>
-
- * NEWS:
-
- Released 2.11.91.
-
-2005-08-04 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in:
- * examples/Makefile.am:
-
- Removed static examples.
-
-2005-08-02 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in:
- * include/glibtop/Makefile.am:
- * include/glibtop/glibtop-server.h:
- * include/glibtop/init_hooks.h:
- * include/glibtop/sysdeps.h:
- * lib/init.c: (glibtop_init_s):
- * lib/sysdeps.c:
- * sysdeps/aix/open.c: (glibtop_init_p):
- * sysdeps/common/sysdeps_suid.c:
- * sysdeps/freebsd/open.c: (glibtop_init_p):
- * sysdeps/osf1/open_suid.c: (glibtop_init_p):
- * sysdeps/solaris/open_suid.c: (glibtop_init_p):
- * sysdeps/stub_suid/open.c: (glibtop_init_p):
-
- Moved _glibtop_init_hook_[sp] declaration to private
- glibtop/init_hooks.h. Marked them const.
-
- Fixed GLIBTOP_SUID_NETLIST issues.
-
-2005-07-24 Benoît Dejean <TazForEver@dlfp.org>
-
- * NEWS:
- * configure.in: Released 2.11.90.
-
-2005-07-22 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in: 2.11.3 post release version bump.
-
-2005-07-13 Benoît Dejean <TazForEver@dlfp.org>
-
- * NEWS: Released 2.11.2.
-
-2005-07-06 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in: 2.11.2 post release version bump.
-
-2005-07-03 Benoît Dejean <TazForEver@dlfp.org>
-
- * NEWS: Released 2.11.1.
-
-2005-06-15 Benoît Dejean <TazForEver@dlfp.org>
-
- * sysdeps/common/Makefile.am:
- * sysdeps/linux/Makefile.am: Removed LT_VERSION_INFO from LDFLAGS
- when unused.
-
-2005-06-08 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in: 2.11.1 post release version bump.
-
-2005-06-08 Benoît Dejean <TazForEver@dlfp.org>
-
- * NEWS: Released 2.11.0.
-
-2005-06-07 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in:
- * glibtop.h:
- * include/glibtop/close.h:
- * include/glibtop/cpu.h:
- * include/glibtop/fsusage.h:
- * include/glibtop/loadavg.h:
- * include/glibtop/mem.h:
- * include/glibtop/mountlist.h:
- * include/glibtop/msg_limits.h:
- * include/glibtop/netlist.h:
- * include/glibtop/netload.h:
- * include/glibtop/ppp.h:
- * include/glibtop/procargs.h:
- * include/glibtop/prockernel.h:
- * include/glibtop/proclist.h:
- * include/glibtop/procmap.h:
- * include/glibtop/procmem.h:
- * include/glibtop/procopenfiles.h:
- * include/glibtop/procsegment.h:
- * include/glibtop/procsignal.h:
- * include/glibtop/procstate.h:
- * include/glibtop/proctime.h:
- * include/glibtop/procuid.h:
- * include/glibtop/sem_limits.h:
- * include/glibtop/shm_limits.h:
- * include/glibtop/swap.h:
- * include/glibtop/sysdeps.h:
- * include/glibtop/sysinfo.h:
- * include/glibtop/uptime.h:
- * sysdeps/common/Makefile.am:
- * sysdeps/common/default.c: (glibtop_close), (glibtop_init),
- (glibtop_get_cpu), (glibtop_get_fsusage), (glibtop_get_uptime),
- (glibtop_get_sysinfo), (glibtop_get_swap), (glibtop_get_proc_uid),
- (glibtop_get_proc_time), (glibtop_get_proc_state),
- (glibtop_get_proc_signal), (glibtop_get_proc_segment),
- (glibtop_get_proc_open_files), (glibtop_get_proc_mem),
- (glibtop_get_proc_map), (glibtop_get_proc_args),
- (glibtop_get_proc_argv), (glibtop_get_proclist),
- (glibtop_get_proc_kernel), (glibtop_get_ppp),
- (glibtop_get_netlist), (glibtop_get_netload),
- (glibtop_get_mountlist), (glibtop_get_mem), (glibtop_get_loadavg),
- (glibtop_get_msg_limits), (glibtop_get_sem_limits),
- (glibtop_get_shm_limits), (glibtop_get_sysdeps):
-
- Added a lot of new functions to replace dirty macros.
- Every macro glibtop_get_*(buf[, args]) has been turned to a function.
-
-2005-06-06 Benoît Dejean <TazForEver@dlfp.org>
-
- * dtd/: Bye bye.
-
-2005-06-06 Benoît Dejean <TazForEver@dlfp.org>
-
- * backends/: Removed useless files.
-
-2005-06-06 Benoît Dejean <TazForEver@dlfp.org>
-
- * examples/smp.c: (main): Removed translation.
-
- * lib/lib.pl:
- * lib/read.c:
- * lib/read_data.c:
- * lib/write.c:
- * src/daemon/gnuserv.c: s/gi18n.h/gi18n-lib.h.
-
-2005-06-06 Benoît Dejean <TazForEver@dlfp.org>
-
- * acinclude.m4: bye bye support.
-
-2005-06-06 Benoît Dejean <TazForEver@dlfp.org>
-
- * support/ : Removed unused files.
-
-2005-06-06 Benoît Dejean <TazForEver@dlfp.org>
-
- * examples/smp.c:
- * include/Makefile.am:
- * include/libgtop-i18n.h:
- * lib/lib.pl:
- * lib/read.c:
- * lib/read_data.c:
- * lib/write.c:
- * src/daemon/gnuserv.c: Got rid of include/libgtop-i18n.h.
-
-2005-06-06 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in: version bump.
-
-2005-06-05 Benoît Dejean <TazForEver@dlfp.org>
-
- * README: Updated so people can find the ChangeLogs.
-
-2005-04-27 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in: 2.10.2 post release bump.
-
- * include/glibtop/Makefile.am:
- * include/glibtop/parameter.h:
- * lib/init.c: Re-install open.h to please GTop (libgtop perl wrapper).
-
-2005-04-10 Benoît Dejean <TazForEver@dlfp.org>
-
- * NEWS: Released 2.10.1.
-
-2005-04-01 Adi Attar <aattar@cvs.gnome.org>
-
- * configure.in: Added "xh" to ALL_LINGUAS.
-
-2005-03-31 Steve Murphy <murf@e-tools.com>
-
- * configure.in: Added "rw" to ALL_LINGUAS.
-
-2005-03-31 Benoît Dejean <TazForEver@dlfp.org>
-
- * libgtop-2.0.pc.in: Fixed.
-
-2005-03-29 Benoît Dejean <TazForEver@dlfp.org>
-
- * lib/read_data.c: (glibtop_read_data_l): Fixed warning.
-
-2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
-
- * lib/error.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
- s/strerror/g_strerror.
-
-2005-03-11 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in: Post release version bump.
-
-2005-03-07 Benoît Dejean <TazForEver@dlfp.org>
-
- * NEWS:
- * configure.in: Released 2.10.0.
-
-2005-02-28 Benoît Dejean <TazForEver@dlfp.org>
-
- * NEWS: Released 2.9.92.
-
-2005-02-25 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in: /me stupid. I've already post-bumped version.
-
-2005-02-24 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in: post release bump 2.9.93.
-
-2005-02-22 Benoît Dejean <TazForEver@dlfp.org>
-
- * src/Makefile.am: Build and install libgtop2_daemon only if needed.
-
-2005-02-21 Benoît Dejean <TazForEver@dlfp.org>
-
- * lib/Makefile.am: don't export private symbols.
-
-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.
-
- Depends on glib-2.6.
- Post-release bump : 2.9.92
-
-2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
-
- * include/glibtop/error.h: Don't export private symbols.
-
-2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
-
- * include/glibtop/error.h: G_GNUC_NORETURN love.
-
- * include/glibtop/errors.h:
- * lib/errors.c: Bye bye dead code.
-
-2005-02-06 Benoît Dejean <TazForEver@dlfp.org>
-
- * NEWS:
- * configure.in: Released 2.9.91.
-
-2005-01-24 Benoît Dejean <TazForEver@dlfp.org>
-
- * NEWS:
- * configure.in: Released 2.9.90.
-
-2005-01-24 Benoît Dejean <TazForEver@dlfp.org>
-
- * include/glibtop/procopenfiles.h:
- * sysdeps/linux/procopenfiles.c:
- * sysdeps/stub/procopenfiles.c: UTF-8-ified.
-
-2005-01-22 Benoît Dejean <TazForEver@dlfp.org>
-
- * examples/openfiles.c: (show_open_files):
- * include/glibtop/procopenfiles.h: added localsock { name } to
- glibtop_open_files_entry. Should not break ABI.
-
-2005-01-12 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in: 2.9.5.
-
-2005-01-10 Benoît Dejean <TazForEver@dlfp.org>
-
- * NEWS: Released 2.9.4.
-
-2005-01-10 Benoît Dejean <TazForEver@dlfp.org>
-
- * configure.in:
- * examples/.cvsignore:
- * examples/Makefile.am:
- * examples/openfiles.c: (show_open_files), (main):
- * features.def:
- * include/glibtop/Makefile.am:
- * include/glibtop/command.h:
- * include/glibtop/procopenfiles.h:
- * include/glibtop/sysdeps.h:
- * include/glibtop/union.h:
- * structures.def:
- * sysdeps/linux/Makefile.am:
- * sysdeps/linux/procopenfiles.c: (glibtop_init_proc_open_files_s),
- (get_socket_endpoint), (glibtop_get_proc_open_files_s):
- * sysdeps/stub/Makefile.am:
- * sysdeps/stub/procopenfiles.c: (glibtop_init_proc_open_files_s),
- (glibtop_get_proc_open_files_s):
-
- New feature by nick@reloco.com.ar (Nicolás Lichtmaier).
-
- glibtop_get_open_files(pid) -> list of files by process.
- TODO: Add documentation.
-
-2005-01-03 Benoît Dejean <TazForEver@dlfp.org>
-
- * examples/pprint.c: (pprint_get_cpu):
- * features.def:
- * include/glibtop/cpu.h:
- * sysdeps/linux/cpu.c: (glibtop_init_cpu_s), (glibtop_get_cpu_s):
- Added I/O and IRQ wait time to glibtop_cpu. Closes #160443.
-
- * configure.in: Post-release bump 2.9.4
-
-2004-12-29 Benoît Dejean <tazforever@dlfp.org>
-
- * lib/read_data.c: (glibtop_read_data_l):
- * lib/write.c: (glibtop_write_l): Fixed error messages.
- Closes #162406.
-
-2004-12-23 Benoît Dejean <tazforever@dlfp.org>
-
- * include/glibtop/error.h:
- * lib/parameter.c: (glibtop_set_parameter_l):
- * lib/read_data.c: (glibtop_read_data_l):
- * sysdeps/common/error.c: (print_server_name), (glibtop_error_vr),
- (glibtop_error_io_vr), (glibtop_warn_vr), (glibtop_warn_io_vr),
- (glibtop_error_r), (glibtop_warn_r), (glibtop_error_io_r),
- (glibtop_warn_io_r), (glibtop_error), (glibtop_warn),
- (glibtop_error_io), (glibtop_warn_io): Turned all macros to functions.
- Marked everything as G_GNUC_PRINTF and fixed format bugs.
-
- * sysdeps/common/fsusage.c: Marked some functions as G_GNUC_INTERNAL
-
-2004-12-20 Benoît Dejean <tazforever@dlfp.org>
-
- * NEWS:
- * configure.in: Released 2.9.3.
-
-2004-12-10 Benoît Dejean <tazforever@dlfp.org>
-
- * lib/lib.pl: Fixed Argument passing between library and server.
- Thanks everyone. Closes #139809.
-
-2004-12-06 Benoît Dejean <tazforever@dlfp.org>
-
- * acconfig.h:
- * configure.in:
- * debian/libgtop-dev.files.in:
- * doc/Makefile.am:
- * examples/Makefile.am:
- * examples/third.c:
- * include/glibtop/cpu.h:
- * include/glibtop/fsusage.h:
- * include/glibtop/loadavg.h:
- * include/glibtop/mem.h:
- * include/glibtop/mountlist.h:
- * include/glibtop/msg_limits.h:
- * include/glibtop/netlist.h:
- * include/glibtop/netload.h:
- * include/glibtop/ppp.h:
- * include/glibtop/procargs.h:
- * include/glibtop/prockernel.h:
- * include/glibtop/proclist.h:
- * include/glibtop/procmap.h:
- * include/glibtop/procmem.h:
- * include/glibtop/procsegment.h:
- * include/glibtop/procsignal.h:
- * include/glibtop/procstate.h:
- * include/glibtop/proctime.h:
- * include/glibtop/procuid.h:
- * include/glibtop/sem_limits.h:
- * include/glibtop/shm_limits.h:
- * include/glibtop/swap.h:
- * include/glibtop/sysdeps.h:
- * include/glibtop/uptime.h:
- * po/POTFILES.in:
- * sysdeps/Makefile.am:
- * sysdeps/names/.cvsignore:
- * sysdeps/names/Makefile.am:
- * sysdeps/names/cpu.c:
- * sysdeps/names/fsusage.c:
- * sysdeps/names/loadavg.c:
- * sysdeps/names/mem.c:
- * sysdeps/names/mountlist.c:
- * sysdeps/names/msg_limits.c:
- * sysdeps/names/netlist.c:
- * sysdeps/names/netload.c:
- * sysdeps/names/ppp.c:
- * sysdeps/names/procargs.c:
- * sysdeps/names/prockernel.c:
- * sysdeps/names/proclist.c:
- * sysdeps/names/procmap.c:
- * sysdeps/names/procmem.c:
- * sysdeps/names/procsegment.c:
- * sysdeps/names/procsignal.c:
- * sysdeps/names/procstate.c:
- * sysdeps/names/proctime.c:
- * sysdeps/names/procuid.c:
- * sysdeps/names/sem_limits.c:
- * sysdeps/names/shm_limits.c:
- * sysdeps/names/swap.c:
- * sysdeps/names/sysdeps.c:
- * sysdeps/names/uptime.c: Removed libgtop_names :)
-
-2004-11-30 Benoît Dejean <tazforever@dlfp.org>
-
- * configure.in: post-release bump to 2.9.1.
-
-2004-11-30 Benoît Dejean <tazforever@dlfp.org>
-
- * NEWS:
- * configure.in: released 2.9.0
-
-2004-11-22 Benoît Dejean <tazforever@dlfp.org>
-
- * AUTHORS:
- * MAINTAINERS: UTF-8-ified.
-
- * acconfig.h:
- * acinclude.m4:
- * configure.in:
- * kernel/ChangeLog:
- * kernel/sysctl/.cvsignore:
- * kernel/sysctl/Makefile:
- * kernel/sysctl/libgtop.c:
- * kernel/sysctl/libgtop.h:
- * kernel/sysctl/libgtop_syms.c:
- * kernel/sysctl/main.c:
- * kernel/sysctl/patch-2.2.1:
- * kernel/sysctl/patch-2.2.x:
- * kernel/table.h:
- * kernel/table20/Makefile:
- * kernel/table20/README:
- * kernel/table20/entry-i386.S:
- * kernel/table20/kernel.patch:
- * kernel/table20/main.c:
- * kernel/table20/unistd-i386.h:
- * kernel/table20/version.h:
- * kernel/table21/.cvsignore:
- * kernel/table21/Makefile:
- * kernel/table21/README:
- * kernel/table21/entry-i386.S:
- * kernel/table21/main.c:
- * kernel/table21/module.c:
- * kernel/table21/unistd-i386.h:
- * kernel/table21/version.h:
- * kernel/version.h:
- * libgtop-sysdeps.m4:
- * sysdeps/Makefile.am:
- * sysdeps/kernel/.cvsignore:
- * sysdeps/kernel/ChangeLog:
- * sysdeps/kernel/Makefile.am:
- * sysdeps/kernel/close.c:
- * sysdeps/kernel/cpu.c:
- * sysdeps/kernel/glibtop_private.h:
- * sysdeps/kernel/glibtop_server.h:
- * sysdeps/kernel/kernel.h:
- * sysdeps/kernel/kernel.s:
- * sysdeps/kernel/loadavg.c:
- * sysdeps/kernel/mem.c:
- * sysdeps/kernel/msg_limits.c:
- * sysdeps/kernel/netload.c:
- * sysdeps/kernel/open.c:
- * sysdeps/kernel/ppp.c:
- * sysdeps/kernel/procargs.c:
- * sysdeps/kernel/procdata.c:
- * sysdeps/kernel/prockernel.c:
- * sysdeps/kernel/proclist.c:
- * sysdeps/kernel/procmap.c:
- * sysdeps/kernel/procmem.c:
- * sysdeps/kernel/procsegment.c:
- * sysdeps/kernel/procsignal.c:
- * sysdeps/kernel/procstate.c:
- * sysdeps/kernel/proctime.c:
- * sysdeps/kernel/procuid.c:
- * sysdeps/kernel/sem_limits.c:
- * sysdeps/kernel/shm_limits.c:
- * sysdeps/kernel/siglist.c:
- * sysdeps/kernel/swap.c:
- * sysdeps/kernel/sysinfo.c:
- * sysdeps/kernel/uptime.c: Removed kernel patch and implementation.
-
-2004-11-18 Benoît Dejean <tazforever@dlfp.org>
-
- * Makefile.am: Forgot to ship libgtopconfig.h.
-
-2004-11-18 Benoît Dejean <tazforever@dlfp.org>
-
- * LIBGTOP-VERSION:
- * libgtop-mirror.sh: Removed unused files.
-
- * libgtopconfig.h.in: Added.
- * Makefile.am:
- * configure.in:
- * glibtop.h: Added libgtopconfig.h and LIBGTOP_VERSION_CHECK(X, Y, Z).
- This can be used in build tests.
-
-2004-11-15 Benoît Dejean <tazforever@dlfp.org>
-
- * copyright.txt: Added myself.
-
-2004-11-13 Benoît Dejean <tazforever@dlfp.org>
-
- * include/glibtop/procargs.h:
- * sysdeps/common/procargs.c: (glibtop_get_proc_argv_l): Removed SUID
- wrappers because glibtop_proc_argv_l is a client-side function that wraps
- glibtop_get_proc_args.
-
-2004-11-13 Benoît Dejean <tazforever@dlfp.org>
-
- * structures.def: Removed old functions. OMG, everything is really broken
- here :/
-
-2004-11-13 Benoît Dejean <tazforever@dlfp.org>
-
- * configure.in: Bumped to 2.9.0
-
- * configure.in:
- * examples/.cvsignore:
- * examples/Makefile.am:
- * examples/netlist.c: (main):
- * features.def:
- * include/glibtop/Makefile.am:
- * include/glibtop/command.h:
- * include/glibtop/netlist.h:
- * include/glibtop/sysdeps.h:
- * include/glibtop/union.h:
- * include/glibtop/version.h:
- * src/daemon/version.c:
- * sysdeps/linux/Makefile.am:
- * sysdeps/linux/netlist.c: (glibtop_init_netlist_s),
- (glibtop_get_netlist_s):
- * sysdeps/names/Makefile.am:
- * sysdeps/names/netlist.c:
- * sysdeps/solaris/Makefile.am:
- * sysdeps/solaris/netlist.c: (glibtop_init_netlist_s),
- (glibtop_get_netlist_s): Added new function glibtop_get_netlist().
- Implemented for linux and solaris. Doc needed.
-
-2004-10-11 Benoît Dejean <tazforever@dlfp.org>
-
- * NEWS: Released 2.8.1.
-
-2004-10-10 Benoît Dejean <tazforever@dlfp.org>
-
- * lib/init.c: Replaced C99 initializer.
-
- * lib/read.c: (do_read): 1-line cleanup.
-
-2004-10-09 Benoît Dejean <tazforever@dlfp.org>
-
- * configure.in: Depends on glib 2.4.0
-
-2004-09-25 Benoît Dejean <tazforever@dlfp.org>
-
- * glibtop.h: Added missing include <glibtop/close.h>.
-
-2004-09-22 Benoît Dejean <tazforever@dlfp.org>
-
- * configure.in: CFLAGS: Removed -W, added -Winline.
-
-2004-09-14 Gora Mohanty <gmohanty@cvs.gnome.org>
-
- * configure.in: Added 'or' to ALL_LINGUAS.
-
-2004-09-13 Benoît Dejean <tazforever@dlfp.org>
-
- * configure.in: bumped to 2.8.1.
-
- * sysdeps/common/fsusage.c:
- * sysdeps/common/gnuslib.c: (glibtop_make_connection),
- (connect_to_unix_server), (glibtop_internet_addr):
- * sysdeps/linux/glibtop_server.c: (get_pageshift):
- * sysdeps/linux/glibtop_server.h:
- * sysdeps/linux/open.c: (glibtop_open_s):
- * sysdeps/linux/ppp.c: (is_ISDN_on): Cleanups. Thanks to Kjartan Maraas.
- Closes #151557.
-
-2004-09-13 Benoît Dejean <tazforever@dlfp.org>
-
- * NEWS:
- * configure.in: 2.8.0
-
-2004-08-30 Benoît Dejean <tazforever@dlfp.org>
-
- * NEWS: Released 2.7.92.
-
-2004-08-28 Benoît Dejean <tazforever@dlfp.org>
-
- * backends/server/command.c: (glibtop_call_i): Zeroed all args.
-
- * configure.in: Bumped soname (thanks to seb128 and Dodji even if i've
- fully understand everything.
-
- * include/glibtop/array.h:
- * include/glibtop/compat_10.h:
- * include/glibtop/glib-arrays.h:
- * include/glibtop/interfaces.h:
- * include/glibtop/proccwd.h:
- * lib/glib-arrays.c:
- * sysdeps/names/interfaces.c:
- * sysdeps/names/proccwd.c: Got rid of never-used / never-implemented files.
-
-2004-08-28 Akagic Amila <bono@linux.org.ba>
-
- * configure.in: Added 'bs' to ALL_LINGUAS.
-
-2004-08-22 Benoît Dejean <tazforever@dlfp.org>
-
- * lib/command.c: (glibtop_call_l): Zeroed all args.
-
-2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
-
- * configure.in: Add «nb» to ALL_LINGUAS.
-
-2004-08-15 Benoît Dejean <tazforever@dlfp.org>
-
- * NEWS:
- * configure.in: LibGTop 2.7.91.
-
-2004-08-09 Benoît Dejean <tazforever@dlfp.org>
-
- * configure.in: Added HAVE_IFADDRS_H
- * sysdeps/linux/netload.c: (glibtop_get_netload_s): Disable IPv6
- support is ifaddrs.h is not available.
-
- Closes #149376.
-
-2004-08-09 Benoît Dejean <tazforever@dlfp.org>
-
- * configure.in: Added -gnu89 to CFLAGS.
-
- * examples/Makefile.am: Fixed LDFLAGS.
-
- * sysdeps/common/fsusage.c: (glibtop_get_fsusage_s):
- * sysdeps/linux/fsusage.c: (linux_2_6_0):
- * sysdeps/linux/proctime.c: (glibtop_get_proc_time_s):
- * sysdeps/linux/sysinfo.c: (init_sysinfo): Fixed C89 issues.
-
- Closes #149375.
-
-2004-08-03 Benoît Dejean <tazforever@dlfp.org>
-
- * NEWS:
- * configure.in: LibGTop 2.7.90.
-
-2004-07-20 Benoît Dejean <tazforever@dlfp.org>
-
- * configure.in: LibGTop 2.7.5.
-
-2004-07-20 Benoît Dejean <tazforever@dlfp.org>
-
- * NEWS:
- * configure.in: Released LibGTop 2.7.4.
-
-2004-07-18 Benoît Dejean <tazforever@dlfp.org>
-
- * doc/reference.texi:
- * include/glibtop/command.h:
- * include/glibtop/glib-arrays.h:
- * include/glibtop/proclist.h:
- * lib/glib-arrays.c: (glibtop_get_proclist_as_array_l):
- * lib/lib.pl:
- * scripts/c_types.pl:
- * src/daemon/main.c: (handle_parent_connection):
- * src/daemon/slave.c: (handle_slave_connection):
- * support/mkstemp.c:
- * sysdeps/aix/proclist.c: (glibtop_get_proclist_s):
- * sysdeps/freebsd/cpu.c: (glibtop_get_cpu_p):
- * sysdeps/freebsd/prockernel.c: (glibtop_get_proc_kernel_p):
- * sysdeps/freebsd/proclist.c: (glibtop_get_proclist_p):
- * sysdeps/freebsd/procmem.c: (glibtop_get_proc_mem_p):
- * sysdeps/kernel/proclist.c: (glibtop_get_proclist_s):
- * sysdeps/linux/proclist.c: (glibtop_get_proclist_s):
- * sysdeps/osf1/proclist.c: (glibtop_get_proclist_p):
- * sysdeps/solaris/proclist.c: (glibtop_get_proclist_s):
- * sysdeps/stub/proclist.c: (glibtop_get_proclist_s):
- * sysdeps/stub_suid/proclist.c: (glibtop_get_proclist_p):
- * sysdeps/sun4/proclist.c: (glibtop_get_proclist_p): Glibify a bit more.
- Closes #147618.
-
-2004-07-17 Benoît Dejean <tazforever@dlfp.org>
-
- * include/glibtop/fsusage.h: Added read, write. This members provides
- total read and write in bytes since boot_time.
-
- * include/glibtop/netload.h: Added hwaddress : provides harware address,
- eg MAC address. mtu, address and subnet are now guint32.
-
-2004-07-15 Benoît Dejean <tazforever@dlfp.org>
-
- * include/glibtop/procstate.h: Added GLIBTOP_PROCESS_DEAD constant.
-
-2004-07-07 Benoît Dejean <tazforever@dlfp.org>
-
- * include/glibtop/procargs.h: Added new glibtop_get_proc_argv*() functions.
- These are more easier to use than glibtop_get_proc_args*(). They return
- a NULL-terminated array of string (like main's char* argv[]).
-
-2004-07-07 Benoît Dejean <tazforever@dlfp.org>
-
- * include/glibtop/netinfo.h:
- * structures.def:
- * sysdeps/names/netinfo.c: Removed netinfo.[ch] that were never used.
-
-2004-07-03 Benoît Dejean <tazforever@dlfp.org>
-
- * sysdeps/names/fsusage.c: Added missing fsusage names.
-
-2004-07-03 Benoît Dejean <tazforever@dlfp.org>
-
- * glibtop.h: Moved foward declaration of glibtop to break circular
- #includes dependencies.
-
-2004-06-18 Benoît Dejean <tazforever@dlfp.org>
-
- * include/glibtop/error.h: Also tries C99 __VA_ARGS__ before using
- functions.
-
- * include/glibtop/error.h: Moved 8 static error functions to
- sysdeps/common/error.c. This is the end of an big useless code
- bloat : expect ~8KB of object size reduction.
-
- * include/glibtop/procuid.h: s/int/gint32/g
-
- * lib/errors.c: (glibtop_error_quark):
- * lib/read.c: (do_read), (glibtop_read_l):
- * lib/read_data.c: (glibtop_read_data_l): Minor cleanups.
-
- * sysdeps/names/netload.c:
- * include/glibtop/netload.h: Added IPv6 feature : provides address,
- prefix and scope. This breaks the ABI. Not documented yet : check
- this file.
-
-2004-06-13 Benoît Dejean <tazforever@dlfp.org>
-
- * include/glibtop/sysinfo.h: Changed get_sysinfo prototype so that it
- returns a const pointer. Added missing macro.
-
-2004-06-12 Benoît Dejean <tazforever@dlfp.org>
-
- * include/glibtop/fsusage.h: block_size is now defined as a guint32
- instead of a fuzzy gint.
-
- * lib/sysdeps.c: (glibtop_get_sysdeps_r): Small cleanup.
-
- * lib/init.c: Added missing initializer.
-
-2004-06-09 Benoît Dejean <TazForEver@dlfp.org>
-
- * *.{c,h} : whitespace clean up.
-
-2004-06-07 Benoît Dejean <tazforever@dlfp.org>
-
- * lib/parameter.c:
- * support/popt.c: (poptGetContext): Cleaned.
-
- * support/vsnprintf.c: s/strncpy/g_strlcpy
-
-2004-05-28 Benoît Dejean <TazForEver@free.fr>
-
- * examples/*: Added missing #include.
- * ChangeLog: Converted to UTF-8.
-
-2004-04-16 Iñaki Larrañaga <dooteo@euskalgnu.org>
-
- * configure.in: Added "eu" (Basque) to ALL_LINGUAS.
-
-2004-04-09 Guntupalli Karunakar <karunakar@freedomink.org>
-
- * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
-
-2004-04-07 Bastien Nocera <hadess@hadess.net>
-
- * configure.in: version 2.6.0
-
-2004-04-07 Bastien Nocera <hadess@hadess.net>
-
- * include/glibtop/fsusage.h: fix typo in the #defines for
- FSUSAGE_BLOCK_SIZE (patch by Benoît Dejean <TazForEver@free.fr>)
-
-2004-03-30 Adam Weinberger <adamw@gnome.org>
-
- * configure.in: Added en_CA (Canadian English) to ALL_LINGUAS.
-
-2004-03-22 Gareth Owen <gowen72@yahoo.com>
-
- * configure.in: Added en_GB to ALL_LINGUAS
-
-2004-03-22 Guntupalli Karunakar <karunakar@freedomink.org>
-
- * configure.in: Added "pa" (Punjabi) to ALL_LINGUAS.
-
-2004-03-15 Bastien Nocera <hadess@hadess.net>
-
- * include/glibtop/fsusage.h: set GLIBTOP_MAX_FSUSAGE properly,
- use gint in the headers instead of int (Closes: #125049)
-
-2004-03-11 Kjartan Maraas <kmaraas@gnome.org>
-
- * configure.in: Up versions etc.
- * po/am.po: Update foo.
- * po/ar.po:
- * po/az.po:
- * po/be.po:
- * po/bg.po:
- * po/bn.po:
- * po/ca.po:
- * po/cs.po:
- * po/cy.po:
- * po/da.po:
- * po/de.po:
- * po/el.po:
- * po/es.po:
- * po/et.po:
- * po/fa.po:
- * po/fi.po:
- * po/fr.po:
- * po/ga.po:
- * po/gl.po:
- * po/he.po:
- * po/hi.po:
- * po/hr.po:
- * po/hu.po:
- * po/id.po:
- * po/it.po:
- * po/ja.po:
- * po/ko.po:
- * po/lt.po:
- * po/lv.po:
- * po/mk.po:
- * po/ml.po:
- * po/mn.po:
- * po/ms.po:
- * po/nl.po:
- * po/nn.po:
- * po/no.po:
- * po/pl.po:
- * po/pt.po:
- * po/pt_BR.po:
- * po/ro.po:
- * po/ru.po:
- * po/sk.po:
- * po/sl.po:
- * po/sq.po:
- * po/sr.po:
- * po/sr@Latn.po:
- * po/sv.po:
- * po/ta.po:
- * po/tr.po:
- * po/uk.po:
- * po/vi.po:
- * po/zh_CN.po:
- * po/zh_TW.po:
-
-2004-03-11 Bastien Nocera <hadess@hadess.net>
-
- * NEWS: update the NEWS file for the release
-
-2004-03-11 Bastien Nocera <hadess@hadess.net>
-
- * include/Makefile.am: fix distchecking
-
-2003-12-27 Ole Laursen <olau@hardworking.dk>
-
- * include/glibtop/fsusage.h: Added block_size field. (Closes: #125049)
-
-2004-03-05 Bastien Nocera <hadess@hadess.net>
-
- * include/glibtop/procmap.h: patch by Benoît Dejean <bnet@ifrance.com>
- to break the API, I mean, to make it easier to generate Python bindings
- (Closes: #129701)
-
-2004-03-04 Bastien Nocera <hadess@hadess.net>
-
- * configure.in:
- * include/libgtop-i18n.h:
- * lib/lib.pl:
- * lib/read.c:
- * lib/read_data.c:
- * lib/write.c:
- * sysdeps/names/cpu.c:
- * sysdeps/names/fsusage.c:
- * sysdeps/names/loadavg.c:
- * sysdeps/names/mem.c:
- * sysdeps/names/mountlist.c:
- * sysdeps/names/msg_limits.c:
- * sysdeps/names/netload.c:
- * sysdeps/names/ppp.c:
- * sysdeps/names/procargs.c:
- * sysdeps/names/prockernel.c:
- * sysdeps/names/proclist.c:
- * sysdeps/names/procmap.c:
- * sysdeps/names/procmem.c:
- * sysdeps/names/procsegment.c:
- * sysdeps/names/procsignal.c:
- * sysdeps/names/procstate.c:
- * sysdeps/names/proctime.c:
- * sysdeps/names/procuid.c:
- * sysdeps/names/sem_limits.c:
- * sysdeps/names/shm_limits.c:
- * sysdeps/names/swap.c:
- * sysdeps/names/sysdeps.c:
- * sysdeps/names/uptime.c: remove dependency on libgnome,
- check for linux/isdn.h for distros using the 2.6 kernel headers
-
-2004-02-07 Kevin Vandersloot
-
- * configure.in: release 2.5.1
-
-2004-02-02 Sebastien Bacher <seb128@debian.org>
-
- * sysdeps/linux/mem.c: (glibtop_get_mem_s): patch from
- Benoît Dejean <bnet@ifrance.com> to fix libtop_mem.used
- and glibtop_mem.shared values (Closes: #129863).
-
-Wed Jan 7 02:23:28 2004 Jonathan Blandford <jrb@gnome.org>
-
- * libgtop-2.0.pc.in: Should be -lgtop-2.0, #130506
-
-2004-01-05 Frederic Crozat <fcrozat@mandrakesoft.com>
-
- * libgtop.spec.in: License is GPL, not LGPL.
-
-2004-01-05 Malcolm Tredinnick <malcolm@commsecure.com.au>
-
- * libgtop-2.0.pc.in: Include -lgtop in the linking flags.
- Bug #130506.
-
-2004-01-03 Robert Sedak <robert.sedak@sk.htnet.hr>
-
- * configure.in: Added "hr" in ALL_LINGUAS.
-
-2003-12-22 Bastien Nocera <hadess@hadess.net>
-
- * acinclude.m4:
- * configure.in: remove linking to libgtop and checks for 64-bit
- integer bytes (fixes warning on build on glib 2.0 systems)
-
-2003-11-02 Ćœygimantas Beručka <uid0@tuxfamily.org>
-
- * configure.in: Added "lt" to ALL_LINGUAS.
-
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am:
- * configure.in:
- * src/inodedb/.cvsignore:
- * sysdeps/names/Makefile.am:
- install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * lib/read.c: (glibtop_read_l):
- * lib/read_data.c: (glibtop_read_data_l):
- * lib/write.c: (glibtop_write_l): apply patch for ngettext support
- by Christian Neumair <chris@gnome-de.org>
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * include/glibtop/cpu.h:
- * include/glibtop/procstate.h:
- * include/glibtop/procuid.h:
- * include/glibtop/uptime.h:
- * lib/sysdeps.c:
- * sysdeps/names/cpu.c:
- * sysdeps/names/procstate.c:
- * sysdeps/names/procuid.c:
- * sysdeps/names/uptime.c: Apply patch by the_h1ghlander@yahoo.com and
- Cory Omand <cory.omand@Sun.com> for Solaris support
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * src/inodedb/Makefile.am: link to libgtop_suid_common-2.0.la
- (Closes: #107990)
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * acconfig.h:
- * acinclude.m4:
- * include/glibtop/array.h:
- * include/glibtop/command.h:
- * include/glibtop/cpu.h:
- * include/glibtop/fsusage.h:
- * include/glibtop/glibtop-backend-info.h:
- * include/glibtop/glibtop-backend.h:
- * include/glibtop/glibtop-client.h:
- * include/glibtop/inodedb.h:
- * include/glibtop/interfaces.h:
- * include/glibtop/limits.h:
- * include/glibtop/loadavg.h:
- * include/glibtop/mem.h:
- * include/glibtop/mountlist.h:
- * include/glibtop/msg_limits.h:
- * include/glibtop/netinfo.h:
- * include/glibtop/netload.h:
- * include/glibtop/ppp.h:
- * include/glibtop/procargs.h:
- * include/glibtop/proccwd.h:
- * include/glibtop/prockernel.h:
- * include/glibtop/proclist.h:
- * include/glibtop/procmap.h:
- * include/glibtop/procmem.h:
- * include/glibtop/procsegment.h:
- * include/glibtop/procsignal.h:
- * include/glibtop/procstate.h:
- * include/glibtop/proctime.h:
- * include/glibtop/procuid.h:
- * include/glibtop/sem_limits.h:
- * include/glibtop/shm_limits.h:
- * include/glibtop/swap.h:
- * include/glibtop/sysdeps.h:
- * include/glibtop/sysinfo.h:
- * include/glibtop/uptime.h:
- * lib/glibtop-backend.c: (glibtop_backend_get):
- * lib/glibtop-client.c: (glibtop_client_open_backend):
- * lib/inodedb.c: (glibtop_inodedb_lookup_s):
- * lib/lib.pl:
- * src/inodedb/README.inodedb:
- * src/inodedb/mkinodedb2.c: (main): s/u_int64_t/guint64/
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: fix distchecking, release 2.5.0
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * configure.in: fix the library versioning to be hand-made rather
- than uber-calculated from some esoteric numbers
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * glibtop.h:
- * include/glibtop/close.h:
- * include/glibtop/command.h:
- * include/glibtop/cpu.h:
- * include/glibtop/error.h:
- * include/glibtop/fsusage.h:
- * include/glibtop/global.h:
- * include/glibtop/inodedb.h:
- * include/glibtop/loadavg.h:
- * include/glibtop/mem.h:
- * include/glibtop/mountlist.h:
- * include/glibtop/msg_limits.h:
- * include/glibtop/netload.h:
- * include/glibtop/open.h:
- * include/glibtop/parameter.h:
- * include/glibtop/ppp.h:
- * include/glibtop/procargs.h:
- * include/glibtop/prockernel.h:
- * include/glibtop/proclist.h:
- * include/glibtop/procmap.h:
- * include/glibtop/procmem.h:
- * include/glibtop/procsegment.h:
- * include/glibtop/procsignal.h:
- * include/glibtop/procstate.h:
- * include/glibtop/proctime.h:
- * include/glibtop/procuid.h:
- * include/glibtop/read.h:
- * include/glibtop/read_data.h:
- * include/glibtop/sem_limits.h:
- * include/glibtop/shm_limits.h:
- * include/glibtop/signal.h:
- * include/glibtop/swap.h:
- * include/glibtop/sysdeps.h:
- * include/glibtop/sysinfo.h:
- * include/glibtop/types.h:
- * include/glibtop/union.h:
- * include/glibtop/uptime.h:
- * include/glibtop/version.h:
- * include/glibtop/write.h:
- * lib/Makefile.am:
- * lib/command.c: (glibtop_call_l):
- * lib/init.c:
- * lib/inodedb.c:
- * lib/lib.pl:
- * lib/open.c:
- * lib/read.c:
- * lib/read_data.c: (glibtop_read_data_l):
- * lib/structures.pl:
- * lib/write.c:
- * sysdeps/names/cpu.c:
- * sysdeps/names/fsusage.c:
- * sysdeps/names/loadavg.c:
- * sysdeps/names/mem.c:
- * sysdeps/names/mountlist.c:
- * sysdeps/names/msg_limits.c:
- * sysdeps/names/netinfo.c:
- * sysdeps/names/netload.c:
- * sysdeps/names/ppp.c:
- * sysdeps/names/procargs.c:
- * sysdeps/names/proccwd.c:
- * sysdeps/names/prockernel.c:
- * sysdeps/names/proclist.c:
- * sysdeps/names/procmap.c:
- * sysdeps/names/procmem.c:
- * sysdeps/names/procsegment.c:
- * sysdeps/names/procsignal.c:
- * sysdeps/names/procstate.c:
- * sysdeps/names/proctime.c:
- * sysdeps/names/procuid.c:
- * sysdeps/names/sem_limits.c:
- * sysdeps/names/shm_limits.c:
- * sysdeps/names/swap.c:
- * sysdeps/names/sysdeps.c:
- * sysdeps/names/uptime.c: fixed compilation
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * RELNOTES-0.25: removed
- * RELNOTES-1.0: removed
- * RELNOTES-1.0.x: removed
- * RELNOTES-1.1.x: removed
- * include/glibtop/Makefile.am:
- * include/glibtop/xmalloc.h: removed xmalloc.h
- * lib/command.c: (glibtop_call_l):
- * lib/init.c: (_init_server):
- * lib/inodedb.c: (glibtop_inodedb_open_s),
- (glibtop_inodedb_close_s):
- * lib/read_data.c: (glibtop_read_data_l):
- * lib/xmalloc.c: removed xmalloc.h
- replace all the xmalloc crap by glib memory management functions
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * lib/Makefile.am:
- * libgtop-config.in:
- * libgtop.spec.in:
- * libgtopConf.sh.in:
- * src/inodedb/Makefile.am: removed traces of guile, intllibs and
- libgnomesupport
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * .cvsignore: updated
- * configure.in: removed all traces of guile stuff
- * sysdeps/guile/.cvsignore: removed
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * sysdeps/Makefile.am:
- * sysdeps/guile/ChangeLog:
- * sysdeps/guile/Makefile.am:
- * sysdeps/guile/guile.pl:
- * sysdeps/guile/names/.cvsignore:
- * sysdeps/guile/names/Makefile.am:
- * sysdeps/guile/names/guile-names.pl: removed guile
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am:
- * configure.in: remove guile and libgnome-support stuff
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * configure.in: make it compile
-
-2003-10-19 Carlos PerellĂł MarĂ­n <carlos@gnome.org>
-
- * support/*: Reverted libgtop changes. It's a common module
- and I should not modify it.
- * Added/removed files. Now the move should be done.
-
-2003-10-19 Carlos PerellĂł MarĂ­n <carlos@gnome.org>
-
- * libgtop-GNOME-2-0-branch moved to HEAD.
-
-2003-09-30 Laurent Dhima <laurenti@alblinux.net>
-
- * configure.in: Added "sq" to ALL_LINGUAS.
-
-2003-09-17 Fatih Demir <kabalak@gtranslator.org>
-
- * configure.in: Added "ta" (Tamil) to the languages' list.
-
-2003-09-13 Carlos PerellĂł MarĂ­n <carlos@gnome.org>
-
- * configure.in (ALL_LINGUAS): Removed es_ES.
-
-2003-09-08 Kevin Vandersloot
-
- * configure.in: release 2.0.5
-
-2003-09-06 Taneem Ahmed <taneem@bengalinux.org>
-
- * configure.in: Added "bn" to ALL_LINGUAS.
-
-2003-08-24 Kevin Vandersloot
-
- * configure.in: release 2.0.4
-
-2003-08-13 Guntupalli Karunakar <karunakar@freedomink.org>
-
- * configure.in: Added "hi" (Hindi) in ALL_LINGUAS.
-
-2003-08-13 Andrew Sobala <aes@gnome.org>
-
- * configure.in: release 2.0.3
-
-2003-08-09 Dafydd Harries <daf@parnassus.ath.cx>
-
- * configure.in: Added "cy" (Welsh) to ALL_LINGUAS.
-
-2003-08-03 Malcolm Tredinnick <malcolm@commsecure.com.au>
-
- * Makefile.am: Change subdirectory build order so that
- 'distclean' target work (and other targets remain working).
- Fixes bug #84622.
-
-2003-06-10 Kjartan Maraas <set EMAIL_ADDRESS environment variable>
-
- * libgtop-2.0.pc.in: Fix missing build flags. Patch from
- Julio Merino. Fixes bug #103086.
- * sysdeps/linux/mem.c: (glibtop_get_mem_s): Fix memory calculation
- under Linux. Patch from <rwahl@gmx.de>. Fixes bug #68626.
-
-2003-06-10 Kjartan Maraas <kmaraas@gnome.org>
-
- * sysdeps/freebsd/glibtop_machine.h:
- * sysdeps/kernel/glibtop_private.h:
- * sysdeps/solaris/glibtop_machine.h:
- * sysdeps/solaris/glibtop_private.h: Comment out text after
- #endif to make some compilers happy.
-
-2003-05-11 Andrew Sobala <aes@gnome.org>
-
- * configure.in: release 2.0.2
-
-2003-05-10 Danilo Ć egan <dsegan@gmx.net>
-
- * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
-
-2003-04-17 Abel Cheung <maddog@linux.org.hk>
-
- * configure.in: Added "mk" to ALL_LINGUAS.
-
-2003-03-13 Christian Rose <menthos@menthos.com>
-
- * configure.in: Added "ml" to ALL_LINGUAS.
-
-2003-03-10 Roozbeh Pournader <roozbeh@sharif.edu>
-
- * configure.in: Added "fa" to ALL_LINGUAS.
-
-2003-03-08 Gil "Dolfin" Osher <dolfin@rpg.org.il>
-
- * configure.in: Added he to ALL_LINGUAS.
-
-2003-02-25 T?”ivo Leedj?€rv <toivo@linux.ee>
-
- * configure.in: Added et to ALL_LINGUAS.
-
-2003-02-16 Mohammad DAMT <mdamt@bisnisweb.com>
-
- * po/id.po: Added Indonesian translation
- * configure.in: Added "id" to ALL_LINGUAS
-
-2003-01-31 James Henstridge <james@daa.com.au>
-
- * acinclude.m4 (GNOME_SUPPORT_CHECKS): use AC_LIBOBJ() to set
- LIBOBJS variable, since newer autoconf's barf on direct access.
- This also takes care of setting LTLIBOBJS for us.
-
-2003-01-29 Abel Cheung <maddog@linux.org.hk>
-
- * configure.in: Added ar to ALL_LINGUAS
-
-2003-01-25 Alessio Frusciante <algol@firenze.linux.it>
-
- * configure.in: Added "it" (Italian) to ALL_LINGUAS.
-
-2003-01-23 Marius Andreiana <marius galuna.ro>
-
- * configure.in: Added "ro" to ALL_LINGUAS
-
-2003-01-22 Christian Rose <menthos@menthos.com>
-
- * configure.in: Added "mn" to ALL_LINGUAS.
-
-2003-01-16 Daniel Yacob <locales@geez.org>
-
- * configure.in: added am to ALL_LINGUAS
-
-2003-01-12 Kevin Vandersloot <kfv101@psu.edu>
-
- * configure.in: release 2.0.1
-
-2002-12-30 Bastien Nocera <hadess@hadess.net>
-
- * Added sysdeps/aix directory that was missing
-
-2002-10-08 Laurent Vivier <Laurent.Vivier@bull.net>
-
- * Framework for AIX support
-
-2002-08-07 Vincent Berger <Vincent.Berger@ext.bull.net>
-
- * support/: Add alloca management for AIX
- * configure.in: correct checking for nm
-
-2002-11-03 Dmitry G. Mastrukov <dmitry@taurussoft.org>
-
- * configure.in: Added Belarusian to ALL_LINGUAS
-
-2002-09-26 Stanislav Brabec <sbrabec@suse.cz>
-
- * configure.in: Added cs to ALL_LINGUAS.
-
-2002-09-26 jacob berkman <jacob@ximian.com>
-
- * configure.in (ALL_LINGUAS): remove cs until the file actually
- gets added
-
-2002-09-26 Stanislav Brabec <sbrabec@suse.cz>
-
- * configure.in: Added cs to ALL_LINGUAS.
-
-2002-08-20 Peteris Krisjanis <peteris.krisjanis@os.lv>
-
- * configure.in: (ALL_LINGUAS) Added Latvian (lv).
-
-2002-06-25 Yanko Kaneti <yaneti@declera.com>
-
- * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
-
-2002-05-10 Kevin Vandersloot <kfv101@psu.edu>
-
- * configure.in: release 2.0.0
-
-2002-05-28 Carlos Perello Marin <carlos@gnome-db.org>
-
- * configure.in (ALL_LINGUAS): Removed all es_* and added only es_ES.
-
-2002-05-08 Pablo Saratxaga <pablo@mandrakesoft.com>
-
- * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
-
-2002-03-12 James Henstridge <james@daa.com.au>
-
- * acinclude.m4 (LIBGTOP_HEACKER_TESTS): AM_CONDITIONAL()
- statements can't be conditionally executed (automake compat fix).
- (GNOME_LIBGTOP_SYSDEPS): move the conditional here so that it is
- always executed.
-
-2002-02-10 Kevin Vandersloot <kfv101@psu.edu>
-
- * configure.in: bump version
-
- * release 1.90.2
-
-2002-02-09 Bastien Nocera <hadess@hadess.net>
-
- reviewed by: Kevin Vandersloot <kfv101@psu.edu>
-
- * configure.in: remove need for dc, and clean up
- * stamp-h.in, .cvsignore: remove
-
-2002-02-05 Abel Cheung <maddog@linux.org.hk>
-
- * configure.in (ALL_LINGUAS): zh_CN.GB2312 -> zh_CN
-
-2001-01-14 Hasbullah bin Pit <sebol@ikhlas.com>
-
- * configure.in: Added ms in ALL_LINGUAS.
- * po/ms.po: Added Malay Translation.
- * po/.cvsignore: Added 'libgtop-2.0.pot'.
-
-2001-01-14 Abel Cheung <maddog@linux.org.hk>
-
- * configure.in: Sync'ed ALL_LINGUAS with files in po directory,
- and renamed GETTEXT_PACKAGE to avoid conflict with libgtop 1.0.x.
-
-2002-01-10 Kevin Vandersloot <kfv101@psu.edu>
-
- * acininclude.m4: add back the support stuf but make it really
- work
-
- * configure.in: bump version number, add back GNOME_SUPPORT
- check since that was causing a build failure
-
- * release 1.90.1
-
-2002-01-09 Kevin Vandersloot <kfv101@psu.edu>
-
- * acinclude.m4: remove gnome support check. Fixes the build
- for those with automake < 1.4p5.
-
- * configure.in: remove check for GNOME_SUPPORT
-
-2001-14-27 Miles Lane <miles@megapathdsl.net>
-
- * acconfig.h: Added "#undef HAVE_GETTEXT" entry.
- * LIBGTOP_VERSION: Removed file.
- * configure.in: added glib-gettextize support and
- moved in the *VERSION* stuff from LIBGTOP_VERSION.
-
-2001-11-27 Kevin Vandersloot <kfv101@psu.edu>
-
- * acinclude.m4: copy some of the macros that were formerly
- in gnome-macros
-
- * configure.in, sysdeps/Makefile.am: comment out guile
- support for now.
-
- * release 1.90.0
-
-2001-11-26 Kevin Vandersloot <kfv101@psu.edu>
-
- * src/daemon/gnuserv.c: Apply patch fixing security issue from
- intexxia labs - #1048-261101
-
-2001-11-26 Abel Cheung <maddog@linux.org.hk>
-
- * src/inodedb/file_by_inode.c: Rename to file_by_inode2.c
- * src/inodedb/mkinodedb.c: Rename to mkinodedb2.c
-
- * po/POTFILES.in: Reflect above change
-
- * */.cvsignore: Add various files
-
-2001-11-25 Kevin Vandersloot <kfv101@psu.edu>
-
- * port stable libgtop to GNOME 2.0. Too much to detail.
- pkgconfig is now used. Libs are named libgtop-2.0 etc for
- parallel install.
-
-2001-10-17 Abel Chueng <maddog@linux.org.hk>
-
- * configure.in, Makefile.am, include/glibtop/Makefile.am: headers
- moved to $(includedir)/libgtop-1.0/glibtop.
-
-2001-09-16 Abel Chueng <maddog@linux.org.hk>
-
- * configure.in: Added "zh_TW" to ALL_LINGUAS.
-
-2001-02-13 Martin Baulig <baulig@suse.de>
-
- Released LibGTop 1.0.12 "Gerolzhofen".
-
- * NEWS: Added news entry to 1.0.12.
-
- * LIBGTOP-VERSION: Set version number to 1.0.12, binary age 11,
- interface age 11.
-
-2001-02-19 Simos Xenitellis <simos@hellug.gr>
-
- * configure.in: Added "el" to ALL_LINGUAS.
-
-2001-02-15 Martin Baulig <baulig@suse.de>
-
- Released LibGTop 1.0.11 "Jasmin".
-
- * NEWS: Added news entry for 1.0.11.
-
-2001-02-14 Martin Baulig <baulig@suse.de>
-
- Merged from LIBGTOP_1_1_2_PATCHES.
-
- * libgtop-sysdeps.m4 (GLIBTOP_SOLARIS_RELEASE): Define this on Solaris;
- we use version codes like 270 for SunOS 5.7 and 251 for SunOS 2.5.1.
-
- * LIBGTOP-VERSION (LIBGTOP_VERSION_SUFFIX): Added this so you can
- have your tarballs called `libgtop-1.x.y-snap.tar.gz' or whatever.
- This only affects the `VERSION' variable and thus how the resulting
- tarball will be called, but not `LIBGTOP_VERSION_CODE' etc.
-
- * configure.in, acconfig.h: Added checks for <procfs.h>
- and <sys/procfs.h>
-
- * configure.in (DL_LIB): Check for dlopen() and AC_SUBST this.
-
- * Makefile.am: Make `aclocal.m4' also depend on `LIBGTOP-VERSION'
- when in maintainer-mode.
-
-2001-02-14 Martin Baulig <baulig@suse.de>
-
- * include/glibtop/limits.h: Removed; this file doesn't exist
- in the stable branch.
-
-2001-02-13 Martin Baulig <baulig@suse.de>
-
- * LIBGTOP-VERSION: Set version number to 1.0.11, binary age 10,
- interface age 10.
-
-2001-02-13 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
-
- * configure.in: Added sk to ALL_LINGUAS
-
-2001-02-08 Gustavo Maciel Dias Vieira <gdvieira@zaz.com.br>
-
- * configure.in (ALL_LINGUAS): Added pt_BR to ALL_LINGUAS.
-
-2000-11-21 Martin Baulig <baulig@suse.de>
-
- * libgtop-config.h.in: Added `--cflags', `--libs' and `--extra-libs'
- parameters.
-
-2000-11-20 Martin Baulig <baulig@suse.de>
-
- Released LibGTop 1.0.10 "November Rain".
-
- * LIBGTOP-VERSION: Set version number to 1.0.10, binary age 9,
- interface age 9.
-
-2000-05-25 Martin Baulig <baulig@suse.de>
-
- Released LibGTop 1.0.9 "Stuttgart".
-
- * LIBGTOP-VERSION: Set version number to 1.0.9 binary age 8,
- interface age 8.
-
- (LibGTop 1.0.8 "Frankfurt" was not publically released.)
-
-2000-02-20 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION: Set version number to 1.0.8 binary age 7,
- interface age 7.
-
-2000-02-15 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 1.0.7 "Copenhagen".
-
-1999-10-19 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION: Set version number to 1.0.7 binary age 6,
- interface age 6.
-
-1999-10-18 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 1.0.6 "October LibGTop".
-
-1999-10-18 Martin Baulig <martin@home-of-linux.org>
-
- * NEWS.old: Removed obsolete file.
-
- * RELNOTES-1.0.x: Added release notes for LibGTop 1.0.6.
-
- * TODO: Removed obsolete file.
-
- * NEWS: We start maintaining a NEWS file now :)
-
-1999-10-16 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION: Set version number to 1.0.6 binary age 5,
- interface age 5.
-
-1999-10-09 Jesus Bravo Alvarez <jba@pobox.com>
-
- * configure.in (ALL_LINGUAS): Added Galician (gl)
-
-1999-09-29 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 1.0.5.
-
-1999-09-29 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in (libgtop_top_builddir): AC_SUBST this.
-
-1999-09-24 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION: Set version number to 1.0.5 binary age 4,
- interface age 4.
-
-1999-09-24 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 1.0.4.
-
-1999-09-22 Kjartan Maraas <kmaraas@online.no>
-
- * configure.in: Added "da" to ALL_LINGUAS.
-
-1999-09-19 Martin Baulig <martin@home-of-linux.org>
-
- * libgtopConf.sh.in: Added MODULE_VERSION on Miguel's
- request (set it to "libgtop-@LIBGTOP_VERSION@").
-
-1999-09-18 Pablo Saratxaga <pablo@mandrakesoft.com>
-
- * configure.in, po/*.po: merged *.po files from HEAD CVS
-
-1999-09-17 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in: Make it work if we have GNOME and the user
- gave use --without-gnome (fixes bug #1735).
-
-1999-09-17 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION: Set version number to 1.0.4 binary age 3,
- interface age 3.
-
-1999-09-16 Martin Baulig <martin@home-of-linux.org>
-
- Merged everything since May 31 from HEAD and released
- LibGTop 1.0.3.
-
-1999-07-29 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/error.h: Use G_GNUC_UNUSED.
-
- * configure.in (ENABLE_STATIC, ENABLE_SHARED): New automake
- conditionals.
-
-1999-07-11 Tomas Ogren <stric@ing.umu.se>
-
- * configure.in: Added sv to ALL_LINGUAS
-
-1999-07-11 Tomas Ogren <stric@ing.umu.se>
-
- * sysdeps/names/procmem.c: Fixed a tyop
-
-1999-05-31 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION: Set version number to 1.0.3 binary age 2,
- interface age 2.
-
-1999-05-31 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 1.0.2.
-
-1999-05-26 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in (INCLUDES): Define `LIBGTOP_VERSION_CODE' here so we
- can use version conditionals in the sysdeps code.
-
-1999-05-25 Martin Baulig <martin@home-of-linux.org>
-
- * libgtop-sysdeps.m4: Make the I4B check work for NetBSD.
-
-1999-05-16 Martin Baulig <martin@home-of-linux.org>
-
- * doc: Merged the LibGTop Manual from the HEAD.
-
-1999-03-01 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 1.0.1.
-
- * LIBGTOP-VERSION: Set version number to 1.0.1 binary age 0,
- interface age 0.
-
-1999-03-01 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in (LIBGTOP_LIBS): Move `-lgtop_common' last to
- make it work with static-only libs. Thanks to Roderik Muit
- for pointing this out.
- (PERL): First check for `perl5', then for `perl'. Thanks again
- to Roderik Muit.
-
-1999-02-24 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 1.0.0.
-
- * LIBGTOP-VERSION: Set version number to 1.0.0 binary age 0,
- interface age 0.
-
- * configure.in: Require GLIB >= 1.2.0.
-
-1999-02-23 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 0.100.0.
-
- Make the copyright of LibGTop be the GNU General Public License.
-
- * LIBGTOP-VERSION: Set version number to 0.100.0 binary age 0,
- interface age 0.
-
- * copyright.txt: Set the year to 1998-99 and pretty-format it a
- little bit. Same in all C source and header files.
-
-1999-02-21 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in (LIBGTOP_*_INCS): Define `HAVE_GLIBTOP_MACHINE_H'
- if appropriate.
-
-1999-02-19 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 0.99.9.
-
- * LIBGTOP-VERSION: Set version number to 0.99.9 binary age 0,
- interface age 0.
-
- * include/glibtop/error.h: Don't include <glib.h>.
- * sysdeps/common/error.c: Use `int' not `gint'.
-
- * misc/porting-libgtop.txt: Added a few instructions on how
- to port LibGTop to Solaris.
-
- * 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.
-
-1999-02-18 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/*.h: Use glib-like function prototypes
- instead of "extern <function> __P((args))".
-
- * sysdeps/common/error.h: Replaced inline with static.
-
-1999-02-18 Martin Baulig <martin@home-of-linux.org>
-
- * */*.awk: Replaced all awk scripts with perl scripts since it is
- more likely that people have a working perl interpreter than GNU
- awk on their system.
-
-1999-02-18 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/common/error.c (glibtop_error_r, glibtop_warn_r): Define
- them as G_INLINE_FUNC in <glibtop/errno.h> if possible.
- (glibtop_error_io_r, glibtop_warn_io_r): Likewise.
- (glibtop_error_vr, glibtop_warn_vr): New functions taking a va_list.
- (glibtop_error_io_vr, glibtop_warn_io_vr): New functions taking an
- errno an a va_list.
-
-1999-02-17 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 0.99.8.
-
-1999-02-16 Martin Baulig <martin@home-of-linux.org>
-
- * examples/Makefile.am, lib/Makefile.am, src/daemon/Makefile.am,
- sysdeps/common/Makefile.am, sysdeps/guile/Makefile.am,
- sysdeps/guile/names/Makefile.am, sysdeps/kernel/Makefile.am,
- sysdeps/linux/Makefile.am, sysdeps/names/Makefile.am,
- sysdeps/osf1/Makefile.am, sysdeps/stub/Makefile.am,
- sysdeps/stub_suid/Makefile.am, sysdeps/sun4/Makefile.am:
- Initialize INCLUDES to `@INCLUDES@' to make it clear that it is
- set in configure.in. It is ok to add things there, but you must
- not remove the `@INCLUDES@'.
-
-1999-02-15 Jeff Garzik <jgarzik@pobox.com>
-
- * examples/Makefile.am, lib/Makefile.am, src/daemon/Makefile.am,
- sysdeps/common/Makefile.am, sysdeps/guile/Makefile.am,
- sysdeps/guile/names/Makefile.am, sysdeps/kernel/Makefile.am,
- sysdeps/linux/Makefile.am, sysdeps/names/Makefile.am,
- sysdeps/osf1/Makefile.am, sysdeps/stub/Makefile.am,
- sysdeps/stub_suid/Makefile.am, sysdeps/sun4/Makefile.am:
- Removed hardcoded gcc arguments from CFLAGS.
-
- * include/glibtop/error.h:
- Added FIXME comment about varargs macros breaking Sun cc
- compilation.
-
-1999-02-12 Martin Baulig <martin@home-of-linux.org>
-
- Thanks to Frederic Devernay for pointing out that we need to define
- __BEGIN_DECLS and __END_DECLS when not using GNOME.
-
- * configure.in: Define `WITHOUT_GNOME' if appropriate.
-
- * include/glibtop/global.h: Define __BEGIN_DECLS and __END_DECLS
- when WITHOUT_GNOME not when _IN_LIBGTOP.
-
-1999-02-12 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/global.h: Applied patch from Frederic Devernay;
- __BEGIN_DECLS and __END_DECLS are only defined inside _IN_LIBGTOP.
-
-1999-02-10 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in (program_invocation_name): Check whether we need
- to declare this; some libc5 systems define that symbol but do
- not declare it in any header file.
-
-1999-02-10 Martin Baulig <martin@home-of-linux.org>
-
- * libgtop.spec.in, libgtop.spec: Replaced libgtop.spec with
- with libgtop.spec.in, so libgtop.spec is now a generated file.
-
-1999-02-05 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/global.h: Enclose some of the stuff in this
- file in `#ifdef _IN_LIBGTOP'.
-
-1999-02-04 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/global.h (_): Use dgettext (), not gettext ().
-
-1999-01-23 Martin Baulig <martin@home-of-linux.org>
-
- * libgtopConf.sh.in (LIBGTOP_DATADIR): New variable.
-
-1999-01-06 Martin Baulig <martin@home-of-linux.org>
-
- * libgtop-sysdeps.m4: Always enable SMP support for Linux.
-
-1999-01-03 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 0.99.2.
-
-1999-01-05 Martin Baulig <martin@home-of-linux.org>
-
- * libgtop.spec: Always build SMP support; binary packages should
- contain all possible features.
-
- * configure.in: LibGTop will now require GLIB >= 1.1.12.
-
-1999-01-05 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in: Make it abort if the `dc' utility is not installed.
-
-1999-01-03 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 0.99.1.
-
-1998-12-25 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in (LIBGTOP_INCS): Define `HAVE_LIBGTOP_SMP' if SMP
- support was enabled.
-
-1998-12-22 Yukihiro Nakai <Nakai@TokyoNet.AD.JP>
-
- * configure.in (ALL_LINGUAS): Added `ja'.
-
-1998-12-18 Martin Baulig <martin@home-of-linux.org>
-
- * Makefile.am: Applied patch from Edward Jason Riedy to use '#'
- as separator in sed commands.
-
-1998-12-15 Martin Baulig <martin@home-of-linux.org>
-
- Released LibGTop 0.99.0 which is a feature-freezed version
- for GNOME 1.0.
-
-1998-12-09 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in: We need to define LIBSUPPORT and SUPPORTINCS under
- all circumstances as it is in gnome-libs.
-
- * include/glibtop/procargs.h (glibtop_get_proc_args): Make the
- return value a `char *' instead of a `const char *'.
-
-1998-12-09 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION: Set version number to 0.29.1.
-
-1998-12-09 Martin Baulig <martin@home-of-linux.org>
-
- * libgtop-sysdeps.m4: Moved here from the macros directory,
- formerly known as `macros/gnome-libgtop-sysdeps.m4'.
- (--enable-hacker-mode): New command line parameter to configure,
- enables building of unstable sysdeps directories.
- (LIBGTOP_HACKER_TESTS): New macro to check for unsafe things when
- hacker mode was enabled.
-
-1998-12-06 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in: Make it abort if GNOME cannot be found and
- the --without-gnome parameter was not given.
-
-1998-12-03 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION (LIBGTOP_VERSION_CODE): Pipe the expression
- through `dc' so we get a real number.
-
-1998-12-03 Martin Baulig <martin@home-of-linux.org>
-
- LibGTop now requires gettext >= 0.10.35.
-
- * intl: Removed &intl CVS alias.
-
-1998-11-27 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION: Set version number to 0.29.0.
-
- * TODO: Add things that need to be done before Dec 15.
-
- This is basically a feature freeze for the C language part
- of LibGTop except for things that are marked with (***) in
- the TODO.
-
-1998-11-20 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * sysdeps/common/mountlist.c: Applied a patch from Kenneth Stailey to
- make it work on OpenBSD.
-
-1998-11-18 Martin Baulig <martin@home-of-linux.org>
-
- * lib/open.c (glibtop_open_l): We need to set argv[0] in call
- to execl () to avoid a core dump in _init () on FreeBSD 3.0.
-
-1998-11-11 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/gnuserv.h (MCOOKIE_SCREEN): Don't define this
- any longer, we now use the port the daemon is listening on instead
- of a fixed screen.
-
-1998-11-11 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in (--enable-debug): Define LIBGTOP_ENABLE_DEBUG
- if this parameter is given.
- (--enable-fatal-warnings): New parameter to make all warnings
- fatal; define `LIBGTOP_FATAL_WARNINGS' if given.
-
- * sysdeps/common/error.c (glibtop_error_r): Use abort () instead
- of exit () if LIBGTOP_ENABLE_DEBUG.
- (glibtop_error_io_r): Likewise.
- (glibtop_warn_r): Call abort () if LIBGTOP_FATAL_WARNINGS.
- (glibtop_warn_io_r): Likewise.
-
- [NOTE: To get a core dump of the libgtop_server, you need to
- remove all suid/sgid bits and invoke it as a priviledged user.]
-
-1998-11-08 Raja R Harinath <harinath@cs.umn.edu>
-
- * Makefile.am (support): Don't build if not BUILD_GNOME_SUPPORT.
-
-1998-11-02 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/parameter.h: Added `GLIBTOP_PARAM_REQUIRED'.
-
- * lib/parameter.c (glibtop_set_parameter_l): It's no longer
- allowed to set GLIBTOP_PARAM_FEATURES.
- (glibtop_get_parameter_l): You can use `GLIBTOP_PARAM_REQUIRED'
- to read server->required and ...
- (glibtop_set_parameter_l): ... set it here.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- Added `Network Load' feature (netload).
-
- * include/glibtop/netload.h: New file.
- * features.def: Added new feature `netload'.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- Added `Command Line Parameters' feature (proc_args).
-
- * include/glibtop/proc_args.h: New file.
- * features.def: Added new feature `proc_args'.
-
- * lib/lib.awk: New type `unsigned' for the features.def which
- is `unsigned'.
-
-1998-10-25 Martin Baulig <martin@home-of-linux.org>
-
- Added PPP/ISDN support.
-
- * include/glibtop/ppp.h: New file.
- * features.def: Added new feature `ppp'.
-
- * acconfig.h (HAVE_I4B): Defined if we have the I4B package.
- (HAVE_I4B_ACCT): Defined if we have ISDN statistics with I4B.
-
- * misc: New directory.
- * misc/i4b_acct.txt: Read this file to get ISDN statistics on BSD.
-
- * lib/lib.awk: New type `ushort' for the features.def which is
- `unsigned short'.
-
-1998-10-20 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/proc_signal.h: Use a 2-element-array of
- type `guint64' for all signal masks instead of just
- scalar numbers. This avoids problems on systems with more
- than 64 signals.
-
- If there is any operating system out there with even more than
- 128 signals, we can simply increase the number of array elements
- here.
-
- [NOTE for people porting libgtop:
-
- Please use all 64 bits of the `guint64' and not just 32 - the
- signal number (as it is used in calls to kill () ...) should be
- a bit-index into this field; if a process ignores for instance
- signal 64, it has the 0-bit of sigcatch[1] set, if it ignores 63,
- this is the 63-bit of sigcatch[0] and so on ...
-
- The mapping between signal numbers and their names is done via the
- glibtop_sys_siglist [] field which should be declared in
- sysdeps/@sysdeps_dir@/siglist.c - see linux for an example.
- ]
-
- * features.def: It's now safe to put things like `loadavg[3]'
- here - the awk skripts should correctly threat this as an array.
-
-1998-10-12 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in (GNOME_COMPILE_WARNINGS): Let the user enable
- compiler warnings.
- (--with-libgtop-guile): Make the default to build the guile
- interface if guile can be found.
-
- * Makefile.am (confexec_DATA): Install `feature.def' as
- `libgtop-features.def'.
- * libgtop.spec: Added `%{prefix}/lib/*.def' to the file list.
-
-1998-10-11 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in: Don't create `guile/Makefile'.
- * Makefile.am (DIST_SUBDIRS): Removed.
- (SUBDIRS): Removed `guile'.
-
- * include/glibtop/*.h: Removed external delarations of all
- `glibtop_guile_*' functions that were formerly defined in
- sysdeps/guile/guile.c and sysdeps/guile/names/guile-names.c.
-
-1998-10-11 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/guile/ChangeLog: New file.
-
- * LIBGTOP-VERSION: Set version number to 0.26.3.
- * libgtop.spec: Likewise.
-
- * Makefile.am (confexec_DATA): Added `features.def'.
- * libgtop-config.in: Added `--features-def-file' parameter
- to get pathname of installed `features.def' file.
-
- * perl: Removed everything in this subdirectory. This was
- only experimental. The real perl bindings for LibGTop are
- in the libgtop-bindings module.
-
-1998-10-11 Martin Baulig <martin@home-of-linux.org>
-
- * src/inodedb/Makefile.am: Removed @libs_xauth@ and -lgdbm
- from the _LDADD variables since libtool automatically gets
- the dependencies.
- * src/daemon/Makefile.am: Likewise.
- * examples/Makefile.am: Likewise.
-
-1998-10-10 Martin Baulig <martin@home-of-linux.org>
-
- * configure (LIBGTOP_EXTRA_LIBS): Added `GLIB_LIBS'.
-
- * perl/ChangeLog: New file.
-
-1998-10-07 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in (ALL_LINGUAS): Added `de'.
-
-1998-10-03 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/global.h: Only include system header files
- if we are `_IN_LIBGTOP'.
- (G_GNUC_NORETURN, G_GNUC_CONST, G_GNUC_UNUSED): Added those
- definitions if we are `_IN_LIBGTOP'.
-
-1998-09-29 Sung-Hyun Nam <namsh@lgic.co.kr>
-
- * configure.in (ALL_LINGUAS): add `ko'
- * po/ko.po: new file.
-
-1998-09-27 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in: Make it really *require* GLIB >= 1.1.3.
-
-1998-09-27 Raja R Harinath <harinath@cs.umn.edu>
-
- * configure.in: Move check for `-lresolv', `-lsocket' and `-lnsl'
- after X11 checks.
-
-1998-09-27 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in: Do not even check for guile if it is disabled.
-
-1998-09-12 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/sysinfo.h: New file. This is used in guname to
- fetch as many information about the system as possible like detailed
- information about hardware etc.
-
- * configure.in (AM_PATH_GLIB): LibGTop now requires glib.
-
-1998-09-09 Martin Baulig <baulig@Stud.Informatik.uni-trier.de>
-
- * include/glibtop/proctime.h (glibtop_proc_time): Added `xcpu_utime'
- and `xcpu_stime'.
-
- * sysdeps/linux/ChangeLog: New file.
-
- * glibtop.h (glibtop): Added `ncpu'. This is zero for single processor
- systems and the number of CPUs otherwise.
-
- * include/glibtop/cpu.h (glibtop_cpu): Added `xcpu_total', `xcpu_user',
- `xcpu_nice', `xcpu_sys' and `xcpu_idle'.
- (GLIBTOP_NCPU): #define this to 4.
-
-1998-09-08 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * configure.in: Make the default to disable guile.
-
-1998-08-30 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION (LIBGTOP_VERSION_CODE): Added. This is a numerical
- constant ("1.234.567" -> 1234567) to be used in C preprocessor
- conditionals.
-
-1998-08-29 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION (LIBGTOP_INTERFACE_AGE, LIBGTOP_BINARY_AGE): Added.
- * configure.in (LIBGTOP_INTERFACE_AGE, LIBGTOP_BINARY_AGE): AC_SUBST.
- (LT_RELEASE, LT_CURRENT, LT_REVISION, LT_AGE): AC_SUBST.
- (LT_VERSION_INFO): Sets `-version-info' for libtool.
-
- * */Makefile.am: We now use the correct `-version-info' parameter
- for libtool.
-
-1998-08-25 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/command.h (glibtop_call): Third argument is
- now `const void *'.
-
- * include/glibtop/xmalloc.h (g_free): Now taking a
- `const void *'.
-
-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).
-
- * 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.
-
-1998-08-23 Martin Baulig <martin@home-of-linux.org>
-
- * features.def (mountlist): Using `int(fs_usage)'.
-
-1998-08-21 Martin Baulig <martin@home-of-linux.org>
-
- * ANNOUNCE-0.25: Released LibGTop 0.25 stable.
-
-1998-08-18 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION: Set version number to 0.25.0. There is now really
- a feature freeze until it's released, bug fixes only ...
-
- * include/glibtop/procmap (glibtop_map_entry): Added `flags' and
- `filename' fields.
-
- * LIBGTOP-VERSION: Added `LIBGTOP_MICRO_VERSION'.
- * libgtopConf.sh.in: Likewise.
-
- * libgtopConf.sh.in: Added `LIBGTOP_EXTRA_LIBS'.
-
- * sysdeps/linux/procmap.c: Added implementation.
-
-1998-08-17 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/procmap (glibtop_map_entry): Added `offset' and
- `perm' fields.
-
- * src/inodedb: New directory.
- * src/inodedb/README: New file - read it to know what this is about.
-
- * configure.in (--with-libgtop-inodedb): New `configure' parameter.
- * include/glibtop/inodedb.h: New file.
- * sysdeps/common/inodedb.c: New file.
-
-1998-08-17 Martin Baulig <martin@home-of-linux.org>
-
- * LIBGTOP-VERSION: Released libgtop-0.25pre1. With this
- release I made what Linus calles a ``feature freeze'' until
- 0.25 is out. A Tarball and RPMS can be found at my site:
- `ftp://ftp.home-of-linux.org/pub/'.
-
-1998-08-17 Martin Baulig <martin@home-of-linux.org>
-
- * libgtop-conf.in: New file.
-
-1998-08-16 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/loadavg.h (glibtop_loadavg): Added new
- fields `nr_running', `nr_tasks', `last_pid'.
- * features.def (loadavg): Added new fields `nr_running',
- `nr_tasks', `last_pid'.
-
-1998-08-12 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/procsegment.h (glibtop_proc_segment): Using
- `text_rss', `shlib_rss', `data_rss' and `dirty_size' instead of
- `tsr', `lrs', `drs' and `dt'. New field `stack_rss'.
-
- * sysdeps/linux/procmem.c: Memory sizes now correctly in bytes.
- * sysdeps/linux/procsegment.c: Dito.
-
- * sysdeps/kernel/procsegment.c: Stack pages are reported via
- `stack_rss' and no longer count towards `data_rss'
- * kernel/table.h (table_proc_segment): Added `srs' field.
- * kernel/table21/module.c (TBL_PROC_SEGMENT): Added kernel support
- for this.
-
- * sysdeps/{linux, kernel, stub}/procmap.c: New files.
-
-1998-08-11 Martin Baulig <martin@home-of-linux.org>
-
- * guile/features.awk: New file.
- * guile/make-docbook.scm: Improved automatical generation of
- the documentation file `reference.sgml'.
- * guile/reference.sgml: This file is automatically generated,
- but many people have problems with it, so we add it to CVS.
-
-1998-08-10 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/procmap.h (glibtop_proc_map): New file.
- * features.def: Added definition of `proc_map'.
-
- * include/glibtop/proctime.h (glibtop_proc_time): Added new
- fields `rtime' and `frequency'.
-
-1998-08-09 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/prockernel.h (glibtop_proc_kernel): Renamed
- `wchan' field to `nwchan'; added `wchan' which is of type `char [40]'.
-
- * features.def: Changed format of this file to support multiple
- arguments to be passed to a function.
-
- * include/glibtop/proclist.h: `glibtop_get_proclist' now takes two
- more arguments `method' and `param'.
-
-1998-08-07 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/freebsd/ChangeLog: New file.
-
- * src/server: Removed.
- * src/daemon/{server, version}.c: New files.
- * src/daemon/Makefile.am: Added `libgtop_server'; this has been
- moved here from `src/server' since it shares some source code files
- with the `libgtop_daemon'.
-
- * LIBGTOP-VERSION: Added `LIBGTOP_SERVER_VERSION'.
- * src/daemon/gnuserv.c, lib/open.c: Improved version check between
- client and server.
-
- * include/glibtop/output.h: Removed.
-
- * sysdeps/stub_suid: New directory. This is mainly used as example
- for people porting libgtop to other systems.
-
- * sysdeps/common/sysdeps_suid.c: New file.
- Defines `glibtop_init_hook_p'.
-
- * sysdeps/osf1/*.c (glibtop_init_<no-suid-feature>_s): New functions.
- (glibtop_init_<suid-feature>_p): New functions.
-
-1998-08-07 Martin Baulig <martin@home-of-linux.org>
-
- * glibtop.h (_glibtop): New fields `error_method', `sysdeps' and
- `required'. I added an improved error handling: the client can tell
- the libraries which fields are absolutely required for each features
- and if it fails to set one of them, this will create an error which
- is handled depending upon the `error_method'.
-
- * include/glibtop/open.h: Define some constants for `error_method'.
-
- * lib/sysdeps.c (glibtop_get_sysdeps_r): No longer actually call any
- sysdeps function, it now simply copies `server->sysdeps'.
- (_glibtop_init_hook_s): Added. List of functions to be called during
- `glibtop_init_s' set to `glibtop_init_<no-suid-feature>_s'.
-
- * include/glibtop/sysdeps.h (<glibtop/union.h>): Removed.
- (glibtop_init_func_t): New typedef.
- (_glibtop_init_hook_s): Added.
-
- * sysdeps/linux/*.c (glibtop_init_<feature>_s): New functions.
- (glibtop_get_proc_*): Zero is now a valid pid.
-
- * sysdeps/kernel/*.c (glibtop_init_<feature>_s): New functions.
- (glibtop_get_proc_*): Zero is now a valid pid.
-
-1998-08-06 Martin Baulig <martin@home-of-linux.org>
-
- * configure.in (HAVE_SOCKETS, HAVE_SOCKADDR_SUN_LEN): New checks.
-
- * include/glibtop/*.h: Using `GLIBTOP_GUILE' instead of `HAVE_GUILE'
- so one should be able to use libgtop without guile in an application
- even if guile is installed.
-
- * sysdeps/common/mountlist.c: Fixed some `xstrdup' problems.
-
- * lib/open.c: Now correctly reading server features for
- `GLIBTOP_METHOD_PIPE'.
-
- * sysdeps/freebsd: New directory.
-
-1998-08-01 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/swap.h (glibtop_swap): Added `pagein' and `pageout'.
-
- * kernel/table20/table.h: Removed.
- * kernel/table21/table.h: Removed.
- * kernel/table.h: Added. Things are now binary compatible between
- both kernel versions.
-
-1998-07-30 Martin Baulig <martin@home-of-linux.org>
-
- * acconfig.h (guint64, int64_t): Added.
-
- * lib/lib.awk: Using correct `(1 << GLIBTOP_SYSDEPS_<feature>)'
- in call to `glibtop_init_r'.
-
- * configure.in (GNOME_LIBGTOP_TYPES): New check.
-
- * include/glibtop/*.h: Using `guint64' instead of `unsigned long'
- and `long' to avoid problems when client is on a 32bit system and
- the server on a 64bit system.
-
- * sysdeps/common/gnuslib.c: Using `0xffffffff' instead of -1
- as error code for inet_addr () since on 64bit systems,
- `inet_addr (some_error) != (INET_ADDR) -1'.
-
- * configure.in: Only defining guile stuff if
- we really have guile.
-
-1998-07-29 Martin Baulig <martin@home-of-linux.org>
-
- * guile/ChangeLog: New file.
-
- * features.def: New format - now includes type of return value
- and parameters.
-
- * lib/lib.awk: Changed to use new `features.def'.
- * sysdeps/guile/guile.awk: Dito;
- * sysdeps/guile/names/guile-names.awk: Dito.
-
- * libgtopConf.sh.in: Added
- `LIBGTOP_NAMES_LIBS', `LIBGTOP_NAMES_INCS',
- `LIBGTOP_GUILE_NAMES_LIBS', `LIBGTOP_GUILE_NAMES_INCS',
- `LIBGTOP_MAJOR_VERSION', `LIBGTOP_MINOR_VERSION'
- `LIBGTOP_VERSION', `libgtop_sysdeps_dir'.
-
- * acinclude.m4 (AC_LC_SYSDEPS): Removed since this has been
- replaced with `GNOME_LIBGTOP_SYSDEPS' long ago.
-
- * LIBGTOP-VERSION: New file.
-
- * */Makefile.am (INCLUDES): Removed; now defined in `configure.in'.
-
- * sysdeps/names/mountlist.c: New file.
-
- * lib/{init, open}.c (GTOP_SERVER): Renamed to `LIBGTOP_SERVER'.
-
- * configure.in (INCLUDES): Added definition.
- (libgtop_want_names): Always true; `libgtop_names.la' is now
- always created since some other programs rely upon it - but
- have to use `LIBGTOP_NAMES_LIBS' and `LIBGTOP_NAMES_INCS' to
- use it in your application.
- (libgtop_want_guile_names): Always true; but you have to use
- `LIBGTOP_GUILE_NAMES_LIBS' and `LIBGTOP_GUILE_NAMES_INCS' to
- use it in your application.
- (LIBGTOP_LIBS): Removed `-lgtop_names' and `-lgtop_guile_names'.
- (LIBGTOP_NAMES_LIBS): New variable. Use it to link your
- application with the names interface.
- (LIBGTOP_NAMES_INCS): New variable. Also #defines `GLIBTOP_NAMES'
- which is now required if your application wants to use the names
- interface.
- (LIBGTOP_GUILE_NAMES_LIBS): New variable. Use it to link your
- application with the guile names interface.
- (LIBGTOP_GUILE_NAMES_INCS): New variable. Also #defines
- `GLIBTOP_NAMES' and `GLIBTOP_GUILE_NAMES' which are now required
- if your application wants to use the guile names interface.
-
-1998-07-24 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/common/mountlist.c (glibtop_get_mountlist_s):
- Added `all_fs' parameter.
-
- * sysdeps/{kernel, linux}/*.c: Replaced `glibtop_init_r' with
- `glibtop_init_s'.
-
- * sysdeps/sun4/open.c (glibtop_init_p): Removed `program_name'
- parameter.
-
- * sysdeps/osf1/glibtop_suid.h: New file.
-
- * sysdeps/osf1/glibtop_server.h: Now correctly using
- `(1 << GLIBTOP_SYSDEPS_*)' instead of `GLIBTOP_SYSDEPS_*'.
-
- * sysdeps/osf1/open_suid.c (glibtop_init_p): New function.
-
- * sysdeps/osf1/proc*.c: Done some more work here.
-
-1998-07-23 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/procsignal.h (glibtop_proc_signal):
- Changed type for `signal', `blocked', `sigignore' and
- `sigcatch' to `unsigned long long'.
-
-1998-07-22 Martin Baulig <martin@home-of-linux.org>
-
- * include/glibtop/fsusage.h: New file.
-
- * features.def: Added new feature `fsusage'.
-
- * sysdeps/common/fsusage.c (glibtop_get_fsusage_s): New function.
- (get_fs_usage): Declared as `static'.
-
- * sysdeps/names/fsusage.c: New file.
-
- * include/glibtop/mountlist.h: New file.
-
- * features.def: Added new feature `mountlist'.
-
- * sysdeps/common/mountlist.c (glibtop_get_mountlist_s): New function.
- (read_filesystem_list): Declared as `static'.
-
- * sysdeps/common/Makefile.am (libgtop_common_la_SOURCES):
- Added `fsusage.[ch]' and `mountlist.[ch]'.
-
- * include/glibtop/signal.h: New file.
-
- * sysdeps/{kernel, linux, osf1, sun4, stub}/siglist.c: New files.
-
-1998-07-22 Martin Baulig <martin@home-of-linux.org>
-
- * lib/init.c (glibtop_init_s): Added this init function of
- the sysdeps directory `libgtop_sysdeps.la'.
-
- * lib/open.c (glibtop_open_l): Unconditionally calling
- `glibtop_init_s' after server initialization.
-
- * lib/lib.awk: Removed references to functions from
- `libgtop_sysdeps_suid.la' to avoid undefined symbols.
-
- * sysdeps/stub/open.c (glibtop_open_s): Renamed this
- function from `glibtop_open_r'.
-
- * sysdeps/stub/close.c (glibtop_close_s): Renamed this
- function from `glibtop_close_l'.
-
- * sysdeps/kernel/open.c (glibtop_open_s): Renamed this
- function from `glibtop_open_r'.
-
- * sysdeps/kernel/close.c (glibtop_close_s): Renamed this
- function from `glibtop_close_l'.
-
- * sysdeps/linux/open.c (glibtop_open_s): Renamed this
- function from `glibtop_open_r'.
-
- * sysdeps/linux/close.c (glibtop_close_s): Renamed this
- function from `glibtop_close_l'.
-
- * sysdeps/osf1/Makefile.am (lib_LTLIBRARIES): Added
- `libgtop_sysdeps_suid.la' for the suid server.
-
- * sysdeps/osf1/open_suid.c (glibtop_open_p): New file.
- Contains all stuff that was formerly in `open.c'.
-
- * sysdeps/osf1/open.c: Moved everything from here into
- the new file `open_suid.c'.
-
- * sysdeps/osf1/open.c (glibtop_open_s): New function.
-
- * sysdeps/osf1/close_suid.c (glibtop_close_p): New file.
-
- * sysdeps/osf1/close.c (glibtop_close_s): New function.
-
- * sysdeps/osf1/*.c: Using the new init, open and close
- functions.
-
- * sysdeps/sun4/Makefile.am (lib_LTLIBRARIES): Added
- `libgtop_sysdeps_suid.la' for the suid server.
-
- * sysdeps/sun4/nosuid.c (glibtop_open_s, glibtop_close_s): New file
-
- * sysdeps/sun4/*.c: All functions now have the `_p' suffix.
-
- * sysdeps/common/Makefile.am (lib_LTLIBRARIES): Added
- `libgtop_suid_common.la' which only contains stuff that is
- needed in the suid parts.
-
- * sysdeps/common/xmalloc.c: Using `glibtop_error_io_r' instead
- of `glibtop_error_r'.
-
- * sysdeps/{kernel, linux, osf1, sun4, stub}/init.c: Removed.
- `glibtop_init_s' has been moved into `lib/init.c' since it's the
- same in all the sysdeps directories.
-
- * src/server/main.c: It is now an error to request a feature that
- does not need the suid server.
-
- * src/proxy: Removed.
-
-1998-07-21 Martin Baulig <martin@home-of-linux.org>
-
- * doc/ChangeLog: New file.
-
- * sysdeps/kernel/*.c: Using `glibtop_error_io_r' instead
- of `glibtop_error_r'.
-
- * sysdeps/kernel/proclist.c: Now using the table () function, too.
- This means that currently the table () function can fetch all
- information for libgtop and you can even unmount /proc !
-
-1998-07-18 Martin Baulig <martin@home-of-linux.org>
-
- * lib/{init, open}.c: Added `GLIBTOP_METHOD_PIPE' again.
-
- * src/server/main.c: Removed gettext stuff.
-
-1998-07-17 Martin Baulig <baulig@Stud.Informatik.uni-trier.de>
-
- * sysdeps/common/sysdeps.c (glibtop_get_sysdeps_r): Using
- library functions with '_l' prefix instead of directly calling
- sysdeps code with '_r' prefix. This is necessary for client/server
- mode.
-
- * lib/lib.awk (glibtop_get_*): Now correctly using
- `(1 << GLIBTOP_SYSDEPS_*)' instead of `GLIBTOP_SYSDEPS_*'.
-
- * sysdeps/sun4/proclist.c (glibtop_get_proclist_p): Added
- implementation of that feature.
-
- * sysdeps/sun4/proc_{uid, state}.c: Now working quite well.
-
- * sysdeps/sun4/proc_{mem, time, signal, kernel, segment}.c: Added
- some basic implementation; this isn't really working yet.
-
- * sysdeps/linux/sem_limits.c: Applied patch from Albert K T Hui
- <avatar@deva.net> for glibc 2.1.
-
-1998-07-15 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/sun4/loadavg.h: New file. Imported from top 3.4.
-
- * sysdeps/sun4/uptime.c (glibtop_get_uptime_p): Added
- implementation of that function using glibtop_get_cpu ().
-
- * sysdeps/sun4/loadavg.c (glibtop_get_loadavg_p): Added
- implementation of that feature.
-
- * sysdeps/sun4/{shm_limits.c, msg_limits.c, shm_limits.c}:
- Added implementation of this features.
-
-1998-07-14 Martin Baulig <baulig@Stud.Informatik.uni-trier.de>
-
- * src/daemon/server_config.h.in: Added some comments.
-
- * src/daemon/server_config.pl: New file. This is a script you can use
- to create `server_config.h'. It will query you for some configuration
- options.
-
- * configure.in (AC_PROG_AWK): Replaced this test with explicit test
- for `gawk' and `awk' since `mawk' doesn't work.
-
-1998-07-14 Martin Baulig <martin@home-of-linux.org>
-
- * src/daemon/gnuserv.c: Doing correct server initialization
- using `glibtop_set_parameter_l' and `glibtop_init_r'.
-
- * src/daemon/main.c: Removed call to `glibtop_init_r'.
-
- * lib/open.c (glibtop_open_l): We now call the open function
- of the sysdeps directory (glibtop_open_r) for server method
- `GLIBTOP_METHOD_DIRECT'.
-
- * sysdeps/{linux, sun4, stub}/open.c: No longer `memset'
- server to zero.
-
- * src/daemon/slave.c: New file.
-
- * src/daemon/*.c: Done some more work on the daemon.
-
- * sysdeps/common/gnuslib.c: Removed IPC stuff.
-
- * include/glibtop/gnuserv.h: Removed IPC stuff.
-
- * include/glibtop/command.h (glibtop_response_unit): Added
- typedef for `struct _glibtop_response_unit'.
-
- * lib/Makefile.am: Using `$(top_srcdir)/features.def'
- instead of `$(top_builddir)/features.def'.
-
- * sysdeps/guile/Makefile.am: Using `$(top_srcdir)/features.def'
- instead of `$(top_builddir)/features.def'.
-
- * sysdeps/guile/names/Makefile.am: Dito.
-
- * sysdeps/stub/*.c: changed suffix of all functions
- from '_s' to '_r'; see also ChangeLog entry from Jun 6.
-
-1998-07-13 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * src/daemon/server_config.h: Removed from CVS.
- This is a config file which needs to be edited.
-
- * src/daemon/server_config.h.in: Added. This is just
- an example for `server_config.h'.
-
-1998-07-13 Martin Baulig <martin@home-of-linux.org>
-
- * glibtop.h: Fixed invocation of `glibtop_close_r'.
-
- * sysdeps/linux/procstate.c: Added missing `fclose'.
-
- * include/glibtop/gnuserv.h (UNIX_DOMAIN_SOCKETS): Defining.
-
- * include/glibtop/open.h (GLIBTOP_METHOD_UNIX): Added.
-
- * lib/init.c: Added new method `GLIBTOP_METHOD_UNIX'.
-
- * lib/open.c: Added support for Unix Domain Sockets.
-
- * lib/close.c: Now closing inet and unix connections.
-
- * lib/parameter.c (glibtop_set_parameter_l): You can now
- set the `method' and `features' fields.
-
- * src/daemon/server_config.h: New file.
-
- * src/daemon/{gnuserv.c, main.c}: More work on the server.
-
-1998-07-10 Martin Baulig <martin@home-of-linux.org>
-
- * src/Makefile.am (SUBDIRS): Removed `proxy'. This directory
- is considered obsolete and will be removed soon.
-
-1998-07-06 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/common/mountlist.c: using functions from `xmalloc.c'.
-
- * sysdeps/common/error.c: all functions now accept NULL as
- `server' argument.
-
- * acconfig.h (AFS, MOUNTED_FREAD, MOUNTED_FREAD_FSTYP,
- MOUNTED_GETFSSTAT, MOUNTED_GETMNT, MOUNTED_GETMNTENT1,
- MOUNTED_GETMNTENT2, MOUNTED_GETMNTINFO, MOUNTED_LISTMNTENT,
- MOUNTED_VMOUNT, STAT_STATFS3_OSF1, STAT_READ_FILSYS,
- STAT_STATFS2_BSIZE, STAT_STATFS2_FSIZE, STAT_STATFS2_FS_DATA,
- STAT_STATFS4, STAT_STATVFS, STATFS_TRUNCATES_BLOCK_COUNTS):
- New macros.
-
- * configure.in: added GNOME_FILEUTILS_CHECKS.
-
- * sysdeps/common/{fsusage, mountlist}.[ch]:
- Imported from GNU Fileutils 3.16.
-
- * sysdeps/common/mountlist.c: using g_malloc, g_realloc and g_strdup.
-
-1998-07-03 Martin baulig <martin@home-of-linux.org>
-
- * macros/gnome-libgtop-sysdeps.m4: No longer use
- `glibtop_machine.h' for Linux.
-
- * sysdeps/linux/glibtop_machine.h: Removed.
-
- * sysdeps/guile/guile.awk: Using `scm_append'
- instead of `gh_append'.
-
- * sysdeps/guile/names/guile-names.awk: dito.
-
- * sysdeps/linux/*.c: Using code from stable branch again.
-
- * include/glibtop/parameter.h: New file.
-
- * lib/parameter.c: New file.
-
- * lib/{open, init}.c: Done some more work on server
- initialization
-
-1998-06-21 Martin Baulig <martin@home-of-linux.org>
-
- * perl/*: Added perl interface.
-
- * sysdeps/linux/cpu.c: Bug fix.
-
- * include/glibtop/global.h: Only including guile header files
- within libgtop.
-
- * configure.in (LIGBTOP_LIBS): Added `-lgtop'.
-
- * Makefile.am: Creating `perl/Makefile.PL' from `perl/Makefile.PL.in'
- and `perl/Libgtop.xs' using `perl/perl.awk'.
-
-1998-06-18 Martin Baulig <baulig@taurus.uni-trier.de>
-
- * sysdeps/linux/*.c: Reverted some stuff from 06-07-1998
- since it was too buggy.
-
- * glibtop.h (_glibtop): New field `server_port'.
-
- * lib/xmalloc.c (g_strdup): New function.
-
- * lib/gnuclient.c: Removed.
-
- * lib/{command, write, read}.c: Changed client <-> server
- interface to make less system calls.
-
- * src/daemon/main.c: Changed server side of interface.
-
- * include/glibtop/command.h (struct _glibtop_response): New
- structure to return data from the server to the client.
-
-1998-06-14 Martin Baulig <martin@home-of-linux.org>
-
- * glibtop.h (struct _glibtop): Added `socket' field.
-
- * include/glibtop/gnuserv.h: New file. Imported from xemacs 20.3.
-
- * sysdeps/common/gnuslib.c: New file. Imported from xemacs 20.3
-
- * lib/gnuclient.c: New file. Imported from xemacs 20.3
-
- * sysdeps/daemon/gnuserv.c: New file. Imported from xemacs 20.3
-
- * sysdeps/daemon: New directory.
-
- * configure.in (LIBGTOP_LIBS, LIBGTOP_GUILE_LIBS): Added
- `$X_LIBS -lXau' when we have xauth.
-
- * acconfig.h (HAVE_XAUTH): New tag.
-
- * configure.in: Added check for `HAVE_XAUTH'.
-
- * sysdeps/common/error.c (glibtop_warn_r): New function -
- same as `glibtop_error_r', but doesn't call `exit'.
- (glibtop_error_io_r, glibtop_warn_io_r): New functions,
- display `strerror (errno)' together with message.
-
- * include/glibtop/global.h (TIME_WITH_SYS_TIME): including
- correct headers; (HAVE_UNISTD_H): Added conditional.
- Added `#include <sys/param.h>' and `#include <sys/stat.h>'.
-
- * acconfig.h (HAVE_LINUX_TABLE): New tag.
-
- * lib/lib.awk: New file.
- Creates `lib.c' depending upon `features.def'.
-
- * lib/<feature>.c: Removed.
-
- * sysdeps/guile/guile.awk: New file.
- Creates `guile.c' depending upon `features.def'.
-
- * sysdeps/guile/*.c: Removed.
-
-1998-06-13 Martin Baulig <martin@home-of-linux.org>
-
- * features.def: List of features for `guile-names.awk'.
-
- * sysdeps/guile/names/guile-names.awk: New file.
- Creates `guile-names.c' depending upon `features.def'.
-
- * sysdeps/guile/names/*.c: Removed.
-
- * kernel: New directory. Contains some kernel code to
- implement a new system call table () to fetch information
- directly from the Linux kernel.
-
- * sysdeps/kernel: New directory. Uses the table () function
- from the `kernel' directory to fetch things directly from
- the Linux kernel.
-
- * sysdeps/Makefile.am (DIST_SUBDIRS): Added `kernel'.
-
- * configure.in: Removed `build_CC' again.
-
-1998-06-12 Martin Baulig <baulig@taurus.uni-trier.de>
-
- * include/glibtop/sysdeps.h (glibtop_types_sysdeps):
- Forgot to change declaration on Jun 6.
-
- * sysdeps/names/sysdeps.c (glibtop_types_sysdeps):
- Using numeric constants from `types.h' instead of string
- constants; forgot to change this on Jun 6. Added information
- about new `features' field of `_glibtop_sysdeps'.
-
- * sysdeps/guile/names/*.c (glibtop_guile_types_*):
- Using `gh_ulong2scm' instead of `gh_str02scm'.
-
- * sysdeps/guile/proclist.c: Replaced call to
- `gh_append2 ()' with `gh_append ()'.
-
- * sysdeps/guile/names/*.c: dito.
-
-1998-06-08 Martin Baulig <martin@home-of-linux.org>
-
- * support: Added again.
-
- * Makefile.am (SUBDIRS): Added `support' again.
-
- * configure.in: First, we check for gnome. If it is not
- found, we run GNOME_SUPPORT_CHECKS; otherwise use
- `$GNOME_LIBDIR -lgnomesupport'.
-
-1998-06-07 Martin Baulig <martin@home-of-linux.org>
-
- * examples/ChangeLog: New file.
-
- * macros/gnome-libgtop-sysdeps.m4: Include
- `glibtop_machine.h' for Linux.
-
- * sysdeps/linux/glibtop_machine.h: New file.
-
- * sysdeps/linux/*.c: Performance optimizations. We now use
- `open' and `read' instead of `fopen' and `fscanf'.
-
- * *.[ch]: Using single underscore instead of two underscores
- for function prefixes (regexp: ``s,__([rspl])\b,_$1,g'') to
- avoid ambiguity with mangled C++ names.
-
-1998-06-06 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/osf1/glibtop_server.h: New file.
-
- * sysdeps/osf1/*.c: renamed all functions implementing
- features that don't need to be suid to '__s'.
-
- * sysdeps/names/procdata.c: Removed that file.
-
- * include/glibtop/*.h (glibtop_types_*): Changed declaration.
-
- * glibtop.h: Added `#include <types.h>'.
-
- * include/glibtop/types.h: New file - numeric constants
- for `glibtop_types_<feature>'.
-
- * sysdeps/names/*.c (glibtop_types_*): Using numeric
- constants from `types.h' instead of string constants.
-
-1998-06-05 Martin Baulig <baulig@taurus.uni-trier.de>
-
- * support: removed that directory.
-
- * configure.in: we check whether '-lgnomesupport' is
- included in $GNOME_LIBS and add it together with
- $GNOME_LIBDIR to LIBSUPPORT in this case.
-
- Gnome (gnome-libs) is now required to build libgtop,
- added short comment to configure.in how to revert this
- change.
-
- * Makefile.am: removed `support' subdir.
-
-1998-06-03 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * libgtop.spec: New file.
-
- * Makefile.am (EXTRA_DIST): Added `autogen.sh' and
- `libgtop.spec'.
-
- * configure.in (LIBGTOP_INCS): is now identically to
- `LIBGTOP_GUILE_INCS'.
-
- * include/glibtop/global.h: only including intl headers
- while compiling libgtop.
-
-1998-06-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
-
- * src/server/main.c: #include <locale.h>
-
-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):
- tells `glibtop_open' to use the default server and not
- to check the environment variables.
-
- * include/glibtop/sysdeps.h (_glibtop_sysdeps):
- renamed 'dummy' member to 'features'.
-
- * src/proxy/*: new directory - proxy server.
-
- * include/glibtop/command.h (GLIBTOP_CMND_SYSDEPS):
- added definition here.
-
- * src/server/main.c (GLIBTOP_CMND_SYSDEPS): new
- command to get glibtop_server_features.
-
-1998-06-01 Martin Baulig <martin@home-of-linux.org>
-
- * NEWS: added more detailed description of today's and
- yesterday's changes.
-
- * include/glibtop/*.h: to use the ChangeLog entry from May 28:
- '__l' is a function defined in the client part;
- '__s' is a function defined in the sysdeps part and
- '__p' is a function that needs special priviledges.
- '__r' is mapped either on '__p' or on '__s'.
- the function without suffix is mapped on '__l'.
-
- * sysdeps/common/sysdeps.c: now using '__r' functions,
- they are #defined either as the '__p' or the '__s' ones.
-
- * sysdeps/linux/*.c: changed call of 'glibtop_init__r',
- it now takes two additional arguments.
-
- * examples/{first.c, second.c}: now using 'glibtop_init'
- instead of 'glibtop_init__r'.
-
- * include/glibtop/sysdeps.h: added 'dummy' member so
- 'GLIBTOP_SYSDEPS_<feature>' now start with 1.
-
- * include/glibtop/*.h: we now #define 'glibtop_get_<feature>'
- as 'glibtop_get_<feature>__l' and 'glibtop_get_<feature>__r'
- either as the '__p' or the '__s' function.
-
- * lib/*.c: removed #if's - we now decide at runtime
- whether to use the server or to call the appropriate
- function for the sysdeps directory.
-
-1998-05-28 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * src/server/main.c: we now use the '__p' functions,
- but only if the appropriate 'GLIBTOP_SUID_<feature>'
- has a non-zero value.
-
- * configure.in (@machine_incs@): always use
- `-I$(top_srcdir)/sysdeps/@sysdeps_dir@'; it's no
- longer conditional.
-
- * examples/Makefile.am: removed the '_linux' examples.
-
- * sysdeps/linux/*.c: renamed all functions implementing
- features to '__s'.
-
- * lib/*.c: renamed all functions implementing features
- to '__l'; we only emit code for those functions if the
- corresponding 'GLIBTOP_SUID_<feature>' has a positive value.
-
- * include/glibtop/*.h: added some new function suffixes:
- '__l' is a function defined in the client part;
- '__s' is a function defined in the sysdeps part and
- '__p' is a function that needs special priviledges.
- '__r' is mapped either on '__l' or on '__s'.
-
- * sysdeps/linux/glibtop_server.h: New file -
- defines system dependent constants 'GLIBTOP_SUID_<feature>'
- being either 'GLIBTOP_SYSDEPS_<feature>'+1 depending upon
- whether or not this feature requires using the server.
-
- * lib/sysdeps.c: removed that file; it is no longer
- needed.
-
-1998-05-25 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * src/server/main.c: Fixed `broken pipe' error when server
- is running SUID; accidentally uses setreuid () instead of
- setregid ().
-
-1998-05-24 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/sun4/{open.c, mem.c, glibtop_machine.h}: added
- memory statistics.
-
- * include/glibtop/mem.h (_glibtop_mem): added `locked'
- member to this structure for SunOS.
-
-1998-05-23 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/sun4/{open.c, cpu.c}: Started porting.
- Getting CPU usage now working. Took a lot of code
- from top-3.4.
-
- * sysdeps/sun4/glibtop_machine.h: New file.
- System dependend header file for SunOS.
-
- * configure.in (CFLAGS): added -D_IN_LIBGTOP
-
- * */Makefile.am (INCLUDES): removed -I$(includedir).
-
-1998-05-22 Martin Baulig <martin@home-of-linux.org>
-
- * doc/{libgtop-ref.sgml, libgtop-ref.dsl}: New files.
- This is a reference manual that gets automatically
- build from make-docbook.scm.
-
- * guile/make-docbook.scm: New file. Uses the guile
- interface of libgtop to create docbook documentation
- for all functions.
-
-1998-05-21 Martin Baulig <martin@home-of-linux.org>
-
- * Makefile.am: 'gtopConf.sh' has been renamed to
- 'libgtopConf.sh'; variables in this script have changed.
-
- * lib/Makefile.am: uses '@LIBGTOP_SERVER@' instead of
- '@GTOP_SERVER@'.
-
- * configure.in: renamed variables for 'libgtopConf.sh.in'.
-
- * acconfig.h: added 'NEED_LIBGTOP'.
-
- * libgtopConf.sh.in: renamed from 'gtopConf.sh.in';
- we now define 'LIBGTOP_LIBDIR', 'LIBGTOP_INCLUDEDIR',
- 'LIBGTOP_LIBS', 'LIBGTOP_INCS', 'LIBGTOP_GUILE_LIBS',
- 'LIBGTOP_GUILE_INCS', 'LIBGTOP_BINDIR', 'LIBGTOP_SERVER',
- 'libgtop_sysdeps_dir', 'libgtop_need_server',
- 'libgtop_use_machine_h', 'libgtop_guile_found',
- 'libgtop_want_names', 'libgtop_want_guile_names',
- 'libgtop_want_examples'.
-
- * gtopConf.sh.in: renamed to 'libgtopConf.sh.in'.
-
- * acinclude.m4 (AC_LC_SYSDEPS): rewrote that macro -
- moved some of the code to 'macros/gnome-libgtop-sysdeps.m4';
- renamed variables: look at the ChangeLog entry for the
- new 'libgtopConf.sh.in' for details.
-
- * doc/gnome-hackers.sgml: added information about latest
- changes in 'acinclude.m4' and 'gtopConf.sh.in'.
-
- * Makefile.am: conditionally building 'examples' subdir,
- added 'copyright.txt' to EXTRA_DIST.
-
- * configure.in: added 'gtop_guile_found', 'gtop_want_names',
- 'gtop_want_guile_names' and 'gtop_want_examples' for use in
- 'gtopConf.sh.in'; added 'include' and 'include/glibtop' subdirs.
-
- * acconfig.h: added 'GLIBTOP_EXAMPLES'.
-
- * acinclude.m4 (AC_LC_SYSDEPS): define 'GLIBTOP_NAMES' when
- building libgtop and a new conditional 'GLIBTOP_NAMES'; added
- new parameter '--without-examples'; define 'GLIBTOP_EXAMPLES'
- and conditional 'GLIBTOP_EXAMPLES'.
-
- * gtopConf.sh.in: added 'GTOP_GUILE_FOUND', 'GTOP_WANT_NAMES',
- 'GTOP_WANT_GUILE_NAMES' and 'GTOP_WANT_EXAMPLES'.
-
- * include/glibtop/Makefile.am: new file - header file
- now get properly installed and go into the distribution.
-
- * include/Makefile.am: new file
-
- * sysdeps/guile/Makefile.am: added 'DIST_SUBDIRS'
-
- * sysdeps/Makefile.am: added 'DIST_SUBDIRS'
-
- * doc/gnome-hackers.sgml: new file - short intro on how
- to use libgtop in the gnome project; especially 'configure'
- and 'gtopConf.sh'.
-
- * doc/gnome-hackers.dsl: new file - sets output filename
- and directory for 'gnome-hackers.sgml'.
-
- * doc/libgtop.dsl: most stuff from this file has moved
- to 'dbtohtml.dsl', it now only overrides the output
- filename and directory.
-
- * doc/dbtohtml.dsl: new file - contains most that was
- formerly in 'libgtop.dsl'.
-
- * configure.in: 'GTOP_INCS' and 'GTOP_LIBS' now really
- point to the places where everything gets installed and
- no longer to the build directory, so that they can be
- used in 'gtopConf.sh'.
-
- * acinclude.m4 (AC_LC_SYSDEPS): added 'machine_incs'
- which is used in 'INCLUDES' in several 'Makefile.am's;
- fixed typo 'ac_cv_want_names'; added missing AC_SUBST
- of 'use_glibtop_machine_h'.
-
-1998-05-20 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * NEWS: added more detailed description of
- today's changes.
-
- * examples/third.c: added required check for
- 'GLIBGTOP_GUILE_NAMES'.
-
- * sysdeps/Makefile.am: only build 'names' subdir
- when necessary.
-
- * sysdeps/guile/Makefile.am: only build 'names'
- subdir when necessary.
-
- * acinclude.m4 (AC_LC_SYSDEPS): added
- '--enable-libgtop-server' (default=auto),
- '--enable-libgtop-names' (default=yes) and
- '--enable-libgtop-guile' (default=yes); we
- now define 'GLIBTOP_NAMES' here.
-
- * acconfig.h: added 'GLIBTOP_NAMES' and
- 'GLIBTOP_GUILE_NAMES'
-
- * gtopConf.sh.in: added definition of 'GTOP_GUILE_LIBS'
- and 'GTOP_GUILE_INCS':
-
- 'GTOP_LIBS' and 'GTOP_INCS' now contains everything
- that is needed to link with libgtop.
-
- 'GTOP_GUILE_LIBS' and 'GTOP_GUILE_INCS' now contains
- everything that is needed to link with libgtop and its
- guile interface. When guile cannot be found on the system
- or building of the guile interface was disables, they are
- identical to 'GTOP_LIBS' and 'GTOP_INCS'
- [FIXME: Should I make them empty in this case?]
-
- * sysdeps/osf1/procuid.c (glibtop_get_proc_uid__r):
- added implementation for DEC OSF/1.
-
- * sysdeps/sun4/uptime.c: forgot to checkin
-
- * sysdeps/sun4/loadavg.c: forgot to checkin
-
- * sysdeps/osf1/uptime.c: forgot to checkin
-
- * sysdeps/osf1/loadavg.c: forgot to checkin
-
-1998-05-19 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * sysdeps/stub/uptime.c: forgot this file all the
- time - stub for glibtop_uptime
-
- * sysdeps/stub/loadavg.c: forgot this file all the
- time - stub for glibtop_loadavg
-
- * NEWS: Libgtop is now in the GNOME CVS Repository.
-
- * po/Makefile.in.in: new file
-
- * ABOUT-NLS: new file
-
-1998-05-17 Martin Baulig <martin@home-of-linux.org>
-
- * NEWS: added some stuff from 'README.LATEST'.
-
- * README.LATEST: incorporated content of this file
- into 'NEWS'.
-
- * include/glibtop: added references to
- 'glibtop_types_* []' and 'glibtop_guile_types_*'.
-
- * sysdeps/guile/names: added implementations of
- 'glibtop_types_*' and 'glibtop_description_*'.
-
- * sysdeps/names: added 'glibtop_types_* []',
- changed 'glibtop_descriptions_* []'.
-
-1998-05-11 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/linux: finished the remaining proc_*
- functions.
-
- * sysdeps/guile: all guile functions now return
- the 'flags' member as first element of the list.
-
- * include/glibtop/procstate.h (glibtop_proc_state):
- added 'uid' and 'gid' members; the library tries hard
- to set those values; it will never set the corresponding
- 'flags' value unless the values are correct.
-
- * examples/first.c: added some nice features.
-
- * examples/second.c: new file - dumps out all
- currently running processes.
-
-1998-05-11 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * sysdeps/linux/cpu.c: added 'frequency' member
- to 'struct _glibtop_cpu'.
-
- * include/glibtop/cpu.h (glibtop_cpu):
- added 'frequency' member
-
- * sysdeps/guile/names/procdata.c: splitted into
- procstate.c, procuid.c, procmem.c, proctime.c,
- procsignal.c, prockernel.c and procsegment.c
-
- * sysdeps/guile/procdata.c: splitted into
- procstate.c, procuid.c, procmem.c, proctime.c,
- procsignal.c, prockernel.c and procsegment.c
-
- * lib/procdata.c: splitted into
- procstate.c, procuid.c, procmem.c, proctime.c,
- procsignal.c, prockernel.c and procsegment.c
-
- * include/glibtop/procdata.h: splitted into
- procstate.h, procuid.h, procmem.h, proctime.h,
- procsignal.h, prockernel.h and procsegment.h
-
-1998-05-10 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/osf1: port to OSF1 has been made.
-
-1998-05-07 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/guile/sysdeps.c: changes to reflect the
- new flags of procdata.
-
- * sysdeps/common/sysdeps.c: changes to reflect the
- new flags of procdata.
-
- * sysdeps/linux/procdata.c: 'flags' member is now
- 'unsigned long flags [2]'. When we give
- glibtop_get_procdata () a pid of zero, only
- the flags are returned.
-
- * sysdeps/linux: now using static constant instead
- of #define for sysdeps.
-
- * include/glibtop/procdata.h: flags is now
- 'unsigned long flags [2]'.
-
- * examples/first.c: output sysdeps
-
-1998-05-03 Martin Baulig <martin@home-of-linux.org>
-
- * ltconfig.diff: ugly hack: when cross compiling, we assume
- building shared libraries work.
-
-1998-05-02 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/stub/init.c: new file - initializes global server.
-
- * sysdeps/linux/init.c: new file - initializes global server.
-
- * lib/init.c: new file - initializes global server.
-
- * glibtop.h: global changes to the interfaces, all functions except
- glibtop_open() and glibtop_close() that took a server argument have
- now a '__r' suffix; the original name is now a macro that uses
- glibtop_global_server.
-
-1998-04-12 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps/linux/open.c: we set server->os_version_code here,
- copied from gnome-utils/gtop/proc/version.c
-
- * sysdeps/linux/procdata.c: added implementation for this feature,
- mainly copied from gnome-utils/gtop/proc/readproc.c
-
- * glibtop.h: added os_version_code member to struct _glibtop
-
- * src/server/Makefile.am: moved here from src
-
- * src/server/version.c: moved here from src
-
- * src/server/output.c: moved here from src
-
- * src/server/main.c: moved here from src
-
- * src/mico/server.cc: new file - simple mico client
-
- * src/mico/client.cc: new file - simple mico client
-
- * src/mico/proclist.idl: new file - simple mico interface
-
- * src/version.c: moved to src/server
-
- * src/output.c: moved to src/server
-
- * src/main.c: moved to src/server
-
-1998-04-11 Martin Baulig <martin@home-of-linux.org>
-
- * doc/libgtop.sgml: added chapter on how to extend the library
-
- * sysdeps/names/procdata.c: new file - names for glibtop_procdata
-
- * sysdeps/linux/procdata.c: new file - copy from sysdeps/stub
-
- * sysdeps/stub/procdata.c: new file - stub for glibtop_procdata
-
- * sysdeps/guile/names/procdata.c: new file - guile names for glibtop_procdata
-
- * sysdeps/guile/procdata.c: new file - guile interface for glibtop_procdata
-
- * lib/procdata.c: new file - library function for glibtop_procdata
-
- * include/glibtop/procdata.h: new file - interface for glibtop_procdata -
- get detailed information about a process
-
-1998-04-10 Martin Baulig <martin@home-of-linux.org>
-
- * doc/libgtop.sgml: wrote some more documentation
-
- * NEWS: Added new directory sysdeps/guile/names. It is the guile interface
- to the gtop_names library found in sysdeps/names. Changed
- GLIBTOP_DESCRIPTIONS to GLIBTOP_NAMES and added GLIBTOP_GUILE_NAMES
- to the header files.
-
- * sysdeps/guile/names/boot.c: new file - added also
- cpu.c, mem.c, swap.c, uptime.c, loadavg.c, shm_limits.c,
- msg_limits.c, sem_limits.c, proclist.c and sysdeps.c
- to this directory.
-
- * sysdeps/guile/cpu.c: bugfixes
-
- * sysdeps/guile/proclist.c: bugfixes
-
- * sysdeps/names/sysdeps.c (glibtop_labels_sysdeps): more verbose now
-
- * examples/third.c: added gtop_guile_names library
-
- * doc/libgtop.sgml: documented guile interface
-
- * glibtop.h: changed GLIBTOP_DESCRIPTIONS to GLIBTOP_NAMES;
- added GLIBTOP_GUILE_NAMES when we have the gtop_guile_names
- library added in sysdeps/guile/names
-
-1998-04-09 Martin Baulig <martin@home-of-linux.org>
-
- * NEWS: Added new directories guile and names to sysdeps. In names are
- some string constants about the data stored in the structures.
- guile is a guile interface for the library. It is used in
- examples /third (which has been completely rewritten).
- The header files define things from names when GLIBTOP_DESCRIPTIONS
- if defined and/or from guile when HAVE_GUILE is defined.
-
- * sysdeps/names/cpu.c: new file, also added
- cpu.c, mem.c, swap.c, uptime.c loadavg.c, shm_limits.c,
- msg_limits.c, sem_limits.c, proclist.c and sysdeps.c to
- this directory
-
- * sysdeps/guile/boot.c: new file, also added
- cpu.c, mem.c, swap.c, uptime.c loadavg.c, shm_limits.c,
- msg_limits.c, sem_limits.c, proclist.c and sysdeps.c to
- this directory
-
- * sysdeps/common/sem_limits.c: moved to sysdeps/names
-
- * sysdeps/common/msg_limits.c: moved to sysdeps/names
-
- * sysdeps/common/sem_limits.c: moved to sysdeps/names
-
- * examples/third.c: completely rewritten - simple guile interpreter linked
- with libgtop_guile
-
- * examples/second.c: removed
-
-1998-04-08 Martin Baulig <martin@home-of-linux.org>
-
- * ANNOUNCE: new file
-
- * examples/third.scm: new file - sample guile file
-
- * examples/third.c: new file - guile wrapper for libgtop
-
- * examples/second.c: new file - simple guile test from guile-tut.info
-
- * README: new file
-
- * libgtop-mirror.sh: new file: mirror script for my web site
-
- * doc/dbtohtml.dsl: renamed to libgtop.dsl
-
-1998-04-06 Martin Baulig <martin@home-of-linux.org>
-
- * lib/command.c: some changes in the interface
-
- * src/main.c: some changes in the interface, we can now return
- some arbitrary data
-
- * lib/proclist.c: new file - library function for glibtop_proclist
-
- * sysdeps/linux/proclist.c: new file - implementation for glibtop_proclist
-
- * sysdeps/stub/proclist.c: new file - stub for glibtop_proclist
-
- * include/glibtop/proclist.h: new file - glibtop_proclist
-
- * include/glibtop/union.h: new file
-
- * lib/read_data.c: new file
-
- * include/glibtop/read_data.h: new file
-
- * sysdeps/common/xmalloc.c: new file - moved here from lib
-
- * sysdeps/common/error.c: new file - moved here from lib
-
- * lib/xmalloc.c: moved to sysdeps/common
-
- * lib/error.c: moved to sysdeps/common
-
-1998-04-05 Martin Baulig <martin@home-of-linux.org>
-
- * lib/shm_limits.c: new file - library function for
- glibtop_shm_limits
-
- * lib/msg_limits.c: new file - library function for
- glibtop_msg_limits
-
- * lib/sem_limits.c: new file - library function for
- glibtop_sem_limits
-
- * sysdeps/linux/shm_limits.c: new file - implementation for
- glibtop_shm_limits
-
- * sysdeps/linux/msg_limits.c: new file - implementation for
- glibtop_msg_limits
-
- * sysdeps/linux/sem_limits.c: new file - implementation for
- glibtop_sem_limits
-
- * sysdeps/stub/shm_limits.c: new file - stub for
- glibtop_shm_limits
-
- * sysdeps/stub/msg_limits.c: new file - stub for
- glibtop_msg_limits
-
- * sysdeps/stub/sem_limits.c: new file - stub for
- glibtop_sem_limits
-
- * sysdeps/common/shm_limits.c: new file - limit names
-
- * sysdeps/common/msg_limits.c: new file - limit names
-
- * sysdeps/common/sem_limits.c: new file - limit names
-
- * include/glibtop/shm_limits.h: new file - glibtop_shm_limits
-
- * include/glibtop/msg_limits.h: new file - glibtop_msg_limits
-
- * include/glibtop/sem_limits.h: new file - glibtop_sem_limits
-
- * sysdeps/common/sysdeps.c: moved here from sysdeps/stub
-
- * sysdeps/linux/sysdeps.c: moved to sysdeps/common
-
- * sysdeps/stub/sysdeps.c: moved to sysdeps/common
-
- * sysdeps/stub/ipc_limits.c: splitted info shm_limits.c, msg_limits.c
- and sem_limits.c
-
- * sysdeps/linux/ipc_limits.c: splitted into shm_limits.c, msg_limits.c
- and sem_limits.c
-
- * lib/ipc_limits.c: splitted into shm_limits.c, msg_limits.c
- and sem_limits.c
-
- * include/ipc_limits.h: splitted into shm_limits.h, msg_limits.h
- and sem_limits.s
-
- * lib/ipc_limits.c: new file - library function for
- glibtop_ipc_limits
-
- * sysdeps/linux/ipc_limits.c: new file - implementation for
- glibtop_ipc_limits
-
- * sysdeps/stub/ipc_limits.c: new file - stub for
- glibtop_ipc_limits
-
- * include/glibtop/ipc_limits.h: new file - glibtop_ipc_limits -
- sysv ipc limits
-
- * doc/libgtop.sgml: worked on documentation
-
- * lib/uptime.c: new file - library function for
- glibtop_uptime
-
- * lib/loadavg.c: new file - library function for
- glibtop_loadavg
-
- * lib/sysinfo.c: removed - splitted into
- uptime.c and loadavg.c
-
- * sysdeps/linux/uptime.c: new file - implementation for
- glibtop_uptime
-
- * sysdeps/linux/loadavg.c: new file - implementation for
- glibtop_loadavg
-
- * sysdeps/linux/sysinfo.c: removed - splitted into
- uptime.c and loadavg.c
-
- * sysdeps/stub/uptime.c: new file - stub for
- glibtop_uptime
-
- * sysdeps/stub/loadavg.c: new file - stub for
- glibtop_loadavg
-
- * sysdeps/stub/sysinfo.c: removed - splitted into
- uptime.c and loadavg.c
-
- * src/main.c: added GLIBTOP_CMND_UPTIME and
- GLIBTOP_CMND_LOADAVG implementation
-
- * include/glibtop/loadavg.h: new file - glibtop_loadavg
-
- * include/glibtop/uptime.h: new file - glibtop_uptime
-
- * include/glibtop/loadavg.h: removed - splitted into
- uptime.h and loadavg.h
-
- * src/main.c: added GLIBTOP_CMND_SYSDEPS implementation
-
- * lib/sysdeps.c: new file - library function for glibtop_sysdeps
-
- * sysdeps/linux/sysdeps.c: new file - copied from sysdeps/stub
-
- * sysdeps/stub/sysdeps.c: new file - implementation for glibtop_sysinfo -
- this is really the implementation and not just a stub
-
- * src/sysdeps.c: moved to sysdeps/stub - this file is now part
- of the library
-
- * lib/sysinfo.c: new file - library function for glibtop_sysinfo
-
- * sysdeps/linux/sysinfo.c: new file - linux version for glibtop_sysinfo
-
- * sysdeps/stub/sysinfo.c: new file - stub for glibtop_sysinfo
-
- * include/glibtop/sysinfo.h: new file - provides uptime, idle time
- and load averange.
-
- * po/libgtop.pot: removed file
-
- * sysdeps/linux/cpu.c: using long unsigned format
- * sysdeps/linux/mem.c: using long usigned format
- * sysdeps/linux/swap.c: using long unsigned format
- * examples/first.c: using long unsigned format
-
- * initial version.
-
diff --git a/MAINTAINERS b/MAINTAINERS
deleted file mode 100644
index 7ab44212..00000000
--- a/MAINTAINERS
+++ /dev/null
@@ -1,4 +0,0 @@
-Benoît Dejean
-E-mail: benoit@placenet.org
-Userid: bdejean
-
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index 016313fa..00000000
--- a/Makefile.am
+++ /dev/null
@@ -1,35 +0,0 @@
-
-if EXAMPLES
-EXAMPLES_DIR = examples
-else
-EXAMPLES_DIR =
-endif
-
-SUBDIRS = po misc include sysdeps lib src $(EXAMPLES_DIR) doc
-
-libgtopinclude_HEADERS = glibtop.h libgtopconfig.h
-libgtopincludedir = $(includedir)/libgtop-2.0
-
-EXTRA_DIST = autogen.sh libgtop.spec.in copyright.txt \
- features.def libgtopconfig.h.in \
- libgtop-sysdeps.m4 README \
- libgtop-2.0.pc.in acinclude.m4 \
- intltool-extract.in \
- intltool-merge.in \
- intltool-update.in
-
-DISTCLEANFILES = \
- intltool-extract \
- intltool-merge \
- intltool-update
-
-dist-hook:
- cp libgtop.spec $(distdir)
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libgtop-2.0.pc
-
-libgtop-features.def: features.def
- @LN_S@ $< $@
-
-DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
diff --git a/NEWS b/NEWS
deleted file mode 100644
index a479f190..00000000
--- a/NEWS
+++ /dev/null
@@ -1,343 +0,0 @@
-16 September 2007: Overview of changes in 2.20.0
-================================================
-* Updated translations.
-
-27 August 2007: Overview of changes in 2.19.92
-==============================================
-* Fixed stupid hardwired path in linux/sysinfo.c
-
-26 August 2007: Overview of changes in 2.19.91
-==============================================
-* Translations updates.
-* linux:
- - Small internal improvement. Might fix sysinfo when having more than
- 8 CPUS.
-
-9 July 2007: Overview of changes in 2.19.5
-==========================================
-* linux:
- - fixed proc_map for >= 2.6.22
-* freebsd:
- - implemented procwd and procopenfiles
- Joe Marcus Clarke
-
-18 June 2007: Overview of changes in 2.19.4
-===========================================
-* solaris:
- - fixed build. Damien Carbery.
-
-3 June 2007: Overview of changes in 2.19.3
-==========================================
-* Small API change. get_proclist returns pid_t instead of unsigned
- for consistency.
-* linux:
- - fixed an typo bug in open_files.
- - got rid of useless glibtop_init_s calls.
-* Enable example build by defaut.
-* Dropped G_GNUC_INTERNAL attributes no longer needed.
- This will please people trying to implement G_GNUC macro with a non
- GNU Compiler.
-
-13 May 2007: Overview of changes in 2.19.2
-==========================================
-* This is the first release of the 2.19.x series.
-* Got rid of inodedb (you don't even know what it is ;)
-* New unstable API glibtop_get_proc_wd to get working directories of
- a process.
-* Fixed OpenBSD build. Jasper Lievisse Adriaanse.
-
-25 February 2007: Overview of changes in 2.14.8
-===============================================
-* bsd implementations have been splitted by Joe Marcus Clarke
- and Alexander Nedotsukov. (k)freeBSD now has a separate implementation.
-
-February 10, 2007: Overview of changes in 2.14.7
-================================================
-* bsd:
- - massive kfreeBSD and FreeBSD updates by Roy Marples and Petr Salinger.
-* mountlist can now ignore objfs and ctfs filesystems.
-* fsusage won't return bavail > bfree anymore.
-
-January 14, 2007: Overview of changes in 2.14.6
-===============================================
-* linux:
- - fixed stack overflow in glibtop_get_proc_map
- - fixed handling of long filenames in glibtop_get_proc_map and glibtop_get_proc_open_files.
- - micro-optimization
-
-December 3, 2006: Overview of changes in 2.14.5
-===============================================
-* Added kfreebsd support (Petr Salinger <Petr.Salinger@seznam.cz>).
-* Added solaris glibtop_get_proc_open_files (Henry Zhang <hua.zhang@sun.com>).
-* Migrated to gtk-doc (Germán Poó-Caamaño <gpoo@ubiobio.cl>).
-* glibtop_get_mountlist can now ignore nsfd FS.
-
-September 16, 2006: Overview of changes in 2.14.4
-=================================================
-* Fixed linux maps/smaps parsing on 64bit kernel.
-
-September 5, 2006: Overview of changes in 2.14.3
-================================================
-* Fixed build with --as-needed.
-* Added missing G_BEGIN_DECLS/G_END_DECLS.
-
-July 27, 2006: Overview of changes in 2.14.2
-============================================
-* Updated solaris support (hua.zhang@sun.com)
-* Small linux updates and improvments.
-
-April 10, 2006: Overview of changes in 2.14.1
-=============================================
-* Updated translations.
-* Fixed NetBSD port (Julio M. Merino Vidal <jmmv@NetBSD.org>).
-* Fixed some warnings.
-
-Mars 13, 2006: Overview of changes in 2.14.0
-============================================
-* Updated translations.
-
-February 27, 2006: Overview of changes in 2.13.92
-=================================================
-* Fixed proc_state documentation.
-* Updated mountlist ignore list.
-
-January 23, 2006: Overview of changes in 2.13.3
-===============================================
-* linux:
- - fixe get_procmap for linux < 2.6.14.
-
-January 2, 2006: Overview of changes in 2.13.2
-==============================================
-* Fixed libtool versioning (James Henstridge)
-
-December 15, 2005: Overview of changes in 2.13.1
-================================================
-* linux:
- - fixed proclist
- - implemented server->real_ncpu
-
-December 13, 2005: Overview of changes in 2.13.0
-================================================
-* Requires automake-1.9 (James Henstridge)
-* Supports up to 32 CPU
-* Supports Linux smaps
-* linux: fixed SMP detection
-
-This release is not ABI compatible with previous releases. Sorry.
-
-November 29, 2005: Overview of changes from 2.12.0 to 2.12.1
-============================================================
-* Dropped dead files
-* linux: 1-line cleanup.
-
-September 4, 2005: Overview of changes from 2.11.92 to 2.12.0
-=============================================================
-* Updated translations.
-
-August 22, 2005: Overview of changes from 2.11.91 to 2.11.92
-============================================================
-* Linux:
- - fixed for 2.6 without /sys
- - glibtop_get_cpu() : Do not add irq, softirq and iowait to idle.
-
-August 9, 2005: Overview of changes from 2.11.90 to 2.11.91
-===========================================================
-* All:
- - cleaned some headers.
- - removed static examples.
-* Linux:
- - fixed some issues with 2.6 without /sys
-
-July 24, 2005: Overview of changes from 2.11.2 to 2.11.90
-=========================================================
-* Linux:
- - fixed glibtop_uptime .flags.
-
-July &3, 2005: Overview of changes from 2.11.1 to 2.11.2
-========================================================
-* Linux:
- - little improvements for 2.6.
-
-July 3, 2005: Overview of changes from 2.11.0 to 2.11.1
-=======================================================
-* Linux:
- - glibtop_get_swap : added page(in|out) for linux 2.6.
-
-June 8, 2005: Overview of changes from 2.10.x to 2.11.0
-=======================================================
-* Replaced a lot of macros by functions
-* Got rid of dozens of useless files.
-* libgtop 2.11.x are and will stay API and ABI compatible with 2.10.x, i swear.
-
-April 10, 2005: Overview of changes from 2.10.0 to 2.10.1
-=========================================================
-* Updated i18n.
-* Little cleanup and fixed gcc-4.0 compilation.
-* linux: fixed loadavg and uptime if locale != C.
- Updated siglist.
-* Tighter libgtop-2.0.pc.
-
-Mars 7, 2005: Overview of Changes from 2.9.92 to 2.10.0
-=======================================================
-* Updated i18n.
-
-February 28, 2005: Overview of Changes from 2.9.90 to 2.9.92
-============================================================
-* *BSD updated by marcus@freebsd.org (Joe Marcus Clarke).
-* Removed a lot of dead files :)
-* Don't build&install libgtop_daemon when it's never used.
-
-February 6, 2004: Overview of Changes from 2.9.90 to 2.9.91
-==========================================================
-* Fixed typo in stub.
-* Updated i18n.
-
-January 24, 2004: Overview of Changes from 2.9.4 to 2.9.90
-==========================================================
-* Updated Linux support.
-
-January 10, 2004: Overview of Changes from 2.9.3 to 2.9.4
-=========================================================
-* New glibtop_proc_open_files nick@reloco.com.ar (Nicolás Lichtmaier).
-* Updated AIX support (Christophe Belle).
-
-December 20, 2004: Overview of Changes from 2.9.0 to 2.9.3
-==========================================================
-* Removed libgtop_names.
-* Fixed Argument passing between library and server. #139809.
-* *BSD updated by marcus@freebsd.org (Joe Marcus Clarke).
-* glibtop_get_mountlist(False) now ignores 'unknown' fs.
-
-
-November 30, 2004: Overview of Changes from 2.8.1 to 2.9.0
-=========================================================
-* glibtop_get_netload : Fixed segfault on linux with ppp devices.
-* NEW glibtop_get_netlist : retrieves the list of all available interfaces.
-* NEW LIBGTOP_CHECK_VERSION(major, minor, micro)
-* Removed dead kernel patch and implementation.
-* Cleanups on Linux and Solaris.
-
-October 11, 2004: Overview of Changes from 2.8.0 to 2.8.1
-=========================================================
-* Improved Solaris and AIX support.
-
-
-August 13, 2004: Overview of Changes from 2.7.92 to 2.8.0
-=========================================================
-* No changes
-
-
-August 30, 2004:
-===============
-* Applied some *BSD patches.
-* Removed old files.
-
-
-August 15, 2004:
-===============
-* Fixed compilation with C89-only compilers and old libc.
-
-
-August 3, 2004:
-==============
-* Some cleanups.
-* Fixed the behaviour of some linux proc_*() functions.
-* Updated the documentation.
-
-
-July 19, 2004: Overview of Changes from 2.6.1 to 2.7.4
-======================================================
-* Plenty of code cleanups. Uninlined a lot of functions. ~5-10KB object size
- reduction.
-* Glibify a bit more.
-* API changes:
- - glibtop_fsusage provides total read and writes since boot_time.
- - glibtop_netload provides hardware address. IPv6 enable.
- - Added glibtop_get_proc_argv.
-
-Work in progress :
-* Finish glibtop_fsusage implementation for Linux.
-* Some fuctions don't conform to the documentation, e.g. proctime.
-
-March 11, 2004:
-===============
-
-* Released LibGTop 2.5.99 "Gross Work", dedicated to people who do push-ups
- in the loos.
-
- - plenty of code cleanups
-
- - removed the dependency on libgnome, only glib required now
-
- - Linux 2.6 support, NetBSD support and better FreeBSD support
-
- - Make the block size available for filesystem statistics
-
-February 27, 2001:
-=================
-
-* Released LibGTop 1.0.12 "Gerolzhofen".
-
- - fix for Solaris 8 from Laszlo PETER (msg_limits, sem_limits).
-
- - fix for FreeBSD 4.2 from Rolf Grossmann (FreeBSD now uses
- `_KERNEL' instead of `KERNEL'). Bug #51334.
-
- - for BSDI, comment out `subnet' field in netload; this should make
- it compile, but there may be other problems. Bug #13345.
-
- This release is for GNOME 1.4 Beta2.
-
-February 14, 2001:
-=================
-
-* Released LibGTop 1.0.11 "Jasmin":
-
- [The release which was supposed to be called "Gerolzhofen".]
-
- - merged in the Solaris code from LIBGTOP_1_1_2_PATCHES.
-
- - minor OpenBSD fixes.
-
- - again a bunch of updated translations.
-
- Please test the Solaris stuff and report and bugs and
- problems as soon as possible; I'll make a new release
- for the 2nd beta of GNOME 1.4 if necessary.
-
-November 20, 2000:
-=================
-
-* Released LibGTop 1.0.10 "November Rain":
-
- - this release contains a bunch of updated translations.
-
-May 25, 2000:
-============
-
-* Released LibGTop 1.0.9 "Stuttgart".
-
- (LibGTop 1.0.8 "Frankfurt" was not publically released.)
-
-February 15, 2000:
-=================
-
-* Released LibGTop 1.0.7 "Copenhagen":
-
- - this is a bug fix release for the GUADEC CD-ROM;
- it contains fixes in both the Linux and *BSD sysdeps
- directory.
-
-October 18, 1999:
-================
-
-* Released LibGTop 1.0.6 "October LibGTop":
-
- - compilation fixes for FreeBSD.
- - updated reference manual.
-
-September 29, 1999:
-==================
-
-* Released LibGTop 1.0.5.
-
diff --git a/README b/README
deleted file mode 100644
index 812a366f..00000000
--- a/README
+++ /dev/null
@@ -1,20 +0,0 @@
-LATEST NEWS:
-===========
-
-Please look also in the file 'NEWS' for latest news.
-
-Martin
-
-
-ChangeLogs:
-==========
-
-LibGTop has many ChangeLogs files. The following files are the the
-most important :
-
-- ChangeLog is the main ChangeLog.
-- sysdeps/<arch>/ChangeLog is the ChangeLog for arch specific changes.
-- sysdeps/common/ChangeLog is the ChangeLog for common changes (shared
- implementation between archs).
-
-Benoît
diff --git a/TODO b/TODO
deleted file mode 100644
index e69de29b..00000000
--- a/TODO
+++ /dev/null
diff --git a/acinclude.m4 b/acinclude.m4
deleted file mode 100644
index 79e0b374..00000000
--- a/acinclude.m4
+++ /dev/null
@@ -1,525 +0,0 @@
-dnl This is just copied m4s from need-declaration.m4 gnome-fileutils.m4
-dnl gnome-supprt-checks.m4 and a little from gnome-libgtop-check.m4
-dnl and finally libgtop-sysdeps.m4
-
-dnl
-dnl LIBGTOP_CHECK_TYPE
-dnl
-dnl Improved version of AC_CHECK_TYPE which takes into account
-dnl that we need to #include some other header files on some
-dnl systems to get some types.
-
-dnl AC_LIBGTOP_CHECK_TYPE(TYPE, DEFAULT)
-AC_DEFUN([AC_LIBGTOP_CHECK_TYPE],
-[AC_REQUIRE([AC_HEADER_STDC])dnl
-AC_MSG_CHECKING(for $1)
-AC_CACHE_VAL(ac_cv_type_$1,
-[AC_EGREP_CPP(dnl
-changequote(<<,>>)dnl
-<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl
-changequote([,]), [#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-
-/* For Tru64 */
-#ifdef HAVE_SYS_BITYPES_H
-#include <sys/bitypes.h>
-#endif
-], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
-AC_MSG_RESULT($ac_cv_type_$1)
-if test $ac_cv_type_$1 = no; then
- AC_DEFINE($1, $2, [Define to $2 if <sys/types.h> does not define.])
-fi
-])
-
-dnl
-dnl GNOME_LIBGTOP_TYPES
-dnl
-dnl some typechecks for libgtop.
-dnl
-
-AC_DEFUN([GNOME_LIBGTOP_TYPES],
-[
- AC_CHECK_HEADERS(sys/bitypes.h)
-])
-
-dnl See whether we need a declaration for a function.
-dnl GCC_NEED_DECLARATION(FUNCTION [, EXTRA-HEADER-FILES])
-AC_DEFUN([GCC_NEED_DECLARATION],
-[AC_MSG_CHECKING([whether $1 must be declared])
-AC_CACHE_VAL(gcc_cv_decl_needed_$1,
-[AC_TRY_COMPILE([
-#include <stdio.h>
-#ifdef HAVE_STRING_H
-#include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#endif
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-$2],
-[char *(*pfn) = (char *(*)) $1],
-eval "gcc_cv_decl_needed_$1=no", eval "gcc_cv_decl_needed_$1=yes")])
-if eval "test \"`echo '$gcc_cv_decl_needed_'$1`\" = yes"; then
- AC_MSG_RESULT(yes)
- gcc_need_declarations="$gcc_need_declarations $1"
- gcc_tr_decl=NEED_DECLARATION_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- AC_DEFINE_UNQUOTED($gcc_tr_decl, 1, [Define if $1 () must be declared.])
-else
- AC_MSG_RESULT(no)
-fi
-])dnl
-
-dnl Check multiple functions to see whether each needs a declaration.
-dnl GCC_NEED_DECLARATIONS(FUNCTION... [, EXTRA-HEADER-FILES])
-AC_DEFUN([GCC_NEED_DECLARATIONS],
-[for ac_func in $1
-do
-GCC_NEED_DECLARATION($ac_func, $2)
-done
-]
-)
-
-dnl
-dnl GNOME_FILEUTILS_CHECKS
-dnl
-dnl checks that are needed for the diskusage applet.
-dnl
-
-AC_DEFUN([GNOME_FILEUTILS_CHECKS],
-[
-AC_CHECK_HEADERS(fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
-mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
-sys/filsys.h sys/fs_types.h sys/fs/s5param.h)
-
-AC_CHECK_FUNCS(bcopy endgrent endpwent fchdir ftime ftruncate \
-getcwd getmntinfo gettimeofday isascii lchown \
-listmntent memcpy mkfifo strchr strerror strrchr vprintf)
-
-dnl Set some defaults when cross-compiling
-
-if test x$cross_compiling = xyes ; then
- case "$host_os" in
- linux*)
- fu_cv_sys_mounted_getmntent1=yes
- fu_cv_sys_stat_statfs2_bsize=yes
- ;;
- sunos*)
- fu_cv_sys_stat_statfs4=yes
- ;;
- freebsd*)
- fu_cv_sys_stat_statfs2_bsize=yes
- ;;
- osf*)
- fu_cv_sys_stat_statfs3_osf1=yes
- ;;
- esac
-fi
-
-# Determine how to get the list of mounted filesystems.
-list_mounted_fs=
-
-# If the getmntent function is available but not in the standard library,
-# make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
-AC_FUNC_GETMNTENT
-
-# This test must precede the ones for getmntent because Unicos-9 is
-# reported to have the getmntent function, but its support is incompatible
-# with other getmntent implementations.
-
-# NOTE: Normally, I wouldn't use a check for system type as I've done for
-# `CRAY' below since that goes against the whole autoconf philosophy. But
-# I think there is too great a chance that some non-Cray system has a
-# function named listmntent to risk the false positive.
-
-if test -z "$list_mounted_fs"; then
-# Cray UNICOS 9
-AC_MSG_CHECKING([for listmntent of Cray/Unicos-9])
-AC_CACHE_VAL(fu_cv_sys_mounted_cray_listmntent,
-[fu_cv_sys_mounted_cray_listmntent=no
-AC_EGREP_CPP(yes,
-[#ifdef _CRAY
-yes
-#endif
-], [test $ac_cv_func_listmntent = yes \
-&& fu_cv_sys_mounted_cray_listmntent=yes]
-)
-]
-)
-AC_MSG_RESULT($fu_cv_sys_mounted_cray_listmntent)
-if test $fu_cv_sys_mounted_cray_listmntent = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_LISTMNTENT, 1,
- [Define if there is a function named listmntent that can be used to list all mounted filesystems. [UNICOS]])
-fi
-fi
-
-if test $ac_cv_func_getmntent = yes; then
-
-# This system has the getmntent function.
-# Determine whether it's the one-argument variant or the two-argument one.
-
-if test -z "$list_mounted_fs"; then
-# 4.3BSD, SunOS, HP-UX, Dynix, Irix
-AC_MSG_CHECKING([for one-argument getmntent function])
-AC_CACHE_VAL(fu_cv_sys_mounted_getmntent1,
-[test $ac_cv_header_mntent_h = yes \
-&& fu_cv_sys_mounted_getmntent1=yes \
-|| fu_cv_sys_mounted_getmntent1=no])
-AC_MSG_RESULT($fu_cv_sys_mounted_getmntent1)
-if test $fu_cv_sys_mounted_getmntent1 = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_GETMNTENT1, 1,
- [Define if there is a function named getmntent for reading the list of mounted filesystems, and that function takes a single argument. [4.3BSD, SunOS, HP-UX, Dynix, Irix]])
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-# SVR4
-AC_MSG_CHECKING([for two-argument getmntent function])
-AC_CACHE_VAL(fu_cv_sys_mounted_getmntent2,
-[AC_EGREP_HEADER(getmntent, sys/mnttab.h,
-fu_cv_sys_mounted_getmntent2=yes,
-fu_cv_sys_mounted_getmntent2=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_getmntent2)
-if test $fu_cv_sys_mounted_getmntent2 = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_GETMNTENT2, 1,
- [Define if there is a function named getmntent for reading the list of mounted filesystems, and that function takes two arguments. [SVR4]])
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-AC_MSG_ERROR([could not determine how to read list of mounted filesystems])
-fi
-
-fi
-
-if test -z "$list_mounted_fs"; then
-# DEC Alpha running OSF/1.
-AC_MSG_CHECKING([for getfsstat function])
-AC_CACHE_VAL(fu_cv_sys_mounted_getsstat,
-[AC_TRY_LINK([
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fs_types.h>],
-[struct statfs *stats;
-int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); ],
-fu_cv_sys_mounted_getsstat=yes,
-fu_cv_sys_mounted_getsstat=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_getsstat)
-if test $fu_cv_sys_mounted_getsstat = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_GETFSSTAT, 1,
- [Define if there is a function named getfsstat for reading the list of mounted filesystems. [DEC Alpha running OSF/1]])
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-# AIX.
-AC_MSG_CHECKING([for mntctl function and struct vmount])
-AC_CACHE_VAL(fu_cv_sys_mounted_vmount,
-[AC_TRY_CPP([#include <fshelp.h>],
-fu_cv_sys_mounted_vmount=yes,
-fu_cv_sys_mounted_vmount=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_vmount)
-if test $fu_cv_sys_mounted_vmount = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_VMOUNT, 1,
- [Define if there is a function named mntctl that can be used to read the list of mounted filesystems, and there is a system header file that declares `struct vmount.' [AIX]])
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-# SVR3
-AC_MSG_CHECKING([for FIXME existence of three headers])
-AC_CACHE_VAL(fu_cv_sys_mounted_fread_fstyp,
-[AC_TRY_CPP([
-#include <sys/statfs.h>
-#include <sys/fstyp.h>
-#include <mnttab.h>],
-fu_cv_sys_mounted_fread_fstyp=yes,
-fu_cv_sys_mounted_fread_fstyp=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_fread_fstyp)
-if test $fu_cv_sys_mounted_fread_fstyp = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_FREAD_FSTYP, 1,
- [Define if (like SVR2) there is no specific function for reading the list of mounted filesystems, and your system has these header files: <sys/fstyp.h> and <sys/statfs.h>. [SVR3]])
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-# 4.4BSD and DEC OSF/1.
-AC_MSG_CHECKING([for getmntinfo function])
-AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo,
-[
-ok=
-if test $ac_cv_func_getmntinfo = yes; then
-AC_EGREP_HEADER(f_type;, sys/mount.h,
-ok=yes)
-fi
-test -n "$ok" \
-&& fu_cv_sys_mounted_getmntinfo=yes \
-|| fu_cv_sys_mounted_getmntinfo=no
-])
-AC_MSG_RESULT($fu_cv_sys_mounted_getmntinfo)
-if test $fu_cv_sys_mounted_getmntinfo = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_GETMNTINFO, 1,
- [Define if there is a function named getmntinfo for reading the list of mounted filesystems. [4.4BSD]])
-fi
-fi
-
-# FIXME: add a test for netbsd-1.1 here
-
-if test -z "$list_mounted_fs"; then
-# Ultrix
-AC_MSG_CHECKING([for getmnt function])
-AC_CACHE_VAL(fu_cv_sys_mounted_getmnt,
-[AC_TRY_CPP([
-#include <sys/fs_types.h>
-#include <sys/mount.h>],
-fu_cv_sys_mounted_getmnt=yes,
-fu_cv_sys_mounted_getmnt=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_getmnt)
-if test $fu_cv_sys_mounted_getmnt = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_GETMNT, 1,
- [Define if there is a function named getmnt for reading the list of mounted filesystems. [Ultrix]])
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-# SVR2
-AC_MSG_CHECKING([whether it is possible to resort to fread on /etc/mnttab])
-AC_CACHE_VAL(fu_cv_sys_mounted_fread,
-[AC_TRY_CPP([#include <mnttab.h>],
-fu_cv_sys_mounted_fread=yes,
-fu_cv_sys_mounted_fread=no)])
-AC_MSG_RESULT($fu_cv_sys_mounted_fread)
-if test $fu_cv_sys_mounted_fread = yes; then
-list_mounted_fs=found
-AC_DEFINE(MOUNTED_FREAD, 1,
- [Define if there is no specific function for reading the list of mounted filesystems. fread will be used to read /etc/mnttab. [SVR2]])
-fi
-fi
-
-if test -z "$list_mounted_fs"; then
-AC_MSG_ERROR([could not determine how to read list of mounted filesystems])
-# FIXME -- no need to abort building the whole package
-# Cannot build mountlist.c or anything that needs its functions
-fi
-
-AC_CHECKING(how to get filesystem space usage)
-space=no
-
-# Perform only the link test since it seems there are no variants of the
-# statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
-# because that got a false positive on SCO OSR5. Adding the declaration
-# of a `struct statvfs' causes this test to fail (as it should) on such
-# systems. That system is reported to work fine with STAT_STATFS4 which
-# is what it gets when this test fails.
-if test $space = no; then
-# SVR4
-AC_CACHE_CHECK([statvfs function (SVR4)], fu_cv_sys_stat_statvfs,
-[AC_TRY_LINK([#include <sys/types.h>
-#include <sys/statvfs.h>],
-[struct statvfs fsd; statvfs (0, &fsd);],
-fu_cv_sys_stat_statvfs=yes,
-fu_cv_sys_stat_statvfs=no)])
-if test $fu_cv_sys_stat_statvfs = yes; then
-space=yes
-AC_DEFINE(STAT_STATVFS, 1,
- [Define if there is a function named statvfs. [SVR4]])
-fi
-fi
-
-if test $space = no; then
-# DEC Alpha running OSF/1
-AC_MSG_CHECKING([for 3-argument statfs function (DEC OSF/1)])
-AC_CACHE_VAL(fu_cv_sys_stat_statfs3_osf1,
-[AC_TRY_RUN([
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-int main ()
-{
-struct statfs fsd;
-fsd.f_fsize = 0;
-return (statfs (".", &fsd, sizeof (struct statfs)));
-}],
-fu_cv_sys_stat_statfs3_osf1=yes,
-fu_cv_sys_stat_statfs3_osf1=no,
-fu_cv_sys_stat_statfs3_osf1=no)])
-AC_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
-if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
-space=yes
-AC_DEFINE(STAT_STATFS3_OSF1, 1,
- [Define if statfs takes 3 args. [DEC Alpha running OSF/1]])
-fi
-fi
-
-if test $space = no; then
-# AIX
-AC_MSG_CHECKING([for two-argument statfs with statfs.bsize dnl
-member (AIX, 4.3BSD)])
-AC_CACHE_VAL(fu_cv_sys_stat_statfs2_bsize,
-[AC_TRY_RUN([
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-#ifdef HAVE_SYS_MOUNT_H
-#include <sys/mount.h>
-#endif
-#ifdef HAVE_SYS_VFS_H
-#include <sys/vfs.h>
-#endif
-int main ()
-{
-struct statfs fsd;
-fsd.f_bsize = 0;
-return (statfs (".", &fsd));
-}],
-fu_cv_sys_stat_statfs2_bsize=yes,
-fu_cv_sys_stat_statfs2_bsize=no,
-fu_cv_sys_stat_statfs2_bsize=no)])
-AC_MSG_RESULT($fu_cv_sys_stat_statfs2_bsize)
-if test $fu_cv_sys_stat_statfs2_bsize = yes; then
-space=yes
-AC_DEFINE(STAT_STATFS2_BSIZE, 1,
- [Define if statfs takes 2 args and struct statfs has a field named f_bsize. [4.3BSD, SunOS 4, HP-UX, AIX PS/2]])
-fi
-fi
-
-if test $space = no; then
-# SVR3
-AC_MSG_CHECKING([for four-argument statfs (AIX-3.2.5, SVR3)])
-AC_CACHE_VAL(fu_cv_sys_stat_statfs4,
-[AC_TRY_RUN([#include <sys/types.h>
-#include <sys/statfs.h>
-int main ()
-{
-struct statfs fsd;
-return (statfs (".", &fsd, sizeof fsd, 0));
-}],
-fu_cv_sys_stat_statfs4=yes,
-fu_cv_sys_stat_statfs4=no,
-fu_cv_sys_stat_statfs4=no)])
-AC_MSG_RESULT($fu_cv_sys_stat_statfs4)
-if test $fu_cv_sys_stat_statfs4 = yes; then
-space=yes
-AC_DEFINE(STAT_STATFS4, 1,
- [Define if statfs takes 4 args. [SVR3, Dynix, Irix, Dolphin]])
-fi
-fi
-
-if test $space = no; then
-# 4.4BSD and NetBSD
-AC_MSG_CHECKING([for two-argument statfs with statfs.fsize dnl
-member (4.4BSD and NetBSD)])
-AC_CACHE_VAL(fu_cv_sys_stat_statfs2_fsize,
-[AC_TRY_RUN([#include <sys/types.h>
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-#ifdef HAVE_SYS_MOUNT_H
-#include <sys/mount.h>
-#endif
-int main ()
-{
-struct statfs fsd;
-fsd.f_fsize = 0;
-return (statfs (".", &fsd));
-}],
-fu_cv_sys_stat_statfs2_fsize=yes,
-fu_cv_sys_stat_statfs2_fsize=no,
-fu_cv_sys_stat_statfs2_fsize=no)])
-AC_MSG_RESULT($fu_cv_sys_stat_statfs2_fsize)
-if test $fu_cv_sys_stat_statfs2_fsize = yes; then
-space=yes
-AC_DEFINE(STAT_STATFS2_FSIZE, 1,
- [Define if statfs takes 2 args and struct statfs has a field named f_fsize. [4.4BSD, NetBSD]])
-fi
-fi
-
-if test $space = no; then
-# Ultrix
-AC_MSG_CHECKING([for two-argument statfs with struct fs_data (Ultrix)])
-AC_CACHE_VAL(fu_cv_sys_stat_fs_data,
-[AC_TRY_RUN([#include <sys/types.h>
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-#ifdef HAVE_SYS_MOUNT_H
-#include <sys/mount.h>
-#endif
-#ifdef HAVE_SYS_FS_TYPES_H
-#include <sys/fs_types.h>
-#endif
-int main ()
-{
-struct fs_data fsd;
-/* Ultrix's statfs returns 1 for success,
-0 for not mounted, -1 for failure. */
-return (statfs (".", &fsd) != 1);
-}],
-fu_cv_sys_stat_fs_data=yes,
-fu_cv_sys_stat_fs_data=no,
-fu_cv_sys_stat_fs_data=no)])
-AC_MSG_RESULT($fu_cv_sys_stat_fs_data)
-if test $fu_cv_sys_stat_fs_data = yes; then
-space=yes
-AC_DEFINE(STAT_STATFS2_FS_DATA, 1,
- [Define if statfs takes 2 args and the second argument has type struct fs_data. [Ultrix]])
-fi
-fi
-
-if test $space = no; then
-# SVR2
-AC_TRY_CPP([#include <sys/filsys.h>],
-AC_DEFINE(STAT_READ_FILSYS, 1,
- [Define if there is no specific function for reading filesystems usage information and you have the <sys/filsys.h> header file. [SVR2]])
-space=yes)
-fi
-
-if test -n "$list_mounted_fs" && test $space != no; then
-DF_PROG="df"
-# AC_LIBOBJ(fsusage)
-# AC_LIBOBJ(mountlist)
-fi
-
-# Check for SunOS statfs brokenness wrt partitions 2GB and larger.
-# If <sys/vfs.h> exists and struct statfs has a member named f_spare,
-# enable the work-around code in fsusage.c.
-AC_MSG_CHECKING([for statfs that truncates block counts])
-AC_CACHE_VAL(fu_cv_sys_truncating_statfs,
-[AC_TRY_COMPILE([
-#if !defined(sun) && !defined(__sun)
-choke -- this is a workaround for a Sun-specific problem
-#endif
-#include <sys/types.h>
-#include <sys/vfs.h>],
-[struct statfs t; long c = *(t.f_spare);],
-fu_cv_sys_truncating_statfs=yes,
-fu_cv_sys_truncating_statfs=no,
-)])
-if test $fu_cv_sys_truncating_statfs = yes; then
-AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS, 1,
- [Define if the block counts reported by statfs may be truncated to 2GB and the correct values may be stored in the f_spare array. [SunOS 4.1.2, 4.1.3, and 4.1.3_U1 are reported to have this problem. SunOS 4.1.1 seems not to be affected.]])
-fi
-AC_MSG_RESULT($fu_cv_sys_truncating_statfs)
-
-AC_CHECKING(for AFS)
-test -d /afs && AC_DEFINE(AFS, 1, [Define if you have the Andrew File System.])
-])
-
-
-m4_include([libgtop-sysdeps.m4])
diff --git a/autogen.sh b/autogen.sh
deleted file mode 100755
index 36435a78..00000000
--- a/autogen.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-# Run this to generate all the initial makefiles, etc.
-
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-PKG_NAME="Gnome Top Library"
-
-(test -f $srcdir/configure.in \
- && test -f $srcdir/copyright.txt \
- && test -d $srcdir/sysdeps) || {
- echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
- echo " top-level gnome directory"
- exit 1
-}
-
-which gnome-autogen.sh || {
- echo "You need to install gnome-common from the GNOME CVS"
- exit 1
-}
-REQUIRED_AUTOMAKE_VERSION=1.9
-. gnome-autogen.sh
diff --git a/configure.in b/configure.in
deleted file mode 100644
index cdf1c8a7..00000000
--- a/configure.in
+++ /dev/null
@@ -1,394 +0,0 @@
-dnl
-dnl Configure script for the Gnome library
-dnl
-
-m4_define([libgtop_major_version], [2])
-m4_define([libgtop_minor_version], [20])
-m4_define([libgtop_micro_version], [0])
-m4_define([libgtop_version], [libgtop_major_version.libgtop_minor_version.libgtop_micro_version])
-
-dnl increment if the interface has additions, changes, removals.
-m4_define([libgtop_current], [8])
-
-dnl increment any time the source changes; set to
-dnl 0 if you increment CURRENT
-m4_define([libgtop_revision], [0])
-
-dnl increment if any interfaces have been added; set to 0
-dnl if any interfaces have been removed. removal has
-dnl precedence over adding, so set to 0 if both happened.
-m4_define([libgtop_age], [1])
-
-# Increase each time you change the client/server protocol.
-m4_define([libgtop_server_version], [5])
-
-# Version code calculation
-m4_define([libgtop_version_code], [m4_eval(libgtop_major_version * 1000000 + libgtop_minor_version * 1000 + libgtop_micro_version)])
-
-AC_PREREQ(2.59)
-AC_INIT([libgtop], [libgtop_version],
- [http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop])
-AC_CONFIG_SRCDIR(copyright.txt)
-AC_CONFIG_HEADERS(config.h)
-
-AC_CANONICAL_SYSTEM
-
-AM_INIT_AUTOMAKE
-AC_SUBST(ACLOCAL_AMFLAGS, [\${ACLOCAL_FLAGS}])
-
-AC_SUBST(LIBGTOP_MAJOR_VERSION, [libgtop_major_version])
-AC_SUBST(LIBGTOP_MINOR_VERSION, [libgtop_minor_version])
-AC_SUBST(LIBGTOP_MICRO_VERSION, [libgtop_micro_version])
-AC_SUBST(LIBGTOP_SERVER_VERSION, [libgtop_server_version])
-AC_SUBST(LIBGTOP_VERSION, [libgtop_version])
-AC_SUBST(LIBGTOP_VERSION_CODE, [libgtop_version_code])
-
-# libtool versioning
-AC_SUBST(LT_VERSION_INFO,
- ["-version-info libgtop_current:libgtop_revision:libgtop_age"])
-
-ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I ."
-
-AC_ISC_POSIX
-AC_PROG_CC
-AC_STDC_HEADERS
-dnl AC_ARG_PROGRAM
-
-dnl We need this at some places.
-libgtop_top_builddir=`pwd`
-AC_SUBST(libgtop_top_builddir)
-
-dnl We don't use `AC_PROG_AWK' since it checks for mawk first which
-dnl does not work for libgtop.
-AC_CHECK_PROGS(AWK, gawk awk, )
-test -z "$AWK" && AC_MSG_ERROR([Sorry, you need a working awk interpreter.])
-
-dnl Most people should have a working perl interpreter on their system
-AC_CHECK_PROGS(PERL, perl5 perl)
-test -z "$PERL" && AC_MSG_ERROR([You need to have a working perl interpreter.])
-
-AC_CHECK_TOOL(CC,gcc)
-AC_CHECK_TOOL(RANLIB,ranlib)
-AC_CHECK_TOOL(AS,as)
-AC_CHECK_TOOL(AR,ar)
-
-export CC CXX RANLIB LD AS AR
-
-AC_PROG_INSTALL
-AC_PROG_LN_S
-AC_PROG_MAKE_SET
-
-export cross_compiling
-
-AM_PROG_LIBTOOL
-
-AM_CONDITIONAL(CROSS_COMPILING, test "x$cross_compiling" = xyes)
-
-GNOME_LIBGTOP_SYSDEPS
-GNOME_LIBGTOP_TYPES
-
-GLIB_REQUIRED=2.6.0
-
-PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED)
-AC_SUBST(GLIB_CFLAGS)
-AC_SUBST(GLIB_LIBS)
-
-AC_CHECK_HEADER(ifaddrs.h, [HAVE_IFADDRS_H=yes], [HAVE_IFADDRS_H=no])
-if test x$HAVE_IFADDRS_H = xyes ; then
- AC_DEFINE(HAVE_IFADDRS_H, 1, [defined if you have ifaddrs.h])
-fi
-
-dnl Checks for typedefs, structures, and compiler characteristics.
-AC_C_CONST
-AC_C_INLINE
-AC_TYPE_OFF_T
-AC_TYPE_PID_T
-AC_TYPE_SIZE_T
-AC_STRUCT_ST_RDEV
-AC_HEADER_TIME
-AC_STRUCT_TM
-AC_TYPE_UID_T
-
-dnl For SunOS
-AC_CHECK_TYPE(ssize_t, int)
-AC_CHECK_HEADERS(memory.h)
-AC_CHECK_HEADERS(string.h strings.h, break)
-AC_REPLACE_FUNCS(strerror)
-
-dnl dlopen() and dlsym()
-DL_LIB=
-AC_CHECK_FUNCS(dlopen,,[
- AC_CHECK_LIB(dl, dlopen, DL_LIB="-ldl", [
- AC_CHECK_LIB(dld, shl_load, DL_LIB="-ldld", [
- AC_CHECK_FUNCS(dlopen, DL_LIB="", DL_LIB="")
- ])
- ])
-])
-oLIBS="$LIBS"
-LIBS="$LIBS $DL_LIB"
-AC_CHECK_FUNCS(dlerror,,)
-LIBS="$oLIBS"
-AC_SUBST(DL_LIB)
-
-dnl Linux
-AC_CHECK_HEADER(linux/isdn.h,[HAVE_ISDN_H=yes],[HAVE_ISDN_H=no])
-if test x$HAVE_ISDN_H = xyes ; then
- AC_DEFINE(HAVE_ISDN_H, 1, [defined if you have linux/isdn.h])
-fi
-
-dnl AIX
-AC_CHECK_LIB(perfstat, vmgetinfo,
- AC_DEFINE(HAVE_VMGETINFO, 1,
- [Define to 1 if you have the 'vmgetinfo' function in libperfstat]))
-
-dnl Solaris
-case "$host_os" in
- solaris*)
- AC_CHECK_LIB(kstat, kstat_open)
- AC_CHECK_FUNCS(getloadavg swapctl)
- AC_CHECK_HEADERS(procfs.h sys/procfs.h, break)
-
-
- dnl Some versions of Solaris require -lelf for -lkvm
- case $host_os in
- solaris[[8-9]] | solaris2.[[0-9]].*)
- AC_CHECK_LIB(kvm, kvm_open,[
- LIBS="-lkvm $LIBS"
- ],[AC_MSG_CHECKING(for kvm_open in -lkvm with -lelf)
- AC_CACHE_VAL(ac_cv_lib_kvm_with_elf,
- [ac_save_LIBS="$LIBS"
- LIBS="-lkvm -lelf $LIBS"
- AC_TRY_LINK([char kvm_open();], [kvm_open()],
- ac_cv_lib_kvm_with_elf=yes, ac_cv_lib_kvm_with_elf=no)
- LIBS="$ac_save_LIBS"
- ])
- if test "$ac_cv_lib_kvm_with_elf" = "yes"; then
- AC_MSG_RESULT(yes)
- LIBS="-lkvm -lelf $LIBS"
- else
- AC_MSG_RESULT(no)
- fi
- ])
- ;;
- esac
- ;;
-esac
-
-dnl For DEC OSF1
-AC_CHECK_LIB(mach, vm_statistics)
-
-dnl For some broken libc5 systems (Debian 1.3)
-saved_CFLAGS=$CFLAGS
-CFLAGS="$CFLAGS -D_GNU_SOURCE"
-GCC_NEED_DECLARATION(program_invocation_name, [
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-])
-
-CFLAGS=$saved_CFLAGS
-
-AC_CHECK_FUNC(socket,
- [AC_CHECK_HEADER(netinet/in.h,
- [AC_CHECK_HEADER(arpa/inet.h, [
- AC_DEFINE(HAVE_SOCKETS, 1, [Define if BSD sockets are supported])
- AC_MSG_CHECKING("for sun_len member in struct sockaddr_un")
- AC_TRY_LINK([
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/un.h>
- ],
- [static struct sockaddr_un x; x.sun_len = 1;],
- [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SOCKADDR_SUN_LEN, 1, [Define if struct sockaddr_un has a sun_len member])],
- [AC_MSG_RESULT(no)])])])])
-
-dnl Checks for library functions.
-AC_FUNC_ALLOCA
-AC_FUNC_MMAP
-AC_TYPE_SIGNAL
-AC_FUNC_STRFTIME
-AC_CHECK_FUNCS(getcwd gettimeofday getwd putenv strdup strtoul uname)
-
-IT_PROG_INTLTOOL([0.35.0])
-
-GETTEXT_PACKAGE=libgtop-2.0
-AC_SUBST(GETTEXT_PACKAGE)
-AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
- [Define to the gettext package used by the library])
-
-AM_GLIB_GNU_GETTEXT
-GLIB_DEFINE_LOCALEDIR([GTOPLOCALEDIR])
-
-AC_PATH_XTRA
-
-dnl For Solaris
-dnl Please don't move this before AC_PATH_XTRA
-AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
-AC_CHECK_FUNC(connect,,[AC_CHECK_LIB(socket,connect)])
-AC_CHECK_FUNC(inet_aton,,[AC_CHECK_LIB(resolv,inet_aton)])
-
-dnl The construct foo=`echo $w1 $w2 $w3` fails on some systems if $w1 = -e or -n
-dnl So we use the following instead.
-dnl XE_SPACE(var, words)
-define([XE_SPACE],[
-T=""
-for W in $2; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
-$1="$T"
-])dnl
-
-dnl Autodetect Xauth
-dnl -lXau is only used by gnuclient, so use a special variable for Xauth X libs
-saved_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CPPFLAGS $X_CFLAGS"
-test -z "$with_xauth" && { AC_CHECK_HEADER(X11/Xauth.h, ,with_xauth=no) }
-test -z "$with_xauth" && { AC_CHECK_LIB(Xau, XauGetAuthByAddr,[:],with_xauth=no, $X_LIBS) }
-test -z "$with_xauth" && with_xauth=yes
-if test "$with_xauth" = "yes"; then
- AC_DEFINE(HAVE_XAUTH, 1, [Define if Xauth is supported])
- XE_SPACE(libs_xauth, $X_LIBS -lXau)
-fi
-CPPFLAGS="$saved_CPPFLAGS"
-AC_SUBST(libs_xauth)
-
-dnl For diskusage stuff
-GNOME_FILEUTILS_CHECKS
-
-dnl Debugging
-AC_ARG_ENABLE(debug,
- AS_HELP_STRING([--enable-debug],
- [Turn on debugging @<:@default=no@:>@]),
- AC_DEFINE(LIBGTOP_ENABLE_DEBUG, 1, [Define to enable debugging]))
-AC_ARG_ENABLE(fatal-warnings,
- AS_HELP_STRING([--enable-fatal-warnings],
- [Make all warnings fatal @<:@debug=no@:>@]),
- AC_DEFINE(LIBGTOP_FATAL_WARNINGS, 1,
- [Define to enable fatal warnings]))
-
-dnl These definitions are expanded in make.
-LIBGTOP_LIBS='-L$(libdir)'
-LIBGTOP_INCS='-I$(includedir)/libgtop-2.0'
-
-if test x$libgtop_use_machine_h = xyes ; then
- LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_GLIBTOP_MACHINE_H"
-fi
-
-if test x$libgtop_smp = xyes ; then
- LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SMP"
-fi
-
-if test x$libgtop_have_sysinfo = xyes ; then
- LIBGTOP_INCS="$LIBGTOP_INCS -DHAVE_LIBGTOP_SYSINFO"
-fi
-
-LIBGTOP_INCS="$LIBGTOP_INCS $GLIB_CFLAGS"
-
-libgtop_save_prefix="$prefix"
-libgtop_save_exec_prefix="$exec_prefix"
-test "x$prefix" = xNONE && prefix=$ac_default_prefix
-test "x$exec_prefix" = xNONE && exec_prefix=$prefix
-LIBGTOP_BINDIR=`eval echo "${bindir}"`
-LIBGTOP_SERVER=`eval echo "${bindir}/libgtop_server2"`
-prefix="$libgtop_save_prefix"
-exec_prefix="$libgtop_save_exec_prefix"
-
-sysdeps_dir="$libgtop_sysdeps_dir"
-AC_SUBST(sysdeps_dir)
-
-if test -z "$LIBGTOP_EXTRA_LIBS" ; then
- LIBGTOP_EXTRA_LIBS="$libs_xauth"
-else
- LIBGTOP_EXTRA_LIBS="$LIBGTOP_EXTRA_LIBS $libs_xauth"
-fi
-
-LIBGTOP_EXTRA_LIBS="$GLIB_LIBS $LIBGTOP_EXTRA_LIBS"
-
-LIBGTOP_LIBS="$LIBGTOP_LIBS"
-
-LIBGTOP_LIBS="$LIBGTOP_LIBS"
-
-machine_incs="-I\$(top_srcdir)/sysdeps/$sysdeps_dir"
-
-AC_SUBST(machine_incs)
-
-if test "$GCC" = "yes" ; then
- CFLAGS="\
- -Winline \
- -Wall \
- -std=gnu89 \
- -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
- -Wnested-externs -Wpointer-arith \
- -Wcast-align -Wsign-compare \
- $CFLAGS"
-fi
-
-INCLUDES="-I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include $GLIB_CFLAGS $X_CFLAGS"
-
-# Add various defines to the config.h file ...
-AH_VERBATIM([_GNU_SOURCE],
-[/* Enable GNU extensions on systems that have them. */
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif])
-AC_DEFINE([_IN_LIBGTOP], 1,
- [Note that we are building libgtop rather than using it])
-AC_DEFINE([LIBGTOP_VERSION], ["libgtop_version"],
- [The libgtop version number])
-AC_DEFINE([LIBGTOP_SERVER_VERSION], ["libgtop_server_version"],
- [The libgtop server version])
-AC_DEFINE([LIBGTOP_VERSION_CODE], [libgtop_version_code],
- [The libgtop version number as an integer])
-AC_DEFINE_UNQUOTED([LIBGTOP_SERVER], ["$LIBGTOP_SERVER"],
- [The path to the libgtop server])
-
-AC_SUBST(INCLUDES)
-
-AC_SUBST(LIBGTOP_EXTRA_LIBS)
-AC_SUBST(GLIB_LIBS)
-AC_SUBST(LIBGTOP_LIBS)
-AC_SUBST(LIBGTOP_INCS)
-AC_SUBST(LIBGTOP_BINDIR)
-AC_SUBST(LIBGTOP_SERVER)
-
-if test x$libgtop_need_server = xyes ; then
- sysdeps_suid_lib="\$(top_builddir)/sysdeps/\$(sysdeps_dir)/libgtop_sysdeps_suid-2.0.la"
- server_programs='libgtop_server2'
-else
- sysdeps_suid_lib=
- server_programs=
-fi
-AC_SUBST(sysdeps_suid_lib)
-AC_SUBST(server_programs)
-
-GTK_DOC_CHECK(1.4)
-
-AC_CONFIG_FILES([
-Makefile
-libgtop.spec
-po/Makefile.in
-misc/Makefile
-include/Makefile
-include/glibtop/Makefile
-sysdeps/Makefile
-sysdeps/common/Makefile
-sysdeps/stub/Makefile
-sysdeps/stub_suid/Makefile
-sysdeps/sun4/Makefile
-sysdeps/osf1/Makefile
-sysdeps/linux/Makefile
-sysdeps/freebsd/Makefile
-sysdeps/solaris/Makefile
-sysdeps/aix/Makefile
-sysdeps/bsd/Makefile
-src/Makefile
-src/daemon/Makefile
-lib/Makefile
-examples/Makefile
-doc/Makefile
-doc/reference/Makefile
-doc/reference/version.xml
-libgtop-2.0.pc
-libgtopconfig.h
-])
-
-AC_OUTPUT
diff --git a/copyright.txt b/copyright.txt
deleted file mode 100644
index 995eb7ed..00000000
--- a/copyright.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 2.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
- Contributed by Benoît Dejean <TazForEver@dlfp.org>, 2004.
-
- 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.
-*/
-
diff --git a/debian/README.Debian b/debian/README.Debian
deleted file mode 100644
index 3993088d..00000000
--- a/debian/README.Debian
+++ /dev/null
@@ -1,9 +0,0 @@
-LibGTop CVS snapshots for Debian
---------------------------------
-
-This is a debian package made from a stable release of LibGTop, but it
-should be considered "unofficial" since I'm not a Debian Maintainer.
-
-
-Martin Baulig <martin@home-of-linux.org>, Wed, 16 Feb 2000 16:40:50 +0100
-
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100644
index c912d7d3..00000000
--- a/debian/changelog
+++ /dev/null
@@ -1,121 +0,0 @@
-libgtop (1.0.7-1) unstable; urgency=low
- * New upstream source (1.0.7 "Copenhagen" release)
- * Non-maintainer upload; since I'm not a Debian maintainer, this is some
- kind of "unofficial" debian package for LibGTop 1.0.7 - but I think it
- can be considered stable and working.
-
- -- Martin Baulig <martin@home-of-linux.org> Wed, 16 Feb 2000 16:40:50 +0100
-
-libgtop (1.0.6-1) unstable; urgency=low
- * New upstream source
-
- -- Ian Lynagh (wibble) <igloo@debian.org> Wed, 20 Oct 1999 16:16:27 +0100
-
-libgtop (1.0.4.5pre1-1) frozen unstable; urgency=low
- * New upstream source (1.0.5 pre release)
- * Maintainer e-mail address changed to igloo@debian.org
-
- -- Ian Lynagh (wibble) <igloo@debian.org> Thu, 30 Sep 1999 22:37:33 +0100
-
-libgtop (1.0.4-1) frozen unstable; urgency=low
- * New upstream source
- * Removed nasty sed stuff from the rules in favour of make install prefix=...
- * Added .la files to libgtop-dev
- * Added info to the copyright file
- * Wrote simple man page for libgtop-config.
- * Recompiled with later debhelper so docs go to /usr/share/doc as per FHS
- * changed infodir to /usr/share/info
-
- -- Ian Lynagh (wibble) <igloo@debian.org> Mon, 20 Sep 1999 00:06:16 +0100
-
-libgtop (1.0.1-2) frozen unstable; urgency=low
-
- * Didn't actually use wildcards in libgtop-dev.files because tar complained
- * Set section names properly
-
- -- Ian Lynagh <ian@lynagh.demon.co.uk> Sun, 7 Mar 1999 00:53:50 +0000
-
-libgtop (1.0.1-1) frozen unstable; urgency=low
-
- * SONAME changed back to 1. Fun fun fun.
- * Added RELNOTES-1.0 to debian/libgtop1.docs and debian/rules
- * Changed libgtop1.README.Debian to at least make sense
- * Used wildcards in libgtop-dev.files
-
- -- Ian Lynagh <ian@lynagh.demon.co.uk> Sun, 7 Mar 1999 00:53:50 +0000
-
-libgtop (1.0.1-0.1) unstable; urgency=low
-
- * Non-maintainer upload for GNOME 1.0
-
- -- Jules Bean <jules@debian.org> Thu, 4 Mar 1999 22:34:12 +0000
-
-libgtop (0.99.2-0.2) unstable; urgency=low
-
- * Oops, forgot some files.
-
- -- Jim Pick <jim@jimpick.com> Sun, 24 Jan 1999 02:12:24 -0800
-
-libgtop (0.99.2-0.1) unstable; urgency=low
-
- * Non-maintainer upload.
- * New upstream source.
- * SONAME is now 0 again. Hmmm.
-
- -- Jim Pick <jim@jimpick.com> Sat, 23 Jan 1999 20:21:38 -0800
-
-libgtop (0.26.2-4) frozen unstable; urgency=low
-
- * Upstream changelog installed as changelog
- * debian/shlibs.local removed in favour of the LD_LIBRARY_PATH line
-
- -- Ian Lynagh <ian@lynagh.demon.co.uk> Thu, 26 Nov 1998 17:20:24 +0000
-
-libgtop (0.26.2-3.1) frozen unstable; urgency=low
-
- * Non-maintainer upload.
- * Upload to frozen, corrects Bug #29110, Bug #29111, which were
- already fixed.
- * Noticed that guile option is no longer being used, so I removed
- the dependency.
- * Added changelog (to fix lintian error).
- * Changed control file to use macro substitutions. This is a much
- less error-prone way of building dependencies than doing them by
- hand.
- * Added -V option to dh_makeshlibs to put version number on shlibs
- file.
- * Added shlibs.local file with null entry for "libgtop 1" (and
- others) so libgtop1 doesn't declare a relationship on itself.
-
- -- Jim Pick <jim@jimpick.com> Wed, 25 Nov 1998 12:03:12 -0800
-
-libgtop (0.26.2-3) frozen unstable; urgency=low
-
- * libgtop0 changed to libgtop1
- * Added an #ifndef strstr around the prototype of strstr in
- sysdeps/common/mountlist.c as this is a macro under glibc 2.1.
-
- -- Ian Lynagh <ian@lynagh.demon.co.uk> Sun, 8 Nov 1998 12:06:09 +0000
-
-libgtop (0.26.2-2) frozen unstable; urgency=low
-
- * Fixes minor bugs in debian/rules
-
- -- Ian Lynagh <ian@lynagh.demon.co.uk> Fri, 16 Oct 1998 05:30:16 +0200
-
-libgtop (0.26.2-1) unstable; urgency=low
-
- * New upstream version
- * Non-maintainer release
-
- -- Martin Schulze <joey@finlandia.infodrom.north.de> Fri, 16 Oct 1998 05:30:16 +0200
-
-libgtop (0.26.0-1) unstable; urgency=low
-
- * Initial Release.
-
- -- Jim Pick <jim@jimpick.com> Thu, 24 Sep 1998 18:42:48 -0700
-
-Local variables:
-mode: debian-changelog
-End:
diff --git a/debian/control.in b/debian/control.in
deleted file mode 100644
index af33d5a8..00000000
--- a/debian/control.in
+++ /dev/null
@@ -1,33 +0,0 @@
-Source: libgtop@SUFFIX@
-Maintainer: Martin Baulig <martin@home-of-linux.org>
-Section: libs
-Priority: optional
-Standards-Version: 3.0.0
-
-Package: libgtop1@SUFFIX@
-Architecture: any
-Section: libs
-Depends: ${shlibs:Depends}
-Description: Portable system access library (part of Gnome)
- Gnome is the "GNU Network Object Model Environment"
- .
- It is a project to build a complete, user-friendly desktop based
- entirely on free software.
- .
- This package contains the gtop libraries which read information about
- processes and the running systems.
-
-Package: libgtop-dev@SUFFIX@
-Architecture: any
-Section: devel
-Depends: libgtop1@SUFFIX@ (= ${Source-Version})
-Description: Dev libraries for the portable system access library (part of Gnome)
- Gnome is the "GNU Network Object Model Environment"
- .
- It is a project to build a complete, user-friendly desktop based
- entirely on free software.
- .
- This package contains the include files and static library for the
- gtop libraries which read information about processes and the running
- systems.
-
diff --git a/debian/debconfigure b/debian/debconfigure
deleted file mode 100755
index 6ccc6e18..00000000
--- a/debian/debconfigure
+++ /dev/null
@@ -1,109 +0,0 @@
-#! /bin/sh
-#
-# debconfigure
-#
-# A script to generate a debian/rules file, with options.
-#
-# By Jim Pick <jim@jimpick.com>, GPL'd of course.
-# Adjusted for LibGTop by Martin Baulig <martin@home-of-linux.org>
-#
-
-if [ ! -r rules.in ]; then
- echo "Please run the debconfigure script in the debian directory" 1>&2
- exit 1
-fi
-
-debtype='official'
-prefix='/usr'
-gnomeprefix='/usr'
-localstatedir='/var/lib'
-pkgsuffix=''
-
-for dc_option
-do
- case "$dc_option" in
- -*=*) dc_optarg=`echo "$dc_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) dc_optarg= ;;
- esac
-
- case "$dc_option" in
-
- --clean)
- rm -f control rules *~ core *files *menu *substvars *.postinst *.debhelper
- exit ;;
-
- --prefix=*)
- prefix="$dc_optarg" ;;
-
- --localstatedir=*)
- prefix="$dc_optarg" ;;
-
- --pkgsuffix=*)
- pkgsuffix="$dc_optarg" ;;
-
- --gnome-prefix=*)
- gnomeprefix="$dc_optarg" ;;
-
- --debtype=*)
- debtype="$dc_optarg" ;;
-
- *)
- cat <<EOF 1>&2
-Usage: debconfigure [options]
-Options: [defaults in brackets after descriptions]
- --help print this message
- --clean remove generated files
- --prefix=PREFIX install files under under PREFIX dir [/usr]
- --gnome-prefix=PREFIX look for GNOME under PREFIX dir [/usr]
- --localstatedir=DIR directory for things like game scores [/var/lib]
- --pkgsuffix=SUFFIX append SUFFIX onto package names []
- --debtype=DEBTYPE enable macros with the name of DEBTYPE [official]
-EOF
- exit ;;
-
- esac
-done
-
-# Strip leading slash
-prefix=`expr $prefix : '/\(.*\)'`
-gnomeprefix=`expr $gnomeprefix : '/\(.*\)'`
-localstatedir=`expr $localstatedir : '/\(.*\)'`
-
-for infile in `ls control.in rules.in`
-do
- tofile=`expr $infile : '\(.*\)\.in'`
- cat $infile | \
- sed "s,@SUFFIX@,$pkgsuffix,g" | \
- sed "s,@PREFIX@,$prefix,g" | \
- sed "s,@GNOMEPREFIX@,$gnomeprefix,g" | \
- sed "s,@LOCALSTATEDIR@,$localstatedir,g" | \
- sed "s,%$debtype>,," | sed '/^%/d' > $tofile
-done
-chmod +x rules
-
-for filesfile in `ls *.files.in`
-do
- tofile=`expr $filesfile : '\(.*\)\.files\.in'`
- tofile=`echo $tofile$pkgsuffix.files`
- cat $filesfile | \
- sed "s,@SUFFIX@,$pkgsuffix,g" | \
- sed "s,@PREFIX@,$prefix,g" | \
- sed "s,@GNOMEPREFIX@,$gnomeprefix,g" | \
- sed "s,@LOCALSTATEDIR@,$localstatedir,g" | \
- sed "s,%$debtype>,," | sed '/^%/d' > $tofile
-done
-
-for postinst in libgtop1$pkgsuffix
-do
-
-cat > $postinst.postinst <<EOF
-#! /bin/sh
-
-set -e
-ldconfig
-
-#DEBHELPER#
-EOF
-
-done
-
diff --git a/debian/libgtop-config.1 b/debian/libgtop-config.1
deleted file mode 100644
index b58d9689..00000000
--- a/debian/libgtop-config.1
+++ /dev/null
@@ -1,34 +0,0 @@
-.TH GTOP l "15 September 1999"
-.SH NAME
-\fBlibgtop-config\fP \- libgtop libraries and component information retrieval.
-.SH SYNTAX
-.B libgtop-config
-.RI [ --version ]
-.RI [ --config ]
-.RI [ --features-def-file ]
-.SH DESCRIPTION
-.B libgtop-config
-is used to retrieve information from installed libraries in the system.
-
-This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page.
-.LP
-.SH OPTIONS
-.TP
-.B \-\-version
-.PD
-Prints the version of libgtop that you're using.
-.TP
-.B \-\-config
-.PD
-Prints the location of libgtopConf.sh.
-.TP
-.B \-\-version
-.PD
-Prints the location of libgtop-features.def.
-.SH BUGS
-None known
-
-.SH AUTHORS
-Martin Baulig (martin@home-of-linux.org)
-.TP
-Josh Sled (jsled@scam.XCF.Berkeley.EDU)
diff --git a/debian/libgtop-dev.files.in b/debian/libgtop-dev.files.in
deleted file mode 100644
index 557e6ffc..00000000
--- a/debian/libgtop-dev.files.in
+++ /dev/null
@@ -1,21 +0,0 @@
-@PREFIX@/lib/libgtop.a
-@PREFIX@/lib/libgtop_common.a
-@PREFIX@/lib/libgtop_suid_common.a
-@PREFIX@/lib/libgtop_sysdeps.a
-@PREFIX@/lib/libgtop.la
-@PREFIX@/lib/libgtop_common.la
-@PREFIX@/lib/libgtop_suid_common.la
-@PREFIX@/lib/libgtop_sysdeps.la
-@PREFIX@/lib/libgtopConf.sh
-@PREFIX@/lib/libgtop.so
-@PREFIX@/lib/libgtop_common.so
-@PREFIX@/lib/libgtop_suid_common.so
-@PREFIX@/lib/libgtop_sysdeps.so
-@PREFIX@/lib/libgtop-features.def
-@PREFIX@/lib/libgtop/include/*.h
-@PREFIX@/include/glibtop/*.h
-@PREFIX@/include/glibtop.h
-@PREFIX@/include/glibtop_server.h
-@PREFIX@/include/glibtop_machine.h
-@PREFIX@/info/libgtop.info
-@PREFIX@/bin/libgtop-config
diff --git a/debian/libgtop1.README.Debian b/debian/libgtop1.README.Debian
deleted file mode 100644
index d767a2f7..00000000
--- a/debian/libgtop1.README.Debian
+++ /dev/null
@@ -1,5 +0,0 @@
-
-The Debian package of libgtop, a GNOME library.
-
---
-Martin Baulig <martin@home-of-linux.org>
diff --git a/debian/libgtop1.copyright b/debian/libgtop1.copyright
deleted file mode 100644
index 0d4ad835..00000000
--- a/debian/libgtop1.copyright
+++ /dev/null
@@ -1,12 +0,0 @@
-
-libgtop is released under the GPL.
-On Debian GNU/Linux systems, the complete text of the GNU General
-Public License can be found in /usr/share/common-licenses/GPL
-
-Original authors: Martin Baulig <martin@home-of-linux.org>
- Drazen Kacar <dave@srce.hr>
-
-Originally Debianised by Jim Pick <jim@jimpick.com>
-Then re-Debianised in October 1998 by Martin Schulze
-<joey@finlandia.infodrom.north.de> before being taken over by Ian Lynagh
-<ian@lynagh.demon.co.uk> in November 1998.
diff --git a/debian/libgtop1.docs b/debian/libgtop1.docs
deleted file mode 100644
index 7074e441..00000000
--- a/debian/libgtop1.docs
+++ /dev/null
@@ -1,5 +0,0 @@
-RELNOTES-0.25
-RELNOTES-1.0.x
-NEWS
-AUTHORS
-debian/changelog
diff --git a/debian/libgtop1.files.in b/debian/libgtop1.files.in
deleted file mode 100644
index 2c150133..00000000
--- a/debian/libgtop1.files.in
+++ /dev/null
@@ -1,4 +0,0 @@
-@PREFIX@/lib/libgtop*.so.[0-9].[0-9][0-9].[0-9]
-@PREFIX@/lib/libgtop*.so.[0-9].[0-9].[0-9]
-@PREFIX@/lib/libgtop*.so.[0-9]
-@PREFIX@/share/locale/*/*/libgtop.mo
diff --git a/debian/libgtop2.README.Debian b/debian/libgtop2.README.Debian
deleted file mode 100644
index d10dfd1f..00000000
--- a/debian/libgtop2.README.Debian
+++ /dev/null
@@ -1,5 +0,0 @@
-
-The Debian package of libgtop, a GNOME library.
-
---
-Ian Lynagh <ian@lynagh.demon.co.uk>
diff --git a/debian/libgtop2.copyright b/debian/libgtop2.copyright
deleted file mode 100644
index 0d4ad835..00000000
--- a/debian/libgtop2.copyright
+++ /dev/null
@@ -1,12 +0,0 @@
-
-libgtop is released under the GPL.
-On Debian GNU/Linux systems, the complete text of the GNU General
-Public License can be found in /usr/share/common-licenses/GPL
-
-Original authors: Martin Baulig <martin@home-of-linux.org>
- Drazen Kacar <dave@srce.hr>
-
-Originally Debianised by Jim Pick <jim@jimpick.com>
-Then re-Debianised in October 1998 by Martin Schulze
-<joey@finlandia.infodrom.north.de> before being taken over by Ian Lynagh
-<ian@lynagh.demon.co.uk> in November 1998.
diff --git a/debian/libgtop2.docs b/debian/libgtop2.docs
deleted file mode 100644
index 55428dea..00000000
--- a/debian/libgtop2.docs
+++ /dev/null
@@ -1,7 +0,0 @@
-RELNOTES-0.25
-RELNOTES-1.0
-RELNOTES-1.1.x
-NEWS
-AUTHORS
-TODO
-debian/changelog
diff --git a/debian/libgtop2.files.in b/debian/libgtop2.files.in
deleted file mode 100644
index 6fdadac3..00000000
--- a/debian/libgtop2.files.in
+++ /dev/null
@@ -1,2 +0,0 @@
-@PREFIX@/lib/libgtop*-1.1.so.*.*
-@PREFIX@/lib/libgtop*-1.1.so.*
diff --git a/debian/rules.in b/debian/rules.in
deleted file mode 100755
index 47a4d1ae..00000000
--- a/debian/rules.in
+++ /dev/null
@@ -1,115 +0,0 @@
-#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# This version is for a hypothetical package that builds an
-# architecture-dependant package, as well as an architecture-independent
-# package.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-i=$(shell pwd)/debian/tmp
-b=$(shell pwd)/debian/build
-
-configure: configure.in
- @echo "--- Making configure script and configuring"
- chmod +x autogen.sh
- ./autogen.sh --prefix=/@PREFIX@ --with-gnome=/@GNOMEPREFIX@ \
- --localstatedir=/@LOCALSTATEDIR@
-
-Makefile: configure
- @echo "--- Configuring"
- ./configure --prefix=/@PREFIX@ --with-gnome=/@GNOMEPREFIX@ \
- --localstatedir=/@LOCALSTATEDIR@
-
-build: configure Makefile build-debstamp
-build-debstamp:
- @echo "--- Compiling"
- dh_testdir
- $(MAKE) all
- touch build-debstamp
-
-clean: Makefile
- @echo "--- Cleaning"
- dh_testdir
- dh_clean
- -rm -rf static shared
- -rm -f build-debstamp install-debstamp
- -make -k distclean
- -rm -f `find . -name "*~"`
- -rm -f `find . -name "*\.la"`
- -rm -rf `find . -name "\.deps"`
- -rm -rf `find . -name "\.libs"`
- -rm -rf `find . -name "*\.rej"`
- -rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
- -rm -f debian/*substvars
-
-install: build install-debstamp
-install-debstamp:
- @echo "--- Installing"
- dh_testdir
- dh_testroot
- rm -rf $(b)
- $(MAKE) install prefix=$(i)/@PREFIX@ exec_prefix=$(i)/@PREFIX@ \
- localstatedir=$(i)/@LOCALSTATEDIR@
- touch install-debstamp
-
-install-save: install
- rm -rf $(i).saved
- cp -a $(i) $(i).saved
-
-install-saved:
- rm -rf $(i)
- cp -a $(i).saved $(i)
- rm -rf $(b)
- touch install-debstamp
-
-binary-indep: build install
-
-binary-arch: build install \
- libgtop1@SUFFIX@ \
- libgtop-dev@SUFFIX@
-
-#
-# libgtop1@SUFFIX@
-#
-
-libgtop1@SUFFIX@: install
- @echo "--- Building: $@"
- dh_installdocs -p$@ -P$(b)/$@ README NEWS AUTHORS
- dh_installchangelogs -p$@ -P$(b)/$@ ChangeLog
- dh_movefiles -p$@ -P$(b)/$@
- dh_strip -p$@ -P$(b)/$@
- dh_compress -p$@ -P$(b)/$@
- dh_fixperms -p$@ -P$(b)/$@
- dh_installdeb -p$@ -P$(b)/$@
- dh_shlibdeps -p$@ -P$(b)/$@
- dh_gencontrol -p$@ -P$(b)/$@
- dh_makeshlibs -p$@ -P$(b)/$@ -V
- dh_md5sums -p$@ -P$(b)/$@
- dh_builddeb -p$@ -P$(b)/$@
-
-#
-# libgtop-dev
-#
-
-libgtop-dev@SUFFIX@: install
- @echo "--- Building: $@"
- mkdir -p $(b)/$@/usr/doc
- cd $(b)/$@/usr/doc; ln -s libgtop1@SUFFIX@ $@
- dh_movefiles -p$@ -P$(b)/$@
- dh_strip -p$@ -P$(b)/$@
- dh_compress -p$@ -P$(b)/$@
- dh_fixperms -p$@ -P$(b)/$@
- dh_installdeb -p$@ -P$(b)/$@
- dh_shlibdeps -p$@ -P$(b)/$@
- dh_gencontrol -p$@ -P$(b)/$@
- dh_makeshlibs -p$@ -P$(b)/$@ -V
- dh_undocumented -p$@ -P$(b)/$@ \
- libgtop-config.1
- dh_md5sums -p$@ -P$(b)/$@
- dh_builddeb -p$@ -P$(b)/$@
-
-binary: binary-indep binary-arch
-.PHONY: binary clean binary-indep binary-arch build install install-save install-saved
-
-
diff --git a/doc/ChangeLog b/doc/ChangeLog
deleted file mode 100644
index bf4e6b6a..00000000
--- a/doc/ChangeLog
+++ /dev/null
@@ -1,90 +0,0 @@
-2007-02-15 Benoît Dejean <benoit@placenet.org>
-
- * reference/Makefile.am:
-
- Fixed distcheck.
-
-2006-02-21 Benoît Dejean <benoit@placenet.org>
-
- * reference.texi: Fixed glibtop_get_proc_state doc.
- Patch by Emil Nowak <emil5@go2.pl>.
-
-2005-01-03 Benoît Dejean <TazForEver@dlfp.org>
-
- * reference.texi: Updated.
-
-2004-12-04 Benoît Dejean <tazforever@dlfp.org>
-
- * reference.texi: Updated.
-
-2004-08-03 Benoît Dejean <tazforever@dlfp.org>
-
- * reference.texi: Updated.
-
-2004-07-07 Benoît Dejean <tazforever@dlfp.org>
-
- * reference.texi: updated.
- Added glibtop_get_proc_argv.
- Added glibtop_fsusage.block_size.
-
-2004-03-05 Bastien Nocera <hadess@hadess.net>
-
- * reference.texi: update for new API
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * reference.texi: s/u_int64_t/guint64/
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: removed traces of guile, intllibs and libgnomesupport
-
-2002-03-12 James Henstridge <james@daa.com.au>
-
- * Makefile.am (MAKEINFO): using += seems to screw up the build
- with newer automakes. Set it explicitly (using @MAKEINFO@) seems
- to be compatible with both.
-
-2001-11-26 Abel Cheung <maddog@linux.org.hk>
-
- * libgtop.texi, Makefile.am: Renamed to libgtop2.texi
- * about.texi: Very minor update.
-
-1999-10-18 Martin Baulig <martin@home-of-linux.org>
-
- * about.texi: Added a note about LibGTop and GNOME.
-
- * reference.texi (glibtop_proc_state): Fix description of the `state'
- field for LibGTop 1.0.x.
-
-1999-09-29 Martin Baulig <martin@home-of-linux.org>
-
- * Makefile.am (MAKEINFO): Add `-I @libgtop_top_builddir@/doc' here.
-
-1999-05-16 Martin Baulig <martin@home-of-linux.org>
-
- * main.texi: This is now the main file which will @include all
- chapter files so we can use `texinfo-multiple-files-update'.
-
- * reference.texi: Added all missing sections with a "not yet written"
- notice.
-
-1999-05-16 Martin Baulig <martin@home-of-linux.org>
-
- * white-paper.texi: Initial version of the LibGTop White Paper.
-
- * Makefile.am: Create `auto-macros.texi' from `auto-macros.texi.in'
- which will contain some `@set' commands for the LibGTop version etc.
-
- * auto-macros.texi.in: New file. This is a template for
- `auto-macros.texi' which will be automatically generated.
-
-1999-05-09 Martin Baulig <martin@home-of-linux.org>
-
- * about.texi: Split the `libgtop.texi' into one file pro chapter,
- this is the "About LibGTop".
-
- * reference.texi: The "LibGTop Reference Manual".
-
- * libgtop.texi: Initial version of the new LibGTop Manual.
-
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644
index d5fc0814..00000000
--- a/doc/Makefile.am
+++ /dev/null
@@ -1,8 +0,0 @@
-SUBDIRS = reference
-
-info_TEXINFOS = libgtop2.texi
-
-libgtop2_TEXINFOS = libgtop2.texi about.texi reference.texi \
- version.texi main.texi white-paper.texi
-
-AM_MAKEINFOFLAGS = -I $(libgtop_top_builddir)/doc
diff --git a/doc/about.texi b/doc/about.texi
deleted file mode 100644
index 73cb1913..00000000
--- a/doc/about.texi
+++ /dev/null
@@ -1,123 +0,0 @@
-@node About, White Paper, Top, Top
-@chapter About LibGTop
-
-LibGTop is a library to get system specific data such as CPU and Memory Usage
-and information about running Processes.
-
-On Systems like Solaris or Digital Unix where you need special privileges to
-get those data, it uses a setuid/setgid server to do so.
-
-Even if LibGTop is a part of the GNOME desktop environment
-(@uref{http://www.gnome.org}), the main interface of LibGTop is totally
-independent from any particular desktop environment, so you can also use it
-as a standalone library in any piece of GPLed software.
-
-@menu
-* Availability:: Where to get LibGTop
-* Supported Platforms:: Supported Platforms
-* Mailing List:: Helping with LibGTop development
-* Thanks:: People who contributed to LibGTop
-@end menu
-
-@node Availability, Supported Platforms, About, About
-@section Availability
-
-The master source of LibGTop is the GNOME CVS tree
-(see @uref{http://www.gnome.org} for details), but you can also get the
-latest release tarballs from
-
-@display
-@uref{ftp://ftp.gnome.org/pub/GNOME/sources/libgtop/}
-@end display
-
-@noindent
-or any of its mirror sites.
-
-The latest stable version of LibGTop is 1.0.12 which is also the one that comes
-together with GNOME 1.0. It belongs to @code{LIBGTOP_STABLE_1_0} branch in CVS.
-Actual development occurs in the @code{libgtop-GNOME-2-0-port} which is
-currently versioned 1.90.0.
-
-@node Supported Platforms, Mailing List, Availability, About
-@section Supported Platforms
-
-The stable branch currently supports the following platforms:
-
-@itemize @bullet
-@item All versions of Linux
-
-LibGTop was tested under Linux 2.0.x and 2.2.x on the ix86 and the alpha, but
-it should also work without problems on SparcLinux or Linux 2.4.x.
-
-Note: I'm speaking of the Linux kernel here, not the GNU/Linux operating system.
-
-@item FreeBSD, NetBSD and OpenBSD
-
-LibGTop was tested under FreeBSD 2.2.6 and 3.0, NetBSD 1.3.2 and OpenBSD 2.4.
-Support for NetBSD 1.4 was added in LibGTop 1.0.2.
-
-@end itemize
-
-The platforms listed above are known to be stable and working. However, if
-you're using the latest development version, you can use it on the following
-platforms as well:
-
-@itemize @bullet
-@item BSD/OS
-
-There is a port for BSD/OS (aka BSDI) 2.x and 3.x from Timur Bakeyev which
-should also work with 4.x. This isn't tested very well, but it should be
-working.
-
-@item Digital Unix
-
-There is some basic support for Digital Unix (formerly DEC OSF/1) V3.2C, but
-this may still be a bit unstable. I'm currently working on this port as time
-permits so it should be fully supported soon.
-
-@item Solaris
-
-The Solaris port currently works on Solaris 7 and maybe also on other releases.
-Thanks a lot to Drazen Kacar and everyone who helped working on this port. They
-have really done excellent work here and I'm pretty sure that this port will be
-fully functional on most Solaris versions in near future.
-
-@end itemize
-
-@node Mailing List, Thanks, Supported Platforms, About
-@section Mailing List
-
-There is a @email{libgtop-devel-list@@egroups.com} mailing list for people who
-want to help with the development of LibGTop.
-
-It is meant as a low-traffic, but high content-list where we can discuss
-technical details such as adding new sysdeps ports etc.
-
-Especially, I'd like to see people with a deeper knowledge of operating systems
-internals joining my list so we can discuss technical details of the sysdeps
-code.
-
-It is *not* for users that want to know how to compile LibGTop etc.
-
-You can subscribe to this mailing list and view the mailing list archives
-on the LibGTop Page at @uref{http://www.home-of-linux.org/gnome/libgtop}.
-
-@node Thanks, , Mailing List, About
-@section Thanks
-
-At the place I'd like to thank the following people who contributed to
-LibGTop (listed in chronological order):
-
-@itemize @bullet
-@item Sebastian Wilhelmi who had the initial idea of LibGTop and helped
-me a lot in the early beginning.
-@item Josh Sled for the initial FreeBSD port.
-@item Jeremy Lea for his BSD patches.
-@item Timur Bakeyev for the BSDI port.
-@item Drazen Kacar and the other people on the LibGTop development mailing
-list for the Solaris port.
-@item Kevin Vandersloot for the effort to port to GNOME 2.0.
-@item All people sending me patches, having good ideas, ...
-@item Everyone I have forgotten in this list ...
-@end itemize
-
diff --git a/doc/internals.texi b/doc/internals.texi
deleted file mode 100644
index 4cb9c2d6..00000000
--- a/doc/internals.texi
+++ /dev/null
@@ -1,107 +0,0 @@
-@node LibGTop Internals, , Reference Manual, Top
-@chapter LibGTop Internals
-
-@menu
-* General Internals:: General Internals
-* Sysdeps Internals:: Sysdeps Internals
-@end menu
-
-@node General Internals, Sysdeps Internals, LibGTop Internals, LibGTop Internals
-@section General Internals
-
-@menu
-* glibtop:: The server structure
-@end menu
-
-@node glibtop, , General Internals, General Internals
-@subsection The server structure - @code{glibtop}
-
-@example
-@cartouche
-typedef struct _glibtop glibtop;
-
-struct _glibtop
-@{
- unsigned flags;
- unsigned method;
- unsigned error_method;
-#ifdef HAVE_GLIBTOP_MACHINE_H
- glibtop_machine machine;
-#endif
- int input [2];
- int output [2];
- int socket;
- int ncpu;
- unsigned long os_version_code;
- const char *name;
- const char *server_command;
- const char *server_host;
- const char *server_user;
- const char *server_rsh;
- unsigned long features;
- unsigned long server_port;
- glibtop_sysdeps sysdeps;
- glibtop_sysdeps required;
- glibtop_sysdeps wanted;
- pid_t pid;
-@};
-@end cartouche
-@end example
-
-@node Sysdeps Internals, , General Internals, LibGTop Internals
-@section Sysdeps Internals
-
-@menu
-* glibtop_open_s:: Non-privileged initializations
-* glibtop_close_s:: Non-privileged cleanups
-@end menu
-
-@node glibtop_open_s, glibtop_close_s, Sysdeps Internals, Sysdeps Internals
-@subsection glibtop_open_s
-
-This function is used in the non-suid sysdeps library @samp{-lgtop_sysdeps} to
-initialize a server. It should do all initializations that do not need any
-privileges.
-
-@example
-@cartouche
-void
-glibtop_open_s (glibtop *server, const char *program_name,
- const unsigned long features,
- const unsigned flags);
-@end cartouche
-@end example
-
-@table @code
-@item server
-Pointer to the @code{glibtop} server structure.
-@item program_name
-Name of the calling program; the implementation will usually
-set @samp{server->name} to this so it'll be used as the program
-name in error messages.
-@end table
-
-Typically, this function will set @code{server->name}, @code{server->ncpu} and
-@code{server->os_version_code} and initialize any of the @code{server->machine}
-fields which do not need any privileges.
-
-It is normally implemented in @file{open.c} in the sysdeps directory.
-
-@node glibtop_close_s, , glibtop_open_s, Sysdeps Internals
-@subsection glibtop_close_s
-
-This function is used in the non-suid sysdeps library @samp{-lgtop_sysdeps} to
-clean-up a server when it's no longer used.
-
-It must free all resources that were allocated in @code{glibtop_open_s}.
-
-@example
-@cartouche
-void
-glibtop_close_s (glibtop *server);
-@end cartouche
-@end example
-
-It is normally implemented in @file{close.c} in the sysdeps directory, but may
-be empty.
-
diff --git a/doc/libgtop2.texi b/doc/libgtop2.texi
deleted file mode 100644
index 8ca66851..00000000
--- a/doc/libgtop2.texi
+++ /dev/null
@@ -1,88 +0,0 @@
-\input texinfo @c -*-texinfo-*-
-@c %**start of header
-@setfilename libgtop2.info
-@settitle LibGTop Reference Manual
-@setchapternewpage odd
-@c %**end of header
-
-@include version.texi
-
-@ifinfo
-This is the LibGTop Reference Manual version @value{VERSION}
-(last modified @value{UPDATED}).
-
-Copyright 1999 Free Software Foundation, Inc.
-
-Permission is granted to make and distribute verbatim
-copies of this manual provided the copyright notice and
-this permission notice are preserved on all copies.
-
-@ignore
-Permission is granted to process this file through TeX
-and print the results, provided the printed document
-carries a copying permission notice identical to this
-one except for the removal of this paragraph (this
-paragraph not being relevant to the printed manual).
-
-@end ignore
-Permission is granted to copy and distribute modified
-versions of this manual under the conditions for
-verbatim copying, provided also that the sections
-entitled ``Copying'' and ``GNU General Public License''
-are included exactly as in the original, and provided
-that the entire resulting derived work is distributed
-under the terms of a permission notice identical to this
-one.
-
-Permission is granted to copy and distribute
-translations of this manual into another language,
-under the above conditions for modified versions,
-except that this permission notice may be stated in a
-translation approved by the Free Software Foundation.
-
-@format
-@dircategory Libraries:
-@direntry
-* LibGTop2: (libgtop2). Library to get system specific data
- such as cpu and memory usage, active
- processes
-@end direntry
-@end format
-
-@end ifinfo
-
-@titlepage
-@title LibGTop Reference Manual
-@subtitle Version @value{VERSION} - @value{UPDATED}
-@author Martin Baulig
-
-@page
-@vskip 0pt plus 1filll
-Copyright @copyright{} 1999 Free Software Foundation, Inc.
-
-Permission is granted to make and distribute verbatim
-copies of this manual provided the copyright notice and
-this permission notice are preserved on all copies.
-
-Permission is granted to copy and distribute modified
-versions of this manual under the conditions for
-verbatim copying, provided also that the sections
-entitled ``Copying'' and ``GNU General Public License''
-are included exactly as in the original, and provided
-that the entire resulting derived work is distributed
-under the terms of a permission notice identical to this
-one.
-
-Permission is granted to copy and distribute
-translations of this manual into another language,
-under the above conditions for modified versions,
-except that this permission notice may be stated in a
-translation approved by the Free Software Foundation.
-@end titlepage
-
-@contents
-
-@include main.texi
-
-@bye
-
diff --git a/doc/main.texi b/doc/main.texi
deleted file mode 100644
index 6945d651..00000000
--- a/doc/main.texi
+++ /dev/null
@@ -1,68 +0,0 @@
-@node Top, About, (dir), (dir)
-
-@menu
-* About:: About LibGTop
-* White Paper:: LibGTop White Paper
-* Reference Manual:: LibGTop Reference Manual
-
- --- The Detailed Node Listing ---
-
-About LibGTop
-
-* Availability:: Where to get LibGTop
-* Supported Platforms:: Supported Platforms
-* Mailing List:: Helping with LibGTop development
-* Thanks:: People who contributed to LibGTop
-
-LibGTop White Paper
-
-* Introduction:: Introduction
-* Overview:: Overview
-
-Overview
-
-* Interface Design:: Things that need to be considered
-* Server Implementation:: The LibGTop "server"
-
-LibGTop Reference Manual
-
-* System Dependent:: System Dependent Functions.
-* Common Functions:: Common Functions.
-* Library Functions:: Library Functions.
-
-System Dependent Functions
-
-* glibtop_cpu:: CPU Usage.
-* glibtop_mem:: Memory Usage.
-* glibtop_swap:: Swap Usage.
-* glibtop_uptime:: System Uptime.
-* glibtop_loadavg:: Load Average.
-* glibtop_proclist:: Process List.
-* glibtop_proc_state:: Process State.
-* glibtop_proc_uid:: Process UID and TTY Information.
-* glibtop_proc_mem:: Process Memory Information.
-* glibtop_proc_time:: Process Time Information.
-* glibtop_proc_signal:: Process Signal Information.
-* glibtop_proc_kernel:: Process Kernel Data Information.
-* glibtop_proc_segment:: Process Segment Information.
-* glibtop_proc_args:: Process Arguments.
-* glibtop_proc_map:: Process Memory Maps.
-* glibtop_netload:: Network Load.
-* glibtop_ppp:: PPP Usage.
-
-Common Functions
-
-* glibtop_mountlist:: Mount List.
-* glibtop_fsusage:: File System Usage.
-
-Library Functions
-
-* glibtop_init:: Server Initialization.
-* glibtop_sysdeps:: Server Sysdeps.
-* Library Parameters:: Library Parameters.
-@end menu
-
-@include about.texi
-@include white-paper.texi
-@include reference.texi
-
diff --git a/doc/reference.texi b/doc/reference.texi
deleted file mode 100644
index 11dc2008..00000000
--- a/doc/reference.texi
+++ /dev/null
@@ -1,1846 +0,0 @@
-@node Reference Manual, , White Paper, Top
-@chapter LibGTop Reference Manual
-
-@menu
-* System Dependent:: System Dependent Functions.
-* Common Functions:: Common Functions.
-* Library Functions:: Library Functions.
-@end menu
-
-@node System Dependent, Common Functions, Reference Manual, Reference Manual
-@section System Dependent Functions
-
-@menu
-* glibtop_cpu:: CPU Usage.
-* glibtop_mem:: Memory Usage.
-* glibtop_swap:: Swap Usage.
-* glibtop_uptime:: System Uptime.
-* glibtop_loadavg:: Load Average.
-* glibtop_proclist:: Process List.
-* glibtop_proc_state:: Process State.
-* glibtop_proc_uid:: Process UID and TTY Information.
-* glibtop_proc_mem:: Process Memory Information.
-* glibtop_proc_time:: Process Time Information.
-* glibtop_proc_signal:: Process Signal Information.
-* glibtop_proc_kernel:: Process Kernel Data Information.
-* glibtop_proc_segment:: Process Segment Information.
-* glibtop_proc_args:: Process Arguments.
-* glibtop_proc_map:: Process Memory Maps.
-* glibtop_netload:: Network Load.
-* glibtop_ppp:: PPP Usage.
-@end menu
-
-@node glibtop_cpu, glibtop_mem, System Dependent, System Dependent
-@subsection CPU Usage
-
-Library function @code{glibtop_get_cpu}:
-
-@example
-@cartouche
-void glibtop_get_cpu (glibtop_cpu *buf);
-void glibtop_get_cpu_l (glibtop *server, glibtop_cpu *buf);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_cpu} in @file{<glibtop/cpu.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_cpu glibtop_cpu;
-
-struct _glibtop_cpu
-@{
- guint64 flags,
- total,
- user,
- nice,
- sys,
- idle,
- iowait,
- irq,
- softirq,
- frequency,
- xcpu_total [GLIBTOP_NCPU],
- xcpu_user [GLIBTOP_NCPU],
- xcpu_nice [GLIBTOP_NCPU],
- xcpu_sys [GLIBTOP_NCPU],
- xcpu_idle [GLIBTOP_NCPU],
- xcpu_iowait [GLIBTOP_NCPU],
- xcpu_irq [GLIBTOP_NCPU],
- xcpu_softirq [GLIBTOP_NCPU],
- xcpu_flags;
-@};
-@end cartouche
-@end example
-
-All CPU units are measured in @dfn{jiffies} which are normally 1/100th of a
-second (in which case @code{frequency} equals 100), but can also be in any
-other unit. To get seconds, divide them by @code{frequency}.
-
-@table @code
-@item total
-Number of clock ticks since system boot.
-
-@item user
-Number of clock ticks the system spent in user mode.
-
-@item nice
-Number of clock ticks the system spent in user mode (nice).
-
-@item sys
-Number of clock ticks the system spent in system mode.
-
-@item idle
-Number of clock ticks the system spent in the idle task.
-
-@item iowait
-Number of clock ticks the system spent waiting for I/O to complete.
-
-@item irq
-Number of clock ticks the system spent servicing interrupts.
-
-@item softirq
-Number of clock ticks the system spent servicing softirqs.
-
-@item frequency
-Tick frequency (default is 100).
-
-@end table
-
-The @samp{xcpu_} values are for SMP systems - they are the same than
-@code{total}, @code{user}, @code{nice}, @code{sys}, @code{idle},
-@code{iowait}, @code{irq} and @code{softirq}
-except that they are arrays of @code{GLIBTOP_NCPU} (defined in
-@file{<glibtop/cpu.h>}) elements and contain one value for each CPU
-in the system.
-
-@table @code
-@item xcpu_flags
-This is interpreted as a bit-field: on systems like Solaris, not all CPUs
-need to be running all the time, so we set the corresponding bit for each
-CPU that is currently running.
-@end table
-
-Please note that all of the cpu values are absolute values measured in
-certain units (to get seconds, divide them by @code{frequency}) since system
-boot. To get percentual values, you need to call @code{glibtop_cpu}, save the
-result, wait some time and then call it again and divide the differences of
-the two values by the time you have waited.
-
-@page
-@node glibtop_mem, glibtop_swap, glibtop_cpu, System Dependent
-@subsection Memory Usage
-
-Library function @code{glibtop_get_mem}:
-
-@example
-@cartouche
-void glibtop_get_mem (glibtop_mem *buf);
-void glibtop_get_mem_l (glibtop *server, glibtop_mem *buf);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_mem} in @file{<glibtop/mem.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_mem glibtop_mem;
-
-struct _glibtop_mem
-@{
- guint64 flags,
- total,
- used,
- free,
- shared,
- buffer,
- cached,
- user,
- locked;
-@};
-@end cartouche
-@end example
-
-Unless explicitly stated otherwise, all memory units are in bytes.
-
-@table @code
-@item total
-Total physical memory.
-
-@item used
-Used memory size.
-
-@item free
-Free memory size.
-
-@item shared
-Shared memory size.
-
-This are both segments that are @code{mmap()}ed with @code{MAP_SHARED} and
-IPC Shared Memory segments.
-
-@item buffer
-Size of buffers.
-
-@item cached
-Size of cached memory.
-
-@item user
-Memory used from user processes.
-
-This is normally @code{total - free - shared - buffer - cached}.
-
-@item locked
-Memory in locked segments.
-
-@end table
-
-@page
-@node glibtop_swap, glibtop_uptime, glibtop_mem, System Dependent
-@subsection Swap Usage
-
-Library function @code{glibtop_get_swap}:
-
-@example
-@cartouche
-void glibtop_get_swap (glibtop_swap *buf);
-void glibtop_get_swap_l (glibtop *server, glibtop_swap *buf);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_swap} in @file{<glibtop/swap.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_swap glibtop_swap;
-
-struct _glibtop_swap
-@{
- guint64 flags,
- total,
- used,
- free,
- pagein,
- pageout;
-@};
-@end cartouche
-@end example
-
-The following units are in bytes.
-
-@table @code
-@item total
-Total swap space in the system.
-
-@item used
-Used swap space.
-
-@item free
-Free swap space.
-@end table
-
-You can use @code{pagein} and @code{pageout} to get some measure about how
-much the system is swapping at the moment. They're increased each time a page
-is swapped in or out, so you need to save this values, wait a little bit, get
-them again and then compare the two results to find out how much the system
-swapped in the meantime.
-
-@table @code
-@item pagein
-Total number of swap pages that have been brought in since system boot
-
-@item pageout
-Total number of swap pages that have been brought out since system boot
-
-@end table
-
-@page
-@node glibtop_uptime, glibtop_loadavg, glibtop_swap, System Dependent
-@subsection Uptime
-
-Library function @code{glibtop_get_uptime}:
-
-@example
-@cartouche
-void glibtop_get_uptime (glibtop_uptime *buf);
-void glibtop_get_uptime_l (glibtop *server, glibtop_uptime *buf);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_uptime} in @file{<glibtop/uptime.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_uptime glibtop_uptime;
-
-struct _glibtop_uptime
-@{
- guint64 flags;
- double uptime,
- idletime;
- guint64 boot_time;
-@};
-@end cartouche
-@end example
-
-When porting LibGTop to a new system, you only need to implement @code{uptime}
-and @code{idletime} if there's a faster or better way to obtain them as using
-@code{glibtop_cpu} for it. Look at @file{sysdeps/freebsd/uptime.c} for an
-example on how to obtain them using @code{glibtop_cpu}.
-
-@table @code
-@item uptime
-Time in seconds since system boot.
-
-@item idletime
-Time in seconds the system spent in the idle task since system boot.
-@end table
-
-The following one was from a request on the @samp{linux-kernel} mailing list;
-on a laptop with advanced power management @code{glibtop_cpu.total} may not
-reflect the correct boot time of the system if the power was turned off by
-means of APM in the meantime.
-
-@table @code
-@item boot_time
-Time of last system boot in seconds since the epoch.
-@end table
-
-@page
-@node glibtop_loadavg, glibtop_proclist, glibtop_uptime, System Dependent
-@subsection Load Average
-
-Library function @code{glibtop_get_loadavg}:
-
-@example
-@cartouche
-void glibtop_get_loadavg (glibtop_loadavg *buf);
-void glibtop_get_loadavg_l (glibtop *server, glibtop_loadavg *buf);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_loadavg} in @file{<glibtop/loadavg.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_loadavg glibtop_loadavg;
-
-struct _glibtop_loadavg
-@{
- guint64 flags;
- double loadavg [3];
- guint64 nr_running,
- nr_tasks,
- last_pid;
-@};
-@end cartouche
-@end example
-
-@table @code
-@item loadavg
-
-Number of jobs running simultaneously averaged over 1, 5 and 15 minutes.
-
-@end table
-
-The following fields are Linux specific and deprecated. You don't need to
-implement them when porting LibGTop to a new system as they may be removed
-in a future version.
-
-@table @code
-@item nr_running
-Number of tasks currently running.
-
-@item nr_tasks
-Total number of tasks.
-
-@item last_pid
-Last PID.
-@end table
-
-@page
-@node glibtop_proclist, glibtop_proc_state, glibtop_loadavg, System Dependent
-@subsection Process List
-
-Library function @code{glibtop_get_proclist}:
-
-@example
-@cartouche
-unsigned *
-glibtop_get_proclist (glibtop_proclist *buf,
- gint64 which, gint64 arg);
-
-unsigned *
-glibtop_get_proclist_l (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg);
-@end cartouche
-@end example
-
-Constants for the @code{which} argument:
-
-@example
-@cartouche
-#define GLIBTOP_KERN_PROC_ALL 0
-#define GLIBTOP_KERN_PROC_PID 1
-#define GLIBTOP_KERN_PROC_PGRP 2
-#define GLIBTOP_KERN_PROC_SESSION 3
-#define GLIBTOP_KERN_PROC_TTY 4
-#define GLIBTOP_KERN_PROC_UID 5
-#define GLIBTOP_KERN_PROC_RUID 6
-
-#define GLIBTOP_KERN_PROC_MASK 15
-
-#define GLIBTOP_EXCLUDE_IDLE 0x1000
-#define GLIBTOP_EXCLUDE_SYSTEM 0x2000
-#define GLIBTOP_EXCLUDE_NOTTY 0x4000
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_proclist} in @file{<glibtop/proclist.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_proclist glibtop_proclist;
-
-struct _glibtop_proclist
-@{
- guint64 flags,
- number,
- total,
- size;
-@};
-@end cartouche
-@end example
-
-This function returns a list of all or a selected subset of all running
-processes. You can use the @code{which} and @code{arg} arguments to
-specify which processes should be returned.
-
-You can use the following values for the @code{which} argument:
-
-@table @code
-@item GLIBTOP_KERN_PROC_ALL
-Return information about all processes (the @code{arg} argument is ignored).
-
-@item GLIBTOP_KERN_PROC_PID
-Return information about all process with the pid @var{PID} which is passed
-in @code{arg}. You can use this to find out whether some process still exists.
-
-@item GLIBTOP_KERN_PROC_PGRP
-Return all processes in process group @var{PGRP} which is passed in
-@code{arg}.
-
-@item GLIBTOP_KERN_PROC_SESSION
-Return all processes in session @var{SESSION} which is passed in @code{arg}.
-
-@item GLIBTOP_KERN_PROC_TTY
-Return all processes which have the controlling tty @var{TTY} which is passed
-in @code{arg} (@var{TTY} is interpreted as device number).
-
-@item GLIBTOP_KERN_PROC_UID
-Return all processes with effective uid @var{UID} which is passed in @code{arg}.
-
-@item GLIBTOP_KERN_PROC_RUID
-Return all processes with real uid @var{RUID} which is passed in @code{arg}.
-
-@end table
-
-You can alter the list of returned processes by using a binary OR of
-@code{which} and the following constants:
-
-@table @code
-@item GLIBTOP_EXCLUDE_IDLE
-Exclude idle processes.
-@item GLIBTOP_EXCLUDE_SYSTEM
-Exclude system processes.
-@item GLIBTOP_EXCLUDE_NOTTY
-Exclude processes without a controlling terminal.
-@end table
-
-The return value of @code{glibtop_get_proclist} is either @code{NULL} on
-error or a @code{unsigned *} list of pids. Additionally, the following fields
-of @code{glibtop_proclist} are set:
-
-@table @code
-@item number
-Number of entries in the returned list.
-
-@item total
-Total size of the returned list (this equals @code{number * size}).
-
-@item size
-Size of a single entry in the returned list
-(this equals @code{sizeof (unsigned)}).
-@end table
-
-The returned list is allocated using @code{g_malloc} and must be freed
-using @code{g_free} to avoid a memory leak.
-
-@page
-@node glibtop_proc_state, glibtop_proc_uid, glibtop_proclist, System Dependent
-@subsection Process State
-
-Library function @code{glibtop_get_proc_state}:
-
-@example
-@cartouche
-void
-glibtop_get_proc_state (glibtop_proc_state *buf, pid_t pid);
-
-void
-glibtop_get_proc_state_l (glibtop *server, glibtop_proc_state *buf,
- pid_t pid);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_proc_state} in @file{<glibtop/procstate.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_proc_state glibtop_proc_state;
-
-struct _glibtop_proc_state
-@{
- guint64 flags;
- char cmd[40];
-@ifset LIBGTOP-1-1
- unsigned state;
-@end ifset
-@ifclear LIBGTOP-1-1
- char state;
-@end ifclear
- int uid,
- gid,
- ruid,
- rgid;
- int has_cpu,
- processor,
- last_processor;
-
-@};
-@end cartouche
-@end example
-
-@table @code
-@item cmd
-Basename of the executable file in the call to @code{exec}.
-@item state
-@ifset LIBGTOP-1-1
-Process state (see the constants defined below).
-@end ifset
-@ifclear LIBGTOP-1-1
-Process state ('R' = running, 'S' = sleeping, 'D' = uninterruptible,
-'Z' = zombie, 'T' = stopped, 'I' = idle).
-
-This was changed to an @code{unsigned} bitfield in LibGTop 1.1.x where there
-are also some constants for it.
-@end ifclear
-@end table
-
-When porting LibGTop, please @emph{try hard} to implement the following
-fields. For security reasons, it is @strong{very important} that you
-@strong{only} set the @code{flags} bits for those fields if their
-@strong{values are correct}.
-
-@table @code
-@item uid
-Effective UID of the process.
-@item gid
-Effective GID of the process.
-@item ruid
-Real UID of the process.
-@item rgid
-Read GID of the process.
-@end table
-
-The following fields are for SMP systems:
-
-@table @code
-@item has_cpu
-This is either 0 or 1 depending on whether the process currently has a CPU
-or not.
-
-@item processor
-This is the processor id of the CPU this process is currently running on
-(which can be used as index in the @samp{xcpu_} fields of @code{glibtop_cpu}
-for instance; since zero is a valid processor id, you must check @code{has_cpu}
-in this case to find out whether the process really has a CPU).
-
-@item last_processor
-The is the processor id of the CPU the process was last running on.
-@end table
-
-@ifset LIBGTOP-1-1
-There are some constants for the @code{state} field:
-
-@example
-@cartouche
-#define GLIBTOP_PROCESS_RUNNING 1
-#define GLIBTOP_PROCESS_INTERRUPTIBLE 2
-#define GLIBTOP_PROCESS_UNINTERRUPTIBLE 4
-#define GLIBTOP_PROCESS_ZOMBIE 8
-#define GLIBTOP_PROCESS_STOPPED 16
-#define GLIBTOP_PROCESS_SWAPPING 32
-#define GLIBTOP_PROCESS_DEAD 64
-@end cartouche
-@end example
-@end ifset
-
-@table @code
-@item GLIBTOP_PROCESS_RUNNING
-The process is currently running.
-@item GLIBTOP_PROCESS_INTERRUPTIBLE
-The process is currently in an interruptible sleep.
-@item GLIBTOP_PROCESS_UNINTERRUPTIBLE
-The process is currently in uninterruptible sleep
-(the so-called @dfn{disk sleep}).
-@item GLIBTOP_PROCESS_ZOMBIE
-The process is a zombie.
-@item GLIBTOP_PROCESS_STOPPED
-The process is currently stopped (received @code{SIGSTOP}
-or attached to a debugger).
-@item GLIBTOP_PROCESS_SWAPPING
-The process is currently swapping.
-@end table
-
-@page
-@node glibtop_proc_uid, glibtop_proc_mem, glibtop_proc_state, System Dependent
-@subsection Process UID and TTY information
-
-Library function @code{glibtop_get_proc_uid}:
-
-@example
-@cartouche
-void
-glibtop_get_proc_uid (glibtop_proc_uid *buf, pid_t pid);
-
-void
-glibtop_get_proc_uid_l (glibtop *server, glibtop_proc_uid *buf,
- pid_t pid);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_proc_uid} in @file{<glibtop/procuid.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_proc_uid glibtop_proc_uid;
-
-struct _glibtop_proc_uid
-@{
- guint64 flags;
- int uid,
- euid,
- gid,
- egid,
- suid,
- sgid,
- fsuid,
- fsgid,
- pid,
- ppid,
- pgrp,
- session,
- tty,
- tpgid,
- priority,
- nice,
- ngroups,
- groups [GLIBTOP_MAX_GROUPS];
-@};
-@end cartouche
-@end example
-
-@table @code
-@item uid
-User ID
-@item euid
-Effective User ID
-@item gid
-Group ID
-@item egid
-Effective Group ID
-@item pid
-Process ID
-@item ppid
-PID of parent process
-@item pgrp
-Process group ID
-@item session
-Session ID
-@item tty
-Full device number of controlling terminal
-@item tpgid
-Terminal process group ID
-@item priority
-Kernel scheduling priority.
-@item nice
-Standard unix nice level of process.
-@item ngroups
-Number of additional process groups.
-@item groups
-Array of additional process groups@*
-(@code{GLIBTOP_MAX_GROUPS} is defined in @file{<glibtop/procuid.h>}).
-@end table
-
-@page
-@node glibtop_proc_mem, glibtop_proc_time, glibtop_proc_uid, System Dependent
-@subsection Process Memory information
-
-Library function @code{glibtop_get_proc_mem}:
-
-@example
-@cartouche
-void
-glibtop_get_proc_mem (glibtop_proc_mem *buf, pid_t pid);
-
-void
-glibtop_get_proc_mem_l (glibtop *server, glibtop_proc_mem *buf,
- pid_t pid);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_proc_mem} in @file{<glibtop/procmem.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_proc_mem glibtop_proc_mem;
-
-struct _glibtop_proc_mem
-@{
- guint64 flags,
- size,
- vsize,
- resident,
- share,
- rss,
- rss_rlim;
-@};
-@end cartouche
-@end example
-
-@table @code
-@item size
-Total number of pages of memory.
-@item vsize
-Number of pages of virtual memory.
-@item resident
-Number of residnet set (non-swapped) pages.
-@item share
-Number of pages of shared (mmap\'d) memory.
-@item rss
-Number of pages the process has in real memory, minus 3 for administrative
-purposes.
-
-This is just the pages which count towards text, data, or stack space.
-This does not include pages which have not been demand-loaded in, or which
-are swapped out.
-@item rss_rlim
-Current limit in bytes on the rss of the process (usually 2,147,483,647).
-@end table
-
-The description above is taken from the manual page of the @file{/proc}
-filesystem under Linux and is a little bit confusing, so I make this clear
-here.
-
-@strong{Note for people porting LibGTop to other systems:}
-Every operating system has its own idea about the memory usage of a process
-and also system utilities like @code{ps} show different things on different
-systems.
-
-Nevertheless, we should try to make LibGTop as system independent as possible,
-so I give you some hints here how @code{glibtop_get_proc_mem} should work.
-
-@itemize @bullet
-@item
-When you use @code{mmap} with either @code{MAP_SHARED} or @code{MAP_PRIVATE},
-this should only affect the @code{vsize} of the process and none of its
-@code{size}, @code{resident}, @code{shared} and @code{rss} sizes.
-
-@item
-As soon as you read some of the @code{mmap()}ed pages, they will be demand-
-oaded and thus count towards the @code{size} of the process.
-
-Also - we assume there is enough free memory - they are resident in memory
-until they get stolen or swapped out and thus increase the @code{resident} and
-@code{rss} sizes of the process.
-
-@item
-If the process has used @code{MAP_SHARED} and another process attaches the
-same file also @code{MAP_SHARED}, some of the pages are shared with this
-process and thus increase the @code{shared} sizes of both processes.
-
-@item
-If the process has used @code{MAP_PRIVATE} and writes to the @code{mmap()}ed
-pages, the only difference to reading from them is that they get dirty and
-cannot be stolen any longer but will get swapped out.
-
-@item
-When memory gets rare, clean pages are normally stolen, which decreases the
-@code{size}, @code{resident}, @code{shared} and @code{rss} sizes of the process.
-
-@item
-When dirty pages are swapped out, this will not decrease the @code{size} of the
-process but only its @code{resident} and @code{rss} sizes (dirty pages cannot
-be shared).
-
-@item
-The @code{vsize} of a process can @emph{only} be changed by the process
-itself when it requests or frees memory but @emph{never} due to swapping
-activity of the system.
-
-@item
-If the @code{shared} size changes, this @emph{only} means that the number of
-pages that are currently shared with other processes has changed; if this
-happens, this will @emph{never} affect any of the other sizes of the process.
-@end itemize
-
-The hints above describe how it works under Linux - but we should try to make
-@code{glibtop_get_proc_mem} show the same behavior under every other system.
-
-@page
-@node glibtop_proc_time, glibtop_proc_signal, glibtop_proc_mem, System Dependent
-@subsection Process Time information
-
-Library function @code{glibtop_get_proc_time}:
-
-@example
-@cartouche
-void
-glibtop_get_proc_time (glibtop_proc_time *buf, pid_t pid);
-
-void
-glibtop_get_proc_time_l (glibtop *server, glibtop_proc_time *buf,
- pid_t pid);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_proc_time} in @file{<glibtop/proctime.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_proc_time glibtop_proc_time;
-
-struct _glibtop_proc_time
-@{
- guint64 flags,
- start_time,
- rtime,
- utime,
- stime,
- cutime,
- cstime,
- timeout,
- it_real_value,
- frequency,
- xcpu_utime [GLIBTOP_NCPU],
- xcpu_stime [GLIBTOP_NCPU],
- xcpu_flags;
-@};
-@end cartouche
-@end example
-
-
-@table @code
-@item start_time
-Start time of process in seconds since the epoch
-@item rtime
-Real time accumulated by process (should be @code{utime} + @code{stime})
-@item utime
-User-mode CPU time accumulated by process
-@item stime
-Kernel-mode CPU time accumulated by process
-@item cutime
-Cumulative utime of process and reaped children
-@item cstime
-Cumulative stime of process and reaped children
-@item timeout
-The time (in jiffies) of the process's next timeout
-@item it_real_value
-The time (in jiffies) before the next SIGALRM is sent to the process due
-to an interval timer.
-@item frequency
-Tick frequency
-@item xcpu_utime
-SMP user-mode CPU time accumulated by process
-@item xcpu_stime
-SMP kernel-mode CPU time accumulated by process
-@end table
-
-
-Please note that under Linux, @code{start_time} value may be strange.
-Linux kernel defines @code{INITIAL_JIFFIES} which implies a time
-shift. Because @code{INITIAL_JIFFIES} is not user-space defined, we
-cannot use it to compute accurate @code{start_time}. On Linux2.6,
-@code{INITIAL_JIFFIES} is 300 so @code{start_time} is always 3s
-different from real start time of the given process. You may also get
-shift results if your system clock is not synchronised with your
-hardware clock. See @samp{man hwclock}.
-
-
-
-@page
-@node glibtop_proc_signal, glibtop_proc_kernel, glibtop_proc_time, System Dependent
-@subsection Process Signal information
-
-Library function @code{glibtop_get_proc_signal}:
-
-@example
-@cartouche
-void
-glibtop_get_proc_signal (glibtop_proc_signal *buf, pid_t pid);
-
-void
-glibtop_get_proc_signal_l (glibtop *server, glibtop_proc_signal *buf,
- pid_t pid);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_proc_signal} in @file{<glibtop/procsignal.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_proc_signal glibtop_proc_signal;
-
-struct _glibtop_proc_signal
-@{
- guint64 flags,
- signal [2],
- blocked [2],
- sigignore [2],
- sigcatch [2];
-@};
-@end cartouche
-@end example
-
-@table @code
-@item signal
-Mask of pending signals
-@item blocked
-Mask of blocked signals
-@item sigignore
-Mask of ignored signals
-@item sigcatch
-Mask of caught signals
-@end table
-
-All signal masks are interpreted as bit mask; it is an array of two
-@code{guint64}'s so we can save 128 signals there.
-
-@page
-@node glibtop_proc_kernel, glibtop_proc_segment, glibtop_proc_signal, System Dependent
-@subsection Process Kernel Data information
-
-Library function @code{glibtop_get_proc_kernel}:
-
-@example
-@cartouche
-void
-glibtop_get_proc_kernel (glibtop_proc_kernel *buf, pid_t pid);
-
-void
-glibtop_get_proc_kernel_l (glibtop *server, glibtop_proc_kernel *buf,
- pid_t pid);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_proc_kernel} in @file{<glibtop/prockernel.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_proc_kernel glibtop_proc_kernel;
-
-struct _glibtop_proc_kernel
-@{
- guint64 flags;
- guint64 k_flags,
- min_flt,
- maj_flt,
- cmin_flt,
- cmaj_flt,
- kstk_esp,
- kstk_eip,
- nwchan;
- char wchan [40];
-@};
-@end cartouche
-@end example
-
-@table @code
-@item k_flags
-Kernel flags of the process. See the constants defined below.
-@item min_flt
-The number of minor faults the process has made, those which have not required
-loading a memory page from disk.
-@item maj_flt
-The number of major faults the process has made, those which have required loading
-a memory page from disk.
-@item cmin_flt
-The number of minor faults that the process and its children have made.
-@item cmaj_flt
-The number of major faults that the process and its children have made.
-@item kstk_esp
-The current value of @code{esp} (32-bit stack pointer), as found in the kernel stack
-page for the process.
-@item kstk_eip
-The current @code{eip} (32-bit instruction pointer).
-@item nwchan
-This is the "channel" in which the process is waiting. This is the address of a system
-call, and can be looked up in a namelist if you need a textual name.
-(If you have an up-to-date @file{/etc/psdatabase}, then try @code{ps -l} to see the
-WCHAN field in action).
-@item wchan
-This is the textual name of the @code{nwchan} field.
-@end table
-
-There are some constants for the @code{k_flags} field:
-
-@example
-@cartouche
-#define GLIBTOP_KFLAGS_STARTING 1
-#define GLIBTOP_KFLAGS_EXITING 2
-#define GLIBTOP_KFLAGS_PTRACED 4
-#define GLIBTOP_KFLAGS_TRACESYS 8
-#define GLIBTOP_KFLAGS_FORKNOEXEC 16
-#define GLIBTOP_KFLAGS_SUPERPRIV 32
-#define GLIBTOP_KFLAGS_DUMPEDCORE 64
-#define GLIBTOP_KFLAGS_SIGNALED 128
-@end cartouche
-@end example
-
-@table @code
-@item GLIBTOP_KFLAGS_STARTING
-Process is being created.
-@item GLIBTOP_KFLAGS_EXITING
-Process is exiting.
-@item GLIBTOP_KFLAGS_PTRACED
-Process is being traced (via @code{ptrace ()}).
-@item GLIBTOP_KFLAGS_TRACESYS
-Process is tracing system calls.
-@item GLIBTOP_KFLAGS_FORKNOEXEC
-Process @code{fork()}ed, but didn't @code{exec()} yet.
-@item GLIBTOP_KFLAGS_SUPERPRIV
-Process used super-user privileges.
-@item GLIBTOP_KFLAGS_DUMPEDCORE
-Process dumped core.
-@item GLIBTOP_KFLAGS_SIGNALED
-Process was killed by a signal.
-@end table
-
-@page
-@node glibtop_proc_segment, glibtop_proc_args, glibtop_proc_kernel, System Dependent
-@subsection Process Segment information
-
-Library function @code{glibtop_get_proc_segment}:
-
-@example
-@cartouche
-void
-glibtop_get_proc_segment (glibtop_proc_segment *buf, pid_t pid);
-
-void
-glibtop_get_proc_segment_l (glibtop *server, glibtop_proc_segment *buf,
- pid_t pid);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_proc_segment} in @file{<glibtop/procsegment.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_proc_segment glibtop_proc_segment;
-
-struct _glibtop_proc_segment
-@{
- guint64 flags,
- text_rss,
- shlib_rss,
- data_rss,
- stack_rss,
- dirty_size,
- start_code,
- end_code,
- start_stack;
-@};
-@end cartouche
-@end example
-
-@table @code
-@item text_rss
-Text resident set size
-@item shlib_rss
-Shared-Lib resident set size
-@item data_rss
-Data resident set size
-@item stack_rss
-Stack resident set size
-@item dirty_size
-Total size of dirty pages
-@item start_code
-Address of beginning of code segment
-@item end_code
-Address of end of code segment
-@item start_stack
-Address of the bottom of stack segmen
-@end table
-
-@page
-@node glibtop_proc_args, glibtop_proc_map, glibtop_proc_segment, System Dependent
-@subsection Process Arguments
-
-Library function @code{glibtop_get_proc_args}:
-
-@example
-@cartouche
-char *
-glibtop_get_proc_args(glibtop_proc_args *buf, pid_t pid,
- unsigned max_len);
-
-char *
-glibtop_get_proc_args_l (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_proc_args} in @file{<glibtop/procargs.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_proc_args glibtop_proc_args;
-
-struct _glibtop_proc_args
-@{
- guint64 flags,
- size;
-@};
-@end cartouche
-@end example
-
-Returns a string with all command line arguments of process @code{pid}
-(up to @code{max_len} characters, use zero to get all arguments).
-
-The command line arguments in the returned string are separated by zero bytes;
-the lenght of this string is returned in the @code{size} field.
-
-Remember to @code{g_free} the returned string to avoid a memory leak.
-
-@strong{New functions}
-
-@example
-@cartouche
-char **
-glibtop_get_proc_argv(glibtop_proc_args *buf, pid_t pid,
- unsigned max_len);
-
-char **
-glibtop_get_proc_argv_l (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len);
-@end cartouche
-@end example
-
-Returns a NULL-terminated array of strings with all arguments of
-process @code{pid} (up to @code{max_len} characters, use zero to get
-all arguments). @code{glibtop_get_proc_argv()} and
-@code{glibtop_get_proc_argv_l()} are wrappers to
-@code{glibtop_get_proc_args()} and @code{glibtop_get_proc_args_l()}
-that return process' arguments like the C @code{argv}.
-
-Remember to @code{g_strfreev} the returned array to avoid a memory
-leak.
-
-@page
-@node glibtop_proc_map, glibtop_netload, glibtop_proc_args, System Dependent
-@subsection Process Memory Maps
-
-Library function @code{glibtop_get_proc_map}:
-
-@example
-@cartouche
-glibtop_map_entry *
-glibtop_get_proc_map (glibtop_proc_map *buf, pid_t pid);
-
-glibtop_map_entry *
-glibtop_get_proc_map_l (glibtop *server, glibtop_proc_map *buf,
- pid_t pid);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_proc_map} in @file{<glibtop/procmap.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_proc_map glibtop_proc_map;
-
-struct _glibtop_proc_map
-@{
- guint64 flags,
- number,
- total,
- size;
-@};
-@end cartouche
-@end example
-
-Returns a @code{glibtop_map_entry *} list (which needs to be freed with
-@code{g_free}) of memory maps of process @code{pid}.
-
-@table @code
-@item number
-Number of entries in the returned list.
-
-@item total
-Total size of the returned list (this equals @code{number * size}).
-
-@item size
-Size of a single entry in the returned list
-(this equals @code{sizeof (glibtop_map_entry)}).
-@end table
-
-@example
-@cartouche
-typedef struct _glibtop_map_entry glibtop_map_entry;
-
-struct _glibtop_map_entry
-@{
- guint64 flags, start, end, offset, perm, inode, device;
- char filename [GLIBTOP_MAP_FILENAME_LEN+1];
-@};
-@end cartouche
-@end example
-
-The @code{flags} member is a bit field and specifies which of the other
-fields are valid:
-
-@example
-@cartouche
-#define GLIBTOP_MAP_ENTRY_START 0
-#define GLIBTOP_MAP_ENTRY_END 1
-#define GLIBTOP_MAP_ENTRY_OFFSET 2
-#define GLIBTOP_MAP_ENTRY_PERM 3
-#define GLIBTOP_MAP_ENTRY_INODE 4
-#define GLIBTOP_MAP_ENTRY_DEVICE 5
-#define GLIBTOP_MAP_ENTRY_FILENAME 6
-@end cartouche
-@end example
-
-Constants for the @code{perm} member:
-
-@example
-@cartouche
-#define GLIBTOP_MAP_PERM_READ 1
-#define GLIBTOP_MAP_PERM_WRITE 2
-#define GLIBTOP_MAP_PERM_EXECUTE 4
-#define GLIBTOP_MAP_PERM_SHARED 8
-#define GLIBTOP_MAP_PERM_PRIVATE 16
-@end cartouche
-@end example
-
-@page
-@node glibtop_netload, glibtop_ppp, glibtop_proc_map, System Dependent
-@subsection Network Load
-
-Library function @code{glibtop_get_netload}:
-
-@example
-@cartouche
-void
-glibtop_get_netload (glibtop_netload *buf, const char *interface);
-
-void
-glibtop_get_netload_l (glibtop *server, glibtop_netload *buf,
- const char *interface);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_netload} in @file{<glibtop/netload.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_netload glibtop_netload;
-
-struct _glibtop_netload
-@{
- guint64 flags,
- if_flags,
- mtu,
- subnet,
- address,
- packets_in,
- packets_out,
- packets_total,
- bytes_in,
- bytes_out,
- bytes_total,
- errors_in,
- errors_out,
- errors_total,
- collisions;
-@};
-@end cartouche
-@end example
-
-Returns network statistics for interface @code{interface} (which is the same
-than in @code{ifconfig}).
-
-@table @code
-@item if_flags
-Interface flags. See the contants defined below.
-@item mtu
-Maximum Transfer Unit (MTU)
-@item subnet
-Subnet Address
-@item address
-Interface Address
-@item packets_in
-Total number of incoming packets
-@item packets_out
-Total number of outgoing packets
-@item packets_total
-Total number of packets
-@item bytes_in
-Total number of incoming bytes
-@item bytes_out
-Total number of outgoing bytes
-@item bytes_total
-Total number of bytes
-@item errors_in
-Total number of errors in incoming direction
-@item errors_out
-Total number of errors in outgoing direction
-@item errors_total
-Total number of errors
-@item collisions
-Total number of collisions
-@end table
-
-Please note that not all operating systems distinguish between incoming/outgoing
-bytes/packets/errors - in this case only the @samp{_total} fields are valid.
-Otherwise, they're just @samp{_in} plus @samp{_out}.
-
-Constants for @code{if_flags}:
-
-@example
-@cartouche
-enum @{
- GLIBTOP_IF_FLAGS_UP = 1,
- GLIBTOP_IF_FLAGS_BROADCAST,
- GLIBTOP_IF_FLAGS_DEBUG,
- GLIBTOP_IF_FLAGS_LOOPBACK,
- GLIBTOP_IF_FLAGS_POINTOPOINT,
- GLIBTOP_IF_FLAGS_RUNNING,
- GLIBTOP_IF_FLAGS_NOARP,
- GLIBTOP_IF_FLAGS_PROMISC,
- GLIBTOP_IF_FLAGS_ALLMULTI,
- GLIBTOP_IF_FLAGS_OACTIVE,
- GLIBTOP_IF_FLAGS_SIMPLEX,
- GLIBTOP_IF_FLAGS_LINK0,
- GLIBTOP_IF_FLAGS_LINK1,
- GLIBTOP_IF_FLAGS_LINK2,
- GLIBTOP_IF_FLAGS_ALTPHYS,
- GLIBTOP_IF_FLAGS_MULTICAST
-@};
-@end cartouche
-@end example
-
-@page
-@node glibtop_ppp, , glibtop_netload, System Dependent
-@subsection PPP Statistics
-
-Library function @code{glibtop_get_ppp}:
-
-@example
-@cartouche
-void
-glibtop_get_ppp_l (glibtop *server, glibtop_ppp *buf,
- unsigned short device);
-
-void
-glibtop_get_ppp (glibtop_ppp *buf, unsigned short device);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_ppp} in @file{<glibtop/ppp.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_ppp glibtop_ppp;
-
-struct _glibtop_ppp
-@{
- guint64 flags,
- state,
- bytes_in,
- bytes_out;
-@};
-@end cartouche
-@end example
-
-@table @code
-@item bytes_in
-Number of input bytes
-@item bytes_out
-Number of output bytes
-@end table
-
-There are some constants for @code{state}:
-
-@example
-@cartouche
-enum @{
- GLIBTOP_PPP_STATE_UNKNOWN = 0,
- GLIBTOP_PPP_STATE_HANGUP,
- GLIBTOP_PPP_STATE_ONLINE
-@};
-@end cartouche
-@end example
-
-@table @code
-@item GLIBTOP_PPP_STATE_UNKNOWN
-LibGTop was unable to determine the current ppp state.
-@item GLIBTOP_PPP_STATE_HANGUP
-We're currently offline.
-@item GLIBTOP_PPP_STATE_ONLINE
-We're currently online.
-@end table
-
-@page
-@node Common Functions, Library Functions, System Dependent, Reference Manual
-@section Common Functions
-
-This are functions which a common implementation for all systems; we never
-use the server for them.
-
-The file system code is taken from GNU Fileutils.
-
-@menu
-* glibtop_mountlist:: Mount List.
-* glibtop_fsusage:: File System Usage.
-@end menu
-
-@node glibtop_mountlist, glibtop_fsusage, Common Functions, Common Functions
-@subsection Mount List
-
-Library function @code{glibtop_get_mountlist}:
-
-@example
-@cartouche
-glibtop_mountentry *
-glibtop_get_mountlist_l (glibtop *server, glibtop_mountlist *buf,
- int all_fs);
-
-glibtop_mountentry *
-glibtop_get_mountlist (glibtop_mountlist *buf, int all_fs);
-@end cartouche
-@end example
-
-The @code{all_fs} parameter specifies whether information about all
-filesystems should be returned; this will include filesystem types like
-@code{autofs} and @code{procfs}. You should not use this in disk usage
-programs, but it can be useful to get a list of all currently mounted
-filesystems.
-
-Declaration of @code{glibtop_proc_map} in @file{<glibtop/procmap.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_mountlist glibtop_mountlist;
-
-struct _glibtop_mountlist
-@{
- guint64 flags,
- number,
- total,
- size;
-@};
-@end cartouche
-@end example
-
-Returns a @code{glibtop_mountentry *} list (which needs to be freed with
-@code{g_free}) of mounted filesystems.
-
-@table @code
-@item number
-Number of entries in the returned list.
-
-@item total
-Total size of the returned list (this equals @code{number * size}).
-
-@item size
-Size of a single entry in the returned list
-(this equals @code{sizeof (glibtop_mountentry)}).
-@end table
-
-@example
-@cartouche
-typedef struct _glibtop_mountentry glibtop_mountentry;
-
-struct _glibtop_mountentry
-@{
- guint64 dev;
- char devname [GLIBTOP_MOUNTENTRY_LEN+1];
- char mountdir [GLIBTOP_MOUNTENTRY_LEN+1];
- char type [GLIBTOP_MOUNTENTRY_LEN+1];
-@};
-@end cartouche
-@end example
-
-@code{GLIBTOP_MOUNTENTRY_LEN} is defined in @file{<glibtop.h>}.
-
-@table @code
-@item devname
-Full pathname (such as @samp{/dev/sdb1} for instance) to the mounted device.
-@item mountdir
-Full pathname of the mountpoint (such as @samp{/usr/local} for instance).
-@item type
-Filesystem type as a textual string (such as @samp{ext2fs}).
-@end table
-
-@page
-@node glibtop_fsusage, , glibtop_mountlist, Common Functions
-@subsection File System Usage
-
-Library function @code{glibtop_get_fsusage}:
-
-@example
-@cartouche
-void
-glibtop_get_fsusage_l (glibtop *server, glibtop_fsusage *buf,
- const char *mount_dir);
-
-void
-glibtop_get_fsusage (glibtop_fsusage *buf, const char *mount_dir);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_fsusage} in @file{<glibtop/fsusage.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_fsusage glibtop_fsusage;
-
-struct _glibtop_fsusage
-@{
- guint64 flags,
- blocks,
- bfree,
- bavail,
- files,
- ffree;
- guint32 block_size;
- guint64 read,
- write;
-@};
-@end cartouche
-@end example
-
-@table @code
-@item blocks
-Total blocks in the filesystem.
-@item bfree
-Free blocks available to the superuser.
-@item bavail
-Free blocks available to ordinary users.
-@item files
-Total file nodes.
-@item ffree
-Free file nodes.
-@item block_size
-Block size in bytes.
-@item read
-Total blocks read.
-@item write
-Total blocks written.
-@end table
-
-@page
-@node Library Functions, , Common Functions, Reference Manual
-@section Library Functions
-
-This are general library functions which can be used to get information
-about the library and to control its behavior.
-
-@menu
-* glibtop_init:: Server Initialization.
-* glibtop_sysdeps:: Server Sysdeps.
-* Library Parameters:: Library Parameters.
-@end menu
-
-@node glibtop_init, glibtop_sysdeps, Library Functions, Library Functions
-@subsection Server Initialization
-
-You do not need to worry about the @code{glibtop *} server structure if
-you don't need - the library exports a @code{glibtop_global_server}
-which you can use everywhere a @code{glibtop *} is expected.
-
-Most of the library and all of the sysdeps function also have an alias
-(which is the function name without the @samp{_l}, @samp{_s} or @samp{_r}
-suffix) which don't take a @code{glibtop *} as argument but uses the
-@code{glibtop_global_server} instead.
-
-@example
-@cartouche
-extern glibtop *glibtop_global_server;
-@end cartouche
-@end example
-
-Library function @code{glibtop_init}:
-
-@example
-@cartouche
-glibtop *
-glibtop_init_r (glibtop **server_ptr, unsigned long features,
- unsigned flags);
-
-void
-glibtop_init (void);
-@end cartouche
-@end example
-
-This function initializes a LibGTop server. It is automatically called
-when you use any of the LibGTop functions and will use the global server
-in this case.
-
-However, it's appreciated to call @code{glibtop_init} during the
-initialization of your application.
-
-You can for instance use
-
-@example
-glibtop_init ();
-@end example
-
-@noindent
-which is equivalent to
-
-@example
-glibtop_init_r (&glibtop_global_server, 0, 0);
-@end example
-
-Please note that the @code{server_ptr} argument is a pointer to a pointer
-(and thus is of type @code{glibtop **}).
-
-To control what @code{glibtop_init} should actually do, you can use the
-@code{features} and @code{flags} arguments.
-
-The @code{features} argument is a bit-mask (interpreted in the same way
-than @samp{sysdeps.features}) and tells the library which features you're
-interested in. The library will only start the server if this is required
-for any of those features.
-
-You can use the following constants for the @code{flags} parameter to
-control the behavior of the library:
-
-@table @code
-@item GLIBTOP_INIT_NO_INIT
-Tells the library to do nothing. If the value pointed to by the
-@code{server_ptr} argument is @code{NULL}, it will set it to the
-@code{glibtop_global_server} and then return.
-@item GLIBTOP_INIT_NO_OPEN
-Do the initialization, but do not start the server.
-@end table
-
-To modify the way the @code{features} are interpretet, you can use the
-following constants for @code{flags} (as a bit mask):
-
-@table @code
-@item GLIBTOP_FEATURES_NO_SERVER
-Never use the server, always call the sysdeps code directly.
-If you require any privileges to get them and you don't have those
-privileges, the this will obviously not work and the library will
-fail to return some or all of the requested values.
-@item GLIBTOP_FEATURES_EXCEPT
-Inverts the matching of the @code{features} parameter, i.e. if you use
-this flag this means that @code{features} are all the features you are
-@emph{not} interested in.
-Might be useful to say something like "I want everything but ppp".
-@end table
-
-@node glibtop_sysdeps, Library Parameters, glibtop_init, Library Functions
-@subsection Server Sysdeps
-
-Library function @code{glibtop_get_sysdeps}:
-
-@example
-@cartouche
-void
-glibtop_get_sysdeps_r (glibtop *server, glibtop_sysdeps *buf);
-
-void
-glibtop_get_sysdeps (glibtop_sysdeps *buf);
-@end cartouche
-@end example
-
-Declaration of @code{glibtop_sysdeps} in @file{<glibtop/sysdeps.h>}:
-
-@example
-@cartouche
-typedef struct _glibtop_sysdeps glibtop_sysdeps;
-
-struct _glibtop_sysdeps
-@{
- guint64 flags,
- features,
- pointer_size,
- cpu,
- mem,
- swap,
- uptime,
- loadavg,
- shm_limits,
- msg_limits,
- sem_limits,
- proclist,
- proc_state,
- proc_uid,
- proc_mem,
- proc_time,
- proc_signal,
- proc_kernel,
- proc_segment,
- proc_args,
- proc_map,
- mountlist,
- fsusage,
- netload,
- ppp;
-@};
-@end cartouche
-@end example
-
-@table @code
-@item features
-This is a bit field (the so-called @dfn{server features}) stating
-for which features we need to use the server.
-@item pointer_size
-This was added in LibGTop 1.1.0 and tells you the number of bits a
-@code{void*} has in the server (this may be different from the
-size on the client machine if we're talking over the daemon to a
-remove machine).
-@end table
-
-The following constants from @file{<glibtop/sysdeps.h>} serve as bit-indices
-for the @code{features} field:
-
-@example
-@cartouche
-#define GLIBTOP_SYSDEPS_CPU 0
-#define GLIBTOP_SYSDEPS_MEM 1
-#define GLIBTOP_SYSDEPS_SWAP 2
-#define GLIBTOP_SYSDEPS_UPTIME 3
-#define GLIBTOP_SYSDEPS_LOADAVG 4
-#define GLIBTOP_SYSDEPS_SHM_LIMITS 5
-#define GLIBTOP_SYSDEPS_MSG_LIMITS 6
-#define GLIBTOP_SYSDEPS_SEM_LIMITS 7
-#define GLIBTOP_SYSDEPS_PROCLIST 8
-#define GLIBTOP_SYSDEPS_PROC_STATE 9
-#define GLIBTOP_SYSDEPS_PROC_UID 10
-#define GLIBTOP_SYSDEPS_PROC_MEM 11
-#define GLIBTOP_SYSDEPS_PROC_TIME 12
-#define GLIBTOP_SYSDEPS_PROC_SIGNAL 13
-#define GLIBTOP_SYSDEPS_PROC_KERNEL 14
-#define GLIBTOP_SYSDEPS_PROC_SEGMENT 15
-#define GLIBTOP_SYSDEPS_PROC_ARGS 16
-#define GLIBTOP_SYSDEPS_PROC_MAP 17
-#define GLIBTOP_SYSDEPS_MOUNTLIST 18
-#define GLIBTOP_SYSDEPS_FSUSAGE 19
-#define GLIBTOP_SYSDEPS_NETLOAD 20
-#define GLIBTOP_SYSDEPS_PPP 21
-@end cartouche
-@end example
-
-@node Library Parameters, , glibtop_sysdeps, Library Functions
-@subsection Library Parameters
-
-Library function @code{glibtop_get_parameter}:
-
-@example
-@cartouche
-size_t
-glibtop_get_parameter_l (glibtop *server, const unsigned parameter,
- void *data_ptr, size_t data_size);
-
-size_t
-glibtop_get_parameter (const unsigned parameter, void *data_ptr,
- size_t data_size);
-@end cartouche
-@end example
-
-This function is used to retrieve a library parameter (see below for a more
-detailed description). It returns the size of the retrieved parameter on
-success, zero on failure or minus the actual size of the parameter if
-@code{data_size} was too small.
-
-You may call this function with @code{data_ptr} set to @code{NULL} to get the
-actual size of a parameter (as a negative value).
-
-@table @code
-@item parameter
-The parameter you want to retrieve (see below for constants).
-@item data_ptr
-Pointer to a place where the parameter should be stored.
-@item data_size
-Maximum size of the parameter.
-@end table
-
-Library function @code{glibtop_set_parameter}:
-
-@example
-@cartouche
-void
-glibtop_set_parameter_l (glibtop *server, const unsigned parameter,
- const void *data_ptr, size_t data_size);
-
-void
-glibtop_set_parameter (const unsigned parameter, const void *data_ptr,
- size_t data_size);
-@end cartouche
-@end example
-
-This function is used to modify a library parameter. Please not that you
-may not set all parameters since some of them are read-only.
-
-@table @code
-@item parameter
-The parameter you want to modify (see below for constants).
-@item data_ptr
-Pointer to the value which should be set.
-@item data_size
-Size of the new value. For fixed-size parameters, this must match
-the exact size of the parameter or you'll get an error.
-@end table
-
-The following parameters are defined in @file{<glibtop/parameter.h>}:
-
-@table @code
-@item GLIBTOP_PARAM_FEATURES
-This is a read-only @code{unsigned long} representing the @code{features}
-field of @code{glibtop_sysdeps}.
-@item GLIBTOP_PARAM_REQUIRED
-This is a @code{glibtop_sysdeps} structure specifying which features the
-client requires the library return. If it fails to get any of them, you'll
-get an error.
-@item GLIBTOP_PARAM_ERROR_METHOD
-This is an @code{unsigned} telling the library what to do if it fails to
-get any of the features that are marked as required via the
-@code{GLIBTOP_PARAM_REQUIRED} parameter (see below for constants).
-@end table
-
-You can use the following constants for @code{GLIBTOP_PARAM_ERROR_METHOD}
-(defined in @file{<glibtop/open.h>}):
-
-@table @code
-@item GLIBTOP_ERROR_METHOD_IGNORE
-Ignore the error condition.
-@item GLIBTOP_ERROR_METHOD_WARN_ONCE
-Warn once about the absense of some of the required features, then modify
-@code{GLIBTOP_PARAM_REQUIRED} so that the missing ones are no longer
-required. This is the prefered value for applications since it'll only
-print out the warning message once and not each time the library tries to
-get one of those features.
-@item GLIBTOP_ERROR_METHOD_WARN
-Warn each time the library fails to get some of the required features.
-@item GLIBTOP_ERROR_METHOD_ABORT
-Abort if the library fails to get some of the required features. This
-should not be used by applications.
-@end table
-
diff --git a/doc/reference/Makefile.am b/doc/reference/Makefile.am
deleted file mode 100644
index 91451884..00000000
--- a/doc/reference/Makefile.am
+++ /dev/null
@@ -1,59 +0,0 @@
-AUTOMAKE_OPTIONS = 1.6
-## Process this file with automake to produce Makefile.in
-# The name of the module, e.g. 'glib'.
-DOC_MODULE=libgtop
-
-# The top-level SGML file. You can change this if you want to.
-DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
-
-# Extra options to pass to gtkdoc-scangobj. Not normally needed.
-# SCANGOBJ_OPTIONS=
-
-# Extra options to supply to gtkdoc-scan.
-# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
-SCAN_OPTIONS=
-
-# Extra options to supply to gtkdoc-mkdb.
-# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml
-MKDB_OPTIONS=--sgml-mode --output-format=xml --source-dir=$(top_srcdir)/sysdeps/common
-
-# The directory containing the source code. Relative to $(srcdir).
-# gtk-doc will search all .c & .h files beneath here for inline comments
-# documenting the functions and macros.
-# e.g. DOC_SOURCE_DIR=../../../gtk
-DOC_SOURCE_DIR=$(top_srcdir)/include/glibtop
-
-# Used for dependencies. The docs will be rebuilt if any of these change.
-# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
-# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
-HFILE_GLOB=$(top_srcdir)/include/glibtop/*.h
-CFILE_GLOB=$(top_srcdir)/sysdeps/common/*.c
-
-# Header files to ignore when scanning.
-# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
-IGNORE_HFILES=error.h global.h gnuserv.h init_hooks.h write.h read.h read_data.h config.h libgtopconfig.h
-
-EXTRA_HFILES=$(top_srcdir)/glibtop.h
-
-# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
-# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
-content_files=version.xml
-
-# Images to copy into HTML directory.
-# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
-HTML_IMAGES=
-
-# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
-# Only needed if you are using gtkdoc-scangobj to dynamically query widget
-# signals and properties.
-# e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
-# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
-INCLUDES=
-GTKDOC_LIBS=
-
-# This includes the standard gtk-doc make rules, copied by gtkdocize.
-include $(top_srcdir)/gtk-doc.make
-
-# Other files to distribute
-# e.g. EXTRA_DIST += version.xml.in
-EXTRA_DIST += version.xml.in
diff --git a/doc/reference/libgtop-docs.xml b/doc/reference/libgtop-docs.xml
deleted file mode 100644
index 63aef34e..00000000
--- a/doc/reference/libgtop-docs.xml
+++ /dev/null
@@ -1,206 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
-<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
- <bookinfo>
- <title>Libgtop Reference Manual</title>
- <releaseinfo>for libgtop <xi:include href="version.xml"/></releaseinfo>
- <authorgroup>
- <author>
- <firstname>Martin </firstname>
- <surname>Baulig</surname>
- <affiliation>
- <address>
- <email>martin@home-of-linux.org</email>
- </address>
- </affiliation>
- </author>
- <author>
- <firstname>Germ&#225;n</firstname>
- <surname>Po&#243;-Caama&#241;o</surname>
- <affiliation>
- <address>
- <email>gpoo@ubiobio.cl</email>
- </address>
- </affiliation>
- </author>
- </authorgroup>
-
- <legalnotice>
- <para>Permission is granted to copy, distribute and/or modify
- this document under the terms of the <citetitle>GNU Free
- Documentation License</citetitle>, Version 1.1 or any later
- version published by the Free Software Foundation with no
- Invariant Sections, no Front-Cover Texts, and no Back-Cover
- Texts. You may obtain a copy of the <citetitle>GNU Free
- Documentation License</citetitle> from the Free Software
- Foundation by visiting <ulink type="http"
- url="http://www.fsf.org">their Web site</ulink> or by writing
- to: Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.</para>
-
- <para>Many of the names used by companies to distinguish their
- products and services are claimed as trademarks. Where those
- names appear in any GNOME documentation, and those trademarks
- are made aware to the members of the GNOME Documentation
- Project, the names have been printed in caps or initial
- caps.</para>
- </legalnotice>
-
- <abstract>
- <para>
- LibGTop is a library to get system specific data such as CPU and
- Memory Usage and information about running Processes.</para>
-
- <para>On Systems like Solaris or Digital Unix where you need special
- privileges to get those data, it uses a setuid/setgid server to do
- so.</para>
-
- <para>Even if LibGTop is a part of the GNOME desktop environment
- (@uref{http://www.gnome.org}), the main interface of LibGTop is totally
- independent from any particular desktop environment, so you can also
- use it as a standalone library in any piece of GPLed software.</para>
-
- <para>This manual documents the interfaces of the libgtop
- library and has some short notes to help get you up to speed
- with using the library.</para>
- </abstract>
- </bookinfo>
-
- <!--FIXME: It is missing the rest of about.texi -->
-
- <chapter id="libgtop-white-paper">
- <title>White paper</title>
-
- <sect1 id="libgtop-white-paper-introduction">
- <title>Introduction</title>
- <para>Many modern UNIX systems like Solaris, BSD or Digitial Unix
- only allow priviledged processes to read information like CPU and
- Memory Usage or information about running processes.</para>
-
- <itemizedlist>
- <listitem><para>
- BSD, for instance, doesn't have any other way to get those data than reading
- directly from @file{/dev/kmem} and you need to be in the @code{kmem} group to
- be able to read this.</para></listitem>
-
- <listitem><para>
- Other systems, like Digital Unix, allow all users to get things like CPU and
- Memory statistics, but only root may read information about any process other
- than the current one (you may not even get information about your own processes
- if you're not root).</para></listitem>
-
- <listitem><para>
- Linux has a very nice @file{/proc} filesystem, but reading and parsing
- @file{/proc} is very slow and inefficient.</para></listitem>
-
- <listitem><para>
- Solaris is a bit better, but you still need to be in the @code{sys} group or
- even root to get some data.</para></listitem>
- </itemizedlist>
-
- <para>
- Because of this system utilities like @code{ps}, @code{uptime} or @code{top}
- often are setgid kmem or setuid root. Usually, they're also very specific to
- the system they're written for and not easily portable to other systems without
- a lot of work.</para>
-
- <para>
- This, of cause, becomes a problem for graphical tools like @code{gtop} - making
- a GTK+ program setgid or even setuid would be a security hole as big as you can
- drive the entire X11 source code through. For the GNOME project, we also needed
- some kind of library which provides all the required information in a portable
- since there's more than just one single program that wants to use them - for
- instance @code{gtop} and the @code{multiload}, @code{cpumemusage} and
- @code{netload} panel applets.</para>
-
- </sect1>
-
- <sect1 id="libgtop-white-paper-overview">
- <title>Overview</title>
- <para>This section should give you a short overview on how LibGTop
- was developed, which things needed to be considered and how it
- works.</para>
-
- <sect2 id="libgtop-white-paper-overview-design">
- <title>Interface Design: Things that need to be considered</title>
- <para>
-At the very beginning, it was necessary to collect all the data the library part
-should provide and put them into some C structures. This was not that easiy as it
-might sound since LibGTop should be portable to any modern UNIX system with a common
-library part on all those systems, but the data that should be returned vary from
-system to system. For instance some systems support shared memory, but some others
-may not.</para>
-
- <para>
-The header files where we define these C structures (which are system-independent) are
-shared between client and server. This way we can call the system dependent code
-directly where we do not need any special privileges to do so.</para>
-
- <para>
-All of those structures contain a @code{flags} member which is interpreted as a bit
-mask and tells the caller of the library functions which of the fields in the returned
-structure are valid and which are not.</para>
- </sect2>
-
- <sect2 id="libgtop-white-paper-overview-server">
- <title>Server Implementation: The LibGTop "server"</title>
- <para>
-The LibGTop @dfn{server} is a setgid/setuid binary which contains all the system
-dependent code which needs special privileges. It is only build if it's required
-on the current system (for instance, the Linux kernel provides all the required
-data via its @file{/proc} filesystem so we do not need the server at all) and it
-only contains the @dfn{features} which need privileges.</para>
-
- <para>
-Whenever we do not need any privileges to get all the data for some of the requested
-structures (here called @dfn{features}) the library calls the sysdeps code directly
-rather than using the server.</para>
- </sect2>
- </sect1>
-
- </chapter>
-
- <chapter id="libgtop-lib">
- <title>Libgtop Library Reference</title>
-
- <para>This section contains the API reference for libgtop. All
- the public interfaces are documented here.</para>
-
- <xi:include href="xml/glibtop.xml"/>
- <xi:include href="xml/close.xml"/>
- <xi:include href="xml/command.xml"/>
- <xi:include href="xml/glibtop-server.xml"/>
- <xi:include href="xml/netload.xml"/>
- <xi:include href="xml/ppp.xml"/>
- <xi:include href="xml/shm_limits.xml"/>
- <xi:include href="xml/uptime.xml"/>
- <xi:include href="xml/netlist.xml"/>
- <xi:include href="xml/open.xml"/>
- <xi:include href="xml/parameter.xml"/>
- <xi:include href="xml/procargs.xml"/>
- <xi:include href="xml/procmem.xml"/>
- <xi:include href="xml/procopenfiles.xml"/>
- <xi:include href="xml/procsegment.xml"/>
- <xi:include href="xml/procsignal.xml"/>
- <xi:include href="xml/sysdeps.xml"/>
- <xi:include href="xml/procstate.xml"/>
- <xi:include href="xml/procuid.xml"/>
- <xi:include href="xml/proctime.xml"/>
- <xi:include href="xml/signal.xml"/>
- <xi:include href="xml/procmap.xml"/>
- <xi:include href="xml/sysinfo.xml"/>
- <xi:include href="xml/union.xml"/>
- <xi:include href="xml/version.xml"/>
- <xi:include href="xml/proclist.xml"/>
- <xi:include href="xml/sem_limits.xml"/>
- <xi:include href="xml/prockernel.xml"/>
- <xi:include href="xml/fsusage.xml"/>
- <xi:include href="xml/loadavg.xml"/>
- <xi:include href="xml/mem.xml"/>
- <xi:include href="xml/mountlist.xml"/>
- <xi:include href="xml/msg_limits.xml"/>
- <xi:include href="xml/cpu.xml"/>
- <xi:include href="xml/swap.xml"/>
- </chapter>
-</book>
diff --git a/doc/reference/libgtop-overrides.txt b/doc/reference/libgtop-overrides.txt
deleted file mode 100644
index e69de29b..00000000
--- a/doc/reference/libgtop-overrides.txt
+++ /dev/null
diff --git a/doc/reference/libgtop-sections.txt b/doc/reference/libgtop-sections.txt
deleted file mode 100644
index 0d99d695..00000000
--- a/doc/reference/libgtop-sections.txt
+++ /dev/null
@@ -1,736 +0,0 @@
-<INCLUDE>glibtop.h</INCLUDE>
-<SECTION>
-<FILE>glibtop</FILE>
-<TITLE>GlibTop</TITLE>
-GLIBTOP_MOUNTENTRY_LEN
-LIBGTOP_CHECK_VERSION
-glibtop
-glibtop_global_server
-glibtop_init
-glibtop_init_r
-glibtop_init_s
-glibtop_server_features
-</SECTION>
-
-<INCLUDE>glibtop/close.h</INCLUDE>
-<SECTION>
-<FILE>close</FILE>
-<TITLE>Close</TITLE>
-glibtop_close
-glibtop_close_r
-glibtop_close_s
-glibtop_close_p
-</SECTION>
-
-<INCLUDE>glibtop/command.h</INCLUDE>
-<SECTION>
-<FILE>command</FILE>
-<TITLE>Command</TITLE>
-GLIBTOP_CMND_QUIT
-GLIBTOP_CMND_SYSDEPS
-GLIBTOP_CMND_CPU
-GLIBTOP_CMND_MEM
-GLIBTOP_CMND_SWAP
-GLIBTOP_CMND_UPTIME
-GLIBTOP_CMND_LOADAVG
-GLIBTOP_CMND_SHM_LIMITS
-GLIBTOP_CMND_MSG_LIMITS
-GLIBTOP_CMND_SEM_LIMITS
-GLIBTOP_CMND_PROCLIST
-GLIBTOP_CMND_PROC_STATE
-GLIBTOP_CMND_PROC_UID
-GLIBTOP_CMND_PROC_MEM
-GLIBTOP_CMND_PROC_TIME
-GLIBTOP_CMND_PROC_SIGNAL
-GLIBTOP_CMND_PROC_KERNEL
-GLIBTOP_CMND_PROC_SEGMENT
-GLIBTOP_CMND_PROC_ARGS
-GLIBTOP_CMND_PROC_MAP
-GLIBTOP_CMND_MOUNTLIST
-GLIBTOP_CMND_FSUSAGE
-GLIBTOP_CMND_NETLOAD
-GLIBTOP_CMND_PPP
-GLIBTOP_CMND_NETLIST
-GLIBTOP_CMND_PROC_OPEN_FILES
-GLIBTOP_MAX_CMND
-glibtop_command
-glibtop_response
-glibtop_response_union
-glibtop_call
-glibtop_call_l
-glibtop_call_s
-</SECTION>
-
-<INCLUDE>glibtop/glibtop-server.h</INCLUDE>
-<SECTION>
-<FILE>glibtop-server</FILE>
-<TITLE>GlibTop Server</TITLE>
-glibtop_server
-glibtop_server_info
-glibtop_closure
-glibtop_server_new
-glibtop_server_ref
-glibtop_server_unref
-</SECTION>
-
-<INCLUDE>glibtop/netload.h</INCLUDE>
-<SECTION>
-<FILE>netload</FILE>
-<TITLE>Net Load</TITLE>
-GLIBTOP_NETLOAD_IF_FLAGS
-GLIBTOP_NETLOAD_MTU
-GLIBTOP_NETLOAD_SUBNET
-GLIBTOP_NETLOAD_ADDRESS
-GLIBTOP_NETLOAD_PACKETS_IN
-GLIBTOP_NETLOAD_PACKETS_OUT
-GLIBTOP_NETLOAD_PACKETS_TOTAL
-GLIBTOP_NETLOAD_BYTES_IN
-GLIBTOP_NETLOAD_BYTES_OUT
-GLIBTOP_NETLOAD_BYTES_TOTAL
-GLIBTOP_NETLOAD_ERRORS_IN
-GLIBTOP_NETLOAD_ERRORS_OUT
-GLIBTOP_NETLOAD_ERRORS_TOTAL
-GLIBTOP_NETLOAD_COLLISIONS
-GLIBTOP_NETLOAD_ADDRESS6
-GLIBTOP_NETLOAD_PREFIX6
-GLIBTOP_NETLOAD_SCOPE6
-GLIBTOP_NETLOAD_HWADDRESS
-GLIBTOP_MAX_NETLOAD
-glibtop_netload
-glibtop_get_netload
-glibtop_get_netload_r
-glibtop_get_netload_l
-glibtop_init_netload_p
-glibtop_get_netload_p
-glibtop_init_netload_s
-glibtop_get_netload_s
-</SECTION>
-
-<INCLUDE>glibtop/ppp.h</INCLUDE>
-<SECTION>
-<FILE>ppp</FILE>
-<TITLE>PPP</TITLE>
-GLIBTOP_PPP_STATE
-GLIBTOP_PPP_BYTES_IN
-GLIBTOP_PPP_BYTES_OUT
-GLIBTOP_MAX_PPP
-glibtop_ppp
-glibtop_get_ppp
-glibtop_get_ppp_r
-glibtop_get_ppp_l
-glibtop_init_ppp_p
-glibtop_get_ppp_p
-glibtop_init_ppp_s
-glibtop_get_ppp_s
-</SECTION>
-
-<INCLUDE>glibtop/shm_limits.h</INCLUDE>
-<SECTION>
-<FILE>shm_limits</FILE>
-<TITLE>Shared Memory Limits</TITLE>
-GLIBTOP_IPC_SHMMAX
-GLIBTOP_IPC_SHMMIN
-GLIBTOP_IPC_SHMMNI
-GLIBTOP_IPC_SHMSEG
-GLIBTOP_IPC_SHMALL
-GLIBTOP_MAX_SHM_LIMITS
-glibtop_shm_limits
-glibtop_get_shm_limits
-glibtop_get_shm_limits_r
-glibtop_get_shm_limits_l
-glibtop_init_shm_limits_p
-glibtop_get_shm_limits_p
-glibtop_init_shm_limits_s
-glibtop_get_shm_limits_s
-</SECTION>
-
-<INCLUDE>glibtop/uptime.h</INCLUDE>
-<SECTION>
-<FILE>uptime</FILE>
-<TITLE>Uptime</TITLE>
-GLIBTOP_UPTIME_UPTIME
-GLIBTOP_UPTIME_IDLETIME
-GLIBTOP_UPTIME_BOOT_TIME
-GLIBTOP_MAX_UPTIME
-glibtop_uptime
-glibtop_get_uptime
-glibtop_get_uptime_r
-glibtop_get_uptime_l
-glibtop_init_uptime_p
-glibtop_get_uptime_p
-glibtop_init_uptime_s
-glibtop_get_uptime_s
-</SECTION>
-
-<INCLUDE>glibtop/netlist.h</INCLUDE>
-<SECTION>
-<FILE>netlist</FILE>
-<TITLE>Net List</TITLE>
-GLIBTOP_NETLIST_NUMBER
-GLIBTOP_MAX_NETLIST
-glibtop_netlist
-glibtop_get_netlist
-glibtop_get_netlist_r
-glibtop_get_netlist_l
-glibtop_init_netlist_p
-glibtop_get_netlist_p
-glibtop_init_netlist_s
-glibtop_get_netlist_s
-</SECTION>
-
-<INCLUDE>glibtop/open.h</INCLUDE>
-<SECTION>
-<FILE>open</FILE>
-GLIBTOP_INIT_NO_OPEN
-GLIBTOP_INIT_NO_INIT
-GLIBTOP_FEATURES_NO_SERVER
-GLIBTOP_FEATURES_EXCEPT
-GLIBTOP_METHOD_DIRECT
-GLIBTOP_METHOD_PIPE
-GLIBTOP_METHOD_INET
-GLIBTOP_METHOD_UNIX
-GLIBTOP_ERROR_METHOD_IGNORE
-GLIBTOP_ERROR_METHOD_WARN_ONCE
-GLIBTOP_ERROR_METHOD_WARN
-GLIBTOP_ERROR_METHOD_ABORT
-GLIBTOP_ERROR_METHOD_DEFAULT
-glibtop_open_l
-glibtop_init_p
-glibtop_open_p
-glibtop_open_s
-</SECTION>
-
-<INCLUDE>glibtop/parameter.h</INCLUDE>
-<SECTION>
-<FILE>parameter</FILE>
-GLIBTOP_PARAM_METHOD
-GLIBTOP_PARAM_FEATURES
-GLIBTOP_PARAM_COMMAND
-GLIBTOP_PARAM_HOST
-GLIBTOP_PARAM_PORT
-GLIBTOP_PARAM_ERROR_METHOD
-GLIBTOP_PARAM_REQUIRED
-glibtop_get_parameter
-glibtop_set_parameter
-glibtop_get_parameter_l
-glibtop_set_parameter_l
-</SECTION>
-
-<INCLUDE>glibtop/procargs.h</INCLUDE>
-<SECTION>
-<FILE>procargs</FILE>
-GLIBTOP_PROC_ARGS_SIZE
-GLIBTOP_MAX_PROC_ARGS
-glibtop_proc_args
-glibtop_get_proc_args_l
-glibtop_get_proc_args
-glibtop_get_proc_args_r
-glibtop_init_proc_args_p
-glibtop_get_proc_args_p
-glibtop_init_proc_args_s
-glibtop_get_proc_args_s
-glibtop_get_proc_argv_l
-glibtop_get_proc_argv
-</SECTION>
-
-<INCLUDE>glibtop/procmem.h</INCLUDE>
-<SECTION>
-<FILE>procmem</FILE>
-GLIBTOP_PROC_MEM_SIZE
-GLIBTOP_PROC_MEM_VSIZE
-GLIBTOP_PROC_MEM_RESIDENT
-GLIBTOP_PROC_MEM_SHARE
-GLIBTOP_PROC_MEM_RSS
-GLIBTOP_PROC_MEM_RSS_RLIM
-GLIBTOP_MAX_PROC_MEM
-glibtop_proc_mem
-glibtop_get_proc_mem
-glibtop_get_proc_mem_r
-glibtop_get_proc_mem_l
-glibtop_init_proc_mem_p
-glibtop_get_proc_mem_p
-glibtop_init_proc_mem_s
-glibtop_get_proc_mem_s
-</SECTION>
-
-<INCLUDE>glibtop/procopenfiles.h</INCLUDE>
-<SECTION>
-<FILE>procopenfiles</FILE>
-GLIBTOP_PROC_OPEN_FILES_NUMBER
-GLIBTOP_PROC_OPEN_FILES_TOTAL
-GLIBTOP_PROC_OPEN_FILES_SIZE
-GLIBTOP_MAX_PROC_OPEN_FILES
-GLIBTOP_FILE_ENTRY_FD
-GLIBTOP_FILE_ENTRY_NAME
-GLIBTOP_FILE_ENTRY_TYPE
-GLIBTOP_FILE_ENTRY_INETSOCKET_DST_HOST
-GLIBTOP_FILE_ENTRY_INETSOCKET_DST_PORT
-GLIBTOP_MAX_OPEN_FILE_ENTRY
-GLIBTOP_OPEN_FILENAME_LEN
-GLIBTOP_OPEN_DEST_HOST_LEN
-glibtop_open_files_entry
-glibtop_proc_open_files
-glibtop_get_proc_open_files
-glibtop_get_proc_open_files_r
-glibtop_get_proc_open_files_l
-glibtop_init_proc_open_files_p
-glibtop_get_proc_open_files_p
-glibtop_init_proc_open_files_s
-glibtop_get_proc_open_files_s
-</SECTION>
-
-<INCLUDE>glibtop/procsegment.h</INCLUDE>
-<SECTION>
-<FILE>procsegment</FILE>
-GLIBTOP_PROC_SEGMENT_TEXT_RSS
-GLIBTOP_PROC_SEGMENT_SHLIB_RSS
-GLIBTOP_PROC_SEGMENT_DATA_RSS
-GLIBTOP_PROC_SEGMENT_STACK_RSS
-GLIBTOP_PROC_SEGMENT_DIRTY_SIZE
-GLIBTOP_PROC_SEGMENT_START_CODE
-GLIBTOP_PROC_SEGMENT_END_CODE
-GLIBTOP_PROC_SEGMENT_START_STACK
-GLIBTOP_MAX_PROC_SEGMENT
-glibtop_proc_segment
-glibtop_get_proc_segment
-glibtop_get_proc_segment_r
-glibtop_get_proc_segment_l
-glibtop_init_proc_segment_p
-glibtop_get_proc_segment_p
-glibtop_init_proc_segment_s
-glibtop_get_proc_segment_s
-</SECTION>
-
-<INCLUDE>glibtop/procsignal.h</INCLUDE>
-<SECTION>
-<FILE>procsignal</FILE>
-GLIBTOP_PROC_SIGNAL_SIGNAL
-GLIBTOP_PROC_SIGNAL_BLOCKED
-GLIBTOP_PROC_SIGNAL_SIGIGNORE
-GLIBTOP_PROC_SIGNAL_SIGCATCH
-GLIBTOP_MAX_PROC_SIGNAL
-glibtop_proc_signal
-glibtop_get_proc_signal
-glibtop_get_proc_signal_r
-glibtop_get_proc_signal_l
-glibtop_init_proc_signal_p
-glibtop_get_proc_signal_p
-glibtop_init_proc_signal_s
-glibtop_get_proc_signal_s
-</SECTION>
-
-<INCLUDE>glibtop/sysdeps.h</INCLUDE>
-<SECTION>
-<FILE>sysdeps</FILE>
-GLIBTOP_SYSDEPS_FEATURES
-GLIBTOP_SYSDEPS_CPU
-GLIBTOP_SYSDEPS_MEM
-GLIBTOP_SYSDEPS_SWAP
-GLIBTOP_SYSDEPS_UPTIME
-GLIBTOP_SYSDEPS_LOADAVG
-GLIBTOP_SYSDEPS_SHM_LIMITS
-GLIBTOP_SYSDEPS_MSG_LIMITS
-GLIBTOP_SYSDEPS_SEM_LIMITS
-GLIBTOP_SYSDEPS_PROCLIST
-GLIBTOP_SYSDEPS_PROC_STATE
-GLIBTOP_SYSDEPS_PROC_UID
-GLIBTOP_SYSDEPS_PROC_MEM
-GLIBTOP_SYSDEPS_PROC_TIME
-GLIBTOP_SYSDEPS_PROC_SIGNAL
-GLIBTOP_SYSDEPS_PROC_KERNEL
-GLIBTOP_SYSDEPS_PROC_SEGMENT
-GLIBTOP_SYSDEPS_PROC_ARGS
-GLIBTOP_SYSDEPS_PROC_MAP
-GLIBTOP_SYSDEPS_MOUNTLIST
-GLIBTOP_SYSDEPS_FSUSAGE
-GLIBTOP_SYSDEPS_NETLOAD
-GLIBTOP_SYSDEPS_PPP
-GLIBTOP_SYSDEPS_NETLIST
-GLIBTOP_SYSDEPS_PROC_OPEN_FILES
-GLIBTOP_MAX_SYSDEPS
-GLIBTOP_SYSDEPS_ALL
-glibtop_sysdeps
-glibtop_get_sysdeps
-glibtop_get_sysdeps_r
-</SECTION>
-
-<INCLUDE>glibtop/procstate.h</INCLUDE>
-<SECTION>
-<FILE>procstate</FILE>
-GLIBTOP_PROC_STATE_CMD
-GLIBTOP_PROC_STATE_STATE
-GLIBTOP_PROC_STATE_UID
-GLIBTOP_PROC_STATE_GID
-GLIBTOP_PROC_STATE_RUID
-GLIBTOP_PROC_STATE_RGID
-GLIBTOP_PROC_STATE_HAS_CPU
-GLIBTOP_PROC_STATE_PROCESSOR
-GLIBTOP_PROC_STATE_LAST_PROCESSOR
-GLIBTOP_MAX_PROC_STATE
-GLIBTOP_PROCESS_RUNNING
-GLIBTOP_PROCESS_INTERRUPTIBLE
-GLIBTOP_PROCESS_UNINTERRUPTIBLE
-GLIBTOP_PROCESS_ZOMBIE
-GLIBTOP_PROCESS_STOPPED
-GLIBTOP_PROCESS_SWAPPING
-GLIBTOP_PROCESS_DEAD
-glibtop_proc_state
-glibtop_get_proc_state
-glibtop_get_proc_state_r
-glibtop_get_proc_state_l
-glibtop_init_proc_state_p
-glibtop_get_proc_state_p
-glibtop_init_proc_state_s
-glibtop_get_proc_state_s
-</SECTION>
-
-<INCLUDE>glibtop/procuid.h</INCLUDE>
-<SECTION>
-<FILE>procuid</FILE>
-GLIBTOP_PROC_UID_UID
-GLIBTOP_PROC_UID_EUID
-GLIBTOP_PROC_UID_GID
-GLIBTOP_PROC_UID_EGID
-GLIBTOP_PROC_UID_SUID
-GLIBTOP_PROC_UID_SGID
-GLIBTOP_PROC_UID_FSUID
-GLIBTOP_PROC_UID_FSGID
-GLIBTOP_PROC_UID_PID
-GLIBTOP_PROC_UID_PPID
-GLIBTOP_PROC_UID_PGRP
-GLIBTOP_PROC_UID_SESSION
-GLIBTOP_PROC_UID_TTY
-GLIBTOP_PROC_UID_TPGID
-GLIBTOP_PROC_UID_PRIORITY
-GLIBTOP_PROC_UID_NICE
-GLIBTOP_PROC_UID_NGROUPS
-GLIBTOP_PROC_UID_GROUPS
-GLIBTOP_MAX_PROC_UID
-glibtop_proc_uid
-GLIBTOP_MAX_GROUPS
-glibtop_get_proc_uid
-glibtop_get_proc_uid_r
-glibtop_get_proc_uid_l
-glibtop_init_proc_uid_p
-glibtop_get_proc_uid_p
-glibtop_init_proc_uid_s
-glibtop_get_proc_uid_s
-</SECTION>
-
-<INCLUDE>glibtop/proctime.h</INCLUDE>
-<SECTION>
-<FILE>proctime</FILE>
-GLIBTOP_PROC_TIME_START_TIME
-GLIBTOP_PROC_TIME_RTIME
-GLIBTOP_PROC_TIME_UTIME
-GLIBTOP_PROC_TIME_STIME
-GLIBTOP_PROC_TIME_CUTIME
-GLIBTOP_PROC_TIME_CSTIME
-GLIBTOP_PROC_TIME_TIMEOUT
-GLIBTOP_PROC_TIME_IT_REAL_VALUE
-GLIBTOP_PROC_TIME_FREQUENCY
-GLIBTOP_PROC_TIME_XCPU_UTIME
-GLIBTOP_PROC_TIME_XCPU_STIME
-GLIBTOP_MAX_PROC_TIME
-glibtop_proc_time
-glibtop_get_proc_time
-glibtop_get_proc_time_r
-glibtop_get_proc_time_l
-glibtop_init_proc_time_p
-glibtop_get_proc_time_p
-glibtop_init_proc_time_s
-glibtop_get_proc_time_s
-</SECTION>
-
-<INCLUDE>glibtop/signal.h</INCLUDE>
-<SECTION>
-<FILE>signal</FILE>
-glibtop_signame
-</SECTION>
-
-<INCLUDE>glibtop/procmap.h</INCLUDE>
-<SECTION>
-<FILE>procmap</FILE>
-GLIBTOP_PROC_MAP_NUMBER
-GLIBTOP_PROC_MAP_TOTAL
-GLIBTOP_PROC_MAP_SIZE
-GLIBTOP_MAX_PROC_MAP
-GLIBTOP_MAP_ENTRY_START
-GLIBTOP_MAP_ENTRY_END
-GLIBTOP_MAP_ENTRY_OFFSET
-GLIBTOP_MAP_ENTRY_PERM
-GLIBTOP_MAP_ENTRY_INODE
-GLIBTOP_MAP_ENTRY_DEVICE
-GLIBTOP_MAP_ENTRY_FILENAME
-GLIBTOP_MAP_ENTRY_SIZE
-GLIBTOP_MAP_ENTRY_RSS
-GLIBTOP_MAP_ENTRY_SHARED_CLEAN
-GLIBTOP_MAP_ENTRY_SHARED_DIRTY
-GLIBTOP_MAP_ENTRY_PRIVATE_CLEAN
-GLIBTOP_MAP_ENTRY_PRIVATE_DIRTY
-GLIBTOP_MAX_MAP_ENTRY
-GLIBTOP_MAP_FILENAME_LEN
-GLIBTOP_MAP_PERM_READ
-GLIBTOP_MAP_PERM_WRITE
-GLIBTOP_MAP_PERM_EXECUTE
-GLIBTOP_MAP_PERM_SHARED
-GLIBTOP_MAP_PERM_PRIVATE
-glibtop_map_entry
-glibtop_proc_map
-glibtop_get_proc_map
-glibtop_get_proc_map_r
-glibtop_get_proc_map_l
-glibtop_init_proc_map_p
-glibtop_get_proc_map_p
-glibtop_init_proc_map_s
-glibtop_get_proc_map_s
-</SECTION>
-
-<INCLUDE>glibtop/sysinfo.h</INCLUDE>
-<SECTION>
-<FILE>sysinfo</FILE>
-GLIBTOP_SYSINFO_NCPU
-GLIBTOP_SYSINFO_CPUINFO
-GLIBTOP_MAX_SYSINFO
-glibtop_sysinfo
-glibtop_entry
-glibtop_get_sysinfo_r
-glibtop_get_sysinfo_s
-glibtop_get_sysinfo
-</SECTION>
-
-<INCLUDE>glibtop/union.h</INCLUDE>
-<SECTION>
-<FILE>union</FILE>
-glibtop_union
-</SECTION>
-
-<INCLUDE>glibtop/version.h</INCLUDE>
-<SECTION>
-<FILE>version</FILE>
-LIBGTOP_VERSION_STRING
-glibtop_send_version
-</SECTION>
-
-<INCLUDE>glibtop/proclist.h</INCLUDE>
-<SECTION>
-<FILE>proclist</FILE>
-GLIBTOP_PROCLIST_NUMBER
-GLIBTOP_PROCLIST_TOTAL
-GLIBTOP_PROCLIST_SIZE
-GLIBTOP_MAX_PROCLIST
-GLIBTOP_KERN_PROC_ALL
-GLIBTOP_KERN_PROC_PID
-GLIBTOP_KERN_PROC_PGRP
-GLIBTOP_KERN_PROC_SESSION
-GLIBTOP_KERN_PROC_TTY
-GLIBTOP_KERN_PROC_UID
-GLIBTOP_KERN_PROC_RUID
-GLIBTOP_KERN_PROC_MASK
-GLIBTOP_EXCLUDE_IDLE
-GLIBTOP_EXCLUDE_SYSTEM
-GLIBTOP_EXCLUDE_NOTTY
-glibtop_proclist
-glibtop_get_proclist
-glibtop_get_proclist_r
-glibtop_get_proclist_l
-glibtop_init_proclist_p
-glibtop_get_proclist_p
-glibtop_init_proclist_s
-glibtop_get_proclist_s
-</SECTION>
-
-<INCLUDE>glibtop/sem_limits.h</INCLUDE>
-<SECTION>
-<FILE>sem_limits</FILE>
-GLIBTOP_IPC_SEMMAP
-GLIBTOP_IPC_SEMMNI
-GLIBTOP_IPC_SEMMNS
-GLIBTOP_IPC_SEMMNU
-GLIBTOP_IPC_SEMMSL
-GLIBTOP_IPC_SEMOPM
-GLIBTOP_IPC_SEMUME
-GLIBTOP_IPC_SEMUSZ
-GLIBTOP_IPC_SEMVMX
-GLIBTOP_IPC_SEMAEM
-GLIBTOP_MAX_SEM_LIMITS
-glibtop_sem_limits
-glibtop_get_sem_limits
-glibtop_get_sem_limits_r
-glibtop_get_sem_limits_l
-glibtop_init_sem_limits_p
-glibtop_get_sem_limits_p
-glibtop_init_sem_limits_s
-glibtop_get_sem_limits_s
-</SECTION>
-
-<INCLUDE>glibtop/prockernel.h</INCLUDE>
-<SECTION>
-<FILE>prockernel</FILE>
-GLIBTOP_PROC_KERNEL_K_FLAGS
-GLIBTOP_PROC_KERNEL_MIN_FLT
-GLIBTOP_PROC_KERNEL_MAJ_FLT
-GLIBTOP_PROC_KERNEL_CMIN_FLT
-GLIBTOP_PROC_KERNEL_CMAJ_FLT
-GLIBTOP_PROC_KERNEL_KSTK_ESP
-GLIBTOP_PROC_KERNEL_KSTK_EIP
-GLIBTOP_PROC_KERNEL_NWCHAN
-GLIBTOP_PROC_KERNEL_WCHAN
-GLIBTOP_MAX_PROC_KERNEL
-glibtop_proc_kernel
-glibtop_get_proc_kernel
-glibtop_get_proc_kernel_r
-glibtop_get_proc_kernel_l
-glibtop_init_proc_kernel_p
-glibtop_get_proc_kernel_p
-glibtop_init_proc_kernel_s
-glibtop_get_proc_kernel_s
-</SECTION>
-
-<INCLUDE>glibtop/fsusage.h</INCLUDE>
-<SECTION>
-<FILE>fsusage</FILE>
-GLIBTOP_FSUSAGE_BLOCKS
-GLIBTOP_FSUSAGE_BFREE
-GLIBTOP_FSUSAGE_BAVAIL
-GLIBTOP_FSUSAGE_FILES
-GLIBTOP_FSUSAGE_FFREE
-GLIBTOP_FSUSAGE_BLOCK_SIZE
-GLIBTOP_FSUSAGE_READ
-GLIBTOP_FSUSAGE_WRITE
-GLIBTOP_MAX_FSUSAGE
-glibtop_fsusage
-glibtop_get_fsusage
-glibtop_get_fsusage_r
-glibtop_get_fsusage_l
-glibtop_get_fsusage_s
-</SECTION>
-
-<INCLUDE>glibtop/loadavg.h</INCLUDE>
-<SECTION>
-<FILE>loadavg</FILE>
-GLIBTOP_LOADAVG_LOADAVG
-GLIBTOP_LOADAVG_NR_RUNNING
-GLIBTOP_LOADAVG_NR_TASKS
-GLIBTOP_LOADAVG_LAST_PID
-GLIBTOP_MAX_LOADAVG
-glibtop_loadavg
-glibtop_get_loadavg
-glibtop_get_loadavg_r
-glibtop_get_loadavg_l
-glibtop_init_loadavg_p
-glibtop_get_loadavg_p
-glibtop_init_loadavg_s
-glibtop_get_loadavg_s
-</SECTION>
-
-<INCLUDE>glibtop/mem.h</INCLUDE>
-<SECTION>
-<FILE>mem</FILE>
-GLIBTOP_MEM_TOTAL
-GLIBTOP_MEM_USED
-GLIBTOP_MEM_FREE
-GLIBTOP_MEM_SHARED
-GLIBTOP_MEM_BUFFER
-GLIBTOP_MEM_CACHED
-GLIBTOP_MEM_USER
-GLIBTOP_MEM_LOCKED
-GLIBTOP_MAX_MEM
-glibtop_mem
-glibtop_get_mem
-glibtop_get_mem_r
-glibtop_get_mem_l
-glibtop_init_mem_p
-glibtop_get_mem_p
-glibtop_init_mem_s
-glibtop_get_mem_s
-</SECTION>
-
-<INCLUDE>glibtop/mountlist.h</INCLUDE>
-<SECTION>
-<FILE>mountlist</FILE>
-GLIBTOP_MOUNTLIST_NUMBER
-GLIBTOP_MOUNTLIST_TOTAL
-GLIBTOP_MOUNTLIST_SIZE
-GLIBTOP_MAX_MOUNTLIST
-glibtop_mountentry
-glibtop_mountlist
-glibtop_get_mountlist
-glibtop_get_mountlist_r
-glibtop_get_mountlist_l
-glibtop_get_mountlist_s
-</SECTION>
-
-<INCLUDE>glibtop/msg_limits.h</INCLUDE>
-<SECTION>
-<FILE>msg_limits</FILE>
-GLIBTOP_IPC_MSGPOOL
-GLIBTOP_IPC_MSGMAP
-GLIBTOP_IPC_MSGMAX
-GLIBTOP_IPC_MSGMNB
-GLIBTOP_IPC_MSGMNI
-GLIBTOP_IPC_MSGSSZ
-GLIBTOP_IPC_MSGTQL
-GLIBTOP_MAX_MSG_LIMITS
-glibtop_msg_limits
-glibtop_get_msg_limits
-glibtop_get_msg_limits_r
-glibtop_get_msg_limits_l
-glibtop_init_msg_limits_p
-glibtop_get_msg_limits_p
-glibtop_init_msg_limits_s
-glibtop_get_msg_limits_s
-</SECTION>
-
-<INCLUDE>glibtop/cpu.h</INCLUDE>
-<SECTION>
-<FILE>cpu</FILE>
-GLIBTOP_CPU_TOTAL
-GLIBTOP_CPU_USER
-GLIBTOP_CPU_NICE
-GLIBTOP_CPU_SYS
-GLIBTOP_CPU_IDLE
-GLIBTOP_CPU_FREQUENCY
-GLIBTOP_XCPU_TOTAL
-GLIBTOP_XCPU_USER
-GLIBTOP_XCPU_NICE
-GLIBTOP_XCPU_SYS
-GLIBTOP_XCPU_IDLE
-GLIBTOP_XCPU_FLAGS
-GLIBTOP_CPU_IOWAIT
-GLIBTOP_CPU_IRQ
-GLIBTOP_CPU_SOFTIRQ
-GLIBTOP_XCPU_IOWAIT
-GLIBTOP_XCPU_IRQ
-GLIBTOP_XCPU_SOFTIRQ
-GLIBTOP_MAX_CPU
-GLIBTOP_NCPU
-glibtop_cpu
-glibtop_get_cpu
-glibtop_get_cpu_r
-glibtop_get_cpu_l
-glibtop_init_cpu_p
-glibtop_get_cpu_p
-glibtop_init_cpu_s
-glibtop_get_cpu_s
-</SECTION>
-
-<INCLUDE>glibtop/swap.h</INCLUDE>
-<SECTION>
-<FILE>swap</FILE>
-GLIBTOP_SWAP_TOTAL
-GLIBTOP_SWAP_USED
-GLIBTOP_SWAP_FREE
-GLIBTOP_SWAP_PAGEIN
-GLIBTOP_SWAP_PAGEOUT
-GLIBTOP_MAX_SWAP
-glibtop_swap
-glibtop_get_swap
-glibtop_get_swap_r
-glibtop_get_swap_l
-glibtop_init_swap_p
-glibtop_get_swap_p
-glibtop_init_swap_s
-glibtop_get_swap_s
-</SECTION>
-
diff --git a/doc/reference/version.xml.in b/doc/reference/version.xml.in
deleted file mode 100644
index 927ab962..00000000
--- a/doc/reference/version.xml.in
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
-<phrase>@PACKAGE_VERSION@</phrase>
diff --git a/doc/white-paper.texi b/doc/white-paper.texi
deleted file mode 100644
index 8c53c263..00000000
--- a/doc/white-paper.texi
+++ /dev/null
@@ -1,90 +0,0 @@
-@node White Paper, Reference Manual, About, Top
-@chapter LibGTop White Paper
-
-@menu
-* Introduction:: Introduction
-* Overview:: Overview
-@end menu
-
-@node Introduction, Overview, White Paper, White Paper
-@section Introduction
-
-Many modern UNIX systems like Solaris, BSD or Digitial Unix only allow
-priviledged processes to read information like CPU and Memory Usage or
-information about running processes.
-
-@itemize @bullet
-@item
-BSD, for instance, doesn't have any other way to get those data than reading
-directly from @file{/dev/kmem} and you need to be in the @code{kmem} group to
-be able to read this.
-
-@item
-Other systems, like Digital Unix, allow all users to get things like CPU and
-Memory statistics, but only root may read information about any process other
-than the current one (you may not even get information about your own processes
-if you're not root).
-
-@item
-Linux has a very nice @file{/proc} filesystem, but reading and parsing
-@file{/proc} is very slow and inefficient.
-
-@item
-Solaris is a bit better, but you still need to be in the @code{sys} group or
-even root to get some data.
-@end itemize
-
-Because of this system utilities like @code{ps}, @code{uptime} or @code{top}
-often are setgid kmem or setuid root. Usually, they're also very specific to
-the system they're written for and not easily portable to other systems without
-a lot of work.
-
-This, of cause, becomes a problem for graphical tools like @code{gtop} - making
-a GTK+ program setgid or even setuid would be a security hole as big as you can
-drive the entire X11 source code through. For the GNOME project, we also needed
-some kind of library which provides all the required information in a portable
-since there's more than just one single program that wants to use them - for
-instance @code{gtop} and the @code{multiload}, @code{cpumemusage} and
-@code{netload} panel applets.
-
-@node Overview, , Introduction, White Paper
-@section Overview
-
-This section should give you a short overview on how LibGTop was developed, which
-things needed to be considered and how it works.
-
-@menu
-* Interface Design:: Things that need to be considered
-* Server Implementation:: The LibGTop "server"
-@end menu
-
-@node Interface Design, Server Implementation, Overview, Overview
-@subsection Interface Design
-
-At the very beginning, it was necessary to collect all the data the library part
-should provide and put them into some C structures. This was not that easiy as it
-might sound since LibGTop should be portable to any modern UNIX system with a common
-library part on all those systems, but the data that should be returned vary from
-system to system. For instance some systems support shared memory, but some others
-may not.
-
-The header files where we define these C structures (which are system-independent) are
-shared between client and server. This way we can call the system dependent code
-directly where we do not need any special privileges to do so.
-
-All of those structures contain a @code{flags} member which is interpreted as a bit
-mask and tells the caller of the library functions which of the fields in the returned
-structure are valid and which are not.
-
-@node Server Implementation, , Interface Design, Overview
-@subsection Server Implementation
-
-The LibGTop @dfn{server} is a setgid/setuid binary which contains all the system
-dependent code which needs special privileges. It is only build if it's required
-on the current system (for instance, the Linux kernel provides all the required
-data via its @file{/proc} filesystem so we do not need the server at all) and it
-only contains the @dfn{features} which need privileges.
-
-Whenever we do not need any privileges to get all the data for some of the requested
-structures (here called @dfn{features}) the library calls the sysdeps code directly
-rather than using the server.
diff --git a/examples/ChangeLog b/examples/ChangeLog
deleted file mode 100644
index ce70977c..00000000
--- a/examples/ChangeLog
+++ /dev/null
@@ -1,243 +0,0 @@
-2007-05-19 Benoît Dejean <benoit@placenet.org>
-
- * Makefile.am:
- * mem.c: (main):
- * wd.c: (main):
-
- Fixed wd and new simple mem example.
-
-2006-02-27 Benoît Dejean <benoit@placenet.org>
-
- * pprint.c: (pprint_get_proc_mem), (main):
-
- Added proc_mem example.
-
-2005-12-15 Benoît Dejean <benoit@placenet.org>
-
- * proclist.c: (print_pids), (main):
-
- Improved example.
-
-2005-12-12 Benoît Dejean <benoit@placenet.org>
-
- * .cvsignore:
- * Makefile.am:
- * proclist.c: (main):
- * procmap.c: (main):
-
- Added quick example for glibtop_get_proclist()
- and updated procmap example to display smap.
-
-2005-08-02 Benoît Dejean <TazForEver@dlfp.org>
-
- * pprint.c: (pprint_get_cpu), (pprint_get_loadavg),
- (pprint_get_mem), (pprint_get_msg_limits), (pprint_get_netlist),
- (pprint_get_swap), (pprint_get_uptime), (pprint_get_proc_kernel),
- (main):
-
- Added pprint_get_proc_kernel(pid).
- Fixed prototypes.
-
-2005-01-22 Benoît Dejean <TazForEver@dlfp.org>
-
- * openfiles.c: (show_open_files): Updated.
-
-2004-12-23 Benoît Dejean <tazforever@dlfp.org>
-
- * netload.c: (main):
- * procmap.c: (main): s/glibtop_error/g_error/g
-
-2004-11-15 Benoît Dejean <tazforever@dlfp.org>
-
- * netload.c: (hwaddress_format_for_display), (main): Updated.
-
-2004-11-13 Benoît Dejean <tazforever@dlfp.org>
-
- * pprint.c: (pprint_get_fsusage), (pprint_get_mountlist),
- (pprint_get_netload), (pprint_get_netlist), (main): Updated.
-
-2004-09-25 Benoît Dejean <tazforever@dlfp.org>
-
- * pprint.c: (main): Re-added pprint_get_msg_limits()
-
-i2004-09-25 Benoît Dejean <tazforever@dlfp.org>
-
- * df.c: (main):
- * pprint.c: (main):
- * procargs.c: (main): Added missing call to glibgtop_init() / glibtop_close()
-
-2004-09-24 Benoît Dejean <tazforever@dlfp.org>
-
- * .cvsignore:
- * Makefile.am:
- * ../configure.in
- * df.c: (print_fsusage), (main): Added new example, just like 'df'.
-
-2004-09-22 Benoît Dejean <tazforever@dlfp.org>
-
- * pprint.c: (main): Disable pprint_get_msg_limits() because it can fail.
-
-2004-09-21 Benoît Dejean <tazforever@dlfp.org>
-
- * pprint.c: (pprint_get_swap), (main): Updated.
-
-2004-09-21 Benoît Dejean <tazforever@dlfp.org>
-
- * procargs.c: (show_args), (main): Updated.
-
-2004-09-21 Benoît Dejean <tazforever@dlfp.org>
-
- * pprint.c: (pprint_get_mountlist), (pprint_get_netload),
- (pprint_get_uptime), (main): Updated.
-
-2004-09-21 Benoît Dejean <tazforever@dlfp.org>
-
- * pprint.c: (pprint_get_mountlist): Updated.
-
-2004-09-21 Benoît Dejean <tazforever@dlfp.org>
-
- * procargs.c: (show_args), (main): Updated.
-
-2004-09-20 Benoît Dejean <tazforever@dlfp.org>
-
- * .cvsignore:
- * Makefile.am:
- * pprint.c: (pprint_get_cpu), (pprint_get_fsusage),
- (pprint_get_loadavg), (pprint_get_mem), (pprint_get_mountlist),
- (pprint_get_msg_limits), (main): Added new example : pretty prints
- the result of glibtop_*. Work in progress.
-
- Now builds procargs.
-
- * ../configure.in: Added to static list.
-
-2004-07-07 Benoît Dejean <tazforever@dlfp.org>
-
- * procargs.c: Added glibtop_get_proc_argv demo.
-
-2003-12-27 Ole Laursen <olau@hardworking.dk>
-
- * mountlist.c: Updated to display block size too.
-
-2004-03-04 Bastien Nocera <hadess@hadess.net>
-
- * smp.c: use libgtop-i18n.h
-
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am:
- * smp.c:
- * sysdeps.c: (main): install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
- Fix building smp.c and sysdeps.c
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * first.c:
- * mountlist.c:
- * netload.c:
- * procmap.c:
- * second.c:
- * smp.c:
- * sysdeps.c:
- * third.c:
- * timings.c: fixed compilation
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: removed traces of guile, intllibs and libgnomesupport
-
-2001-01-14 Abel Cheung <maddog@linux.org.hk>
-
- * \*.c: bindtextdomain and textdomain uses GETTEXT_PACKAGE.
-
- * Makefile.am, first.c, second.c, sysdeps.c: Make them at least
- compile for now, by disabling chunks which should belong to
- HEAD branch.
-
-1999-05-28 Martin Baulig <martin@home-of-linux.org>
-
- * first.c, second.c, sysdeps.c: Use LibGTop version conditionals
- so we can more easily merge the code into LIBGTOP_STABLE_1_0.
-
-1999-05-07 Martin Baulig <martin@home-of-linux.org>
-
- * timings.c (timersub): Renamed this to `libgtop_timersub' and define
- it on all systems.
-
-Fri Apr 9 00:14:52 1999 Timur Bakeyev <timur@gnu.org>
-
- * timings.c: Added timersub defenition, to make code compilable on
- BSDI.
-
-1999-03-24 Martin Baulig <martin@home-of-linux.org>
-
- * timings.c: New example.
-
-1999-03-17 Martin Baulig <martin@home-of-linux.org>
-
- * first.c, second.c: Fixed a bug that caused a core dump when
- the sysdeps code does not return all data.
-
-1998-11-22 Martin Baulig <baulig@taurus.uni-trier.de>
-
- * netload.c: Call inet_ntoa () to get address and subnet
- in quatted dot notation (like 136.199.14.201) and not just
- as a number (like 0xc90ec788).
-
-1998-11-02 Martin Baulig <martin@home-of-linux.org>
-
- * sysdeps.c: New example.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * netload.c: New file. Gets network load for the interface
- given as command line argument.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * first.c (glibtop_get_proc_args): Get command line arguments.
- * second.c: Likewise.
-
-1998-10-25 Martin Baulig <martin@home-of-linux.org>
-
- * first.c (glibtop_get_ppp): Get PPP/ISDN statistics.
-
-1998-09-28 Martin Baulig <martin@home-of-linux.org>
-
- * Makefile.am: Install everything in $(libexecdir)/libgtop.
-
-1998-09-09 Martin Baulig <baulig@Stud.Informatik.uni-trier.de>
-
- * smp.c: New file. Nice tool to show CPU statistics on SMP systems.
-
-1998-08-25 Martin Baulig <martin@home-of-linux.org>
-
- * first.c, second.c, procmap.c: Fixed some compiler warnings.
-
-1998-08-18 Martin Baulig <martin@home-of-linux.org>
-
- * procmap.c: We now display filenames when compiled
- `--with-libgtop-inodedb'.
-
-1998-08-12 Martin Baulig <martin@home-of-linux.org>
-
- * second.c: Works a little bit more like `ps' - you can
- give an optional command line argument to get information
- about a single process.
-
-1998-07-22 Martin Baulig <martin@home-of-linux.org>
-
- * mountlist.c: New file.
-
-1998-06-12 Martin Baulig <martin@home-of-linux.org>
-
- * test.scm: New file.
-
-1998-06-07 Martin Baulig <martin@home-of-linux.org>
-
- * Makefile.am (CFLAGS): Disable optimize.
-
- * first.c (PROFILE_COUNT): Number of times each function
- should be called. Defaults to 1; to profile the code, you
- can increase this when compiling.
diff --git a/examples/Makefile.am b/examples/Makefile.am
deleted file mode 100644
index de6e6ef5..00000000
--- a/examples/Makefile.am
+++ /dev/null
@@ -1,60 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
-
-INCLUDES = @INCLUDES@
-
-DEFS = @DEFS@
-
-noinst_PROGRAMS = first second pprint procargs df netlist \
- mountlist procmap netload sysdeps timings \
- openfiles smp proclist mem wd
-
-first_SOURCES = first.c
-first_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-second_SOURCES = second.c
-second_LDADD = $(top_builddir)/lib/libgtop-2.0.la -lm
-
-procmap_SOURCES = procmap.c
-procmap_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-netload_SOURCES = netload.c
-netload_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-sysdeps_SOURCES = sysdeps.c
-sysdeps_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-mountlist_SOURCES = mountlist.c
-mountlist_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-smp_SOURCES = smp.c
-smp_LDADD = $(top_builddir)/lib/libgtop-2.0.la -lm
-
-timings_SOURCES = timings.c
-timings_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-pprint_SOURCES = pprint.c
-pprint_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-procargs_SOURCES = procargs.c
-procargs_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-df_SOURCES = df.c
-df_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-netlist_SOURCES = netlist.c
-netlist_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-openfiles_SOURCES = openfiles.c
-openfiles_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-proclist_SOURCES = proclist.c
-proclist_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-wd_SOURCES = wd.c
-wd_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
-mem_SOURCE = mem.c
-mem_LDADD = $(top_builddir)/lib/libgtop-2.0.la
-
diff --git a/examples/affinity.c b/examples/affinity.c
deleted file mode 100644
index e69de29b..00000000
--- a/examples/affinity.c
+++ /dev/null
diff --git a/examples/df.c b/examples/df.c
deleted file mode 100644
index 6537ce44..00000000
--- a/examples/df.c
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include <glibtop.h>
-
-#include <glibtop/fsusage.h>
-#include <glibtop/mountlist.h>
-
-#include <stdio.h>
-
-
-static void print_fsusage(const char *mountpoint)
-{
- glibtop_fsusage buf;
-
- glibtop_get_fsusage(&buf, mountpoint);
-
- printf("%-20s %-10llu %-10llu %-10llu %.1f\n",
- mountpoint,
- buf.blocks * buf.block_size >> 20,
- (buf.blocks - buf.bavail) * buf.block_size >> 20,
- buf.bavail * buf.block_size >> 20,
- (buf.blocks - buf.bavail) * 100.0 / buf.blocks
- );
-}
-
-
-int main()
-{
- glibtop_mountlist buf;
- glibtop_mountentry *entries;
- size_t i;
-
- glibtop_init();
-
- printf("%-20s %-10s %-10s %-10s %-10s\n",
- "Filesystem", "Size", "Used", "Avail", "Use%");
-
- entries = glibtop_get_mountlist(&buf, FALSE);
-
- for(i = 0; i < buf.number; ++i)
- {
- print_fsusage(entries[i].mountdir);
- }
-
- g_free(entries);
-
- glibtop_close();
-
- return 0;
-}
diff --git a/examples/first.c b/examples/first.c
deleted file mode 100644
index 6ef5819d..00000000
--- a/examples/first.c
+++ /dev/null
@@ -1,578 +0,0 @@
-/* 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.
-*/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <locale.h>
-#include <libintl.h>
-#include <stdio.h>
-
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-
-#include <glibtop/parameter.h>
-
-#include <glibtop/union.h>
-#include <glibtop/sysdeps.h>
-
-#include <sys/resource.h>
-
-#ifndef PROFILE_COUNT
-#define PROFILE_COUNT 1
-#endif
-
-int
-main (int argc, char *argv [])
-{
- glibtop_union data;
- glibtop_sysdeps sysdeps;
- unsigned c, method, count, port, i, *ptr;
- char buffer [BUFSIZ];
- pid_t pid, ppid;
- char *args;
-
- count = PROFILE_COUNT;
-
- setlocale (LC_ALL, "");
- bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR);
- textdomain (GETTEXT_PACKAGE);
-
- glibtop_init_r (&glibtop_global_server, 0, GLIBTOP_INIT_NO_OPEN);
-
- glibtop_get_parameter (GLIBTOP_PARAM_METHOD, &method, sizeof (method));
-
- printf ("Method = %d\n", method);
-
- count = glibtop_get_parameter (GLIBTOP_PARAM_COMMAND, buffer, BUFSIZ);
- buffer [count] = 0;
-
- printf ("Command = '%s'\n", buffer);
-
- count = glibtop_get_parameter (GLIBTOP_PARAM_HOST, buffer, BUFSIZ);
- buffer [count] = 0;
-
- glibtop_get_parameter (GLIBTOP_PARAM_PORT, &port, sizeof (port));
-
- printf ("Host = '%s' - %u\n\n", buffer, port);
-
- glibtop_init_r (&glibtop_global_server, 0, 0);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_cpu (&data.cpu);
-
- printf ("CPU (0x%08lx): %lu, %lu, %lu, %lu, %lu, %lu\n",
- (unsigned long) data.cpu.flags,
- (unsigned long) data.cpu.total,
- (unsigned long) data.cpu.user,
- (unsigned long) data.cpu.nice,
- (unsigned long) data.cpu.sys,
- (unsigned long) data.cpu.idle,
- (unsigned long) data.cpu.frequency);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_mem (&data.mem);
-
- printf ("Memory (0x%08lx): "
- "%lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu\n",
- (unsigned long) data.mem.flags,
- (unsigned long) data.mem.total,
- (unsigned long) data.mem.used,
- (unsigned long) data.mem.free,
- (unsigned long) data.mem.shared,
- (unsigned long) data.mem.buffer,
- (unsigned long) data.mem.cached,
- (unsigned long) data.mem.user,
- (unsigned long) data.mem.locked);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_swap (&data.swap);
-
- printf ("Swap (0x%08lx): %lu, %lu, %lu, %lu, %lu\n",
- (unsigned long) data.swap.flags,
- (unsigned long) data.swap.total,
- (unsigned long) data.swap.used,
- (unsigned long) data.swap.free,
- (unsigned long) data.swap.pagein,
- (unsigned long) data.swap.pageout);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_uptime (&data.uptime);
-
- printf ("Uptime (0x%08lx): %f, %f\n",
- (unsigned long) data.uptime.flags,
- data.uptime.uptime, data.uptime.idletime);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_loadavg (&data.loadavg);
-
- printf ("Loadavg (0x%08lx): %f, %f, %f - %lu, %lu, %lu\n",
- (unsigned long) data.loadavg.flags,
- (double) data.loadavg.loadavg [0],
- (double) data.loadavg.loadavg [1],
- (double) data.loadavg.loadavg [2],
- (unsigned long) data.loadavg.nr_running,
- (unsigned long) data.loadavg.nr_tasks,
- (unsigned long) data.loadavg.last_pid);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_shm_limits (&data.shm_limits);
-
- printf ("Shm Limits (0x%08lx): %lu, %lu, %lu, %lu, %lu\n",
- (unsigned long) data.shm_limits.flags,
- (unsigned long) data.shm_limits.shmmax,
- (unsigned long) data.shm_limits.shmmin,
- (unsigned long) data.shm_limits.shmmni,
- (unsigned long) data.shm_limits.shmseg,
- (unsigned long) data.shm_limits.shmall);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_msg_limits (&data.msg_limits);
-
- printf ("Msg Limits (0x%08lx): %lu, %lu, %lu, %lu, %lu, %lu, %lu\n",
- (unsigned long) data.msg_limits.flags,
- (unsigned long) data.msg_limits.msgpool,
- (unsigned long) data.msg_limits.msgmap,
- (unsigned long) data.msg_limits.msgmax,
- (unsigned long) data.msg_limits.msgmnb,
- (unsigned long) data.msg_limits.msgmni,
- (unsigned long) data.msg_limits.msgssz,
- (unsigned long) data.msg_limits.msgtql);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_sem_limits (&data.sem_limits);
-
- printf ("Sem Limits (0x%08lx): "
- "%lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu\n",
- (unsigned long) data.sem_limits.flags,
- (unsigned long) data.sem_limits.semmap,
- (unsigned long) data.sem_limits.semmni,
- (unsigned long) data.sem_limits.semmns,
- (unsigned long) data.sem_limits.semmnu,
- (unsigned long) data.sem_limits.semmsl,
- (unsigned long) data.sem_limits.semopm,
- (unsigned long) data.sem_limits.semume,
- (unsigned long) data.sem_limits.semusz,
- (unsigned long) data.sem_limits.semvmx,
- (unsigned long) data.sem_limits.semaem);
-
- printf ("\n");
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_ppp (&data.ppp, 0);
-
- printf ("PPP (0x%08lx): %lu, %lu, %lu\n",
- (unsigned long) data.ppp.flags,
- (unsigned long) data.ppp.state,
- (unsigned long) data.ppp.bytes_in,
- (unsigned long) data.ppp.bytes_out);
-
- printf ("\n");
-
- glibtop_get_sysdeps (&sysdeps);
-
- printf ("Sysdeps (0x%08lx): %lu, %lu, %lu, %lu, %lu, "
- "%lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, "
- "%lu, %lu, %lu, %lu, %lu, %lu\n",
- (unsigned long) sysdeps.flags,
- (unsigned long) sysdeps.cpu,
- (unsigned long) sysdeps.mem,
- (unsigned long) sysdeps.swap,
- (unsigned long) sysdeps.uptime,
- (unsigned long) sysdeps.loadavg,
- (unsigned long) sysdeps.shm_limits,
- (unsigned long) sysdeps.msg_limits,
- (unsigned long) sysdeps.sem_limits,
- (unsigned long) sysdeps.proclist,
- (unsigned long) sysdeps.proc_state,
- (unsigned long) sysdeps.proc_uid,
- (unsigned long) sysdeps.proc_mem,
- (unsigned long) sysdeps.proc_time,
- (unsigned long) sysdeps.proc_signal,
- (unsigned long) sysdeps.proc_kernel,
- (unsigned long) sysdeps.proc_segment,
- (unsigned long) sysdeps.proc_args,
- (unsigned long) sysdeps.proc_map,
- (unsigned long) sysdeps.mountlist,
- (unsigned long) sysdeps.fsusage,
- (unsigned long) sysdeps.netload,
- (unsigned long) sysdeps.ppp);
-
- printf ("\n");
-
- ptr = glibtop_get_proclist (&data.proclist, 0, 0);
-
- printf ("Proclist (0x%08lx): %lu, %lu, %lu\n",
- (unsigned long) data.proclist.flags,
- (unsigned long) data.proclist.number,
- (unsigned long) data.proclist.size,
- (unsigned long) data.proclist.total);
-
- if (ptr) {
- printf ("\nProcess: ");
- for (i = 0; i < data.proclist.number; i++)
- printf ("%s%u", i ? ", " : "", ptr [i]);
- printf ("\n");
- }
-
- g_free (ptr);
-
- pid = getpid ();
- ppid = getppid ();
-
- printf ("\n");
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_state (&data.proc_state, pid);
-
- printf ("Proc_State PID %5d (0x%08lx): '%s', %c, %lu, %lu\n",
- (int) pid, (unsigned long) data.proc_state.flags,
- data.proc_state.cmd, data.proc_state.state,
- (unsigned long) data.proc_state.uid,
- (unsigned long) data.proc_state.gid);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_uid (&data.proc_uid, pid);
-
- printf ("Proc_Uid PID %5d (0x%08lx): "
- "%d %d %d %d %d %d %d %d %d %d %d %d\n", (int) pid,
- (unsigned long) data.proc_uid.flags,
- data.proc_uid.uid, data.proc_uid.euid,
- data.proc_uid.gid, data.proc_uid.egid,
- data.proc_uid.pid, data.proc_uid.ppid,
- data.proc_uid.pgrp, data.proc_uid.session,
- data.proc_uid.tty, data.proc_uid.tpgid,
- data.proc_uid.priority, data.proc_uid.nice);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_mem (&data.proc_mem, pid);
-
- printf ("Proc_Mem PID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu\n", (int) pid,
- (unsigned long) data.proc_mem.flags,
- (unsigned long) data.proc_mem.size,
- (unsigned long) data.proc_mem.vsize,
- (unsigned long) data.proc_mem.resident,
- (unsigned long) data.proc_mem.share,
- (unsigned long) data.proc_mem.rss,
- (unsigned long) data.proc_mem.rss_rlim);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_segment (&data.proc_segment, pid);
-
- printf ("Proc_Segment PID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu %lu %lu\n", (int) pid,
- (unsigned long) data.proc_segment.flags,
- (unsigned long) data.proc_segment.text_rss,
- (unsigned long) data.proc_segment.shlib_rss,
- (unsigned long) data.proc_segment.data_rss,
- (unsigned long) data.proc_segment.stack_rss,
- (unsigned long) data.proc_segment.dirty_size,
- (unsigned long) data.proc_segment.start_code,
- (unsigned long) data.proc_segment.end_code,
- (unsigned long) data.proc_segment.start_stack);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_time (&data.proc_time, pid);
-
- printf ("Proc_Time PID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu %lu %lu %lu\n", (int) pid,
- (unsigned long) data.proc_time.flags,
- (unsigned long) data.proc_time.start_time,
- (unsigned long) data.proc_time.rtime,
- (unsigned long) data.proc_time.utime,
- (unsigned long) data.proc_time.stime,
- (unsigned long) data.proc_time.cutime,
- (unsigned long) data.proc_time.cstime,
- (unsigned long) data.proc_time.timeout,
- (unsigned long) data.proc_time.it_real_value,
- (unsigned long) data.proc_time.frequency);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_signal (&data.proc_signal, pid);
-
- printf ("Proc_Signal PID %5d (0x%08lx): "
- "%lu %lu %lu %lu\n", (int) pid,
- (unsigned long) data.proc_signal.flags,
- (unsigned long) data.proc_signal.signal,
- (unsigned long) data.proc_signal.blocked,
- (unsigned long) data.proc_signal.sigignore,
- (unsigned long) data.proc_signal.sigcatch);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_kernel (&data.proc_kernel, pid);
-
- printf ("Proc_Kernel PID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu 0x%lx 0x%lx 0x%lx (%s)\n", (int) pid,
- (unsigned long) data.proc_kernel.flags,
- (unsigned long) data.proc_kernel.k_flags,
- (unsigned long) data.proc_kernel.min_flt,
- (unsigned long) data.proc_kernel.maj_flt,
- (unsigned long) data.proc_kernel.cmin_flt,
- (unsigned long) data.proc_kernel.cmaj_flt,
- (unsigned long) data.proc_kernel.kstk_esp,
- (unsigned long) data.proc_kernel.kstk_eip,
- (unsigned long) data.proc_kernel.nwchan,
- data.proc_kernel.wchan);
-
- printf ("\n");
-
- args = glibtop_get_proc_args (&data.proc_args, pid, 0);
-
- for (i = 0; i < data.proc_args.size; i++) {
- if (args [i]) continue;
- args [i] = '|';
- }
-
- printf ("Proc_Args PID %5d (0x%08lx): %lu - '%s'\n", (int) pid,
- (unsigned long) data.proc_args.flags,
- (unsigned long) data.proc_args.size,
- args ? args : "");
-
- g_free (args);
-
- printf ("\n");
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_state (&data.proc_state, ppid);
-
- printf ("Proc_State PPID %5d (0x%08lx): '%s', %c, %lu, %lu\n",
- (int) ppid, (unsigned long) data.proc_state.flags,
- data.proc_state.cmd, data.proc_state.state,
- (unsigned long) data.proc_state.uid,
- (unsigned long) data.proc_state.gid);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_uid (&data.proc_uid, ppid);
-
- printf ("Proc_Uid PPID %5d (0x%08lx): "
- "%d %d %d %d %d %d %d %d %d %d %d %d\n", (int) ppid,
- (unsigned long) data.proc_uid.flags,
- data.proc_uid.uid, data.proc_uid.euid,
- data.proc_uid.gid, data.proc_uid.egid,
- data.proc_uid.pid, data.proc_uid.ppid,
- data.proc_uid.pgrp, data.proc_uid.session,
- data.proc_uid.tty, data.proc_uid.tpgid,
- data.proc_uid.priority, data.proc_uid.nice);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_mem (&data.proc_mem, ppid);
-
- printf ("Proc_Mem PPID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu\n", (int) ppid,
- (unsigned long) data.proc_mem.flags,
- (unsigned long) data.proc_mem.size,
- (unsigned long) data.proc_mem.vsize,
- (unsigned long) data.proc_mem.resident,
- (unsigned long) data.proc_mem.share,
- (unsigned long) data.proc_mem.rss,
- (unsigned long) data.proc_mem.rss_rlim);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_segment (&data.proc_segment, ppid);
-
- printf ("Proc_Segment PPID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu %lu %lu\n", (int) ppid,
- (unsigned long) data.proc_segment.flags,
- (unsigned long) data.proc_segment.text_rss,
- (unsigned long) data.proc_segment.shlib_rss,
- (unsigned long) data.proc_segment.data_rss,
- (unsigned long) data.proc_segment.stack_rss,
- (unsigned long) data.proc_segment.dirty_size,
- (unsigned long) data.proc_segment.start_code,
- (unsigned long) data.proc_segment.end_code,
- (unsigned long) data.proc_segment.start_stack);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_time (&data.proc_time, ppid);
-
- printf ("Proc_Time PPID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu %lu %lu %lu\n", (int) ppid,
- (unsigned long) data.proc_time.flags,
- (unsigned long) data.proc_time.start_time,
- (unsigned long) data.proc_time.rtime,
- (unsigned long) data.proc_time.utime,
- (unsigned long) data.proc_time.stime,
- (unsigned long) data.proc_time.cutime,
- (unsigned long) data.proc_time.cstime,
- (unsigned long) data.proc_time.timeout,
- (unsigned long) data.proc_time.it_real_value,
- (unsigned long) data.proc_time.frequency);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_signal (&data.proc_signal, ppid);
-
- printf ("Proc_Signal PPID %5d (0x%08lx): %lu %lu %lu %lu\n",
- (int) ppid, (unsigned long) data.proc_signal.flags,
- (unsigned long) data.proc_signal.signal,
- (unsigned long) data.proc_signal.blocked,
- (unsigned long) data.proc_signal.sigignore,
- (unsigned long) data.proc_signal.sigcatch);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_kernel (&data.proc_kernel, ppid);
-
- printf ("Proc_Kernel PPID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu 0x%lx 0x%lx 0x%lx (%s)\n", (int) ppid,
- (unsigned long) data.proc_kernel.flags,
- (unsigned long) data.proc_kernel.k_flags,
- (unsigned long) data.proc_kernel.min_flt,
- (unsigned long) data.proc_kernel.maj_flt,
- (unsigned long) data.proc_kernel.cmin_flt,
- (unsigned long) data.proc_kernel.cmaj_flt,
- (unsigned long) data.proc_kernel.kstk_esp,
- (unsigned long) data.proc_kernel.kstk_eip,
- (unsigned long) data.proc_kernel.nwchan,
- data.proc_kernel.wchan);
-
- printf ("\n");
-
- args = glibtop_get_proc_args (&data.proc_args, ppid, 0);
-
- for (i = 0; i < data.proc_args.size; i++) {
- if (args [i]) continue;
- args [i] = '|';
- }
-
- printf ("Proc_Args PID %5d (0x%08lx): %lu - '%s'\n", (int) ppid,
- (unsigned long) data.proc_args.flags,
- (unsigned long) data.proc_args.size,
- args ? args : "");
-
- g_free (args);
-
- printf ("\n");
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_state (&data.proc_state, 1);
-
- printf ("Proc_State INIT %5d (0x%08lx): '%s', %c, %lu, %lu\n", 1,
- (unsigned long) data.proc_state.flags,
- data.proc_state.cmd, data.proc_state.state,
- (unsigned long) data.proc_state.uid,
- (unsigned long) data.proc_state.gid);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_uid (&data.proc_uid, 1);
-
- printf ("Proc_Uid INIT %5d (0x%08lx): "
- "%d %d %d %d %d %d %d %d %d %d %d %d\n", 1,
- (unsigned long) data.proc_uid.flags,
- data.proc_uid.uid, data.proc_uid.euid,
- data.proc_uid.gid, data.proc_uid.egid,
- data.proc_uid.pid, data.proc_uid.ppid,
- data.proc_uid.pgrp, data.proc_uid.session,
- data.proc_uid.tty, data.proc_uid.tpgid,
- data.proc_uid.priority, data.proc_uid.nice);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_mem (&data.proc_mem, 1);
-
- printf ("Proc_Mem INIT %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu\n", 1,
- (unsigned long) data.proc_mem.flags,
- (unsigned long) data.proc_mem.size,
- (unsigned long) data.proc_mem.vsize,
- (unsigned long) data.proc_mem.resident,
- (unsigned long) data.proc_mem.share,
- (unsigned long) data.proc_mem.rss,
- (unsigned long) data.proc_mem.rss_rlim);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_segment (&data.proc_segment, 1);
-
- printf ("Proc_Segment INIT %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu %lu %lu\n", 1,
- (unsigned long) data.proc_segment.flags,
- (unsigned long) data.proc_segment.text_rss,
- (unsigned long) data.proc_segment.shlib_rss,
- (unsigned long) data.proc_segment.data_rss,
- (unsigned long) data.proc_segment.stack_rss,
- (unsigned long) data.proc_segment.dirty_size,
- (unsigned long) data.proc_segment.start_code,
- (unsigned long) data.proc_segment.end_code,
- (unsigned long) data.proc_segment.start_stack);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_time (&data.proc_time, 1);
-
- printf ("Proc_Time INIT %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu %lu %lu %lu\n", 1,
- (unsigned long) data.proc_time.flags,
- (unsigned long) data.proc_time.start_time,
- (unsigned long) data.proc_time.rtime,
- (unsigned long) data.proc_time.utime,
- (unsigned long) data.proc_time.stime,
- (unsigned long) data.proc_time.cutime,
- (unsigned long) data.proc_time.cstime,
- (unsigned long) data.proc_time.timeout,
- (unsigned long) data.proc_time.it_real_value,
- (unsigned long) data.proc_time.frequency);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_signal (&data.proc_signal, 1);
-
- printf ("Proc_Signal INIT %5d (0x%08lx): "
- "%lu %lu %lu %lu\n", 1,
- (unsigned long) data.proc_signal.flags,
- (unsigned long) data.proc_signal.signal,
- (unsigned long) data.proc_signal.blocked,
- (unsigned long) data.proc_signal.sigignore,
- (unsigned long) data.proc_signal.sigcatch);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_kernel (&data.proc_kernel, 1);
-
- printf ("Proc_Kernel INIT %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu 0x%lx 0x%lx 0x%lx (%s)\n", 1,
- (unsigned long) data.proc_kernel.flags,
- (unsigned long) data.proc_kernel.k_flags,
- (unsigned long) data.proc_kernel.min_flt,
- (unsigned long) data.proc_kernel.maj_flt,
- (unsigned long) data.proc_kernel.cmin_flt,
- (unsigned long) data.proc_kernel.cmaj_flt,
- (unsigned long) data.proc_kernel.kstk_esp,
- (unsigned long) data.proc_kernel.kstk_eip,
- (unsigned long) data.proc_kernel.nwchan,
- data.proc_kernel.wchan);
-
- printf ("\n");
-
- args = glibtop_get_proc_args (&data.proc_args, 1, 0);
-
- for (i = 0; i < data.proc_args.size; i++) {
- if (args [i]) continue;
- args [i] = '|';
- }
-
- printf ("Proc_Args PID %5d (0x%08lx): %lu - '%s'\n", 1,
- (unsigned long) data.proc_args.flags,
- (unsigned long) data.proc_args.size,
- args ? args : "");
-
- g_free (args);
-
- glibtop_close ();
-
- exit (0);
-}
diff --git a/examples/mem.c b/examples/mem.c
deleted file mode 100644
index 63fba3de..00000000
--- a/examples/mem.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <glibtop.h>
-#include <glibtop/mem.h>
-
-#include <glib.h>
-#include <unistd.h>
-
-int main(int argc, char **argv)
-{
- glibtop_mem buf;
-
- glibtop_init();
-
- g_print("%lx\n", glibtop_global_server->features);
-
- glibtop_get_mem(&buf);
-
- glibtop_close();
-
- return 0;
-}
-
diff --git a/examples/mountlist.c b/examples/mountlist.c
deleted file mode 100644
index b97739c4..00000000
--- a/examples/mountlist.c
+++ /dev/null
@@ -1,116 +0,0 @@
-/* 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.
-*/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <locale.h>
-#include <libintl.h>
-#include <stdio.h>
-
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-
-#include <glibtop/parameter.h>
-
-#include <glibtop/mountlist.h>
-#include <glibtop/fsusage.h>
-
-#ifndef PROFILE_COUNT
-#define PROFILE_COUNT 1000
-#endif
-
-int
-main (int argc, char *argv [])
-{
- glibtop_fsusage fsusage;
- glibtop_mountlist mount_list;
- glibtop_mountentry *mount_entries;
- unsigned c, index, method, count, port;
- char buffer [BUFSIZ];
-
- setlocale (LC_ALL, "");
- bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR);
- textdomain (GETTEXT_PACKAGE);
-
- glibtop_init_r (&glibtop_global_server, 0, GLIBTOP_INIT_NO_OPEN);
-
- glibtop_get_parameter (GLIBTOP_PARAM_METHOD, &method, sizeof (method));
-
- printf ("Method = %d\n", method);
-
- count = glibtop_get_parameter (GLIBTOP_PARAM_COMMAND, buffer, BUFSIZ);
- buffer [count] = 0;
-
- printf ("Command = '%s'\n", buffer);
-
- count = glibtop_get_parameter (GLIBTOP_PARAM_HOST, buffer, BUFSIZ);
- buffer [count] = 0;
-
- glibtop_get_parameter (GLIBTOP_PARAM_PORT, &port, sizeof (port));
-
- printf ("Host = '%s' - %u\n\n", buffer, port);
-
- printf ("sbrk (0) = %p\n\n", sbrk (0));
-
- for (c = 0; c < PROFILE_COUNT; c++) {
- mount_entries = glibtop_get_mountlist (&mount_list, 1);
-
- g_free (mount_entries);
- }
-
- printf ("sbrk (0) = %p\n\n", sbrk (0));
-
- mount_entries = glibtop_get_mountlist (&mount_list, 1);
-
- if (mount_entries == NULL)
- _exit (1);
-
- for (index = 0; index < mount_list.number; index++)
- printf ("Mount_Entry: %-30s %-10s %-20s\n",
- mount_entries [index].mountdir,
- mount_entries [index].type,
- mount_entries [index].devname);
-
- printf ("\n\n%-16s %9s %9s %9s %9s %9s %9s\n",
- "Mount", "Blocks", "Free", "Avail", "Files", "Free", "BlockSz");
-
- for (index = 0; index < mount_list.number; index++) {
- glibtop_get_fsusage (&fsusage,
- mount_entries [index].mountdir);
-
- printf ("%-16s %9Lu %9Lu %9Lu %9Lu %9Lu %9d\n",
- mount_entries [index].mountdir,
- fsusage.blocks, fsusage.bfree,
- fsusage.bavail, fsusage.files,
- fsusage.ffree, fsusage.block_size);
- }
-
- g_free (mount_entries);
-
- printf ("\nsbrk (0) = %p\n\n", sbrk (0));
-
- glibtop_close ();
-
- exit (0);
-}
diff --git a/examples/netlist.c b/examples/netlist.c
deleted file mode 100644
index 7f7ac773..00000000
--- a/examples/netlist.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Copyright (C) 2004 Benoît Dejean
- This file is part of LibGTop 2.0.
-
-
- 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.
-*/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-
-#include <glibtop.h>
-#include <glibtop/netlist.h>
-
-
-int main(int argc, char *argv [])
-{
- glibtop_netlist buf;
- char **devices;
- guint32 i;
-
- glibtop_init();
-
- devices = glibtop_get_netlist(&buf);
-
- for(i = 0; i < buf.number; ++i)
- {
- printf("net device '%s'\n", devices[i]);
- }
-
- g_strfreev(devices);
-
- glibtop_close();
- return 0;
-}
diff --git a/examples/netload.c b/examples/netload.c
deleted file mode 100644
index 88393c82..00000000
--- a/examples/netload.c
+++ /dev/null
@@ -1,162 +0,0 @@
-/* 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.
-*/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <locale.h>
-#include <libintl.h>
-#include <stdio.h>
-
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-
-#include <glibtop/parameter.h>
-
-#include <glibtop/netload.h>
-
-#include <netinet/in.h>
-#include <arpa/inet.h>
-
-#ifndef PROFILE_COUNT
-#define PROFILE_COUNT 1
-#endif
-
-
-static char* hwaddress_format_for_display(glibtop_netload *buf)
-{
- unsigned i;
- GString *repr = g_string_new("");
- char *str;
-
- for(i = 0; i < sizeof buf->hwaddress; ++i)
- g_string_append_printf(repr, "%02X:",
- (unsigned) ((char*)buf->hwaddress)[i]);
-
- repr->str [ repr->len - 1] = ' ';
- str = g_string_free(repr, FALSE);
- g_strstrip(str);
- return str;
-}
-
-
-int
-main (int argc, char *argv [])
-{
- glibtop_netload netload;
- unsigned method, count, port;
- struct in_addr addr, subnet;
- char *address_string, *subnet_string;
- char address6_string[INET6_ADDRSTRLEN], prefix6_string[INET6_ADDRSTRLEN];
- char *hwaddress_string;
- char buffer [BUFSIZ];
-
- count = PROFILE_COUNT;
-
- setlocale (LC_ALL, "");
- bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR);
- textdomain (GETTEXT_PACKAGE);
-
- glibtop_init_r (&glibtop_global_server, 0, GLIBTOP_INIT_NO_OPEN);
-
- glibtop_get_parameter (GLIBTOP_PARAM_METHOD, &method, sizeof (method));
-
- printf ("Method = %d\n", method);
-
- count = glibtop_get_parameter (GLIBTOP_PARAM_COMMAND, buffer, BUFSIZ);
- buffer [count] = 0;
-
- printf ("Command = '%s'\n", buffer);
-
- count = glibtop_get_parameter (GLIBTOP_PARAM_HOST, buffer, BUFSIZ);
- buffer [count] = 0;
-
- glibtop_get_parameter (GLIBTOP_PARAM_PORT, &port, sizeof (port));
-
- printf ("Host = '%s' - %u\n\n", buffer, port);
-
- glibtop_init_r (&glibtop_global_server, 0, 0);
-
- if (argc != 2)
- g_error ("Usage: %s interface", argv [0]);
-
- glibtop_get_netload (&netload, argv [1]);
-
- addr.s_addr = netload.address;
- subnet.s_addr = netload.subnet;
-
- address_string = g_strdup (inet_ntoa (addr));
- subnet_string = g_strdup (inet_ntoa (subnet));
-
- inet_ntop (AF_INET6, netload.address6, address6_string, INET6_ADDRSTRLEN);
- inet_ntop (AF_INET6, netload.prefix6, prefix6_string, INET6_ADDRSTRLEN);
-
- hwaddress_string = hwaddress_format_for_display(&netload);
-
- printf ("Network Load (0x%016llx):\n\n"
- "\tInterface Flags:\t0x%016llx\n"
- "\tAddress:\t\t0x%08x - %s\n"
- "\tSubnet:\t\t\t0x%08x - %s\n\n"
- "\tMTU:\t\t\t%d\n"
- "\tCollisions:\t\t%llu\n\n"
- "\tPackets In:\t\t%llu\n"
- "\tPackets Out:\t\t%llu\n"
- "\tPackets Total:\t\t%llu\n\n"
- "\tBytes In:\t\t%llu\n"
- "\tBytes Out:\t\t%llu\n"
- "\tBytes Total:\t\t%llu\n\n"
- "\tErrors In:\t\t%llu\n"
- "\tErrors Out:\t\t%llu\n"
- "\tErrors Total:\t\t%llu\n\n"
- "\tAddress6:\t\t%s\n"
- "\tPrefix6:\t\t%s\n"
- "\tScope6:\t\t\t%#03x\n\n"
- "\tHarware Address:\t%s\n\n",
- netload.flags,
- netload.if_flags,
- (guint32) netload.address, address_string,
- (guint32) netload.subnet, subnet_string,
- netload.mtu,
- netload.collisions,
- netload.packets_in,
- netload.packets_out,
- netload.packets_total,
- netload.bytes_in,
- netload.bytes_out,
- netload.bytes_total,
- netload.errors_in,
- netload.errors_out,
- netload.errors_total,
- address6_string,
- prefix6_string,
- (int) netload.scope6,
- hwaddress_string);
-
-
- g_free (address_string);
- g_free (subnet_string);
-
- glibtop_close ();
-
- exit (0);
-}
diff --git a/examples/openfiles.c b/examples/openfiles.c
deleted file mode 100644
index 9811fe0e..00000000
--- a/examples/openfiles.c
+++ /dev/null
@@ -1,68 +0,0 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <glibtop.h>
-#include <glibtop/procopenfiles.h>
-
-#include <stdlib.h>
-
-#include <unistd.h>
-
-static void show_open_files(pid_t pid)
-{
- glibtop_proc_open_files buf;
- glibtop_open_files_entry *files;
- unsigned i;
-
- files = glibtop_get_proc_open_files(&buf, pid);
-
- printf("<%ld>\n", (long)pid);
-
- for(i = 0; i < buf.number; ++i)
- {
- printf("\tfd = %d\t", files[i].fd);
-
- switch(files[i].type)
- {
- case GLIBTOP_FILE_TYPE_FILE:
- printf("file \"%s\"\n", files[i].info.file.name);
- break;
-
- case GLIBTOP_FILE_TYPE_PIPE:
- printf("pipe\n");
- break;
-
- case GLIBTOP_FILE_TYPE_INETSOCKET:
- printf("socket %s:%d\n", files[i].info.sock.dest_host, files[i].info.sock.dest_port);
- break;
-
- case GLIBTOP_FILE_TYPE_LOCALSOCKET:
- printf("localsocket %s\n", files[i].info.localsock.name);
- break;
- }
- }
-
- putchar('\n');
-
- g_free(files);
-}
-
-
-int main(int argc, char **argv)
-{
- glibtop_init();
-
- show_open_files(getpid());
-
- while(*++argv)
- {
- pid_t pid = strtol(*argv, NULL, 10);
- show_open_files(pid);
- }
-
- glibtop_close();
-
- return 0;
-}
-
diff --git a/examples/pprint.c b/examples/pprint.c
deleted file mode 100644
index 9a2f04c8..00000000
--- a/examples/pprint.c
+++ /dev/null
@@ -1,324 +0,0 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <glibtop.h>
-
-#include <glibtop/union.h>
-
-#include <unistd.h>
-
-#include <stdio.h>
-#include <stddef.h>
-
-
-#define buf_offsetof(MEMBER) ((ptrdiff_t)&(buf.MEMBER) - (ptrdiff_t)&buf)
-
-#define HEADER_PPRINT(FUNC) printf("### " #FUNC " ###\nsizeof *buf = %lu B\n", \
-(unsigned long) sizeof buf)
-
-#define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \
-(unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA)
-
-#define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \
-size_t i; \
-printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \
-(unsigned long) sizeof buf.ARRAY, (unsigned long) buf_offsetof(ARRAY),\
-(unsigned long) G_N_ELEMENTS(buf.ARRAY)); \
-for(i = 0; i < (SIZE - 1); ++i) printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \
-printf(".%u = " FORMAT " }\n", SIZE - 1 , buf.ARRAY[SIZE - 1]); \
-} while(0)
-
-#define FOOTER_PPRINT() putchar('\n');
-
-
-
-static void pprint_get_cpu(void)
-{
- glibtop_cpu buf;
-
- glibtop_get_cpu(&buf);
-
- HEADER_PPRINT(glibtop_get_cpu);
- PPRINT(flags, "%#llx");
- PPRINT(total, "%llu");
- PPRINT(user, "%llu");
- PPRINT(nice, "%llu");
- PPRINT(sys, "%llu");
- PPRINT(idle, "%llu");
- PPRINT(iowait, "%llu");
- PPRINT(irq, "%llu");
- PPRINT(softirq, "%llu");
- PPRINT(frequency, "%llu");
- PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu");
- PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu");
- PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu");
- PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu");
- PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu");
- PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu");
- PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu");
- PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu");
- PPRINT(xcpu_flags, "%llx");
- FOOTER_PPRINT();
-}
-
-
-
-static void pprint_get_fsusage(const char *mountpoint)
-{
- glibtop_fsusage buf;
-
- glibtop_get_fsusage(&buf, mountpoint);
-
- HEADER_PPRINT(glibtop_get_fsusage);
- printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint);
- PPRINT(flags, "%#llx");
- PPRINT(blocks, "%llu");
- PPRINT(bfree, "%llu");
- PPRINT(bavail, "%llu");
- PPRINT(files, "%llu");
- PPRINT(ffree, "%llu");
- PPRINT(block_size, "%u");
- PPRINT(read, "%llu");
- PPRINT(write, "%llu");
- FOOTER_PPRINT();
-}
-
-
-
-static void pprint_get_loadavg(void)
-{
- glibtop_loadavg buf;
-
- glibtop_get_loadavg(&buf);
-
- HEADER_PPRINT(glibtop_get_loadavg);
- PPRINT(flags, "%#llx");
- PPRINT_ARRAY(loadavg, 3, "%f");
- PPRINT(nr_running, "%llu");
- PPRINT(nr_tasks, "%llu");
- PPRINT(last_pid, "%llu");
- FOOTER_PPRINT();
-}
-
-
-
-static void pprint_get_mem(void)
-{
- glibtop_mem buf;
-
- glibtop_get_mem(&buf);
-
- HEADER_PPRINT(glibtop_get_mem);
- PPRINT(flags, "%#llx");
- PPRINT(total, "%llu");
- PPRINT(used, "%llu");
- PPRINT(free, "%llu");
- PPRINT(shared, "%llu");
- PPRINT(buffer, "%llu");
- PPRINT(cached, "%llu");
- PPRINT(user, "%llu");
- PPRINT(locked, "%llu");
- FOOTER_PPRINT();
-}
-
-
-
-static void pprint_get_mountlist(gboolean allfs)
-{
- glibtop_mountlist buf;
- glibtop_mountentry *entries;
- size_t i;
-
- entries = glibtop_get_mountlist(&buf, allfs);
-
- HEADER_PPRINT(glibtop_get_mountlist);
- printf("glibtop_get_mountlist (allfs = %d)\n", allfs);
- PPRINT(flags, "%#llx");
- PPRINT(number, "%llu");
- PPRINT(total, "%llu");
- PPRINT(size, "%llu");
-
- printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number);
-
- for(i = 0; i < buf.number; ++i)
- {
- printf("\t\t .%lu = { .dev = %#llx,"
- " .devname = \"%s\","
- " .mountir = \"%s\","
- " .type = \"%s\" }\n",
- (unsigned long) i, entries[i].dev,
- entries[i].devname,
- entries[i].mountdir,
- entries[i].type);
- }
-
- printf("\t\t}\n");
- FOOTER_PPRINT();
-
- g_free(entries);
-}
-
-
-
-static void pprint_get_msg_limits(void)
-{
- glibtop_msg_limits buf;
-
- glibtop_get_msg_limits(&buf);
-
- HEADER_PPRINT(glibtop_get_msg_limits);
- PPRINT(flags, "%#llx");
- PPRINT(msgpool, "%llu");
- PPRINT(msgmap, "%llu");
- PPRINT(msgmax, "%llu");
- PPRINT(msgmnb, "%llu");
- PPRINT(msgmni, "%llu");
- PPRINT(msgssz, "%llu");
- PPRINT(msgtql, "%llu");
- FOOTER_PPRINT();
-}
-
-
-
-static void pprint_get_netload(const char *iface)
-{
- glibtop_netload buf;
-
- glibtop_get_netload(&buf, iface);
-
- HEADER_PPRINT(glibtop_get_netload);
- printf("glibtop_get_netload (iface = \"%s\")\n", iface);
- PPRINT(flags, "%#llx");
- FOOTER_PPRINT();
-}
-
-
-static void pprint_get_netlist(void)
-{
- glibtop_netlist buf;
- char **devices;
- guint32 i;
-
- devices = glibtop_get_netlist(&buf);
-
- HEADER_PPRINT(glibtop_get_netlist);
-
- for(i = 0; i < buf.number; ++i)
- {
- printf("\t%s\n", devices[i]);
- }
-
- FOOTER_PPRINT();
-
- g_strfreev(devices);
-}
-
-
-
-static void pprint_get_swap(void)
-{
- glibtop_swap buf;
-
- glibtop_get_swap(&buf);
-
- HEADER_PPRINT(glibtop_get_swap);
- PPRINT(flags, "%#llx");
- PPRINT(total, "%llu");
- PPRINT(used, "%llu");
- PPRINT(free, "%llu");
- PPRINT(pagein, "%llu");
- PPRINT(pageout, "%llu");
- FOOTER_PPRINT();
-}
-
-
-
-static void pprint_get_uptime(void)
-{
- glibtop_uptime buf;
-
- glibtop_get_uptime(&buf);
-
- HEADER_PPRINT(glibtop_get_uptime);
- PPRINT(flags, "%#llx");
- PPRINT(uptime, "%f");
- PPRINT(idletime, "%f");
- PPRINT(boot_time, "%llu");
- FOOTER_PPRINT();
-}
-
-
-
-
-static void pprint_get_proc_kernel(pid_t pid)
-{
- glibtop_proc_kernel buf;
-
- glibtop_get_proc_kernel(&buf, pid);
-
- HEADER_PPRINT(glibtop_get_proc_kernel);
- PPRINT(flags, "%#llx");
- PPRINT(k_flags, "%llu");
- PPRINT(min_flt, "%llu");
- PPRINT(maj_flt, "%llu");
- PPRINT(cmin_flt, "%llu");
- PPRINT(cmaj_flt, "%llu");
- FOOTER_PPRINT();
-}
-
-
-static void pprint_get_proc_mem(pid_t pid)
-{
- glibtop_proc_mem buf;
-
- glibtop_get_proc_mem(&buf, pid);
-
- HEADER_PPRINT(glibtop_get_proc_mem);
- PPRINT(flags, "%#llx");
- PPRINT(size, "%llu");
- PPRINT(vsize, "%llu");
- PPRINT(resident, "%llu");
- PPRINT(share, "%llu");
- PPRINT(rss, "%llu");
- PPRINT(rss_rlim, "%llu");
- FOOTER_PPRINT();
-}
-
-
-
-int main()
-{
- glibtop_init();
-
- pprint_get_cpu();
-
- pprint_get_fsusage("/");
-
- pprint_get_loadavg();
-
- pprint_get_mem();
-
- pprint_get_mountlist(TRUE);
- pprint_get_mountlist(FALSE);
-
- pprint_get_msg_limits();
-
- pprint_get_swap();
-
- pprint_get_netlist();
-
- pprint_get_netload("eth0");
- pprint_get_netload("ppp0");
- pprint_get_netload("<unknown>");
-/* pprint_get_sysinfo(); */
-
- pprint_get_uptime();
-
- pprint_get_proc_kernel(getpid());
- pprint_get_proc_mem(getpid());
-
- glibtop_close();
-
- return 0;
-}
diff --git a/examples/procargs.c b/examples/procargs.c
deleted file mode 100644
index d5bd1fdd..00000000
--- a/examples/procargs.c
+++ /dev/null
@@ -1,51 +0,0 @@
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <glibtop.h>
-#include <glibtop/procargs.h>
-
-#include <stdlib.h>
-
-#include <unistd.h>
-
-static void show_args(pid_t pid, unsigned max_len)
-{
- glibtop_proc_args buf;
- char ** const pargv = glibtop_get_proc_argv(&buf, pid, max_len);
-
- char **parg = pargv;
-
- printf("<%ld>\t", (long)pid);
-
- while(*parg)
- {
- printf("\"%s\" ", *parg);
- parg++;
- }
-
- putchar('\n');
-
- g_strfreev(pargv);
-}
-
-
-int main(int argc, char **argv)
-{
- glibtop_init();
-
- show_args(getpid(), 0);
- show_args(getpid(), 15);
-
- while(*++argv)
- {
- pid_t pid = strtol(*argv, NULL, 10);
- show_args(pid, 0);
- show_args(pid, 15);
- }
-
- glibtop_close();
-
- return 0;
-}
-
diff --git a/examples/proclist.c b/examples/proclist.c
deleted file mode 100644
index 542e8e98..00000000
--- a/examples/proclist.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <glibtop.h>
-#include <glibtop/proclist.h>
-
-#include <glib.h>
-
-#include <stdio.h>
-
-#include <unistd.h>
-#include <sys/types.h>
-
-
-static void print_pids(guint64 which, guint64 arg)
-{
- unsigned *pids;
- unsigned i;
- glibtop_proclist buf;
-
- pids = glibtop_get_proclist(&buf, which, arg);
-
- printf("glibtop_get_proclist(%#llx, %llu) -> %lu processes\n",
- which, arg, (unsigned long)buf.number);
-
- for (i = 0; i < buf.number; ++i)
- printf("%u ", pids[i]);
-
- putchar('\n');
- putchar('\n');
-
- g_free(pids);
-}
-
-
-int main()
-{
- glibtop_init();
-
- print_pids(GLIBTOP_KERN_PROC_ALL, 0);
- print_pids(GLIBTOP_KERN_PROC_UID, getuid());
-
- glibtop_close();
-
- return 0;
-}
diff --git a/examples/procmap.c b/examples/procmap.c
deleted file mode 100644
index 46a3a1ea..00000000
--- a/examples/procmap.c
+++ /dev/null
@@ -1,163 +0,0 @@
-/* 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.
-*/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <locale.h>
-#include <libintl.h>
-#include <stdio.h>
-
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-
-#include <glibtop/parameter.h>
-
-#include <glibtop/procmap.h>
-
-
-#include <sys/resource.h>
-#include <sys/mman.h>
-
-#ifndef PROFILE_COUNT
-#define PROFILE_COUNT 1
-#endif
-
-int
-main (int argc, char *argv [])
-{
- glibtop_proc_map procmap;
- glibtop_map_entry *maps;
- unsigned method, count, port, i;
- char buffer [BUFSIZ];
- pid_t pid;
-
- count = PROFILE_COUNT;
-
- setlocale (LC_ALL, "");
- bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR);
- textdomain (GETTEXT_PACKAGE);
-
- glibtop_init_r (&glibtop_global_server, 0, GLIBTOP_INIT_NO_OPEN);
-
- glibtop_get_parameter (GLIBTOP_PARAM_METHOD, &method, sizeof (method));
-
- printf ("Method = %d\n", method);
-
- count = glibtop_get_parameter (GLIBTOP_PARAM_COMMAND, buffer, BUFSIZ);
- buffer [count] = 0;
-
- printf ("Command = '%s'\n", buffer);
-
- count = glibtop_get_parameter (GLIBTOP_PARAM_HOST, buffer, BUFSIZ);
- buffer [count] = 0;
-
- glibtop_get_parameter (GLIBTOP_PARAM_PORT, &port, sizeof (port));
-
- printf ("Host = '%s' - %u\n\n", buffer, port);
-
- glibtop_init_r (&glibtop_global_server, 0, 0);
-
- if ((argc != 2) || (sscanf (argv [1], "%d", (int *) &pid) != 1))
- g_error ("Usage: %s pid", argv [0]);
-
- fprintf (stderr, "Getting memory maps for pid %d.\n\n", (int) pid);
-
- maps = glibtop_get_proc_map (&procmap, pid);
-
- for (i = 0; i < procmap.number; i++) {
- const char *filename = NULL;
- unsigned device, device_major, device_minor;
- char perm [5];
-
- if (maps [i].flags & (1L << GLIBTOP_MAP_ENTRY_FILENAME))
- filename = maps [i].filename;
-
- perm [0] = (maps [i].perm & GLIBTOP_MAP_PERM_READ) ? 'r' : '-';
- perm [1] = (maps [i].perm & GLIBTOP_MAP_PERM_WRITE) ? 'w' : '-';
- perm [2] = (maps [i].perm & GLIBTOP_MAP_PERM_EXECUTE) ? 'x' : '-';
- perm [3] = (maps [i].perm & GLIBTOP_MAP_PERM_SHARED) ? 's' : '-';
- perm [4] = (maps [i].perm & GLIBTOP_MAP_PERM_PRIVATE) ? 'p' : '-';
-
- device = (unsigned long) maps [i].device;
- device_minor = (device & 255);
- device_major = ((device >> 8) & 255);
-
- if (filename) {
- char *format;
-
- if (sizeof (void*) == 8)
- format = "%016lx-%016lx %016lx - "
- "%02x:%02x %08lu - %4s - %s\n";
- else
- format = "%08lx-%08lx %08lx - "
- "%02x:%02x %08lu - %4s - %s\n";
-
- fprintf (stderr, format,
- (unsigned long) maps [i].start,
- (unsigned long) maps [i].end,
- (unsigned long) maps [i].offset,
- device_major, device_minor,
- (unsigned long) maps [i].inode,
- perm, filename);
- } else {
- char * format;
-
- if (sizeof (void*) == 8)
- format = "%016lx-%016lx %016lx - "
- "%02x:%02x %08lu - %4s\n";
- else
- format = "%08lx-%08lx %08lx - "
- "%02x:%02x %08lu - %4s\n";
-
- fprintf (stderr, format,
- (unsigned long) maps [i].start,
- (unsigned long) maps [i].end,
- (unsigned long) maps [i].offset,
- device_major, device_minor,
- (unsigned long) maps [i].inode,
- perm);
- }
-
-
- g_print("smaps flags:%#llx size:%lluKiB rss:%lluKiB "
- "shared_clean:%lluKib shared_dirty:%lluKiB "
- "private_clean:%lluKiB private_dirty: %lluKiB\n",
- maps[i].flags,
- maps[i].size >> 10,
- maps[i].rss >> 10,
- maps[i].shared_clean >> 10,
- maps[i].shared_dirty >> 10,
- maps[i].private_clean >> 10,
- maps[i].private_dirty >> 10);
-
- if (filename && (filename != maps [i].filename))
- g_free ((void*)filename);
- }
-
- g_free (maps);
-
- glibtop_close ();
-
- exit (0);
-}
diff --git a/examples/second.c b/examples/second.c
deleted file mode 100644
index ac55462c..00000000
--- a/examples/second.c
+++ /dev/null
@@ -1,303 +0,0 @@
-/* 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.
-*/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <locale.h>
-#include <math.h>
-#include <stdio.h>
-#include <libintl.h>
-
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-
-#include <glibtop/union.h>
-#include <glibtop/sysdeps.h>
-
-static void
-output (pid_t pid)
-{
- glibtop_union data;
- char *args;
- unsigned i;
-
-#if HAVE_LIBGTOP_SMP
- unsigned long total;
- double p_total, p_utime, p_stime;
- double b_total, b_utime, b_stime;
- double s_total, s_utime, s_stime;
- double my_utime, my_stime;
- unsigned int ncpu;
-#endif
-
- printf ("\n");
-
- glibtop_get_proc_state (&data.proc_state, pid);
-
- printf ("Proc_State PID %5d (0x%08lx): "
- "'%s', %c, %lu, %lu\n", (int) pid,
- (unsigned long) data.proc_state.flags,
- data.proc_state.cmd, data.proc_state.state,
- (unsigned long) data.proc_state.uid,
- (unsigned long) data.proc_state.gid);
-
- glibtop_get_proc_uid (&data.proc_uid, pid);
-
- printf ("Proc_Uid PID %5d (0x%08lx): "
- "%d %d %d %d %d %d %d %d %d %d %d %d\n", (int) pid,
- (unsigned long) data.proc_uid.flags,
- data.proc_uid.uid, data.proc_uid.euid,
- data.proc_uid.gid, data.proc_uid.egid,
- data.proc_uid.pid, data.proc_uid.ppid,
- data.proc_uid.pgrp, data.proc_uid.session,
- data.proc_uid.tty, data.proc_uid.tpgid,
- data.proc_uid.priority, data.proc_uid.nice);
-
- glibtop_get_proc_mem (&data.proc_mem, pid);
-
- printf ("Proc_Mem PID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu\n", (int) pid,
- (unsigned long) data.proc_mem.flags,
- (unsigned long) data.proc_mem.size,
- (unsigned long) data.proc_mem.vsize,
- (unsigned long) data.proc_mem.resident,
- (unsigned long) data.proc_mem.share,
- (unsigned long) data.proc_mem.rss,
- (unsigned long) data.proc_mem.rss_rlim);
-
- glibtop_get_proc_segment (&data.proc_segment, pid);
-
- printf ("Proc_Segment PID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu %lu %lu\n", (int) pid,
- (unsigned long) data.proc_segment.flags,
- (unsigned long) data.proc_segment.text_rss,
- (unsigned long) data.proc_segment.shlib_rss,
- (unsigned long) data.proc_segment.data_rss,
- (unsigned long) data.proc_segment.stack_rss,
- (unsigned long) data.proc_segment.dirty_size,
- (unsigned long) data.proc_segment.start_code,
- (unsigned long) data.proc_segment.end_code,
- (unsigned long) data.proc_segment.start_stack);
-
- glibtop_get_proc_time (&data.proc_time, pid);
-
- printf ("Proc_Time PID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu %lu %lu %lu %lu\n", (int) pid,
- (unsigned long) data.proc_time.flags,
- (unsigned long) data.proc_time.start_time,
- (unsigned long) data.proc_time.rtime,
- (unsigned long) data.proc_time.utime,
- (unsigned long) data.proc_time.stime,
- (unsigned long) data.proc_time.cutime,
- (unsigned long) data.proc_time.cstime,
- (unsigned long) data.proc_time.timeout,
- (unsigned long) data.proc_time.it_real_value,
- (unsigned long) data.proc_time.frequency);
-
- glibtop_get_proc_signal (&data.proc_signal, pid);
-
- printf ("Proc_Signal PID %5d (0x%08lx): "
- "%lu %lu %lu %lu\n", (int) pid,
- (unsigned long) data.proc_signal.flags,
- (unsigned long) data.proc_signal.signal,
- (unsigned long) data.proc_signal.blocked,
- (unsigned long) data.proc_signal.sigignore,
- (unsigned long) data.proc_signal.sigcatch);
-
- glibtop_get_proc_kernel (&data.proc_kernel, pid);
-
- printf ("Proc_Kernel PID %5d (0x%08lx): "
- "%lu %lu %lu %lu %lu 0x%lx 0x%lx 0x%lx (%s)\n", (int) pid,
- (unsigned long) data.proc_kernel.flags,
- (unsigned long) data.proc_kernel.k_flags,
- (unsigned long) data.proc_kernel.min_flt,
- (unsigned long) data.proc_kernel.maj_flt,
- (unsigned long) data.proc_kernel.cmin_flt,
- (unsigned long) data.proc_kernel.cmaj_flt,
- (unsigned long) data.proc_kernel.kstk_esp,
- (unsigned long) data.proc_kernel.kstk_eip,
- (unsigned long) data.proc_kernel.nwchan,
- data.proc_kernel.wchan);
-
- printf ("\n");
-
- args = glibtop_get_proc_args (&data.proc_args, pid, 0);
-
- for (i = 0; i < data.proc_args.size; i++) {
- if (args [i]) continue;
- args [i] = '|';
- }
-
- printf ("Proc_Args PID %5d (0x%08lx): %lu - '%s'\n", (int) pid,
- (unsigned long) data.proc_args.flags,
- (unsigned long) data.proc_args.size,
- args ? args : "");
-
- g_free (args);
-
- printf ("\n");
-
-#if HAVE_LIBGTOP_SMP
- ncpu = glibtop_global_server->ncpu;
-
- glibtop_get_proc_time (&data.proc_time, pid);
-
- total = (unsigned long) data.proc_time.utime +
- (unsigned long) data.proc_time.stime;
-
- p_total = total ? (double) total : 1.0;
-
- p_utime = (double) data.proc_time.utime * 100.0 / p_total;
- p_stime = (double) data.proc_time.stime * 100.0 / p_total;
-
- b_total = p_total / ncpu;
- b_utime = (double) data.proc_time.utime / ncpu;
- b_stime = (double) data.proc_time.stime / ncpu;
-
- s_total = 0.0; s_utime = 0.0; s_stime = 0.0;
-
- printf ("Proc_Time PID %5d (0x%08lx): %12lu %12lu %12lu\n", (int) pid,
- (unsigned long) data.proc_time.flags, total,
- (unsigned long) data.proc_time.utime,
- (unsigned long) data.proc_time.stime);
-
- for (i = 0; i < ncpu; i++) {
- unsigned long this_total;
-
- this_total = (unsigned long) data.proc_time.xcpu_utime [i] +
- (unsigned long) data.proc_time.xcpu_stime [i];
-
- printf ("CPU %3d PID %5d (0x%08lx): %12lu %12lu %12lu\n", i,
- (int) pid, (unsigned long) data.proc_time.flags, this_total,
- (unsigned long) data.proc_time.xcpu_utime [i],
- (unsigned long) data.proc_time.xcpu_stime [i]);
-
- s_total += fabs (((double) this_total) - b_total);
- s_utime += fabs (((double) data.proc_time.xcpu_utime [i]) - b_utime);
- s_stime += fabs (((double) data.proc_time.xcpu_stime [i]) - b_stime);
- }
-
- printf ("\n");
-
- printf ("Proc_Time PID %5d (0x%08lx): %12.3f %12.3f %12.3f\n", (int) pid,
- (unsigned long) data.proc_time.flags, 100.0, p_utime, p_stime);
-
- for (i = 0; i < ncpu; i++) {
- double this_p_total, this_p_utime, this_p_stime;
- unsigned long this_total;
-
- this_total = (unsigned long) data.proc_time.xcpu_utime [i] +
- (unsigned long) data.proc_time.xcpu_stime [i];
-
- this_p_total = (double) this_total * 100.0 / p_total;
-
- this_p_utime = (double) data.proc_time.xcpu_utime [i] * 100.0 / p_total;
- this_p_stime = (double) data.proc_time.xcpu_stime [i] * 100.0 / p_total;
-
- printf ("CPU %3d PID %5d (0x%08lx): %12.3f %12.3f %12.3f\n", i,
- (int) pid, (unsigned long) data.proc_time.flags,
- this_p_total, this_p_utime, this_p_stime);
- }
-
- printf ("\n");
-
- my_utime = (unsigned long) data.proc_time.utime ?
- (double) data.proc_time.utime : 1.0;
- my_stime = (unsigned long) data.proc_time.stime ?
- (double) data.proc_time.stime : 1.0;
-
- printf ("SPIN: %31s %12.3f %12.3f %12.3f\n", "", s_total * 100.0 / p_total,
- s_utime * 100.0 / my_utime, s_stime * 100.0 / my_stime);
-
- printf ("\n");
-#endif
-}
-
-int
-main (int argc, char *argv [])
-{
- glibtop_proclist proclist;
- glibtop_sysdeps sysdeps;
- unsigned *ptr, pid, i;
-
- setlocale (LC_ALL, "");
- bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR);
- textdomain (GETTEXT_PACKAGE);
-
- glibtop_init ();
-
- glibtop_get_sysdeps (&sysdeps);
-
- printf ("Sysdeps (0x%08lx): %lu, %lu, %lu, %lu, %lu, "
- "%lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu, %lu\n",
- (unsigned long) sysdeps.flags,
- (unsigned long) sysdeps.cpu,
- (unsigned long) sysdeps.mem,
- (unsigned long) sysdeps.swap,
- (unsigned long) sysdeps.uptime,
- (unsigned long) sysdeps.loadavg,
- (unsigned long) sysdeps.shm_limits,
- (unsigned long) sysdeps.msg_limits,
- (unsigned long) sysdeps.sem_limits,
- (unsigned long) sysdeps.proclist,
- (unsigned long) sysdeps.proc_state,
- (unsigned long) sysdeps.proc_uid,
- (unsigned long) sysdeps.proc_mem,
- (unsigned long) sysdeps.proc_time,
- (unsigned long) sysdeps.proc_signal,
- (unsigned long) sysdeps.proc_kernel,
- (unsigned long) sysdeps.proc_segment);
-
- if ((argc == 2) && (sscanf (argv [1], "%d", &pid) == 1)) {
- output (pid);
-
- exit (0);
- }
-
- printf ("\n");
-
- ptr = glibtop_get_proclist (&proclist, 0, 0);
-
- printf ("Proclist (0x%08lx): %lu, %lu, %lu\n",
- (unsigned long) proclist.flags,
- (unsigned long) proclist.number,
- (unsigned long) proclist.size,
- (unsigned long) proclist.total);
-
- if (!ptr) exit (1);
-
- for (i = 0; i < proclist.number; i++) {
-
- pid = ptr [i];
-
- output (pid);
- }
-
- g_free (ptr);
-
- exit (0);
-}
-
-
-
diff --git a/examples/smp.c b/examples/smp.c
deleted file mode 100644
index bd4e9179..00000000
--- a/examples/smp.c
+++ /dev/null
@@ -1,124 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, September 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.
-*/
-
-#include <config.h>
-
-#include <locale.h>
-#include <libintl.h>
-#include <math.h>
-#include <stdio.h>
-
-#include <glibtop.h>
-#include <glibtop/cpu.h>
-
-int
-main (int argc, char *argv [])
-{
- glibtop_cpu cpu;
- unsigned long frequency;
- double total, user, nice, sys, idle;
- double b_total, b_user, b_nice, b_sys, b_idle;
- double s_total, s_user, s_nice, s_sys, s_idle;
- char separator [BUFSIZ], buffer [BUFSIZ];
- int ncpu, i;
-
- glibtop_init();
-
- glibtop_get_cpu (&cpu);
-
- ncpu = glibtop_global_server->ncpu ? glibtop_global_server->ncpu : 1;
-
- frequency = (unsigned long) cpu.frequency;
-
- total = ((unsigned long) cpu.total) ? ((double) cpu.total) : 1.0;
- user = ((unsigned long) cpu.user) ? ((double) cpu.user) : 1.0;
- nice = ((unsigned long) cpu.nice) ? ((double) cpu.nice) : 1.0;
- sys = ((unsigned long) cpu.sys) ? ((double) cpu.sys) : 1.0;
- idle = ((unsigned long) cpu.idle) ? ((double) cpu.idle) : 1.0;
-
- s_total = s_user = s_nice = s_sys = s_idle = 0.0;
-
- b_total = total / ncpu;
- b_user = user / ncpu;
- b_nice = nice / ncpu;
- b_sys = sys / ncpu;
- b_idle = idle / ncpu;
-
- memset (separator, '-', 91);
- separator [92] = '\0';
-
- sprintf (buffer, "Ticks (%ld per second):", frequency);
-
- printf ("\n\n%-26s %12s %12s %12s %12s %12s\n%s\n", buffer,
- "Total", "User", "Nice", "Sys", "Idle", separator);
-
- printf ("CPU (0x%08lx): %12.0f %12.0f %12.0f %12.0f %12.0f\n\n",
- (unsigned long) cpu.flags, total, user, nice, sys, idle);
-
- for (i = 0; i < glibtop_global_server->ncpu; i++) {
- printf ("CPU %3d (0x%08lx): %12lu %12lu %12lu %12lu %12lu\n", i,
- (unsigned long) cpu.flags,
- (unsigned long) cpu.xcpu_total [i],
- (unsigned long) cpu.xcpu_user [i],
- (unsigned long) cpu.xcpu_nice [i],
- (unsigned long) cpu.xcpu_sys [i],
- (unsigned long) cpu.xcpu_idle [i]);
-
- s_total += fabs (((double) cpu.xcpu_total [i]) - b_total);
- s_user += fabs (((double) cpu.xcpu_user [i]) - b_user);
- s_nice += fabs (((double) cpu.xcpu_nice [i]) - b_nice);
- s_sys += fabs (((double) cpu.xcpu_sys [i]) - b_sys);
- s_idle += fabs (((double) cpu.xcpu_idle [i]) - b_idle);
- }
-
- printf ("%s\n\n\n", separator);
-
- printf ("%-26s %12s %12s %12s %12s %12s\n%s\n", "Percent:",
- "Total (%)", "User (%)", "Nice (%)", "Sys (%)",
- "Idle (%)", separator);
-
- printf ("CPU (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n\n",
- (unsigned long) cpu.flags, (double) total * 100.0 / total,
- (double) user * 100.0 / total,
- (double) nice * 100.0 / total,
- (double) sys * 100.0 / total,
- (double) idle * 100.0 / total);
-
- for (i = 0; i < glibtop_global_server->ncpu; i++) {
- double p_total, p_user, p_nice, p_sys, p_idle;
-
- p_total = ((double) cpu.xcpu_total [i]) * 100.0 / total;
- p_user = ((double) cpu.xcpu_user [i]) * 100.0 / user;
- p_nice = ((double) cpu.xcpu_nice [i]) * 100.0 / nice;
- p_sys = ((double) cpu.xcpu_sys [i]) * 100.0 / sys;
- p_idle = ((double) cpu.xcpu_idle [i]) * 100.0 / idle;
-
- printf ("CPU %3d (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n",
- i, (unsigned long) cpu.flags, p_total, p_user, p_nice,
- p_sys, p_idle);
- }
-
- printf ("%s\n%-26s %12.3f %12.3f %12.3f %12.3f %12.3f\n\n", separator,
- "Spin:", s_total * 100.0 / total, s_user * 100.0 / user,
- s_nice * 100.0 / nice, s_sys * 100.0 / sys, s_idle * 100.0 / idle);
-
- exit (0);
-}
diff --git a/examples/sysdeps.c b/examples/sysdeps.c
deleted file mode 100644
index 92d97f80..00000000
--- a/examples/sysdeps.c
+++ /dev/null
@@ -1,152 +0,0 @@
-/* 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.
-*/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <locale.h>
-#include <libintl.h>
-#include <stdio.h>
-
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-#include <glibtop/sysdeps.h>
-
-#include <glibtop/parameter.h>
-
-#ifndef PROFILE_COUNT
-#define PROFILE_COUNT 1
-#endif
-
-int
-main (int argc, char *argv [])
-{
- glibtop_sysdeps sysdeps;
- unsigned method, count, port;
- char buffer [BUFSIZ];
-
- count = PROFILE_COUNT;
-
- setlocale (LC_ALL, "");
- bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR);
- textdomain (GETTEXT_PACKAGE);
-
- glibtop_init_r (&glibtop_global_server, 0, GLIBTOP_INIT_NO_OPEN);
-
- glibtop_get_parameter (GLIBTOP_PARAM_METHOD, &method, sizeof (method));
-
- printf ("Method = %d\n", method);
-
- count = glibtop_get_parameter (GLIBTOP_PARAM_COMMAND, buffer, BUFSIZ);
- buffer [count] = 0;
-
- printf ("Command = '%s'\n", buffer);
-
- count = glibtop_get_parameter (GLIBTOP_PARAM_HOST, buffer, BUFSIZ);
- buffer [count] = 0;
-
- glibtop_get_parameter (GLIBTOP_PARAM_PORT, &port, sizeof (port));
-
- printf ("Host = '%s' - %u\n\n", buffer, port);
-
- glibtop_init_r (&glibtop_global_server, 0, 0);
-
- glibtop_get_sysdeps (&sysdeps);
-
-#define FEATURE_CHECK(f) ((sysdeps.features & (1L << GLIBTOP_SYSDEPS_##f)) ? 1 : 0)
-
- printf ("Sysdeps (0x%08lx):\n\n"
- "\tfeatures:\t\t0x%08lx\n\n"
- "\tcpu:\t\t%d\t0x%08lx\n"
- "\tmem:\t\t%d\t0x%08lx\n"
- "\tswap:\t\t%d\t0x%08lx\n\n"
- "\tuptime:\t\t%d\t0x%08lx\n"
- "\tloadavg:\t%d\t0x%08lx\n\n"
- "\tshm_limits:\t%d\t0x%08lx\n"
- "\tmsg_limits:\t%d\t0x%08lx\n"
- "\tsem_limits:\t%d\t0x%08lx\n\n"
- "\tproclist:\t%d\t0x%08lx\n\n"
- "\tproc_state:\t%d\t0x%08lx\n"
- "\tproc_uid:\t%d\t0x%08lx\n"
- "\tproc_mem:\t%d\t0x%08lx\n"
- "\tproc_time:\t%d\t0x%08lx\n"
- "\tproc_signal:\t%d\t0x%08lx\n"
- "\tproc_kernel:\t%d\t0x%08lx\n"
- "\tproc_segment:\t%d\t0x%08lx\n\n"
- "\tproc_args:\t%d\t0x%08lx\n"
- "\tproc_map:\t%d\t0x%08lx\n\n"
- "\tmountlist:\t%d\t0x%08lx\n"
- "\tfsusage:\t%d\t0x%08lx\n\n"
- "\tnetload:\t%d\t0x%08lx\n"
- "\tppp:\t\t%d\t0x%08lx\n\n",
- (unsigned long) sysdeps.flags,
- (unsigned long) sysdeps.features,
- FEATURE_CHECK(CPU),
- (unsigned long) sysdeps.cpu,
- FEATURE_CHECK(MEM),
- (unsigned long) sysdeps.mem,
- FEATURE_CHECK(SWAP),
- (unsigned long) sysdeps.swap,
- FEATURE_CHECK(UPTIME),
- (unsigned long) sysdeps.uptime,
- FEATURE_CHECK(LOADAVG),
- (unsigned long) sysdeps.loadavg,
- FEATURE_CHECK(SHM_LIMITS),
- (unsigned long) sysdeps.shm_limits,
- FEATURE_CHECK(MSG_LIMITS),
- (unsigned long) sysdeps.msg_limits,
- FEATURE_CHECK(SEM_LIMITS),
- (unsigned long) sysdeps.sem_limits,
- FEATURE_CHECK(PROCLIST),
- (unsigned long) sysdeps.proclist,
- FEATURE_CHECK(PROC_STATE),
- (unsigned long) sysdeps.proc_state,
- FEATURE_CHECK(PROC_UID),
- (unsigned long) sysdeps.proc_uid,
- FEATURE_CHECK(PROC_MEM),
- (unsigned long) sysdeps.proc_mem,
- FEATURE_CHECK(PROC_TIME),
- (unsigned long) sysdeps.proc_time,
- FEATURE_CHECK(PROC_SIGNAL),
- (unsigned long) sysdeps.proc_signal,
- FEATURE_CHECK(PROC_KERNEL),
- (unsigned long) sysdeps.proc_kernel,
- FEATURE_CHECK(PROC_SEGMENT),
- (unsigned long) sysdeps.proc_segment,
- FEATURE_CHECK(PROC_ARGS),
- (unsigned long) sysdeps.proc_args,
- FEATURE_CHECK(PROC_MAP),
- (unsigned long) sysdeps.proc_map,
- FEATURE_CHECK(MOUNTLIST),
- (unsigned long) sysdeps.mountlist,
- FEATURE_CHECK(FSUSAGE),
- (unsigned long) sysdeps.fsusage,
- FEATURE_CHECK(NETLOAD),
- (unsigned long) sysdeps.netload,
- FEATURE_CHECK(PPP),
- (unsigned long) sysdeps.ppp);
-
- glibtop_close ();
-
- exit (0);
-}
diff --git a/examples/test.scm b/examples/test.scm
deleted file mode 100644
index 893893f5..00000000
--- a/examples/test.scm
+++ /dev/null
@@ -1,80 +0,0 @@
-(display (glibtop-names-sysdeps)) (newline)
-(display (glibtop-labels-sysdeps)) (newline)
-(display (glibtop-descriptions-sysdeps)) (newline)
-(display (glibtop-types-sysdeps)) (newline)
-
-(newline)
-
-(display (glibtop-names-cpu)) (newline)
-(display (glibtop-names-mem)) (newline)
-(display (glibtop-names-swap)) (newline)
-(display (glibtop-names-uptime)) (newline)
-(display (glibtop-names-loadavg)) (newline)
-(display (glibtop-names-shm_limits)) (newline)
-(display (glibtop-names-msg_limits)) (newline)
-(display (glibtop-names-sem_limits)) (newline)
-(display (glibtop-names-proclist)) (newline)
-(display (glibtop-names-proc_state)) (newline)
-(display (glibtop-names-proc_uid)) (newline)
-(display (glibtop-names-proc_mem)) (newline)
-(display (glibtop-names-proc_time)) (newline)
-(display (glibtop-names-proc_signal)) (newline)
-(display (glibtop-names-proc_kernel)) (newline)
-(display (glibtop-names-proc_segment)) (newline)
-
-(newline)
-
-(display (glibtop-labels-cpu)) (newline)
-(display (glibtop-labels-mem)) (newline)
-(display (glibtop-labels-swap)) (newline)
-(display (glibtop-labels-uptime)) (newline)
-(display (glibtop-labels-loadavg)) (newline)
-(display (glibtop-labels-shm_limits)) (newline)
-(display (glibtop-labels-msg_limits)) (newline)
-(display (glibtop-labels-sem_limits)) (newline)
-(display (glibtop-labels-proclist)) (newline)
-(display (glibtop-labels-proc_state)) (newline)
-(display (glibtop-labels-proc_uid)) (newline)
-(display (glibtop-labels-proc_mem)) (newline)
-(display (glibtop-labels-proc_time)) (newline)
-(display (glibtop-labels-proc_signal)) (newline)
-(display (glibtop-labels-proc_kernel)) (newline)
-(display (glibtop-labels-proc_segment)) (newline)
-
-(newline)
-
-(display (glibtop-descriptions-cpu)) (newline)
-(display (glibtop-descriptions-mem)) (newline)
-(display (glibtop-descriptions-swap)) (newline)
-(display (glibtop-descriptions-uptime)) (newline)
-(display (glibtop-descriptions-loadavg)) (newline)
-(display (glibtop-descriptions-shm_limits)) (newline)
-(display (glibtop-descriptions-msg_limits)) (newline)
-(display (glibtop-descriptions-sem_limits)) (newline)
-(display (glibtop-descriptions-proclist)) (newline)
-(display (glibtop-descriptions-proc_state)) (newline)
-(display (glibtop-descriptions-proc_uid)) (newline)
-(display (glibtop-descriptions-proc_mem)) (newline)
-(display (glibtop-descriptions-proc_time)) (newline)
-(display (glibtop-descriptions-proc_signal)) (newline)
-(display (glibtop-descriptions-proc_kernel)) (newline)
-(display (glibtop-descriptions-proc_segment)) (newline)
-
-(newline)
-
-(display (glibtop-types-cpu)) (newline)
-(display (glibtop-types-mem)) (newline)
-(display (glibtop-types-swap)) (newline)
-(display (glibtop-types-uptime)) (newline)
-(display (glibtop-types-loadavg)) (newline)
-(display (glibtop-types-shm_limits)) (newline)
-(display (glibtop-types-msg_limits)) (newline)
-(display (glibtop-types-sem_limits)) (newline)
-(display (glibtop-types-proclist)) (newline)
-(display (glibtop-types-proc_state)) (newline)
-(display (glibtop-types-proc_uid)) (newline)
-(display (glibtop-types-proc_mem)) (newline)
-(display (glibtop-types-proc_time)) (newline)
-(display (glibtop-types-proc_signal)) (newline)
-(display (glibtop-types-proc_kernel)) (newline)
-(display (glibtop-types-proc_segment)) (newline)
diff --git a/examples/timings.c b/examples/timings.c
deleted file mode 100644
index 8e3495b3..00000000
--- a/examples/timings.c
+++ /dev/null
@@ -1,360 +0,0 @@
-/* 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.
-*/
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <locale.h>
-#include <stdio.h>
-#include <libintl.h>
-
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-
-#include <glibtop/parameter.h>
-
-#include <glibtop/union.h>
-#include <glibtop/sysdeps.h>
-
-#include <sys/times.h>
-#include <sys/resource.h>
-
-#ifndef PROFILE_COUNT
-#define PROFILE_COUNT 100000L
-#endif
-
-#ifndef PROFILE_COUNT_EXPENSIVE
-#define PROFILE_COUNT_EXPENSIVE 10000L
-#endif
-
-#define ELAPSED_UTIME ((unsigned long) elapsed_utime.tv_sec * 1000000 + (unsigned long) elapsed_utime.tv_usec)
-#define ELAPSED_STIME ((unsigned long) elapsed_stime.tv_sec * 1000000 + (unsigned long) elapsed_stime.tv_usec)
-
-#define libgtop_timeradd(tvp, uvp, vvp) \
- do { \
- (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
- (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
- if ((vvp)->tv_usec >= 1000000) { \
- (vvp)->tv_sec++; \
- (vvp)->tv_usec -= 1000000; \
- } \
- } while (0)
-#define libgtop_timersub(tvp, uvp, vvp) \
- do { \
- (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
- (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
- if ((vvp)->tv_usec < 0) { \
- (vvp)->tv_sec--; \
- (vvp)->tv_usec += 1000000; \
- } \
- } while (0)
-
-int
-main (int argc, char *argv [])
-{
- glibtop_union data;
- unsigned c, count, *ptr;
- struct rusage total_start, total_end;
- struct rusage rusage_start, rusage_end;
- struct timeval elapsed_utime, elapsed_stime;
- pid_t pid;
-
- count = PROFILE_COUNT;
-
- setlocale (LC_ALL, "");
- bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR);
- textdomain (GETTEXT_PACKAGE);
-
- printf ("%-12s (%-10s): %7s - %9s - %9s\n",
- "Feature", "Flags", "Count", "utime", "stime");
- printf ("-------------------------------------------"
- "---------------\n");
-
- glibtop_init_r (&glibtop_global_server, 0, 0);
-
- getrusage (RUSAGE_SELF, &total_start);
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_cpu (&data.cpu);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("CPU (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.cpu.flags, PROFILE_COUNT,
- (long double) ELAPSED_UTIME / PROFILE_COUNT,
- (long double) ELAPSED_STIME / PROFILE_COUNT);
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT_EXPENSIVE; c++)
- glibtop_get_mem (&data.mem);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Memory (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.mem.flags, PROFILE_COUNT_EXPENSIVE,
- (long double) ELAPSED_UTIME / PROFILE_COUNT_EXPENSIVE,
- (long double) ELAPSED_STIME / PROFILE_COUNT_EXPENSIVE);
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT_EXPENSIVE; c++)
- glibtop_get_swap (&data.swap);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Swap (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.swap.flags, PROFILE_COUNT_EXPENSIVE,
- (long double) ELAPSED_UTIME / PROFILE_COUNT_EXPENSIVE,
- (long double) ELAPSED_STIME / PROFILE_COUNT_EXPENSIVE);
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_uptime (&data.uptime);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Uptime (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.uptime.flags, PROFILE_COUNT,
- (long double) ELAPSED_UTIME / PROFILE_COUNT,
- (long double) ELAPSED_STIME / PROFILE_COUNT);
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_loadavg (&data.loadavg);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Loadavg (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.loadavg.flags, PROFILE_COUNT,
- (long double) ELAPSED_UTIME / PROFILE_COUNT,
- (long double) ELAPSED_STIME / PROFILE_COUNT);
-
- printf ("\n");
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT_EXPENSIVE; c++) {
- ptr = glibtop_get_proclist (&data.proclist, 0, 0);
- g_free (ptr);
- }
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Proclist (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.proclist.flags,
- PROFILE_COUNT_EXPENSIVE,
- (long double) ELAPSED_UTIME / PROFILE_COUNT_EXPENSIVE,
- (long double) ELAPSED_STIME / PROFILE_COUNT_EXPENSIVE);
-
- pid = getpid ();
-
- printf ("\n");
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_state (&data.proc_state, pid);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Proc_State (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.proc_state.flags, PROFILE_COUNT,
- (long double) ELAPSED_UTIME / PROFILE_COUNT,
- (long double) ELAPSED_STIME / PROFILE_COUNT);
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_uid (&data.proc_uid, pid);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Proc_Uid (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.proc_uid.flags, PROFILE_COUNT,
- (long double) ELAPSED_UTIME / PROFILE_COUNT,
- (long double) ELAPSED_STIME / PROFILE_COUNT);
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_mem (&data.proc_mem, pid);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Proc_Mem (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.proc_mem.flags, PROFILE_COUNT,
- (long double) ELAPSED_UTIME / PROFILE_COUNT,
- (long double) ELAPSED_STIME / PROFILE_COUNT);
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_segment (&data.proc_segment, pid);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Proc_Segment (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.proc_segment.flags, PROFILE_COUNT,
- (long double) ELAPSED_UTIME / PROFILE_COUNT,
- (long double) ELAPSED_STIME / PROFILE_COUNT);
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_time (&data.proc_time, pid);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Proc_Time (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.proc_time.flags, PROFILE_COUNT,
- (long double) ELAPSED_UTIME / PROFILE_COUNT,
- (long double) ELAPSED_STIME / PROFILE_COUNT);
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_signal (&data.proc_signal, pid);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Proc_Signal (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.proc_signal.flags, PROFILE_COUNT,
- (long double) ELAPSED_UTIME / PROFILE_COUNT,
- (long double) ELAPSED_STIME / PROFILE_COUNT);
-
- getrusage (RUSAGE_SELF, &rusage_start);
-
- for (c = 0; c < PROFILE_COUNT; c++)
- glibtop_get_proc_kernel (&data.proc_kernel, pid);
-
- getrusage (RUSAGE_SELF, &rusage_end);
-
- libgtop_timersub (&rusage_end.ru_utime, &rusage_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&rusage_end.ru_stime, &rusage_start.ru_stime,
- &elapsed_stime);
-
- printf ("Proc_Kernel (0x%08lx): %7lu - %9.2Lf - %9.2Lf\n",
- (unsigned long) data.proc_kernel.flags, PROFILE_COUNT,
- (long double) ELAPSED_UTIME / PROFILE_COUNT,
- (long double) ELAPSED_STIME / PROFILE_COUNT);
-
- getrusage (RUSAGE_SELF, &total_end);
-
- libgtop_timersub (&total_end.ru_utime, &total_start.ru_utime,
- &elapsed_utime);
-
- libgtop_timersub (&total_end.ru_stime, &total_start.ru_stime,
- &elapsed_stime);
-
- printf ("-------------------------------------------"
- "---------------\n");
-
- printf ("%-36s %9lu - %9lu\n\n", "TOTAL",
- ELAPSED_UTIME, ELAPSED_STIME);
-
- printf ("All timings are in clock ticks "
- "(1000000 ticks per second).\n\n");
-
- glibtop_close ();
-
- exit (0);
-}
diff --git a/examples/wd.c b/examples/wd.c
deleted file mode 100644
index 353a4662..00000000
--- a/examples/wd.c
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <glibtop.h>
-#include <glibtop/procwd.h>
-
-#include <glib.h>
-#include <unistd.h>
-
-int main(int argc, char **argv)
-{
- pid_t pid;
- glibtop_proc_wd buf;
- char **dirs, **dir;
-
- if (argc < 2 || !(pid = strtoul(argv[1], NULL, 0)))
- pid = getpid();
-
- glibtop_init();
-
- dirs = glibtop_get_proc_wd(&buf, pid);
-
- g_print("Process %u:\n"
- " - root: '%s'\n"
- " - exe: '%s'\n"
- " - working directories:\n",
- (unsigned)pid, buf.root, buf.exe);
-
- for (dir = dirs; *dir; ++dir)
- g_print(" - '%s'\n", *dir);
-
- g_strfreev(dirs);
-
- glibtop_close();
-
- return 0;
-}
-
diff --git a/features.def b/features.def
deleted file mode 100644
index 64e578ec..00000000
--- a/features.def
+++ /dev/null
@@ -1,26 +0,0 @@
-void|cpu|ulong(total,user,nice,sys,idle,iowait,irq,softirq,frequency,xcpu_total[4],xcpu_user[4],xcpu_nice[4],xcpu_sys[4],xcpu_idle[4],xcpu_iowait[4],xcpu_irq[4],xcpu_softirq[4])
-void|mem|ulong(total,used,free,shared,buffer,cached,user,locked)
-void|swap|ulong(total,used,free,pagein,pageout)
-void|uptime|double(uptime,idletime)
-void|loadavg|double(loadavg[3]):ulong(nr_running,nr_tasks,last_pid)
-void|shm_limits|ulong(shmmax,shmmin,shmmni,shmseg,shmall)
-void|msg_limits|ulong(msgpool,msgmap,msgmax,msgmnb,msgmni,msgssz,msgtql)
-void|sem_limits|ulong(semmap,semmni,semmns,semmnu,semmsl,semopm,semume,semusz,semvmx,semaem)
-pid_t*|proclist|ulong(number,size,total)|long(which,arg)
-void|proc_state|str(cmd):char(state):ulong(uid,gid)|pid_t(pid)
-void|proc_uid|long(uid,euid,gid,egid,pid,ppid,pgrp,session,tty,tpgid,priority,nice)|pid_t(pid)
-void|proc_mem|long(size,vsize,resident,share,rss,rss_rlim)|pid_t(pid)
-void|proc_time|long(start_time,rtime,utime,stime,cutime,cstime,timeout,it_real_value,frequency,xcpu_utime[4],xcpu_stime[4])|pid_t(pid)
-void|proc_signal|ulong(signal[2],blocked[2],sigignore[2],sigcatch[2])|pid_t(pid)
-void|proc_kernel|ulong(k_flags,min_flt,maj_flt,cmin_flt,cmaj_flt,kstk_esp,kstk_eip,nwchan):str(wchan)|pid_t(pid)
-void|proc_segment|ulong(text_rss,shlib_rss,data_rss,stack_rss,dirty_size,start_code,end_code,start_stack)|pid_t(pid)
-char *|proc_args|ulong(size)|pid_t(pid):unsigned(max_len)
-glibtop_map_entry *|proc_map|ulong(number,size,total)|pid_t(pid)
-glibtop_open_files_entry *|proc_open_files|ulong(number)|pid_t(pid)
-glibtop_mountentry *|@mountlist|ulong(number,size,total)|int(all_fs)
-void|@fsusage|ulong(blocks,bfree,bavail,files,ffree)|string|mount_dir
-void|netload|ulong(if_flags,mtu,subnet,address,packets_in,packets_out,packets_total,bytes_in,bytes_out,bytes_total,errors_in,errors_out,errors_total,collisions)|string|interface
-void|ppp|ulong(state,bytes_in,bytes_out)|ushort(device)
-char **|netlist|unsigned(number)
-char **|proc_wd|ulong(number),str(root),str(exe)|pid_t(pid)
-
diff --git a/glibtop.h b/glibtop.h
deleted file mode 100644
index 877d7bc0..00000000
--- a/glibtop.h
+++ /dev/null
@@ -1,143 +0,0 @@
-/* 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_H__
-#define __GLIBTOP_H__
-
-#include <glib/gmacros.h>
-
-G_BEGIN_DECLS
-
-typedef struct _glibtop glibtop;
-
-/**
- * LIBGTOP_CHECK_VERSION
- * @major: Major version number
- * @minor: Minor version number
- * @micro: Micro version number
- *
- * Checks if the version given is compatable with this version of the
- * library. For example, LIBGTOP_CHECK_VERSION(1.2.3) would return TRUE
- * if the version is 1.2.5, and FALSE if 1.1.0. This can be used in
- * build tests.
- *
- **/
-
-#include <libgtopconfig.h>
-
-#define LIBGTOP_CHECK_VERSION(major, minor, micro) \
-(LIBGTOP_MAJOR_VERSION > (major) || \
-(LIBGTOP_MAJOR_VERSION == (major) && LIBGTOP_MINOR_VERSION > (minor)) || \
-(LIBGTOP_MAJOR_VERSION == (major) && LIBGTOP_MINOR_VERSION == (minor) && \
-LIBGTOP_MICRO_VERSION >= (micro)))
-
-
-#include <glibtop/global.h>
-
-#include <glibtop_server.h>
-
-#ifdef HAVE_GLIBTOP_MACHINE_H
-#include <glibtop_machine.h>
-#endif
-
-#ifndef GLIBTOP_MOUNTENTRY_LEN
-#define GLIBTOP_MOUNTENTRY_LEN 79
-#endif
-
-
-#include <glibtop/sysdeps.h>
-
-#include <glibtop/close.h>
-
-
-#ifdef HAVE_GLIBTOP_MACHINE_H
-
-struct _glibtop
-{
- unsigned flags;
- unsigned method; /* Server Method */
- unsigned error_method; /* Error Method */
- glibtop_machine machine; /* Machine dependent data */
- int input [2]; /* Pipe client <- server */
- int output [2]; /* Pipe client -> server */
- int socket; /* Accepted connection of a socket */
- int ncpu; /* Number of CPUs, zero if single-processor */
- int real_ncpu; /* Real number of CPUs. Only ncpu are monitored */
- unsigned long os_version_code; /* Version code of the operating system */
- const char *name; /* Program name for error messages */
- const char *server_command; /* Command used to invoke server */
- const char *server_host; /* Host the server should run on */
- const char *server_user; /* Name of the user on the target host */
- const char *server_rsh; /* Command used to connect to the target host */
- unsigned long features; /* Server is required for this features */
- unsigned long server_port; /* Port on which daemon is listening */
- glibtop_sysdeps sysdeps; /* Detailed feature list */
- glibtop_sysdeps required; /* Required feature list */
- pid_t pid; /* PID of the server */
-};
-
-#else /* !HAVE_GLIBTOP_MACHINE_H */
-
-struct _glibtop
-{
- unsigned flags;
- unsigned method; /* Server Method */
- unsigned error_method; /* Error Method */
- int input [2]; /* Pipe client <- server */
- int output [2]; /* Pipe client -> server */
- int socket; /* Accepted connection of a socket */
- int ncpu; /* Number of CPUs, zero if single-processor */
- int real_ncpu; /* Real number of CPUs. Only ncpu are monitored */
- unsigned long os_version_code; /* Version code of the operating system */
- const char *name; /* Program name for error messages */
- const char *server_command; /* Command used to invoke server */
- const char *server_host; /* Host the server should run on */
- const char *server_user; /* Name of the user on the target host */
- const char *server_rsh; /* Command used to connect to the target host */
- unsigned long features; /* Server is required for this features */
- unsigned long server_port; /* Port on which daemon is listening */
- glibtop_sysdeps sysdeps; /* Detailed feature list */
- glibtop_sysdeps required; /* Required feature list */
- pid_t pid; /* PID of the server */
-};
-
-#endif /* HAVE_GLIBTOP_MACHINE_H */
-
-extern glibtop *glibtop_global_server;
-
-extern const unsigned long glibtop_server_features;
-
-glibtop *
-glibtop_init (void);
-
-glibtop *
-glibtop_init_r (glibtop **server_ptr,
- unsigned long features,
- unsigned flags);
-
-glibtop *
-glibtop_init_s (glibtop **server_ptr,
- unsigned long features,
- unsigned flags);
-
-G_END_DECLS
-
-#endif
diff --git a/include/Makefile.am b/include/Makefile.am
deleted file mode 100644
index 4832afc3..00000000
--- a/include/Makefile.am
+++ /dev/null
@@ -1,2 +0,0 @@
-SUBDIRS = glibtop
-
diff --git a/include/glibtop/Makefile.am b/include/glibtop/Makefile.am
deleted file mode 100644
index e7b13360..00000000
--- a/include/glibtop/Makefile.am
+++ /dev/null
@@ -1,14 +0,0 @@
-glibtopdir = $(includedir)/libgtop-2.0/glibtop
-
-glibtop_HEADERS = close.h loadavg.h prockernel.h procstate.h \
- sem_limits.h uptime.h command.h mem.h proclist.h \
- proctime.h shm_limits.h version.h cpu.h msg_limits.h \
- procmem.h procuid.h swap.h \
- procsegment.h sysdeps.h global.h \
- procsignal.h union.h gnuserv.h \
- parameter.h mountlist.h fsusage.h procmap.h signal.h \
- sysinfo.h ppp.h procargs.h netload.h \
- procwd.h \
- netlist.h procopenfiles.h open.h
-
-noinst_HEADERS = error.h write.h read_data.h read.h init_hooks.h
diff --git a/include/glibtop/call-vector.h.in b/include/glibtop/call-vector.h.in
deleted file mode 100644
index 4267b85c..00000000
--- a/include/glibtop/call-vector.h.in
+++ /dev/null
@@ -1,41 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
-
-@@AUTOGEN_COMMENT@@
-
-/* 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_CALL_VECTOR_H__
-#define __GLIBTOP_CALL_VECTOR_H__
-
-#include <glibtop.h>
-#include <glibtop/union.h>
-
-G_BEGIN_DECLS
-
-struct _glibtop_call_vector
-{
- @@GLIBTOP_CALL_VECTOR@@
-};
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/call-vector.pl b/include/glibtop/call-vector.pl
deleted file mode 100644
index f46caa23..00000000
--- a/include/glibtop/call-vector.pl
+++ /dev/null
@@ -1,116 +0,0 @@
-#!/usr/bin/perl
-
-require 'c_types.pl';
-
-die "Usage: $0 features.def call-vector.h.in" unless $#ARGV == 1;
-
-$[ = 1; # set array base to 1
-$, = ' '; # set output field separator
-$\ = "\n"; # set output record separator
-
-sub toupper {
- local($_) = @_;
- tr/a-z/A-Z/;
- return $_;
-}
-
-sub tolower {
- local($_) = @_;
- tr/A-Z/a-z/;
- return $_;
-}
-
-$func_decl_code = '';
-
-open FEATURESDEF, $ARGV[1] or
- die "open ($ARGV[1]): $!";
-
-while (<FEATURESDEF>) {
- chop; # strip record separator
-
- if (/^[^\#]/) {
- &parse_features_def ($_);
- }
-}
-
-close FEATURESDEF;
-
-sub parse_features_def {
- local($line) = @_;
- @line_fields = split(/\|/, $line, 9999);
- $retval = $line_fields[1];
- $element_def = $line_fields[3];
- $feature = $line_fields[2];
- $param_def = $line_fields[4];
-
- $orig = $feature;
- $feature =~ s/^@//;
- $space = $feature;
- $space =~ s/./ /g;
-
- if ($retval eq 'retval') {
- $retval_param = '&retval';
- $retval = 'int';
- }
- elsif ($retval !~ /^void$/) {
- $retval_param = 'NULL';
- }
- else {
- $retval_param = 'NULL';
- }
-
- if ($retval =~ /^(array|pointer)\((.*)\)$/) {
- $retval = ($2 eq 'string') ? 'char **' : "$2 *";
- }
-
- $param_decl = '';
- $nr_params = (@params = split(/:/, $param_def, 9999));
- for ($param = 1; $param <= $nr_params; $param++) {
- $list = $params[$param];
- $type = $params[$param];
- $type =~ s/\(.*//;
- $list =~ s/^.*\(//;
- $list =~ s/\)$//;
- $count = (@fields = split(/,/, $list, 9999));
- for ($field = 1; $field <= $count; $field++) {
- my $c_type = $typeinfo->{$type}->[1];
-
- $param_decl = $param_decl . ', ';
- $param_decl = $param_decl . $c_type;
- }
- }
-
- if ($line_fields[3] eq '') {
- $func_decl_code .= sprintf
- (qq[\t%s (*%s) (glibtop_server *, glibtop_closure *%s);\n], $retval, $feature, $param_decl);
- } elsif ($line_fields[3] eq 'array') {
- $func_decl_code .= sprintf
- (qq[\t%s (*%s) (glibtop_server *, glibtop_closure *, glibtop_array *%s);\n], $retval, $feature, $param_decl);
- } elsif ($line_fields[3] =~ /^array/) {
- $func_decl_code .= sprintf
- (qq[\t%s (*%s) (glibtop_server *, glibtop_closure *, glibtop_array *, %s *%s);\n], $retval, $feature, 'glibtop_'.$feature, $param_decl);
- } else {
- $func_decl_code .= sprintf
- (qq[\t%s (*%s) (glibtop_server *, glibtop_closure *, %s *%s);\n], $retval, $feature, 'glibtop_'.$feature, $param_decl);
- }
-}
-
-chop $func_decl_code;
-
-$auto_gen_comment = sprintf
- (qq[/*\n * This file is automatically generated.\n * Please modify `call-vector.pl' and `call-vector.h.in'.\n */]);
-
-open CALLVECTOR, $ARGV[2] or
- die "open ($ARGV[2]): $!";
-
-while (<CALLVECTOR>) {
- chop;
-
- s/^\s*\@\@GLIBTOP_CALL_VECTOR\@\@\s*$/$func_decl_code/;
-
- s/^\s*\@\@AUTOGEN_COMMENT\@\@\s*$/$auto_gen_comment/;
-} continue {
- print $_;
-}
-
-close CALLVECTOR;
diff --git a/include/glibtop/close.h b/include/glibtop/close.h
deleted file mode 100644
index 04f066bb..00000000
--- a/include/glibtop/close.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* 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_CLOSE_H__
-#define __GLIBTOP_CLOSE_H__
-
-#include <glibtop.h>
-
-G_BEGIN_DECLS
-
-void glibtop_close (void);
-
-void glibtop_close_r (glibtop *server);
-
-void glibtop_close_s (glibtop *server);
-void glibtop_close_p (glibtop *server);
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/command.h b/include/glibtop/command.h
deleted file mode 100644
index bd9667e8..00000000
--- a/include/glibtop/command.h
+++ /dev/null
@@ -1,103 +0,0 @@
-/* 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_COMMAND_H__
-#define __GLIBTOP_COMMAND_H__
-
-#include <glibtop.h>
-#include <glibtop/sysdeps.h>
-#include <glibtop/union.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_CMND_QUIT 0
-#define GLIBTOP_CMND_SYSDEPS 1
-
-#define GLIBTOP_CMND_CPU 2
-#define GLIBTOP_CMND_MEM 3
-#define GLIBTOP_CMND_SWAP 4
-#define GLIBTOP_CMND_UPTIME 5
-#define GLIBTOP_CMND_LOADAVG 6
-#define GLIBTOP_CMND_SHM_LIMITS 7
-#define GLIBTOP_CMND_MSG_LIMITS 8
-#define GLIBTOP_CMND_SEM_LIMITS 9
-#define GLIBTOP_CMND_PROCLIST 10
-
-#define GLIBTOP_CMND_PROC_STATE 11
-#define GLIBTOP_CMND_PROC_UID 12
-#define GLIBTOP_CMND_PROC_MEM 13
-#define GLIBTOP_CMND_PROC_TIME 14
-#define GLIBTOP_CMND_PROC_SIGNAL 15
-#define GLIBTOP_CMND_PROC_KERNEL 16
-#define GLIBTOP_CMND_PROC_SEGMENT 17
-#define GLIBTOP_CMND_PROC_ARGS 18
-#define GLIBTOP_CMND_PROC_MAP 19
-
-#define GLIBTOP_CMND_MOUNTLIST 20
-#define GLIBTOP_CMND_FSUSAGE 21
-#define GLIBTOP_CMND_NETLOAD 22
-#define GLIBTOP_CMND_PPP 23
-#define GLIBTOP_CMND_NETLIST 24
-#define GLIBTOP_CMND_PROC_OPEN_FILES 25
-#define GLIBTOP_CMND_PROC_WD 26
-
-#define GLIBTOP_MAX_CMND 27
-
-#define _GLIBTOP_PARAM_SIZE 16
-
-typedef struct _glibtop_command glibtop_command;
-
-typedef struct _glibtop_response glibtop_response;
-typedef union _glibtop_response_union glibtop_response_union;
-
-struct _glibtop_command
-{
- guint64 command;
- guint64 size, data_size;
- char parameter [_GLIBTOP_PARAM_SIZE];
-};
-
-union _glibtop_response_union
-{
- glibtop_union data;
- glibtop_sysdeps sysdeps;
-};
-
-struct _glibtop_response
-{
- gint64 offset;
- guint64 size, data_size;
- glibtop_response_union u;
-};
-
-#define glibtop_call(p1, p2, p3, p4) glibtop_call_r(glibtop_global_server, p1, p2, p3, p4)
-
-void *
-glibtop_call_l (glibtop *server, unsigned command, size_t send_size,
- const void *send_buf, size_t recv_size, void *recv_buf);
-
-void *
-glibtop_call_s (glibtop *server, unsigned command, size_t send_size,
- const void *send_buf, size_t recv_size, void *recv_buf);
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/cpu.h b/include/glibtop/cpu.h
deleted file mode 100644
index 1d673e91..00000000
--- a/include/glibtop/cpu.h
+++ /dev/null
@@ -1,105 +0,0 @@
-/* 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_CPU_H__
-#define __GLIBTOP_CPU_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_CPU_TOTAL 0
-#define GLIBTOP_CPU_USER 1
-#define GLIBTOP_CPU_NICE 2
-#define GLIBTOP_CPU_SYS 3
-#define GLIBTOP_CPU_IDLE 4
-#define GLIBTOP_CPU_FREQUENCY 5
-
-#define GLIBTOP_XCPU_TOTAL 6
-#define GLIBTOP_XCPU_USER 7
-#define GLIBTOP_XCPU_NICE 8
-#define GLIBTOP_XCPU_SYS 9
-#define GLIBTOP_XCPU_IDLE 10
-#define GLIBTOP_XCPU_FLAGS 11
-
-#define GLIBTOP_CPU_IOWAIT 12
-#define GLIBTOP_CPU_IRQ 13
-#define GLIBTOP_CPU_SOFTIRQ 14
-#define GLIBTOP_XCPU_IOWAIT 15
-#define GLIBTOP_XCPU_IRQ 16
-#define GLIBTOP_XCPU_SOFTIRQ 17
-
-#define GLIBTOP_MAX_CPU 18
-
-/* Nobody should really be using more than 4 processors.
- Yes we are :)
- Nobody should really be using more than 32 processors.
-*/
-#define GLIBTOP_NCPU 32
-
-typedef struct _glibtop_cpu glibtop_cpu;
-
-struct _glibtop_cpu
-{
- guint64 flags;
- guint64 total; /* GLIBTOP_CPU_TOTAL */
- guint64 user; /* GLIBTOP_CPU_USER */
- guint64 nice; /* GLIBTOP_CPU_NICE */
- guint64 sys; /* GLIBTOP_CPU_SYS */
- guint64 idle; /* GLIBTOP_CPU_IDLE */
- guint64 iowait; /* GLIBTOP_CPU_IOWAIT */
- guint64 irq; /* GLIBTOP_CPU_IRQ */
- guint64 softirq; /* GLIBTOP_CPU_SOFTIRQ */
- guint64 frequency; /* GLIBTOP_CPU_FREQUENCY */
- guint64 xcpu_total [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_TOTAL */
- guint64 xcpu_user [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_USER */
- guint64 xcpu_nice [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_NICE */
- guint64 xcpu_sys [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_SYS */
- guint64 xcpu_idle [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_IDLE */
- guint64 xcpu_iowait [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_IOWAIT */
- guint64 xcpu_irq [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_IRQ */
- guint64 xcpu_softirq [GLIBTOP_NCPU]; /* GLIBTOP_XCPU_SOFTIRQ */
- guint64 xcpu_flags; /* GLIBTOP_XCPU_IDLE */
-};
-
-void glibtop_get_cpu(glibtop_cpu *buf);
-
-#if GLIBTOP_SUID_CPU
-#define glibtop_get_cpu_r glibtop_get_cpu_p
-#else
-#define glibtop_get_cpu_r glibtop_get_cpu_s
-#endif
-
-void glibtop_get_cpu_l (glibtop *server, glibtop_cpu *buf);
-
-#if GLIBTOP_SUID_CPU
-void _glibtop_init_cpu_p (glibtop *server);
-void glibtop_get_cpu_p (glibtop *server, glibtop_cpu *buf);
-#else
-void _glibtop_init_cpu_s (glibtop *server);
-void glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/error.h b/include/glibtop/error.h
deleted file mode 100644
index 9d64ff87..00000000
--- a/include/glibtop/error.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* 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.
-*/
-
-
-/*
- * This is private API
- */
-
-#ifndef __GLIBTOP_ERROR_H__
-#define __GLIBTOP_ERROR_H__
-
-#include <glibtop.h>
-
-G_BEGIN_DECLS
-
-void glibtop_error_vr (glibtop *server, const char *format, va_list args) G_GNUC_NORETURN;
-void glibtop_warn_vr (glibtop *server, const char *format, va_list args);
-void glibtop_error_io_vr (glibtop *server, const char *format, int, va_list args) G_GNUC_NORETURN;
-void glibtop_warn_io_vr (glibtop *server, const char *format, int, va_list args);
-
-void glibtop_error_r (glibtop *server, const char *format, ...) G_GNUC_PRINTF(2, 3) G_GNUC_NORETURN;
-void glibtop_warn_r (glibtop *server, const char *format, ...) G_GNUC_PRINTF(2, 3);
-void glibtop_error_io_r (glibtop *server, const char *format, ...) G_GNUC_PRINTF(2, 3) G_GNUC_NORETURN;
-void glibtop_warn_io_r (glibtop *server, const char *format, ...) G_GNUC_PRINTF(2, 3);
-
-void glibtop_error (const char *format, ...) G_GNUC_PRINTF(1, 2) G_GNUC_NORETURN;
-void glibtop_warn (const char *format, ...) G_GNUC_PRINTF(1, 2);
-void glibtop_error_io (const char *format, ...) G_GNUC_PRINTF(1, 2) G_GNUC_NORETURN;
-void glibtop_warn_io (const char *format, ...) G_GNUC_PRINTF(1, 2);
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/fsusage.h b/include/glibtop/fsusage.h
deleted file mode 100644
index e4f74eae..00000000
--- a/include/glibtop/fsusage.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
-
- 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_FSUSAGE_H__
-#define __GLIBTOP_FSUSAGE_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_FSUSAGE_BLOCKS 0
-#define GLIBTOP_FSUSAGE_BFREE 1
-#define GLIBTOP_FSUSAGE_BAVAIL 2
-#define GLIBTOP_FSUSAGE_FILES 3
-#define GLIBTOP_FSUSAGE_FFREE 4
-#define GLIBTOP_FSUSAGE_BLOCK_SIZE 5
-#define GLIBTOP_FSUSAGE_READ 6
-#define GLIBTOP_FSUSAGE_WRITE 7
-#define GLIBTOP_MAX_FSUSAGE 8
-
-
-typedef struct _glibtop_fsusage glibtop_fsusage;
-
-struct _glibtop_fsusage
-{
- guint64 flags;
- guint64 blocks; /* Total number of blocks. */
- guint64 bfree; /* Free blocks available to superuser. */
- guint64 bavail; /* Free blocks available to non-superuser. */
- guint64 files; /* Total file nodes. */
- guint64 ffree; /* Free file nodes. */
- guint32 block_size; /* Size of a block in bytes. */
- guint64 read, write; /* Total blocks read and written */
-};
-
-void glibtop_get_fsusage(glibtop_fsusage *buf, const char *mount_dir);
-
-#define glibtop_get_fsusage_r glibtop_get_fsusage_s
-
-void glibtop_get_fsusage_l (glibtop *server, glibtop_fsusage *buf, const char *mount_dir);
-void glibtop_get_fsusage_s (glibtop *server, glibtop_fsusage *buf, const char *mount_dir);
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/glibtop-server.h b/include/glibtop/glibtop-server.h
deleted file mode 100644
index 3a3c63ee..00000000
--- a/include/glibtop/glibtop-server.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
-
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 2.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_SERVER_H__
-#define __GLIBTOP_SERVER_H__
-
-#include <glibtop/global.h>
-#include <glibtop/sysdeps.h>
-
-G_BEGIN_DECLS
-
-typedef struct _glibtop_server glibtop_server;
-typedef struct _glibtop_server_info glibtop_server_info;
-
-typedef struct _glibtop_closure glibtop_closure;
-
-struct _glibtop_server_info
-{
- int ncpu; /* Number of CPUs, zero if single-processor */
- unsigned long features; /* Server is required for this features */
- glibtop_sysdeps sysdeps; /* Detailed feature list */
- glibtop_sysdeps required; /* Required feature list */
- glibtop_sysdeps wanted; /* We only want this features */
-};
-
-struct _glibtop_server
-{
- glibtop_server_info *info;
-
- int refcount;
- unsigned flags;
- const char *name;
-
- void *_priv;
-};
-
-glibtop_server *
-glibtop_server_new (void);
-
-void
-glibtop_server_ref (glibtop_server *server);
-
-void
-glibtop_server_unref (glibtop_server *server);
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/global.h b/include/glibtop/global.h
deleted file mode 100644
index d17e70bd..00000000
--- a/include/glibtop/global.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* 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_GLOBAL_H__
-#define __GLIBTOP_GLOBAL_H__
-
-#include <glib.h>
-
-#ifdef _IN_LIBGTOP
-
-#endif /* _IN_LIBGTOP */
-
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-# include <sys/time.h>
-# else
-# include <time.h>
-# endif
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <stdarg.h>
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#ifdef HAVE_MEMORY_H
-#include <memory.h>
-#endif
-
-#include <string.h>
-
-#ifdef _IN_LIBGTOP
-
-#include <sys/types.h>
-#include <sys/param.h>
-#include <sys/socket.h>
-#include <sys/stat.h>
-
-#endif /* _IN_LIBGTOP */
-
-#include <signal.h>
-#include <errno.h>
-
-#ifdef _IN_LIBGTOP
-
-G_BEGIN_DECLS
-
-#ifndef HAVE_STRERROR
-char *strerror (int errno);
-#endif
-
-G_END_DECLS
-
-#endif /* _IN_LIBGTOP */
-
-#endif
diff --git a/include/glibtop/gnuserv.h b/include/glibtop/gnuserv.h
deleted file mode 100644
index aa24e1b3..00000000
--- a/include/glibtop/gnuserv.h
+++ /dev/null
@@ -1,160 +0,0 @@
-/* -*-C-*-
-
- Header file for the GNU Emacs server and client C code.
-
- This file is part of GNU Emacs.
-
- Copying is permitted under those conditions described by the GNU
- General Public License.
-
- Copyright (C) 1989 Free Software Foundation, Inc.
-
- Author: Andy Norman (ange@hplb.hpl.hp.com), based on
- 'etc/server.c' and 'etc/emacsclient.c' from the 18.52 GNU
- Emacs distribution.
-
- Please mail bugs and suggestions to the author at the above address.
-*/
-
-/* HISTORY
- * 11-Nov-1990 bristor@simba
- * Added EOT stuff.
- */
-
-/*
- * This file incorporates new features added by Bob Weiner <weiner@mot.com>,
- * Darrell Kindred <dkindred@cmu.edu> and Arup Mukherjee <arup@cmu.edu>.
- * Please see the note at the end of the README file for details.
- *
- * (If gnuserv came bundled with your emacs, the README file is probably
- * ../etc/gnuserv.README relative to the directory containing this file)
- */
-
-#if 0
-static char header_rcsid [] = "!Header: gnuserv.h,v 2.4 95/02/16 11:58:11 arup alpha !";
-#endif
-
-#define NO_SHORTNAMES
-
-#define PATCHLEVEL 2
-
-#define NO_SHORTNAMES
-/* gnuserv should not be compiled using SOCKS */
-#define DO_NOT_SOCKSIFY
-#include <glibtop.h>
-#undef read
-#undef write
-#undef open
-#undef close
-#undef signal
-
-/* Define the communication method between server and clients:
- * You can have either or both kinds of sockets, but you can't mix
- * sockets with sysv ipc
- */
-
-#define INTERNET_DOMAIN_SOCKETS
-#define UNIX_DOMAIN_SOCKETS
-
-/*
- * Define additional authentication protocols to be used. These methods will
- * be tried before falling back to the default gnuserv protocol (based on
- * the GNU_SECURE environment variable). Currently, only MIT-MAGIC-COOKIE-1
- * is also supported.
- *
- * Comment out the next line(s) if you don't want to enable the
- * appropriate authentication protocol.
- */
-
-#if defined (HAVE_XAUTH)
-#define AUTH_MAGIC_COOKIE
-#endif /* HAVE_XAUTH */
-
-/*
- * stuff related to supporting MIT-MAGIC-COOKIE-1
- */
-
-#if 0
-#define MCOOKIE_SCREEN "42980" /* screen # to use as the gnuserv cookie */
-#endif
-#define MCOOKIE_NAME "MAGIC-1" /* authentication protocol name */
-#define MCOOKIE_X_NAME "MIT-MAGIC-COOKIE-1" /* as needed by X */
-
-
-#define DEFAUTH_NAME "GNU-SECURE" /* name of default auth protocol */
-#define AUTH_TIMEOUT 15 /* # seconds to wait for auth data */
-#define AUTH_NAMESZ 15 /* max allows auth protocol name size */
-
-
-/*
- * Pick a default communication scheme, if none was specified.
- */
-
-#if !defined(UNIX_DOMAIN_SOCKETS) && !defined(INTERNET_DOMAIN_SOCKETS)
-
-/* BSD systems use Unix Domain sockets by default */
-
-#ifdef BSD
-#define UNIX_DOMAIN_SOCKETS
-#endif
-
-#endif /* No communication method pre-defined */
-
-/*
- * If you are using SYSV_IPC, you might want to make the buffer size bigger
- * since it limits the size of requests and responses. Don't make it bigger
- * than your system's max message size though (usually a couple of k) or else
- * msgsend will start failing. For sockets, using the system BUFSIZ is usually
- * what you want.
- */
-
-#if defined(INTERNET_DOMAIN_SOCKETS) || defined(UNIX_DOMAIN_SOCKETS)
-#include <sys/socket.h>
-#endif /* INTERNET_DOMAIN_SOCKETS || UNIX_DOMAIN_SOCKETS */
-
-#ifdef INTERNET_DOMAIN_SOCKETS
-#include <netdb.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#define TABLE_SIZE 101 /* The number of entries in the hash table */
-#define HASH(host) host /* Rather simplistic hash function */
-#define DEFAULT_PORT 21490 /* default port number to use is
- * DEFAULT_PORT + uid */
-#endif /* INTERNET_DOMAIN_SOCKETS */
-
-#ifdef UNIX_DOMAIN_SOCKETS
-#include <sys/un.h>
-#define HIDE_UNIX_SOCKET /* put the unix socket in a protected dir */
-#endif /* UNIX_DOMAIN_SOCKETS */
-
-#define HOSTNAMSZ 255 /* max size of a hostname */
-#define REPLYSIZ 300 /* max size of reply from server to client */
-#undef FALSE
-#define FALSE 0
-#undef TRUE
-#define TRUE 1
-
-/* The casts shut Sun's compiler up and are safe in the context these
- are actually used. */
-#define max2(x,y) (((int) (x) > (int) (y)) ? (x) : (y))
-#define min2(x,y) (((int) (x) < (int) (y)) ? (x) : (y))
-
-#ifndef _NFILE /* rough guess at maximum number of open files */
-#define _NFILE 20
-#endif
-
-#define EOT_STR "\004"
-#define EOT_CHR '\004'
-
-/* connection types */
-#define CONN_UNIX 0
-#define CONN_INTERNET 1
-#define CONN_IPC 2
-
-/* function declarations */
-int glibtop_make_connection (const char *hostarg, int portarg, int *s);
-
-#ifdef INTERNET_DOMAIN_SOCKETS
-long glibtop_internet_addr (const char *host);
-#endif
-
diff --git a/include/glibtop/init_hooks.h b/include/glibtop/init_hooks.h
deleted file mode 100644
index 35f4d235..00000000
--- a/include/glibtop/init_hooks.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef H_LIBGTOP_INIT_HOOKS_1122955666
-#define H_LIBGTOP_INIT_HOOKS_1122955666
-
-#include <glibtop.h>
-
-G_BEGIN_DECLS
-
-typedef void (*_glibtop_init_func_t)(glibtop *);
-
-extern const _glibtop_init_func_t _glibtop_init_hook_s[];
-extern const _glibtop_init_func_t _glibtop_init_hook_p[];
-
-G_END_DECLS
-
-#endif /* H_LIBGTOP_INIT_HOOKS_1122955666 */
diff --git a/include/glibtop/loadavg.h b/include/glibtop/loadavg.h
deleted file mode 100644
index 2f7f4c06..00000000
--- a/include/glibtop/loadavg.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/* 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_LOADAVG_H__
-#define __GLIBTOP_LOADAVG_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_LOADAVG_LOADAVG 0
-#define GLIBTOP_LOADAVG_NR_RUNNING 1
-#define GLIBTOP_LOADAVG_NR_TASKS 2
-#define GLIBTOP_LOADAVG_LAST_PID 3
-
-#define GLIBTOP_MAX_LOADAVG 4
-
-typedef struct _glibtop_loadavg glibtop_loadavg;
-
-struct _glibtop_loadavg
-{
- guint64 flags;
- double loadavg [3]; /* GLIBTOP_LOADAVG_LOADAVG */
- guint64 nr_running; /* GLIBTOP_LOADAVG_NR_RUNNING */
- guint64 nr_tasks; /* GLIBTOP_LOADAVG_NR_TASKS */
- guint64 last_pid; /* GLIBTOP_LOADAVG_LAST_PID */
-};
-
-void glibtop_get_loadavg(glibtop_loadavg *buf);
-
-#if GLIBTOP_SUID_LOADAVG
-#define glibtop_get_loadavg_r glibtop_get_loadavg_p
-#else
-#define glibtop_get_loadavg_r glibtop_get_loadavg_s
-#endif
-
-void glibtop_get_loadavg_l (glibtop *server, glibtop_loadavg *buf);
-
-#if GLIBTOP_SUID_LOADAVG
-void _glibtop_init_loadavg_p (glibtop *server);
-void glibtop_get_loadavg_p (glibtop *server, glibtop_loadavg *buf);
-#else
-void _glibtop_init_loadavg_s (glibtop *server);
-void glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/mem.h b/include/glibtop/mem.h
deleted file mode 100644
index 00920675..00000000
--- a/include/glibtop/mem.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/* 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_MEM_H__
-#define __GLIBTOP_MEM_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_MEM_TOTAL 0
-#define GLIBTOP_MEM_USED 1
-#define GLIBTOP_MEM_FREE 2
-#define GLIBTOP_MEM_SHARED 3
-#define GLIBTOP_MEM_BUFFER 4
-#define GLIBTOP_MEM_CACHED 5
-#define GLIBTOP_MEM_USER 6
-#define GLIBTOP_MEM_LOCKED 7
-
-#define GLIBTOP_MAX_MEM 8
-
-typedef struct _glibtop_mem glibtop_mem;
-
-struct _glibtop_mem
-{
- guint64 flags;
- guint64 total; /* GLIBTOP_MEM_TOTAL */
- guint64 used; /* GLIBTOP_MEM_USED */
- guint64 free; /* GLIBTOP_MEM_FREE */
- guint64 shared; /* GLIBTOP_MEM_SHARED */
- guint64 buffer; /* GLIBTOP_MEM_BUFFER */
- guint64 cached; /* GLIBTOP_MEM_CACHED */
- guint64 user; /* GLIBTOP_MEM_USER */
- guint64 locked; /* GLIBTOP_MEM_LOCKED */
-};
-
-void glibtop_get_mem(glibtop_mem *buf);
-
-#if GLIBTOP_SUID_MEM
-#define glibtop_get_mem_r glibtop_get_mem_p
-#else
-#define glibtop_get_mem_r glibtop_get_mem_s
-#endif
-
-void glibtop_get_mem_l (glibtop *server, glibtop_mem *buf);
-
-#if GLIBTOP_SUID_MEM
-void _glibtop_init_mem_p (glibtop *server);
-void glibtop_get_mem_p (glibtop *server, glibtop_mem *buf);
-#else
-void _glibtop_init_mem_s (glibtop *server);
-void glibtop_get_mem_s (glibtop *server, glibtop_mem *buf);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/mountlist.h b/include/glibtop/mountlist.h
deleted file mode 100644
index 28cf7aa3..00000000
--- a/include/glibtop/mountlist.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/* 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_MOUNTLIST_H__
-#define __GLIBTOP_MOUNTLIST_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_MOUNTLIST_NUMBER 0
-#define GLIBTOP_MOUNTLIST_TOTAL 1
-#define GLIBTOP_MOUNTLIST_SIZE 2
-
-#define GLIBTOP_MAX_MOUNTLIST 3
-
-typedef struct _glibtop_mountentry glibtop_mountentry;
-
-typedef struct _glibtop_mountlist glibtop_mountlist;
-
-struct _glibtop_mountentry
-{
- guint64 dev;
- char devname [GLIBTOP_MOUNTENTRY_LEN+1];
- char mountdir [GLIBTOP_MOUNTENTRY_LEN+1];
- char type [GLIBTOP_MOUNTENTRY_LEN+1];
-};
-
-struct _glibtop_mountlist
-{
- guint64 flags;
- guint64 number; /* GLIBTOP_MOUNTLIST_NUMBER */
- guint64 total; /* GLIBTOP_MOUNTLIST_TOTAL */
- guint64 size; /* GLIBTOP_MOUNTLIST_SIZE */
-};
-
-glibtop_mountentry *
-glibtop_get_mountlist(glibtop_mountlist *buf, int all_fs);
-
-#define glibtop_get_mountlist_r glibtop_get_mountlist_s
-
-glibtop_mountentry *
-glibtop_get_mountlist_l (glibtop *server, glibtop_mountlist *buf, int all_fs);
-
-glibtop_mountentry *
-glibtop_get_mountlist_s (glibtop *server, glibtop_mountlist *buf, int all_fs);
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/msg_limits.h b/include/glibtop/msg_limits.h
deleted file mode 100644
index e90b8032..00000000
--- a/include/glibtop/msg_limits.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/* 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_MSG_LIMITS_H__
-#define __GLIBTOP_MSG_LIMITS_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_IPC_MSGPOOL 0
-#define GLIBTOP_IPC_MSGMAP 1
-#define GLIBTOP_IPC_MSGMAX 2
-#define GLIBTOP_IPC_MSGMNB 3
-#define GLIBTOP_IPC_MSGMNI 4
-#define GLIBTOP_IPC_MSGSSZ 5
-#define GLIBTOP_IPC_MSGTQL 6
-
-#define GLIBTOP_MAX_MSG_LIMITS 7
-
-typedef struct _glibtop_msg_limits glibtop_msg_limits;
-
-struct _glibtop_msg_limits
-{
- guint64 flags;
- guint64 msgpool; /* GLIBTOP_IPC_MSGPOOL */
- guint64 msgmap; /* GLIBTOP_IPC_MSGMAP */
- guint64 msgmax; /* GLIBTOP_IPC_MSGMAX */
- guint64 msgmnb; /* GLIBTOP_IPC_MSGMNB */
- guint64 msgmni; /* GLIBTOP_IPC_MSGMNI */
- guint64 msgssz; /* GLIBTOP_IPC_MSGSSZ */
- guint64 msgtql; /* GLIBTOP_IPC_MSGTQL */
-};
-
-void glibtop_get_msg_limits(glibtop_msg_limits *buf);
-
-#if GLIBTOP_SUID_MSG_LIMITS
-#define glibtop_get_msg_limits_r glibtop_get_msg_limits_p
-#else
-#define glibtop_get_msg_limits_r glibtop_get_msg_limits_s
-#endif
-
-void glibtop_get_msg_limits_l (glibtop *server, glibtop_msg_limits *buf);
-
-#if GLIBTOP_SUID_MSG_LIMITS
-void _glibtop_init_msg_limits_p (glibtop *server);
-void glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf);
-#else
-void _glibtop_init_msg_limits_s (glibtop *server);
-void glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf);
-#endif
-
-
-G_END_DECLS
-
-#endif
-
diff --git a/include/glibtop/netlist.h b/include/glibtop/netlist.h
deleted file mode 100644
index f821c77d..00000000
--- a/include/glibtop/netlist.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/* Copyright (C) 2004 Benoît Dejean
- This file is part of LibGTop 2.0.
-
- 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_NETLIST_H__
-#define __GLIBTOP_NETLIST_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_NETLIST_NUMBER 0
-
-#define GLIBTOP_MAX_NETLIST 1
-
-typedef struct _glibtop_netlist glibtop_netlist;
-
-struct _glibtop_netlist
-{
- guint64 flags;
- guint32 number;
-};
-
-char** glibtop_get_netlist(glibtop_netlist *buf);
-
-#if GLIBTOP_SUID_NETLIST
-#define glibtop_get_netlist_r glibtop_get_netlist_p
-#else
-#define glibtop_get_netlist_r glibtop_get_netlist_s
-#endif
-
-char** glibtop_get_netlist_l (glibtop *server, glibtop_netlist *buf);
-
-#if GLIBTOP_SUID_NETLIST
-void _glibtop_init_netlist_p (glibtop *server);
-char** glibtop_get_netlist_p (glibtop *server, glibtop_netlist *buf);
-#else
-void _glibtop_init_netlist_s (glibtop *server);
-char** glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/netload.h b/include/glibtop/netload.h
deleted file mode 100644
index 80e848eb..00000000
--- a/include/glibtop/netload.h
+++ /dev/null
@@ -1,130 +0,0 @@
-/* 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_NETLOAD_H__
-#define __GLIBTOP_NETLOAD_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_NETLOAD_IF_FLAGS 0
-#define GLIBTOP_NETLOAD_MTU 1
-#define GLIBTOP_NETLOAD_SUBNET 2
-#define GLIBTOP_NETLOAD_ADDRESS 3
-#define GLIBTOP_NETLOAD_PACKETS_IN 4
-#define GLIBTOP_NETLOAD_PACKETS_OUT 5
-#define GLIBTOP_NETLOAD_PACKETS_TOTAL 6
-#define GLIBTOP_NETLOAD_BYTES_IN 7
-#define GLIBTOP_NETLOAD_BYTES_OUT 8
-#define GLIBTOP_NETLOAD_BYTES_TOTAL 9
-#define GLIBTOP_NETLOAD_ERRORS_IN 10
-#define GLIBTOP_NETLOAD_ERRORS_OUT 11
-#define GLIBTOP_NETLOAD_ERRORS_TOTAL 12
-#define GLIBTOP_NETLOAD_COLLISIONS 13
-#define GLIBTOP_NETLOAD_ADDRESS6 14
-#define GLIBTOP_NETLOAD_PREFIX6 15
-#define GLIBTOP_NETLOAD_SCOPE6 16
-#define GLIBTOP_NETLOAD_HWADDRESS 17
-
-#define GLIBTOP_MAX_NETLOAD 18
-
-typedef struct _glibtop_netload glibtop_netload;
-
-enum {
- GLIBTOP_IF_FLAGS_UP = 1,
- GLIBTOP_IF_FLAGS_BROADCAST,
- GLIBTOP_IF_FLAGS_DEBUG,
- GLIBTOP_IF_FLAGS_LOOPBACK,
- GLIBTOP_IF_FLAGS_POINTOPOINT,
- GLIBTOP_IF_FLAGS_RUNNING,
- GLIBTOP_IF_FLAGS_NOARP,
- GLIBTOP_IF_FLAGS_PROMISC,
- GLIBTOP_IF_FLAGS_ALLMULTI,
- GLIBTOP_IF_FLAGS_OACTIVE,
- GLIBTOP_IF_FLAGS_SIMPLEX,
- GLIBTOP_IF_FLAGS_LINK0,
- GLIBTOP_IF_FLAGS_LINK1,
- GLIBTOP_IF_FLAGS_LINK2,
- GLIBTOP_IF_FLAGS_ALTPHYS,
- GLIBTOP_IF_FLAGS_MULTICAST,
- GLIBTOP_IF_FLAGS_WIRELESS
-};
-
-enum GLIBTOP_IF_IN6_SCOPE
-{
- GLIBTOP_IF_IN6_SCOPE_UNKNOWN = 0,
- GLIBTOP_IF_IN6_SCOPE_LINK = 1,
- GLIBTOP_IF_IN6_SCOPE_SITE = 2,
- GLIBTOP_IF_IN6_SCOPE_GLOBAL = 4,
- GLIBTOP_IF_IN6_SCOPE_HOST = 8
-};
-
-struct _glibtop_netload
-{
- guint64 flags;
- guint64 if_flags; /* GLIBTOP_NETLOAD_IF_FLAGS */
-
- guint32 mtu; /* GLIBTOP_NETLOAD_MTU */
- guint32 subnet; /* GLIBTOP_NETLOAD_SUBNET */
- guint32 address; /* GLIBTOP_NETLOAD_ADDRESS */
-
- guint64 packets_in; /* GLIBTOP_NETLOAD_PACKETS_IN */
- guint64 packets_out; /* GLIBTOP_NETLOAD_PACKETS_OUT */
- guint64 packets_total; /* GLIBTOP_NETLOAD_PACKETS_TOTAL*/
- guint64 bytes_in; /* GLIBTOP_NETLOAD_BYTES_IN */
- guint64 bytes_out; /* GLIBTOP_NETLOAD_BYTES_OUT */
- guint64 bytes_total; /* GLIBTOP_NETLOAD_BYTES_TOTAL */
- guint64 errors_in; /* GLIBTOP_NETLOAD_ERRORS_IN */
- guint64 errors_out; /* GLIBTOP_NETLOAD_ERRORS_OUT */
- guint64 errors_total; /* GLIBTOP_NETLOAD_ERRORS_TOTAL */
- guint64 collisions; /* GLIBTOP_NETLOAD_COLLISIONS */
-
- guint8 address6[16]; /* GLIBTOP_NETLOAD_ADDRESS6 */
- guint8 prefix6[16]; /* GLIBTOP_NETLOAD_PREXIF6 */
- guint8 scope6; /* GLIBTOP_NETLOAD_SCOPE6 */
-
- guint8 hwaddress[8]; /* GLIBTOP_NETLOAD_HWADDRESS */
-};
-
-void glibtop_get_netload(glibtop_netload *buf, const char *interface);
-
-#if GLIBTOP_SUID_NETLOAD
-#define glibtop_get_netload_r glibtop_get_netload_p
-#else
-#define glibtop_get_netload_r glibtop_get_netload_s
-#endif
-
-void glibtop_get_netload_l (glibtop *server, glibtop_netload *buf, const char *interface);
-
-#if GLIBTOP_SUID_NETLOAD
-void _glibtop_init_netload_p (glibtop *server);
-void glibtop_get_netload_p (glibtop *server, glibtop_netload *buf, const char *interface);
-#else
-void _glibtop_init_netload_s (glibtop *server);
-void glibtop_get_netload_s (glibtop *server, glibtop_netload *buf, const char *interface);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/open.h b/include/glibtop/open.h
deleted file mode 100644
index 8e7a49e0..00000000
--- a/include/glibtop/open.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/* 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_OPEN_H__
-#define __GLIBTOP_OPEN_H__
-
-#include <glibtop.h>
-
-G_BEGIN_DECLS
-
-#define _GLIBTOP_INIT_STATE_INIT 0x10000
-#define _GLIBTOP_INIT_STATE_OPEN 0x20000
-#define _GLIBTOP_INIT_STATE_SERVER 0x40000
-#define _GLIBTOP_INIT_STATE_SYSDEPS 0x80000
-
-#define GLIBTOP_INIT_NO_OPEN 1
-#define GLIBTOP_INIT_NO_INIT 2
-
-#define GLIBTOP_FEATURES_NO_SERVER 4
-#define GLIBTOP_FEATURES_EXCEPT 8
-
-#define GLIBTOP_METHOD_DIRECT 1
-#define GLIBTOP_METHOD_PIPE 2
-#define GLIBTOP_METHOD_INET 3
-#define GLIBTOP_METHOD_UNIX 4
-
-#define GLIBTOP_ERROR_METHOD_IGNORE 0
-#define GLIBTOP_ERROR_METHOD_WARN_ONCE 1
-#define GLIBTOP_ERROR_METHOD_WARN 2
-#define GLIBTOP_ERROR_METHOD_ABORT 3
-
-#define GLIBTOP_ERROR_METHOD_DEFAULT GLIBTOP_ERROR_METHOD_WARN_ONCE
-
-void
-glibtop_open_l (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags);
-
-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);
-
-void
-glibtop_open_s (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags);
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/parameter.h b/include/glibtop/parameter.h
deleted file mode 100644
index 98a86bf6..00000000
--- a/include/glibtop/parameter.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/* 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_PARAMETER_H__
-#define __GLIBTOP_PARAMETER_H__
-
-#include <glibtop.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PARAM_METHOD 1
-#define GLIBTOP_PARAM_FEATURES 2
-#define GLIBTOP_PARAM_COMMAND 3
-#define GLIBTOP_PARAM_HOST 4
-#define GLIBTOP_PARAM_PORT 5
-#define GLIBTOP_PARAM_ERROR_METHOD 6
-#define GLIBTOP_PARAM_REQUIRED 7
-
-#define glibtop_get_parameter(p1,p2,p3) glibtop_get_parameter_l(glibtop_global_server,p1,p2,p3)
-#define glibtop_set_parameter(p1,p2,p3) glibtop_set_parameter_l(glibtop_global_server,p1,p2,p3)
-
-size_t
-glibtop_get_parameter_l (glibtop *server, const unsigned parameter,
- void *data_ptr, size_t data_size);
-
-void
-glibtop_set_parameter_l (glibtop *server, const unsigned parameter,
- const void *data_ptr, size_t data_size);
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/ppp.h b/include/glibtop/ppp.h
deleted file mode 100644
index 0b39ae32..00000000
--- a/include/glibtop/ppp.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/* 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_PPP_H__
-#define __GLIBTOP_PPP_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PPP_STATE 0
-#define GLIBTOP_PPP_BYTES_IN 1
-#define GLIBTOP_PPP_BYTES_OUT 2
-
-#define GLIBTOP_MAX_PPP 3
-
-typedef struct _glibtop_ppp glibtop_ppp;
-
-enum {
- GLIBTOP_PPP_STATE_UNKNOWN = 0,
- GLIBTOP_PPP_STATE_HANGUP,
- GLIBTOP_PPP_STATE_ONLINE
-};
-
-struct _glibtop_ppp
-{
- guint64 flags;
- guint64 state; /* GLIBTOP_PPP_STATE */
- guint64 bytes_in; /* GLIBTOP_PPP_BYTES_IN */
- guint64 bytes_out; /* GLIBTOP_PPP_BYTES_OUT */
-};
-
-void glibtop_get_ppp(glibtop_ppp *buf, unsigned short device);
-
-#if GLIBTOP_SUID_PPP
-#define glibtop_get_ppp_r glibtop_get_ppp_p
-#else
-#define glibtop_get_ppp_r glibtop_get_ppp_s
-#endif
-
-void glibtop_get_ppp_l (glibtop *server, glibtop_ppp *buf, unsigned short device);
-
-#if GLIBTOP_SUID_PPP
-void _glibtop_init_ppp_p (glibtop *server);
-void glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device);
-#else
-void _glibtop_init_ppp_s (glibtop *server);
-void glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/procaffinity.h b/include/glibtop/procaffinity.h
deleted file mode 100644
index e69de29b..00000000
--- a/include/glibtop/procaffinity.h
+++ /dev/null
diff --git a/include/glibtop/procargs.h b/include/glibtop/procargs.h
deleted file mode 100644
index 59d4da3f..00000000
--- a/include/glibtop/procargs.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/* 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_PROC_ARGS_H__
-#define __GLIBTOP_PROC_ARGS_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PROC_ARGS_SIZE 0
-
-#define GLIBTOP_MAX_PROC_ARGS 1
-
-typedef struct _glibtop_proc_args glibtop_proc_args;
-
-struct _glibtop_proc_args
-{
- guint64 flags;
- guint64 size; /* GLIBTOP_PROC_ARGS_SIZE */
-};
-
-
-char *
-glibtop_get_proc_args_l (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len);
-
-char *
-glibtop_get_proc_args (glibtop_proc_args *buf, pid_t pid, unsigned max_len);
-
-#if GLIBTOP_SUID_PROC_ARGS
-
-# define glibtop_get_proc_args_r glibtop_get_proc_args_p
-
- void _glibtop_init_proc_args_p (glibtop *server);
-
- char *
- glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len);
-
-
-#else /* !GLIBTOP_SUID_PROC_ARGS */
-
-# define glibtop_get_proc_args_r glibtop_get_proc_args_s
-
- void _glibtop_init_proc_args_s (glibtop *server);
-
- char *
- glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len);
-#endif /* GLIBTOP_SUID_PROC_ARGS */
-
-
-
-/*
- * NEW functions
- */
-
-char **
-glibtop_get_proc_argv_l (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len);
-
-char **
-glibtop_get_proc_argv (glibtop_proc_args *buf, pid_t pid, unsigned max_len);
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/prockernel.h b/include/glibtop/prockernel.h
deleted file mode 100644
index a0f80740..00000000
--- a/include/glibtop/prockernel.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/* 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_PROCKERNEL_H__
-#define __GLIBTOP_PROCKERNEL_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PROC_KERNEL_K_FLAGS 0
-#define GLIBTOP_PROC_KERNEL_MIN_FLT 1
-#define GLIBTOP_PROC_KERNEL_MAJ_FLT 2
-#define GLIBTOP_PROC_KERNEL_CMIN_FLT 3
-#define GLIBTOP_PROC_KERNEL_CMAJ_FLT 4
-#define GLIBTOP_PROC_KERNEL_KSTK_ESP 5
-#define GLIBTOP_PROC_KERNEL_KSTK_EIP 6
-#define GLIBTOP_PROC_KERNEL_NWCHAN 7
-#define GLIBTOP_PROC_KERNEL_WCHAN 8
-
-#define GLIBTOP_MAX_PROC_KERNEL 9
-
-typedef struct _glibtop_proc_kernel glibtop_proc_kernel;
-
-/* Kernel stuff */
-
-struct _glibtop_proc_kernel
-{
- guint64 flags;
- guint64 k_flags; /* kernel flags for the process */
- guint64 min_flt; /* number of minor page faults since
- * process start */
- guint64 maj_flt; /* number of major page faults since
- * process start */
- guint64 cmin_flt; /* cumulative min_flt of process and
- * child processes */
- guint64 cmaj_flt; /* cumulative maj_flt of process and
- * child processes */
- guint64 kstk_esp; /* kernel stack pointer */
- guint64 kstk_eip; /* kernel stack pointer */
- guint64 nwchan; /* address of kernel wait channel
- * proc is sleeping in */
- char wchan [40];
-};
-
-void glibtop_get_proc_kernel(glibtop_proc_kernel *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_KERNEL
-#define glibtop_get_proc_kernel_r glibtop_get_proc_kernel_p
-#else
-#define glibtop_get_proc_kernel_r glibtop_get_proc_kernel_s
-#endif
-
-void glibtop_get_proc_kernel_l (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_KERNEL
-void _glibtop_init_proc_kernel_p (glibtop *server);
-void glibtop_get_proc_kernel_p (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
-#else
-void _glibtop_init_proc_kernel_s (glibtop *server);
-void glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf, pid_t pid);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/proclist.h b/include/glibtop/proclist.h
deleted file mode 100644
index 7859fe08..00000000
--- a/include/glibtop/proclist.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/* 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_PROCLIST_H__
-#define __GLIBTOP_PROCLIST_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PROCLIST_NUMBER 0
-#define GLIBTOP_PROCLIST_TOTAL 1
-#define GLIBTOP_PROCLIST_SIZE 2
-
-#define GLIBTOP_MAX_PROCLIST 3
-
-/* You can use the folowing constants as the `which' member of
- * glibtop_get_proclist () to specify which processes to fetch. */
-
-#define GLIBTOP_KERN_PROC_ALL 0 /* all processes */
-#define GLIBTOP_KERN_PROC_PID 1
-#define GLIBTOP_KERN_PROC_PGRP 2
-#define GLIBTOP_KERN_PROC_SESSION 3
-#define GLIBTOP_KERN_PROC_TTY 4
-#define GLIBTOP_KERN_PROC_UID 5
-#define GLIBTOP_KERN_PROC_RUID 6
-
-#define GLIBTOP_KERN_PROC_MASK 15
-
-#define GLIBTOP_EXCLUDE_IDLE 0x1000
-#define GLIBTOP_EXCLUDE_SYSTEM 0x2000
-#define GLIBTOP_EXCLUDE_NOTTY 0x4000
-
-typedef struct _glibtop_proclist glibtop_proclist;
-
-struct _glibtop_proclist
-{
- guint64 flags;
- guint64 number; /* GLIBTOP_PROCLIST_NUMBER */
- guint64 total; /* GLIBTOP_PROCLIST_TOTAL */
- guint64 size; /* GLIBTOP_PROCLIST_SIZE */
-};
-
-pid_t*
-glibtop_get_proclist(glibtop_proclist *buf, gint64 which, gint64 arg);
-
-#if GLIBTOP_SUID_PROCLIST
-#define glibtop_get_proclist_r glibtop_get_proclist_p
-#else
-#define glibtop_get_proclist_r glibtop_get_proclist_s
-#endif
-
-pid_t*
-glibtop_get_proclist_l (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg);
-
-#if GLIBTOP_SUID_PROCLIST
-void _glibtop_init_proclist_p (glibtop *server);
-
-pid_t*
-glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg);
-#else
-void _glibtop_init_proclist_s (glibtop *server);
-
-pid_t*
-glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/procmap.h b/include/glibtop/procmap.h
deleted file mode 100644
index 171904ef..00000000
--- a/include/glibtop/procmap.h
+++ /dev/null
@@ -1,119 +0,0 @@
-/* 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_PROC_MAP_H__
-#define __GLIBTOP_PROC_MAP_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PROC_MAP_NUMBER 0
-#define GLIBTOP_PROC_MAP_TOTAL 1
-#define GLIBTOP_PROC_MAP_SIZE 2
-
-#define GLIBTOP_MAX_PROC_MAP 3
-
-#define GLIBTOP_MAP_ENTRY_START 0
-#define GLIBTOP_MAP_ENTRY_END 1
-#define GLIBTOP_MAP_ENTRY_OFFSET 2
-#define GLIBTOP_MAP_ENTRY_PERM 3
-#define GLIBTOP_MAP_ENTRY_INODE 4
-#define GLIBTOP_MAP_ENTRY_DEVICE 5
-#define GLIBTOP_MAP_ENTRY_FILENAME 6
-
-/* Smap support */
-#define GLIBTOP_MAP_ENTRY_SIZE 7
-#define GLIBTOP_MAP_ENTRY_RSS 8
-#define GLIBTOP_MAP_ENTRY_SHARED_CLEAN 9
-#define GLIBTOP_MAP_ENTRY_SHARED_DIRTY 10
-#define GLIBTOP_MAP_ENTRY_PRIVATE_CLEAN 11
-#define GLIBTOP_MAP_ENTRY_PRIVATE_DIRTY 12
-
-#define GLIBTOP_MAX_MAP_ENTRY 13
-
-#define GLIBTOP_MAP_FILENAME_LEN 215
-
-#define GLIBTOP_MAP_PERM_READ 1
-#define GLIBTOP_MAP_PERM_WRITE 2
-#define GLIBTOP_MAP_PERM_EXECUTE 4
-#define GLIBTOP_MAP_PERM_SHARED 8
-#define GLIBTOP_MAP_PERM_PRIVATE 16
-
-typedef struct _glibtop_map_entry glibtop_map_entry;
-
-typedef struct _glibtop_proc_map glibtop_proc_map;
-
-struct _glibtop_map_entry
-{
- guint64 flags;
- guint64 start;
- guint64 end;
- guint64 offset;
- guint64 perm;
- guint64 inode;
- guint64 device;
- guint64 size;
- guint64 rss;
- guint64 shared_clean;
- guint64 shared_dirty;
- guint64 private_clean;
- guint64 private_dirty;
- char filename [GLIBTOP_MAP_FILENAME_LEN+1];
-};
-
-struct _glibtop_proc_map
-{
- guint64 flags;
- guint64 number; /* GLIBTOP_PROC_MAP_NUMBER */
- guint64 total; /* GLIBTOP_PROC_MAP_TOTAL */
- guint64 size; /* GLIBTOP_PROC_MAP_SIZE */
-};
-glibtop_map_entry *
-glibtop_get_proc_map(glibtop_proc_map *buf, pid_t pid);
-
-
-#if GLIBTOP_SUID_PROC_MAP
-#define glibtop_get_proc_map_r glibtop_get_proc_map_p
-#else
-#define glibtop_get_proc_map_r glibtop_get_proc_map_s
-#endif
-
-glibtop_map_entry *
-glibtop_get_proc_map_l (glibtop *server, glibtop_proc_map *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_MAP
-void _glibtop_init_proc_map_p (glibtop *server);
-
-glibtop_map_entry *
-glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf, pid_t pid);
-#else
-void _glibtop_init_proc_map_s (glibtop *server);
-
-glibtop_map_entry *
-glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/procmem.h b/include/glibtop/procmem.h
deleted file mode 100644
index 10e12eb4..00000000
--- a/include/glibtop/procmem.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/* 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_PROCMEM_H__
-#define __GLIBTOP_PROCMEM_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PROC_MEM_SIZE 0
-#define GLIBTOP_PROC_MEM_VSIZE 1
-#define GLIBTOP_PROC_MEM_RESIDENT 2
-#define GLIBTOP_PROC_MEM_SHARE 3
-#define GLIBTOP_PROC_MEM_RSS 4
-#define GLIBTOP_PROC_MEM_RSS_RLIM 5
-
-#define GLIBTOP_MAX_PROC_MEM 6
-
-typedef struct _glibtop_proc_mem glibtop_proc_mem;
-
-/* Memory section */
-
-struct _glibtop_proc_mem
-{
- guint64 flags;
- guint64 size; /* total # of pages of memory */
- guint64 vsize; /* number of pages of virtual memory ... */
- guint64 resident; /* number of resident set
- * (non-swapped) pages (4k) */
- guint64 share; /* number of pages of shared (mmap'd) memory */
- guint64 rss; /* resident set size */
- guint64 rss_rlim; /* current limit (in bytes) of the rss
- * of the process; usually 2,147,483,647 */
-};
-
-void glibtop_get_proc_mem(glibtop_proc_mem *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_MEM
-#define glibtop_get_proc_mem_r glibtop_get_proc_mem_p
-#else
-#define glibtop_get_proc_mem_r glibtop_get_proc_mem_s
-#endif
-
-void glibtop_get_proc_mem_l (glibtop *server, glibtop_proc_mem *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_MEM
-void _glibtop_init_proc_mem_p (glibtop *server);
-void glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf, pid_t pid);
-#else
-void _glibtop_init_proc_mem_s (glibtop *server);
-void glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf, pid_t pid);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/procopenfiles.h b/include/glibtop/procopenfiles.h
deleted file mode 100644
index 3509737a..00000000
--- a/include/glibtop/procopenfiles.h
+++ /dev/null
@@ -1,121 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- Copyright (C) 2004 Nicolás Lichtmaier
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
-
- Modified by Nicolás Lichtmaier to give open process files.
-
- 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_PROC_OPEN_FILES_H__
-#define __GLIBTOP_PROC_OPEN_FILES_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PROC_OPEN_FILES_NUMBER 0
-#define GLIBTOP_PROC_OPEN_FILES_TOTAL 1
-#define GLIBTOP_PROC_OPEN_FILES_SIZE 2
-
-#define GLIBTOP_MAX_PROC_OPEN_FILES 3
-
-#define GLIBTOP_FILE_ENTRY_FD 0
-#define GLIBTOP_FILE_ENTRY_NAME 1
-#define GLIBTOP_FILE_ENTRY_TYPE 2
-#define GLIBTOP_FILE_ENTRY_INETSOCKET_DST_HOST 3
-#define GLIBTOP_FILE_ENTRY_INETSOCKET_DST_PORT 4
-
-#define GLIBTOP_MAX_OPEN_FILE_ENTRY 5
-
-#define GLIBTOP_OPEN_FILENAME_LEN 215
- /* ready for IPv6 */
-#define GLIBTOP_OPEN_DEST_HOST_LEN 46
-
-enum glibtop_file_type {
- GLIBTOP_FILE_TYPE_FILE = 1,
- GLIBTOP_FILE_TYPE_PIPE = 2,
- GLIBTOP_FILE_TYPE_INETSOCKET = 4,
- GLIBTOP_FILE_TYPE_LOCALSOCKET = 8
-};
-
-typedef struct _glibtop_open_files_entry glibtop_open_files_entry;
-
-typedef struct _glibtop_proc_open_files glibtop_proc_open_files;
-
-struct _glibtop_open_files_entry
-{
- int fd;
- guint16 type; /* An "enum glibtop_file_type" value. */
- union {
- /* When type == GLIBTOP_FILE_TYPE_INETSOCKET */
- struct {
- char dest_host[GLIBTOP_OPEN_DEST_HOST_LEN+1];
- int dest_port;
- } sock;
-
- /* When type == GLIBTOP_FILE_TYPE_FILE */
- struct {
- char name[GLIBTOP_OPEN_FILENAME_LEN+1];
- } file;
-
- /* When type == GLIBTOP_FILE_TYPE_LOCALSOCKET */
- struct {
- char name[GLIBTOP_OPEN_FILENAME_LEN+1];
- } localsock;
-
- } info;
-};
-
-struct _glibtop_proc_open_files
-{
- guint64 flags;
- guint64 number; /* GLIBTOP_PROC_OPEN_FILES_NUMBER */
- guint64 total; /* GLIBTOP_PROC_OPEN_FILES_TOTAL */
- guint64 size; /* GLIBTOP_PROC_OPEN_FILES_SIZE */
-};
-
-glibtop_open_files_entry *
-glibtop_get_proc_open_files(glibtop_proc_open_files *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_FILE
-#define glibtop_get_proc_open_files_r glibtop_get_proc_open_files_p
-#else
-#define glibtop_get_proc_open_files_r glibtop_get_proc_open_files_s
-#endif
-
-glibtop_open_files_entry *
-glibtop_get_proc_open_files_l (glibtop *server, glibtop_proc_open_files *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_FILE
-void _glibtop_init_proc_open_files_p (glibtop *server);
-
-glibtop_open_files_entry *
-glibtop_get_proc_open_files_p (glibtop *server, glibtop_proc_open_files *buf, pid_t pid);
-#else
-void _glibtop_init_proc_open_files_s (glibtop *server);
-
-glibtop_open_files_entry *
-glibtop_get_proc_open_files_s (glibtop *server, glibtop_proc_open_files *buf, pid_t pid);
-#endif
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/procsegment.h b/include/glibtop/procsegment.h
deleted file mode 100644
index 5d2815d9..00000000
--- a/include/glibtop/procsegment.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/* 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_PROCSEGMENT_H__
-#define __GLIBTOP_PROCSEGMENT_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PROC_SEGMENT_TEXT_RSS 0
-#define GLIBTOP_PROC_SEGMENT_SHLIB_RSS 1
-#define GLIBTOP_PROC_SEGMENT_DATA_RSS 2
-#define GLIBTOP_PROC_SEGMENT_STACK_RSS 3
-#define GLIBTOP_PROC_SEGMENT_DIRTY_SIZE 4
-#define GLIBTOP_PROC_SEGMENT_START_CODE 5
-#define GLIBTOP_PROC_SEGMENT_END_CODE 6
-#define GLIBTOP_PROC_SEGMENT_START_STACK 7
-
-#define GLIBTOP_MAX_PROC_SEGMENT 8
-
-typedef struct _glibtop_proc_segment glibtop_proc_segment;
-
-/* Segment stuff */
-
-struct _glibtop_proc_segment
-{
- guint64 flags;
- guint64 text_rss; /* text resident set size */
- guint64 shlib_rss; /* shared-lib resident set size */
- guint64 data_rss; /* data resident set size */
- guint64 stack_rss; /* stack resident set size */
- guint64 dirty_size; /* size of dirty pages */
- guint64 start_code;
- /* address of beginning of code segment */
- guint64 end_code; /* address of end of code segment */
- guint64 start_stack; /* address of the bottom of stack segment */
-};
-
-void glibtop_get_proc_segment(glibtop_proc_segment *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_SEGMENT
-#define glibtop_get_proc_segment_r glibtop_get_proc_segment_p
-#else
-#define glibtop_get_proc_segment_r glibtop_get_proc_segment_s
-#endif
-
-void glibtop_get_proc_segment_l (glibtop *server, glibtop_proc_segment *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_SEGMENT
-void _glibtop_init_proc_segment_p (glibtop *server);
-void glibtop_get_proc_segment_p (glibtop *server, glibtop_proc_segment *buf, pid_t pid);
-#else
-void _glibtop_init_proc_segment_s (glibtop *server);
-void glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf, pid_t pid);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/procsignal.h b/include/glibtop/procsignal.h
deleted file mode 100644
index 10c3670c..00000000
--- a/include/glibtop/procsignal.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/* 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_PROCSIGNAL_H__
-#define __GLIBTOP_PROCSIGNAL_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PROC_SIGNAL_SIGNAL 0
-#define GLIBTOP_PROC_SIGNAL_BLOCKED 1
-#define GLIBTOP_PROC_SIGNAL_SIGIGNORE 2
-#define GLIBTOP_PROC_SIGNAL_SIGCATCH 3
-
-#define GLIBTOP_MAX_PROC_SIGNAL 4
-
-typedef struct _glibtop_proc_signal glibtop_proc_signal;
-
-/* Signals section */
-
-struct _glibtop_proc_signal
-{
- guint64 flags;
- guint64 signal [2]; /* mask of pending signals */
- guint64 blocked [2]; /* mask of blocked signals */
- guint64 sigignore [2]; /* mask of ignored signals */
- guint64 sigcatch [2]; /* mask of caught signals */
-};
-
-void glibtop_get_proc_signal(glibtop_proc_signal *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_SIGNAL
-#define glibtop_get_proc_signal_r glibtop_get_proc_signal_p
-#else
-#define glibtop_get_proc_signal_r glibtop_get_proc_signal_s
-#endif
-
-void glibtop_get_proc_signal_l (glibtop *server, glibtop_proc_signal *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_SIGNAL
-void _glibtop_init_proc_signal_p (glibtop *server);
-void glibtop_get_proc_signal_p (glibtop *server, glibtop_proc_signal *buf, pid_t pid);
-#else
-void _glibtop_init_proc_signal_s (glibtop *server);
-void glibtop_get_proc_signal_s (glibtop *server, glibtop_proc_signal *buf, pid_t pid);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/procstate.h b/include/glibtop/procstate.h
deleted file mode 100644
index 7c05628b..00000000
--- a/include/glibtop/procstate.h
+++ /dev/null
@@ -1,95 +0,0 @@
-/* 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_PROCSTATE_H__
-#define __GLIBTOP_PROCSTATE_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PROC_STATE_CMD 0
-#define GLIBTOP_PROC_STATE_STATE 1
-#define GLIBTOP_PROC_STATE_UID 2
-#define GLIBTOP_PROC_STATE_GID 3
-#define GLIBTOP_PROC_STATE_RUID 4
-#define GLIBTOP_PROC_STATE_RGID 5
-#define GLIBTOP_PROC_STATE_HAS_CPU 6
-#define GLIBTOP_PROC_STATE_PROCESSOR 7
-#define GLIBTOP_PROC_STATE_LAST_PROCESSOR 8
-
-#define GLIBTOP_MAX_PROC_STATE 9
-
-#define GLIBTOP_PROCESS_RUNNING 1
-#define GLIBTOP_PROCESS_INTERRUPTIBLE 2
-#define GLIBTOP_PROCESS_UNINTERRUPTIBLE 4
-#define GLIBTOP_PROCESS_ZOMBIE 8
-#define GLIBTOP_PROCESS_STOPPED 16
-#define GLIBTOP_PROCESS_SWAPPING 32
-#define GLIBTOP_PROCESS_DEAD 64
-
-typedef struct _glibtop_proc_state glibtop_proc_state;
-
-/* Name and status */
-
-struct _glibtop_proc_state
-{
- guint64 flags;
- char cmd[40]; /* basename of executable file in
- * call to exec(2) */
- unsigned state;
- /* NOTE: when porting the library, TRY HARD to implement the
- * following two fields. */
- /* IMPORTANT NOTICE: For security reasons, it is extremely important
- * only to set the flags value for those two
- * fields if their values are corrent ! */
- int uid; /* UID of process */
- int gid; /* GID of process */
- int ruid;
- int rgid;
- int has_cpu;
- int processor;
- int last_processor;
-};
-
-void glibtop_get_proc_state(glibtop_proc_state *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_STATE
-#define glibtop_get_proc_state_r glibtop_get_proc_state_p
-#else
-#define glibtop_get_proc_state_r glibtop_get_proc_state_s
-#endif
-
-void glibtop_get_proc_state_l (glibtop *server, glibtop_proc_state *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_STATE
-void _glibtop_init_proc_state_p (glibtop *server);
-void glibtop_get_proc_state_p (glibtop *server, glibtop_proc_state *buf, pid_t pid);
-#else
-void _glibtop_init_proc_state_s (glibtop *server);
-void glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf, pid_t pid);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/proctime.h b/include/glibtop/proctime.h
deleted file mode 100644
index 5f542aea..00000000
--- a/include/glibtop/proctime.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/* 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_PROCTIME_H__
-#define __GLIBTOP_PROCTIME_H__
-
-#include <glibtop.h>
-#include <glibtop/cpu.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PROC_TIME_START_TIME 0
-#define GLIBTOP_PROC_TIME_RTIME 1
-#define GLIBTOP_PROC_TIME_UTIME 2
-#define GLIBTOP_PROC_TIME_STIME 3
-#define GLIBTOP_PROC_TIME_CUTIME 4
-#define GLIBTOP_PROC_TIME_CSTIME 5
-#define GLIBTOP_PROC_TIME_TIMEOUT 6
-#define GLIBTOP_PROC_TIME_IT_REAL_VALUE 7
-#define GLIBTOP_PROC_TIME_FREQUENCY 8
-#define GLIBTOP_PROC_TIME_XCPU_UTIME 9
-#define GLIBTOP_PROC_TIME_XCPU_STIME 10
-
-#define GLIBTOP_MAX_PROC_TIME 11
-
-typedef struct _glibtop_proc_time glibtop_proc_time;
-
-/* Time section */
-
-struct _glibtop_proc_time
-{
- guint64 flags;
- guint64 start_time; /* start time of process --
- * seconds since 1-1-70 */
- guint64 rtime; /* real time accumulated by process */
- guint64 utime; /* user-mode CPU time accumulated by process */
- guint64 stime; /* kernel-mode CPU time accumulated by process */
- guint64 cutime; /* cumulative utime of process and
- * reaped children */
- guint64 cstime; /* cumulative stime of process and
- * reaped children */
- guint64 timeout; /* The time (in jiffies) of the process's
- * next timeout */
- guint64 it_real_value; /* The time (in jiffies) before the
- * next SIGALRM is sent to the process
- * due to an interval timer. */
- guint64 frequency; /* Tick frequency. */
- guint64 xcpu_utime [GLIBTOP_NCPU]; /* utime and stime for all CPUs on */
- guint64 xcpu_stime [GLIBTOP_NCPU]; /* SMP machines. */
-};
-
-
-void glibtop_get_proc_time(glibtop_proc_time *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_TIME
-#define glibtop_get_proc_time_r glibtop_get_proc_time_p
-#else
-#define glibtop_get_proc_time_r glibtop_get_proc_time_s
-#endif
-
-void glibtop_get_proc_time_l (glibtop *server, glibtop_proc_time *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_TIME
-void _glibtop_init_proc_time_p (glibtop *server);
-void glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf, pid_t pid);
-#else
-void _glibtop_init_proc_time_s (glibtop *server);
-void glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf, pid_t pid);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/procuid.h b/include/glibtop/procuid.h
deleted file mode 100644
index 16268a2b..00000000
--- a/include/glibtop/procuid.h
+++ /dev/null
@@ -1,102 +0,0 @@
-/* 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_PROCUID_H__
-#define __GLIBTOP_PROCUID_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_PROC_UID_UID 0
-#define GLIBTOP_PROC_UID_EUID 1
-#define GLIBTOP_PROC_UID_GID 2
-#define GLIBTOP_PROC_UID_EGID 3
-#define GLIBTOP_PROC_UID_SUID 4
-#define GLIBTOP_PROC_UID_SGID 5
-#define GLIBTOP_PROC_UID_FSUID 6
-#define GLIBTOP_PROC_UID_FSGID 7
-#define GLIBTOP_PROC_UID_PID 8
-#define GLIBTOP_PROC_UID_PPID 9
-#define GLIBTOP_PROC_UID_PGRP 10
-#define GLIBTOP_PROC_UID_SESSION 11
-#define GLIBTOP_PROC_UID_TTY 12
-#define GLIBTOP_PROC_UID_TPGID 13
-#define GLIBTOP_PROC_UID_PRIORITY 14
-#define GLIBTOP_PROC_UID_NICE 15
-#define GLIBTOP_PROC_UID_NGROUPS 16
-#define GLIBTOP_PROC_UID_GROUPS 17
-
-#define GLIBTOP_MAX_PROC_UID 18
-
-typedef struct _glibtop_proc_uid glibtop_proc_uid;
-
-#define GLIBTOP_MAX_GROUPS 64
-
-/* User, Group, Terminal and session */
-
-struct _glibtop_proc_uid
-{
- guint64 flags;
- gint32 uid; /* user id */
- gint32 euid; /* effective user id */
- gint32 gid; /* group id */
- gint32 egid; /* effective group id */
- gint32 suid; /* set user id */
- gint32 sgid; /* set group id */
- gint32 fsuid; /* ??? user id */
- gint32 fsgid; /* ??? group id */
- gint32 pid; /* process id */
- gint32 ppid; /* pid of parent process */
- gint32 pgrp; /* process group id */
- gint32 session; /* session id */
- gint32 tty; /* full device number of controlling terminal */
- gint32 tpgid; /* terminal process group id */
- gint32 priority; /* kernel scheduling priority */
- gint32 nice; /* standard unix nice level of process */
- gint32 ngroups;
- gint32 groups [GLIBTOP_MAX_GROUPS];
-
-};
-
-void glibtop_get_proc_uid(glibtop_proc_uid *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_UID
-#define glibtop_get_proc_uid_r glibtop_get_proc_uid_p
-#else
-#define glibtop_get_proc_uid_r glibtop_get_proc_uid_s
-#endif
-
-void glibtop_get_proc_uid_l (glibtop *server, glibtop_proc_uid *buf, pid_t pid);
-
-#if GLIBTOP_SUID_PROC_UID
-void _glibtop_init_proc_uid_p (glibtop *server);
-void glibtop_get_proc_uid_p (glibtop *server, glibtop_proc_uid *buf, pid_t pid);
-#else
-void _glibtop_init_proc_uid_s (glibtop *server);
-void glibtop_get_proc_uid_s (glibtop *server, glibtop_proc_uid *buf, pid_t pid);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/procwd.h b/include/glibtop/procwd.h
deleted file mode 100644
index 9da26059..00000000
--- a/include/glibtop/procwd.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/* Copyright (C) 2007 Benoît Dejean
- This file is part of LibGTop 2.
-
- 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_PROCWD_H__
-#define __GLIBTOP_PROCWD_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-typedef struct _glibtop_proc_wd glibtop_proc_wd;
-
-#define GLIBTOP_PROC_WD_NUMBER 0
-#define GLIBTOP_PROC_WD_ROOT 1
-#define GLIBTOP_PROC_WD_EXE 2
-#define GLIBTOP_PROC_WD_MAX 3
-
-#define GLIBTOP_PROC_WD_ROOT_LEN 215
-#define GLIBTOP_PROC_WD_EXE_LEN 215
-
-struct _glibtop_proc_wd
-{
- guint64 flags;
- guint32 number;
- char root[GLIBTOP_PROC_WD_ROOT_LEN+1];
- char exe[GLIBTOP_PROC_WD_EXE_LEN+1];
-};
-
-
-char ** glibtop_get_proc_wd(glibtop_proc_wd *buf, pid_t pid);
-char ** glibtop_get_proc_wd_l(glibtop *server, glibtop_proc_wd *buf, pid_t pid);
-
-
-#if GLIBTOP_SUID_PROC_WD
-
-#define glibtop_get_proc_wd_r glibtop_get_proc_wd_p
-void _glibtop_init_proc_wd_p(glibtop *server);
-char ** glibtop_get_proc_wd_p(glibtop *server, glibtop_proc_wd *buf, pid_t pid);
-
-#else
-
-#define glibtop_get_proc_wd_r glibtop_get_proc_wd_s
-void _glibtop_init_proc_wd_s(glibtop *server);
-char ** glibtop_get_proc_wd_s(glibtop *server, glibtop_proc_wd *buf, pid_t pid);
-
-#endif
-
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/read.h b/include/glibtop/read.h
deleted file mode 100644
index 411cb764..00000000
--- a/include/glibtop/read.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* 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_READ_H__
-#define __GLIBTOP_READ_H__
-
-#include <glibtop.h>
-
-G_BEGIN_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);
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/read_data.h b/include/glibtop/read_data.h
deleted file mode 100644
index 611bd289..00000000
--- a/include/glibtop/read_data.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* 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_READ_DATA_H__
-#define __GLIBTOP_READ_DATA_H__
-
-#include <glibtop.h>
-
-G_BEGIN_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);
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/sem_limits.h b/include/glibtop/sem_limits.h
deleted file mode 100644
index 612e07dc..00000000
--- a/include/glibtop/sem_limits.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* 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_SEM_LIMITS_H__
-#define __GLIBTOP_SEM_LIMITS_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_IPC_SEMMAP 0
-#define GLIBTOP_IPC_SEMMNI 1
-#define GLIBTOP_IPC_SEMMNS 2
-#define GLIBTOP_IPC_SEMMNU 3
-#define GLIBTOP_IPC_SEMMSL 4
-#define GLIBTOP_IPC_SEMOPM 5
-#define GLIBTOP_IPC_SEMUME 6
-#define GLIBTOP_IPC_SEMUSZ 7
-#define GLIBTOP_IPC_SEMVMX 8
-#define GLIBTOP_IPC_SEMAEM 9
-
-#define GLIBTOP_MAX_SEM_LIMITS 10
-
-typedef struct _glibtop_sem_limits glibtop_sem_limits;
-
-struct _glibtop_sem_limits
-{
- guint64 flags;
- guint64 semmap; /* GLIBTOP_IPC_SEMMAP */
- guint64 semmni; /* GLIBTOP_IPC_SEMMNI */
- guint64 semmns; /* GLIBTOP_IPC_SEMMNS */
- guint64 semmnu; /* GLIBTOP_IPC_SEMMNU */
- guint64 semmsl; /* GLIBTOP_IPC_SEMMSL */
- guint64 semopm; /* GLIBTOP_IPC_SEMOPM */
- guint64 semume; /* GLIBTOP_IPC_SEMUME */
- guint64 semusz; /* GLIBTOP_IPC_SEMUSZ */
- guint64 semvmx; /* GLIBTOP_IPC_SEMVMX */
- guint64 semaem; /* GLIBTOP_IPC_SEMAEM */
-};
-
-void glibtop_get_sem_limits(glibtop_sem_limits *buf);
-
-#if GLIBTOP_SUID_SEM_LIMITS
-#define glibtop_get_sem_limits_r glibtop_get_sem_limits_p
-#else
-#define glibtop_get_sem_limits_r glibtop_get_sem_limits_s
-#endif
-
-void glibtop_get_sem_limits_l (glibtop *server, glibtop_sem_limits *buf);
-
-#if GLIBTOP_SUID_SEM_LIMITS
-void _glibtop_init_sem_limits_p (glibtop *server);
-void glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf);
-#else
-void _glibtop_init_sem_limits_s (glibtop *server);
-void glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/shm_limits.h b/include/glibtop/shm_limits.h
deleted file mode 100644
index 842a1241..00000000
--- a/include/glibtop/shm_limits.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/* 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_SHM_LIMITS_H__
-#define __GLIBTOP_SHM_LIMITS_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_IPC_SHMMAX 0
-#define GLIBTOP_IPC_SHMMIN 1
-#define GLIBTOP_IPC_SHMMNI 2
-#define GLIBTOP_IPC_SHMSEG 3
-#define GLIBTOP_IPC_SHMALL 4
-
-#define GLIBTOP_MAX_SHM_LIMITS 5
-
-typedef struct _glibtop_shm_limits glibtop_shm_limits;
-
-struct _glibtop_shm_limits
-{
- guint64 flags;
- guint64 shmmax; /* GLIBTOP_IPC_SHMMAX */
- guint64 shmmin; /* GLIBTOP_IPC_SHMMIN */
- guint64 shmmni; /* GLIBTOP_IPC_SHMMNI */
- guint64 shmseg; /* GLIBTOP_IPC_SHMSEG */
- guint64 shmall; /* GLIBTOP_IPC_SHMALL */
-};
-
-void glibtop_get_shm_limits(glibtop_shm_limits *buf);
-
-#if GLIBTOP_SUID_SHM_LIMITS
-#define glibtop_get_shm_limits_r glibtop_get_shm_limits_p
-#else
-#define glibtop_get_shm_limits_r glibtop_get_shm_limits_s
-#endif
-
-void glibtop_get_shm_limits_l (glibtop *server, glibtop_shm_limits *buf);
-
-#if GLIBTOP_SUID_SHM_LIMITS
-void _glibtop_init_shm_limits_p (glibtop *server);
-void glibtop_get_shm_limits_p (glibtop *, glibtop_shm_limits *buf);
-#else
-void _glibtop_init_shm_limits_s (glibtop *server);
-void glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/signal.h b/include/glibtop/signal.h
deleted file mode 100644
index a3b3ac76..00000000
--- a/include/glibtop/signal.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* 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_SIGNAL_H__
-#define __GLIBTOP_SIGNAL_H__
-
-#include <glibtop.h>
-
-#ifdef HAVE_SYS_SIGNAL_H
-#include <sys/signal.h>
-#endif
-
-G_BEGIN_DECLS
-
-typedef struct _glibtop_signame glibtop_signame;
-
-struct _glibtop_signame
-{
- const int number;
- const char *name, *label;
-};
-
-extern const glibtop_signame glibtop_sys_siglist [];
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/swap.h b/include/glibtop/swap.h
deleted file mode 100644
index e29d9527..00000000
--- a/include/glibtop/swap.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/* 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_SWAP_H__
-#define __GLIBTOP_SWAP_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_SWAP_TOTAL 0
-#define GLIBTOP_SWAP_USED 1
-#define GLIBTOP_SWAP_FREE 2
-#define GLIBTOP_SWAP_PAGEIN 3
-#define GLIBTOP_SWAP_PAGEOUT 4
-
-#define GLIBTOP_MAX_SWAP 5
-
-typedef struct _glibtop_swap glibtop_swap;
-
-struct _glibtop_swap
-{
- guint64 flags;
- guint64 total; /* GLIBTOP_SWAP_TOTAL */
- guint64 used; /* GLIBTOP_SWAP_USED */
- guint64 free; /* GLIBTOP_SWAP_FREE */
- guint64 pagein; /* GLIBTOP_SWAP_PAGEIN */
- guint64 pageout; /* GLIBTOP_SWAP_PAGEOUT */
-};
-
-void
-glibtop_get_swap(glibtop_swap *buf);
-
-#if GLIBTOP_SUID_SWAP
-#define glibtop_get_swap_r glibtop_get_swap_p
-#else
-#define glibtop_get_swap_r glibtop_get_swap_s
-#endif
-
-void glibtop_get_swap_l (glibtop *server, glibtop_swap *buf);
-
-#if GLIBTOP_SUID_SWAP
-void _glibtop_init_swap_p (glibtop *server);
-void glibtop_get_swap_p (glibtop *server, glibtop_swap *buf);
-#else
-void _glibtop_init_swap_s (glibtop *server);
-void glibtop_get_swap_s (glibtop *server, glibtop_swap *buf);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/sysdeps.h b/include/glibtop/sysdeps.h
deleted file mode 100644
index 40f0b6b2..00000000
--- a/include/glibtop/sysdeps.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/* 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_SYSDEPS_H__
-#define __GLIBTOP_SYSDEPS_H__
-
-#include <glibtop.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_SYSDEPS_FEATURES 0
-#define GLIBTOP_SYSDEPS_CPU 1
-#define GLIBTOP_SYSDEPS_MEM 2
-#define GLIBTOP_SYSDEPS_SWAP 3
-#define GLIBTOP_SYSDEPS_UPTIME 4
-#define GLIBTOP_SYSDEPS_LOADAVG 5
-#define GLIBTOP_SYSDEPS_SHM_LIMITS 6
-#define GLIBTOP_SYSDEPS_MSG_LIMITS 7
-#define GLIBTOP_SYSDEPS_SEM_LIMITS 8
-#define GLIBTOP_SYSDEPS_PROCLIST 9
-#define GLIBTOP_SYSDEPS_PROC_STATE 10
-#define GLIBTOP_SYSDEPS_PROC_UID 11
-#define GLIBTOP_SYSDEPS_PROC_MEM 12
-#define GLIBTOP_SYSDEPS_PROC_TIME 13
-#define GLIBTOP_SYSDEPS_PROC_SIGNAL 14
-#define GLIBTOP_SYSDEPS_PROC_KERNEL 15
-#define GLIBTOP_SYSDEPS_PROC_SEGMENT 16
-#define GLIBTOP_SYSDEPS_PROC_ARGS 17
-#define GLIBTOP_SYSDEPS_PROC_MAP 18
-#define GLIBTOP_SYSDEPS_MOUNTLIST 19
-#define GLIBTOP_SYSDEPS_FSUSAGE 20
-#define GLIBTOP_SYSDEPS_NETLOAD 21
-#define GLIBTOP_SYSDEPS_PPP 22
-#define GLIBTOP_SYSDEPS_NETLIST 23
-#define GLIBTOP_SYSDEPS_PROC_OPEN_FILES 24
-#define GLIBTOP_SYSDEPS_PROC_WD 25
-
-#define GLIBTOP_MAX_SYSDEPS 26
-
-#define GLIBTOP_SYSDEPS_ALL ((1 << GLIBTOP_MAX_SYSDEPS) - 1)
-
-typedef struct _glibtop_sysdeps glibtop_sysdeps;
-
-struct _glibtop_sysdeps
-{
- guint64 flags;
- guint64 features; /* server features */
- guint64 cpu; /* glibtop_cpu */
- guint64 mem; /* glibtop_mem */
- guint64 swap; /* glibtop_swap */
- guint64 uptime; /* glibtop_uptime */
- guint64 loadavg; /* glibtop_loadavg */
- guint64 shm_limits; /* glibtop_shm_limits */
- guint64 msg_limits; /* glibtop_msg_limits */
- guint64 sem_limits; /* glibtop_sem_limits */
- guint64 proclist; /* glibtop_proclist */
- guint64 proc_state; /* glibtop_proc_state */
- guint64 proc_uid; /* glibtop_proc_uid */
- guint64 proc_mem; /* glibtop_proc_mem */
- guint64 proc_time; /* glibtop_proc_time */
- guint64 proc_signal; /* glibtop_proc_signal */
- guint64 proc_kernel; /* glibtop_proc_kernel */
- guint64 proc_segment; /* glibtop_proc_segment */
- guint64 proc_args; /* glibtop_proc_args */
- guint64 proc_map; /* glibtop_proc_map */
- guint64 proc_open_files; /* glibtop_proc_open_files */
- guint64 mountlist; /* glibtop_mountlist */
- guint64 fsusage; /* glibtop_fsusage */
- guint64 netlist; /* glibtop_netlist */
- guint64 netload; /* glibtop_netload */
- guint64 ppp; /* glibtop_ppp */
- guint64 proc_wd; /* glibtop_proc_wd */
-};
-
-void glibtop_get_sysdeps (glibtop_sysdeps *buf);
-void glibtop_get_sysdeps_r (glibtop *server, glibtop_sysdeps *buf);
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/sysinfo.h b/include/glibtop/sysinfo.h
deleted file mode 100644
index c153c2ad..00000000
--- a/include/glibtop/sysinfo.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/* 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_SYSINFO_H__
-#define __GLIBTOP_SYSINFO_H__
-
-#include <glibtop.h>
-#include <glibtop/cpu.h>
-#include <glibtop/global.h>
-
-#include <glib.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_SYSINFO_NCPU 0
-#define GLIBTOP_SYSINFO_CPUINFO 1
-
-#define GLIBTOP_MAX_SYSINFO 2
-
-typedef struct _glibtop_sysinfo glibtop_sysinfo;
-
-typedef struct _glibtop_entry glibtop_entry;
-
-struct _glibtop_entry
-{
- GPtrArray *labels;
- GHashTable *values; /* key -> description */
- GHashTable *descriptions; /* unused */
-};
-
-struct _glibtop_sysinfo
-{
- guint64 flags;
- guint64 ncpu;
- glibtop_entry cpuinfo [GLIBTOP_NCPU];
-};
-
-#define glibtop_get_sysinfo_r glibtop_get_sysinfo_s
-
-const glibtop_sysinfo *glibtop_get_sysinfo_s (glibtop *server);
-const glibtop_sysinfo *glibtop_get_sysinfo (void);
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/union.h b/include/glibtop/union.h
deleted file mode 100644
index 39da4640..00000000
--- a/include/glibtop/union.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/* 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_UNION_H__
-#define __GLIBTOP_UNION_H__
-
-#include <glibtop/cpu.h>
-#include <glibtop/mem.h>
-#include <glibtop/swap.h>
-#include <glibtop/uptime.h>
-#include <glibtop/loadavg.h>
-#include <glibtop/shm_limits.h>
-#include <glibtop/msg_limits.h>
-#include <glibtop/sem_limits.h>
-#include <glibtop/proclist.h>
-
-#include <glibtop/procstate.h>
-#include <glibtop/procuid.h>
-#include <glibtop/procmem.h>
-#include <glibtop/proctime.h>
-#include <glibtop/procsignal.h>
-#include <glibtop/prockernel.h>
-#include <glibtop/procsegment.h>
-#include <glibtop/procargs.h>
-#include <glibtop/procmap.h>
-#include <glibtop/procopenfiles.h>
-#include <glibtop/procwd.h>
-
-#include <glibtop/mountlist.h>
-#include <glibtop/fsusage.h>
-
-#include <glibtop/netload.h>
-#include <glibtop/netlist.h>
-#include <glibtop/ppp.h>
-
-G_BEGIN_DECLS
-
-typedef union _glibtop_union glibtop_union;
-
-union _glibtop_union
-{
- glibtop_cpu cpu;
- glibtop_mem mem;
- glibtop_swap swap;
- glibtop_uptime uptime;
- glibtop_loadavg loadavg;
- glibtop_shm_limits shm_limits;
- glibtop_msg_limits msg_limits;
- glibtop_sem_limits sem_limits;
- glibtop_proclist proclist;
- glibtop_proc_state proc_state;
- glibtop_proc_uid proc_uid;
- glibtop_proc_mem proc_mem;
- glibtop_proc_time proc_time;
- glibtop_proc_signal proc_signal;
- glibtop_proc_kernel proc_kernel;
- glibtop_proc_segment proc_segment;
- glibtop_proc_args proc_args;
- glibtop_proc_map proc_map;
- glibtop_mountlist mountlist;
- glibtop_fsusage fsusage;
- glibtop_netlist netlist;
- glibtop_netload netload;
- glibtop_ppp ppp;
- glibtop_proc_open_files proc_open_files;
- glibtop_proc_wd proc_wd;
-};
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/uptime.h b/include/glibtop/uptime.h
deleted file mode 100644
index 1b579ed3..00000000
--- a/include/glibtop/uptime.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/* 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_UPTIME_H__
-#define __GLIBTOP_UPTIME_H__
-
-#include <glibtop.h>
-#include <glibtop/global.h>
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_UPTIME_UPTIME 0
-#define GLIBTOP_UPTIME_IDLETIME 1
-#define GLIBTOP_UPTIME_BOOT_TIME 2
-
-#define GLIBTOP_MAX_UPTIME 3
-
-typedef struct _glibtop_uptime glibtop_uptime;
-
-struct _glibtop_uptime
-{
- guint64 flags;
- double uptime; /* GLIBTOP_UPTIME_UPTIME */
- double idletime; /* GLIBTOP_UPTIME_IDLETIME */
- guint64 boot_time;
-};
-
-void glibtop_get_uptime (glibtop_uptime *buf);
-
-#if GLIBTOP_SUID_UPTIME
-#define glibtop_get_uptime_r glibtop_get_uptime_p
-#else
-#define glibtop_get_uptime_r glibtop_get_uptime_s
-#endif
-
-void glibtop_get_uptime_l (glibtop *server, glibtop_uptime *buf);
-
-#if GLIBTOP_SUID_UPTIME
-void _glibtop_init_uptime_p (glibtop *server);
-void glibtop_get_uptime_p (glibtop *server, glibtop_uptime *buf);
-#else
-void _glibtop_init_uptime_s (glibtop *server);
-void glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf);
-#endif
-
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/version.h b/include/glibtop/version.h
deleted file mode 100644
index 90ba06df..00000000
--- a/include/glibtop/version.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* 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_VERSION_H__
-#define __GLIBTOP_VERSION_H__
-
-#include <glibtop.h>
-
-#define LIBGTOP_VERSION_STRING "Libgtop %s server version %s (%u,%u,%u,%u)."
-
-G_BEGIN_DECLS
-
-#if _IN_LIBGTOP
-
-void glibtop_send_version (glibtop *server, int fd);
-
-#endif
-
-G_END_DECLS
-
-#endif
diff --git a/include/glibtop/write.h b/include/glibtop/write.h
deleted file mode 100644
index bbed110a..00000000
--- a/include/glibtop/write.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* 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_WRITE_H__
-#define __GLIBTOP_WRITE_H__
-
-#include <glibtop.h>
-
-G_BEGIN_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);
-
-G_END_DECLS
-
-#endif
diff --git a/lib/Makefile.am b/lib/Makefile.am
deleted file mode 100644
index c7efd315..00000000
--- a/lib/Makefile.am
+++ /dev/null
@@ -1,22 +0,0 @@
-
-INCLUDES = @INCLUDES@
-
-lib_LTLIBRARIES = libgtop-2.0.la
-
-libgtop_2_0_la_SOURCES = init.c open.c close.c command.c read.c \
- read_data.c write.c lib.c parameter.c \
- sysdeps.c
-
-libgtop_2_0_la_LDFLAGS = $(LT_VERSION_INFO) -export-symbols $(srcdir)/libgtop.sym
-libgtop_2_0_la_LIBADD = $(GLIB_LIBS) $(top_builddir)/sysdeps/common/libgtop_common-2.0.la $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la $(sysdeps_suid_lib)
-
-BUILT_SOURCES = lib.c
-
-lib.c: lib.pl $(top_builddir)/config.h $(top_srcdir)/features.def
- $(PERL) $(srcdir)/lib.pl < $(top_srcdir)/features.def > lib-t
- mv lib-t lib.c
-
-EXTRA_DIST = lib.pl libgtop.sym
-
-CLEANFILES = lib.c
-
diff --git a/lib/close.c b/lib/close.c
deleted file mode 100644
index a481e2da..00000000
--- a/lib/close.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/error.h>
-#include <glibtop/close.h>
-#include <glibtop/command.h>
-
-/* Closes server. */
-
-void
-glibtop_close_r (glibtop *server)
-{
- switch (server->method) {
- case GLIBTOP_METHOD_UNIX:
- case GLIBTOP_METHOD_INET:
- glibtop_call_l (server, GLIBTOP_CMND_QUIT,
- 0, NULL, 0, NULL);
-
- if (close (server->socket))
- glibtop_warn_io ("close");
-
- break;
- case GLIBTOP_METHOD_PIPE:
- kill (server->pid, SIGKILL);
- close (server->input [0]);
- close (server->output [1]);
- break;
- }
-}
diff --git a/lib/command.c b/lib/command.c
deleted file mode 100644
index 4c458218..00000000
--- a/lib/command.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/read.h>
-#include <glibtop/write.h>
-#include <glibtop/read_data.h>
-
-#include <glibtop/command.h>
-
-void *
-glibtop_call_l (glibtop *server, unsigned command, size_t send_size,
- const void *send_buf, size_t recv_size, void *recv_buf)
-{
- glibtop_command cmnd = {0};
- glibtop_response response = {0};
-
- glibtop_init_r (&server, 0, 0);
-
- cmnd.command = command;
-
- /* If send_size is less than _GLIBTOP_PARAM_SIZE (normally 16 Bytes), we
- * send it together with command, so we only need one system call instead
- * of two. */
-
- if (send_size <= _GLIBTOP_PARAM_SIZE) {
- memcpy (cmnd.parameter, send_buf, send_size);
- cmnd.size = send_size;
- } else {
- cmnd.data_size = send_size;
- }
-
- glibtop_write_l (server, sizeof (glibtop_command), &cmnd);
-
- glibtop_read_l (server, sizeof (glibtop_response), &response);
-
-#ifdef DEBUG
- fprintf (stderr, "RESPONSE: %lu - %d\n",
- response.offset, response.data_size);
-#endif
-
- if (recv_buf)
- memcpy (recv_buf, ((char *) &response) + response.offset,
- recv_size);
-
- if (response.data_size) {
- void *ptr = g_malloc (response.data_size);
-
- glibtop_read_l (server, response.data_size, ptr);
-
- return ptr;
- }
-
- return NULL;
-}
diff --git a/lib/error.c b/lib/error.c
deleted file mode 100644
index 4f356564..00000000
--- a/lib/error.c
+++ /dev/null
@@ -1,173 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
-
-/* 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.
-*/
-
-#include <config.h>
-
-#include <glibtop/error.h>
-
-#include <glib/gstrfuncs.h>
-#include <errno.h>
-
-#define DEFAULT_NAME "LibGTop-Server"
-
-/* Prints error message and exits. */
-
-static void
-print_server_name (glibtop_server *server)
-{
- fprintf (stderr, "%s: ", server ?
- (server->name ? server->name : DEFAULT_NAME)
- : DEFAULT_NAME);
-}
-
-void
-glibtop_error_vr (glibtop_server *server, char *format, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fprintf (stderr, "\n");
-
-#ifdef LIBGTOP_ENABLE_DEBUG
- abort ();
-#else
- exit (1);
-#endif
-}
-
-void
-glibtop_error_io_vr (glibtop_server *server, char *format, int error, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fprintf (stderr, ": %s\n", g_strerror (error));
-
-#ifdef LIBGTOP_ENABLE_DEBUG
- abort ();
-#else
- exit (1);
-#endif
-}
-
-void
-glibtop_warn_vr (glibtop_server *server, char *format, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fprintf (stderr, "\n");
-
-#ifdef LIBGTOP_FATAL_WARNINGS
- abort ();
-#endif
-}
-
-void
-glibtop_warn_io_vr (glibtop_server *server, char *format, int error, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fprintf (stderr, ": %s\n", g_strerror (error));
-
-#ifdef LIBGTOP_FATAL_WARNINGS
- abort ();
-#endif
-}
-
-void
-glibtop_error_r (glibtop_server *server, char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_error_vr (server, format, args);
- va_end (args);
-}
-
-void
-glibtop_warn_r (glibtop_server *server, char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_warn_vr (server, format, args);
- va_end (args);
-}
-
-void
-glibtop_error_io_r (glibtop_server *server, char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_error_io_vr (server, format, errno, args);
- va_end (args);
-}
-
-void
-glibtop_warn_io_r (glibtop_server *server, char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_warn_io_vr (server, format, errno, args);
- va_end (args);
-}
-
-#ifndef __GNUC__
-
-static void
-glibtop_error (char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_error_vr (glibtop_global_server, format, args);
- va_end (args);
-}
-
-static void
-glibtop_warn (char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_warn_vr (glibtop_global_server, format, args);
- va_end (args);
-}
-
-static void
-glibtop_error_io (char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_error_io_vr (glibtop_global_server, format, errno, args);
- va_end (args);
-}
-
-static void
-glibtop_warn_io (char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_warn_io_vr (glibtop_global_server, format, errno, args);
- va_end (args);
-}
-
-#endif /* no __GNUC__ */
diff --git a/lib/glibtop-server-private.h b/lib/glibtop-server-private.h
deleted file mode 100644
index 21010c42..00000000
--- a/lib/glibtop-server-private.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
-
-/* 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_SERVER_PRIVATE_H__
-#define __GLIBTOP_SERVER_PRIVATE_H__
-
-#include <glib.h>
-
-typedef struct _glibtop_server_private glibtop_server_private;
-
-struct _glibtop_server_private
-{
- GSList *backend_list;
-};
-
-#endif
diff --git a/lib/glibtop-server.c b/lib/glibtop-server.c
deleted file mode 100644
index 17fdf252..00000000
--- a/lib/glibtop-server.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
-
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 2.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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop-server-private.h>
-
-glibtop_server *
-glibtop_server_new (void)
-{
- glibtop_server *retval;
-
- retval = g_new0 (glibtop_server, 1);
- retval->info = g_new0 (glibtop_server_info, 1);
- retval->_priv = g_new0 (glibtop_server_private, 1);
- retval->refcount = 1;
-
- return retval;
-}
-
-void
-glibtop_server_ref (glibtop_server *server)
-{
- server->refcount++;
-}
-
-void
-glibtop_server_unref (glibtop_server *server)
-{
- server->refcount--;
-
- if (server->refcount <= 0) {
- g_free (server->_priv);
- g_free (server->info);
- g_free (server);
- }
-}
diff --git a/lib/init.c b/lib/init.c
deleted file mode 100644
index 678714a5..00000000
--- a/lib/init.c
+++ /dev/null
@@ -1,249 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/sysdeps.h>
-#include <glibtop/open.h>
-#include <glibtop/parameter.h>
-#include <glibtop/init_hooks.h>
-
-#ifndef DEFAULT_PORT
-#define DEFAULT_PORT 42800
-#endif
-
-static glibtop _glibtop_global_server = { 0 };
-glibtop *glibtop_global_server = &_glibtop_global_server;
-
-static void
-_init_server (glibtop *server, const unsigned features)
-{
- char *command, *temp;
-
- /* Try to get server command, but don't override if already
- * set via glibtop_set_parameter () */
-
- if (server->server_command == NULL) {
- const char *temp = getenv ("LIBGTOP_SERVER") ?
- getenv ("LIBGTOP_SERVER") : LIBGTOP_SERVER;
-
- server->server_command = g_strdup (temp);
- }
-
- if (server->server_rsh == NULL) {
- const char *temp = getenv ("LIBGTOP_RSH") ?
- getenv ("LIBGTOP_RSH") : "/usr/bin/ssh";
-
- server->server_rsh = g_strdup (temp);
- }
-
- /* Try to get server method, but don't override if already
- * set via glibtop_set_parameter () */
-
- if (server->method) return;
-
- /* If server->command doesn't start with a colon, then it is
- * the full pathname of the server executable. */
-
- if (server->server_command [0] != ':') {
- if (features & glibtop_server_features) {
- /* We really need the server. */
- server->method = GLIBTOP_METHOD_PIPE;
- } else {
- /* Fine. No server is needed, so we call the
- * sysdeps functions directly. */
- server->method = GLIBTOP_METHOD_DIRECT;
- }
-
- return;
- }
-
-
- /* If the first character of 'server_command' is a colon,
- * the first field is the method to connect to the server. */
-
- /* Everything up to the next colon is the method. */
-
- command = g_strdup (server->server_command+1);
- temp = strstr (command, ":");
- if (temp) *temp = 0;
-
- /* Dispatch method. */
-
- if (!strcmp (command, "direct")) {
- /* Use sysdeps dir instead of connecting to server
- * even if using the server would be required on
- * the current system. */
- server->method = GLIBTOP_METHOD_DIRECT;
-
- } else if (!strcmp (command, "inet")) {
-
- server->method = GLIBTOP_METHOD_INET;
-
- /* Connect to internet server. */
-
- if (temp == NULL) {
- /* If no value was set, we use 'localhost'. */
- if (server->server_host == NULL)
- server->server_host = g_strdup ("localhost");
- } else {
- char *temp2 = strstr (temp+1, ":");
- if (temp2) *temp2 = 0;
-
- /* Override default. */
- if (server->server_host)
- g_free ((char *) server->server_host);
-
- server->server_host = g_strdup (temp+1);
-
- temp = temp2;
- }
-
- if (temp == NULL) {
- /* If no value was set, we use DEFAULT_PORT. */
- if (server->server_port == 0)
- server->server_port = DEFAULT_PORT;
- } else {
- char *temp2 = strstr (temp+1, ":");
- if (temp2) *temp2 = 0;
-
- if (sscanf (temp+1, "%ld", &server->server_port) != 1)
- server->server_port = DEFAULT_PORT;
-
- temp = temp2 ? temp2 + 1 : temp2;
- }
-
- } else if (!strcmp (command, "unix")) {
-
- /* Connect to unix domain socket. */
- server->method = GLIBTOP_METHOD_UNIX;
-
- } else if (!strcmp (command, "pipe")) {
-
- /* Open pipe to server. */
- server->method = GLIBTOP_METHOD_PIPE;
-
- } else {
-
- glibtop_error_r (server, "Unknown server method '%s'",
- server->server_command+1);
-
- }
-
- g_free (command);
-}
-
-glibtop *
-glibtop_init_r (glibtop **server_ptr, unsigned long features, unsigned flags)
-{
- glibtop *server;
-
- if (server_ptr == NULL)
- return NULL;
-
- if (*server_ptr == NULL)
- *server_ptr = glibtop_global_server;
-
- server = *server_ptr;
-
- /* Should we do the initialization? */
-
- if (flags & GLIBTOP_INIT_NO_INIT)
- return server;
-
- /* Do the initialization, but only if not already initialized. */
-
- if ((server->flags & _GLIBTOP_INIT_STATE_INIT) == 0) {
- if (flags & GLIBTOP_FEATURES_EXCEPT)
- features = ~features & GLIBTOP_SYSDEPS_ALL;
-
- if (features == 0)
- features = GLIBTOP_SYSDEPS_ALL;
-
- if (flags & GLIBTOP_FEATURES_NO_SERVER) {
- server->method = GLIBTOP_METHOD_DIRECT;
- features = 0;
- }
-
- server->features = features;
-
- _init_server (server, features);
-
- server->flags |= _GLIBTOP_INIT_STATE_INIT;
-
- switch (server->method) {
- case GLIBTOP_METHOD_PIPE:
- case GLIBTOP_METHOD_UNIX:
- if (glibtop_server_features & features)
- break;
-
- server->method = GLIBTOP_METHOD_DIRECT;
- break;
- }
- }
-
- /* Should we open the server? */
-
- if (flags & GLIBTOP_INIT_NO_OPEN)
- return server;
-
- /* Open server, but only if not already opened. */
-
- if ((server->flags & _GLIBTOP_INIT_STATE_OPEN) == 0)
- glibtop_open_l (glibtop_global_server, "glibtop",
- features, flags);
-
- return server;
-}
-
-glibtop *
-glibtop_init_s (glibtop **server_ptr, unsigned long features, unsigned flags)
-{
- glibtop *server;
- const _glibtop_init_func_t *init_fkt;
-
- if (server_ptr == NULL)
- return NULL;
-
- if (*server_ptr == NULL)
- *server_ptr = glibtop_global_server;
-
- server = *server_ptr;
-
- /* Should we do the initialization? */
-
- if (flags & GLIBTOP_INIT_NO_INIT)
- return server;
-
- /* Do the initialization, but only if not already initialized. */
-
- if ((server->flags & _GLIBTOP_INIT_STATE_SYSDEPS) == 0) {
- glibtop_open_s (server, "glibtop", features, flags);
-
- for (init_fkt = _glibtop_init_hook_s; *init_fkt; init_fkt++)
- (*init_fkt) (server);
-
- server->flags |= _GLIBTOP_INIT_STATE_SYSDEPS;
- }
-
- return server;
-}
diff --git a/lib/lib.pl b/lib/lib.pl
deleted file mode 100755
index fe82170f..00000000
--- a/lib/lib.pl
+++ /dev/null
@@ -1,246 +0,0 @@
-#!/usr/bin/perl
-
-$[ = 1; # set array base to 1
-$, = ' '; # set output field separator
-$\ = "\n"; # set output record separator
-
-sub toupper {
- local($_) = @_;
- tr/a-z/A-Z/;
- return $_;
-}
-
-sub tolower {
- local($_) = @_;
- tr/A-Z/a-z/;
- return $_;
-}
-
-print '/* lib.c */';
-print "/* This is a generated file. Please modify `lib.pl' */";
-print '';
-
-print '#include <config.h>';
-print '';
-print '#include <glibtop.h>';
-print '#include <glibtop/error.h>';
-print '#include <glibtop/open.h>';
-print '';
-print '#include <glibtop/sysdeps.h>';
-print '#include <glibtop/union.h>';
-print '#include <glib/gi18n-lib.h>';
-print '';
-print '#include <glibtop/command.h>';
-
-print '';
-print '/* Some required fields are missing. */';
-print '';
-
-print 'static void';
-print '_glibtop_missing_feature (glibtop *server, const char *feature,';
-print "\t\t\t const guint64 present, guint64 *required)";
-print '{';
-print "\tguint64 old_required = *required;\n";
-print "\t/* Return if we have all required fields. */";
-print "\tif ((~present & old_required) == 0)";
-print "\t\treturn;\n";
-print "\tswitch (server->error_method) {";
-print "\tcase GLIBTOP_ERROR_METHOD_WARN_ONCE:";
-print "\t\t*required &= present;";
-print "\tcase GLIBTOP_ERROR_METHOD_WARN:";
-print "\t\tglibtop_warn_r (server,";
-print "\t\t\t\t_(\"glibtop_get_%s (): Client requested \"";
-print "\t\t\t\t \"field mask %05lx, but only have %05lx.\"),";
-print "\t\t\t\t feature, (unsigned long) old_required,";
-print "\t\t\t\t (unsigned long) present);";
-print "\t\tbreak;";
-print "\tcase GLIBTOP_ERROR_METHOD_ABORT:";
-print "\t\tglibtop_error_r (server,";
-print "\t\t\t\t _(\"glibtop_get_%s (): Client requested \"";
-print "\t\t\t\t \"field mask %05lx, but only have %05lx.\"),";
-print "\t\t\t\t feature, (unsigned long) old_required,";
-print "\t\t\t\t (unsigned long) present);";
-print "\t\tbreak;";
-print "\t}";
-print '}';
-
-print '';
-print '/* Library functions. */';
-print '';
-
-$convert{'long'} = 'gint64';
-$convert{'ulong'} = 'guint64';
-$convert{'pid_t'} = 'pid_t';
-$convert{'int'} = 'int';
-$convert{'ushort'} = 'unsigned short';
-$convert{'unsigned'} = 'unsigned';
-
-while (<>) {
- chop; # strip record separator
-
- if (/^[^#]/) {
- &output($_);
- }
-}
-
-sub output {
- local($line) = @_;
- @line_fields = split(/\|/, $line, 9999);
- $retval = $line_fields[1];
- $feature = $line_fields[2];
- $param_def = $line_fields[4];
-
- $orig = $feature;
- $feature =~ s/^@//;
- $space = $feature;
- $space =~ s/./ /g;
-
- print $retval;
- if ($retval !~ /^void$/) {
- $prefix = 'retval = ';
- $prefix_space = ' ';
- }
- else {
- $prefix = '';
- $prefix_space = '';
- }
-
- if ($param_def eq 'string') {
- $call_param = ', ' . $line_fields[5];
- $param_buf = '';
- $buf_set = '';
- $param_decl = ",\n " . $space . ' const char *' .
-
- $line_fields[5];
- $send_ptr = "\n\tconst void *send_ptr = " . $line_fields[5] . ';';
- $send_size = "\n\tconst size_t send_size =\n\t\tstrlen (" .
-
- $line_fields[5] . ') + 1;';
- }
- else {
- $call_param = '';
- $param_decl = '';
- $send_size = '';
- $send_ptr = '';
- $param_buf = '';
- $buf_set = '';
- $nr_params = (@params = split(/:/, $param_def, 9999));
- if ($nr_params) {
- $param_buf = "\n\tstruct {\n";
- }
- for ($param = 1; $param <= $nr_params; $param++) {
- $list = $params[$param];
- $type = $params[$param];
- $type =~ s/\(.*//;
- $list =~ s/^.*\(//;
- $list =~ s/\)$//;
- $count = (@fields = split(/,/, $list, 9999));
-
- if ($count > 0) {
- for ($field = 1; $field <= $count; $field++) {
- $param_buf .= "\t\t$convert{$type} buf_$fields[$field];\n";
- $buf_set .= "\tparam_buf.buf_$fields[$field] = $fields[$field];\n";
- }
- }
-
- for ($field = 1; $field <= $count; $field++) {
- if ($param_decl eq '') {
- $param_decl = ",\n " . $space . ' ';
- }
- else {
- $param_decl = $param_decl . ', ';
- }
- $param_decl = $param_decl . '' . $convert{$type} . ' ' .
-
- $fields[$field];
- $call_param = $call_param . ', ' . $fields[$field];
- if ($send_ptr eq '') {
- $send_ptr = "\n\tconst void *send_ptr = &param_buf;";
- }
- }
- }
- if ($nr_params) {
- $param_buf .= "\t} param_buf;";
- $send_size = "\n\tconst size_t send_size = sizeof param_buf;";
- }
- else {
- $send_size = "\n\tconst size_t send_size = 0;";
- }
- if ($send_ptr eq '') {
- $send_ptr = "\n\tconst void *send_ptr = NULL;";
- }
- }
-
- print 'glibtop_get_' . $feature . '_l (glibtop *server, glibtop_' .
-
- $feature . ' *buf' . $param_decl . ')';
-
- print "{" . $param_buf;
-
- print $send_ptr . '' . $send_size;
- if ($retval !~ /^void$/) {
- print "\t" . $retval . ' retval = (' . $retval . ') 0;';
- }
- print $buf_set;
-
- print "\tglibtop_init_r (&server, (1 << GLIBTOP_SYSDEPS_" .
-
- &toupper($feature) . '), 0);';
-
- print '';
- print "\t/* If neccessary, we ask the server for the requested";
- print "\t * feature. If not, we call the sysdeps function. */";
- print '';
-
- print "\tif ((server->flags & _GLIBTOP_INIT_STATE_SERVER) &&";
- print "\t (server->features & (1 << GLIBTOP_SYSDEPS_" .
-
- &toupper($feature) . ')))';
- print "\t{";
-
- print "\t\t" . $prefix . 'glibtop_call_l (server, GLIBTOP_CMND_' .
-
- &toupper($feature) . ',';
- print "\t\t\t\t" . $prefix_space . 'send_size, send_ptr,';
- print "\t\t\t\t" . $prefix_space . 'sizeof (glibtop_' . $feature .
-
- '), buf);';
-
- print "\t} else {";
-
- if ($orig !~ /^@/) {
- print '#if (!GLIBTOP_SUID_' . &toupper($feature) . ')';
- }
- print "\t\t" . $prefix . 'glibtop_get_' . $feature . '_s (server, buf' .
-
- $call_param . ');';
-
- if ($orig !~ /^@/) {
- print '#else';
- print "\t\terrno = ENOSYS;";
- print "\t\tglibtop_error_io_r (server, \"glibtop_get_" . $feature .
-
- "\");";
- print '#endif';
- }
-
- print "\t}";
-
- print '';
- print "\t/* Make sure that all required fields are present. */";
- print '';
-
- print "\tif (buf->flags & server->required." . $feature . ')';
- print "\t\t_glibtop_missing_feature (server, \"" . $feature .
-
- "\", buf->flags,";
- print "\t\t\t\t\t &server->required." . $feature . ');';
-
- if ($retval !~ /^void$/) {
- print "\n\t/* Now we can return. */";
- print "\n\treturn retval;";
- }
-
- print '}';
- print '';
-}
diff --git a/lib/libgtop.sym b/lib/libgtop.sym
deleted file mode 100644
index 9ba1f337..00000000
--- a/lib/libgtop.sym
+++ /dev/null
@@ -1,130 +0,0 @@
-glibtop_call_l
-glibtop_call_p
-glibtop_close
-glibtop_close_p
-glibtop_close_r
-glibtop_close_s
-glibtop_get_cpu
-glibtop_get_cpu_l
-glibtop_get_cpu_p
-glibtop_get_cpu_s
-glibtop_get_fsusage
-glibtop_get_fsusage_l
-glibtop_get_fsusage_p
-glibtop_get_fsusage_s
-glibtop_get_loadavg
-glibtop_get_loadavg_l
-glibtop_get_loadavg_p
-glibtop_get_loadavg_s
-glibtop_get_mem
-glibtop_get_mem_l
-glibtop_get_mem_p
-glibtop_get_mem_s
-glibtop_get_mountlist
-glibtop_get_mountlist_l
-glibtop_get_mountlist_p
-glibtop_get_mountlist_s
-glibtop_get_msg_limits
-glibtop_get_msg_limits_l
-glibtop_get_msg_limits_p
-glibtop_get_msg_limits_s
-glibtop_get_netlist
-glibtop_get_netlist_l
-glibtop_get_netlist_p
-glibtop_get_netlist_s
-glibtop_get_netload
-glibtop_get_netload_l
-glibtop_get_netload_p
-glibtop_get_netload_s
-glibtop_get_parameter_l
-glibtop_get_parameter_p
-glibtop_get_ppp
-glibtop_get_ppp_l
-glibtop_get_ppp_p
-glibtop_get_ppp_s
-glibtop_get_proc_args
-glibtop_get_proc_args_l
-glibtop_get_proc_args_p
-glibtop_get_proc_args_s
-glibtop_get_proc_argv
-glibtop_get_proc_argv_l
-glibtop_get_proc_argv_p
-glibtop_get_proc_kernel
-glibtop_get_proc_kernel_l
-glibtop_get_proc_kernel_p
-glibtop_get_proc_kernel_s
-glibtop_get_proclist
-glibtop_get_proclist_l
-glibtop_get_proclist_p
-glibtop_get_proclist_s
-glibtop_get_proc_map
-glibtop_get_proc_map_l
-glibtop_get_proc_map_p
-glibtop_get_proc_map_s
-glibtop_get_proc_mem
-glibtop_get_proc_mem_l
-glibtop_get_proc_mem_p
-glibtop_get_proc_mem_s
-glibtop_get_proc_open_files
-glibtop_get_proc_open_files_l
-glibtop_get_proc_open_files_p
-glibtop_get_proc_open_files_s
-glibtop_get_proc_segment
-glibtop_get_proc_segment_l
-glibtop_get_proc_segment_p
-glibtop_get_proc_segment_s
-glibtop_get_proc_signal
-glibtop_get_proc_signal_l
-glibtop_get_proc_signal_p
-glibtop_get_proc_signal_s
-glibtop_get_proc_state
-glibtop_get_proc_state_l
-glibtop_get_proc_state_p
-glibtop_get_proc_state_s
-glibtop_get_proc_time
-glibtop_get_proc_time_l
-glibtop_get_proc_time_p
-glibtop_get_proc_time_s
-glibtop_get_proc_uid
-glibtop_get_proc_uid_l
-glibtop_get_proc_uid_p
-glibtop_get_proc_uid_s
-glibtop_get_proc_wd
-glibtop_get_proc_wd_l
-glibtop_get_proc_wd_p
-glibtop_get_proc_wd_s
-glibtop_get_sem_limits
-glibtop_get_sem_limits_l
-glibtop_get_sem_limits_p
-glibtop_get_sem_limits_s
-glibtop_get_shm_limits
-glibtop_get_shm_limits_l
-glibtop_get_shm_limits_p
-glibtop_get_shm_limits_s
-glibtop_get_swap
-glibtop_get_swap_l
-glibtop_get_swap_p
-glibtop_get_swap_s
-glibtop_get_sysdeps
-glibtop_get_sysdeps_r
-glibtop_get_sysinfo
-glibtop_get_sysinfo_p
-glibtop_get_sysinfo_s
-glibtop_get_uptime
-glibtop_get_uptime_l
-glibtop_get_uptime_p
-glibtop_get_uptime_s
-glibtop_global_server
-glibtop_init
-glibtop_init_p
-glibtop_init_r
-glibtop_init_s
-glibtop_internet_addr
-glibtop_make_connection
-glibtop_open_l
-glibtop_open_p
-glibtop_open_s
-glibtop_server_features
-glibtop_set_parameter_l
-glibtop_set_parameter_p
-glibtop_sys_siglist
diff --git a/lib/open.c b/lib/open.c
deleted file mode 100644
index 9825bc63..00000000
--- a/lib/open.c
+++ /dev/null
@@ -1,182 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/read.h>
-#include <glibtop/error.h>
-#include <glibtop/version.h>
-#include <glibtop/sysdeps.h>
-#include <glibtop/command.h>
-
-#include <glibtop/gnuserv.h>
-
-/* Opens pipe to gtop server. Returns 0 on success and -1 on error. */
-
-void
-glibtop_open_l (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags)
-{
- int connect_type;
-
- server->name = program_name;
-
- /* It is important to set _GLIBTOP_INIT_STATE_OPEN here when we
- * do recursive calls to glibtop_init_r (). */
-
- server->flags |= _GLIBTOP_INIT_STATE_OPEN;
-
- server->error_method = GLIBTOP_ERROR_METHOD_DEFAULT;
-
-#ifdef DEBUG
- fprintf (stderr, "SIZEOF: %u - %u - %u - %u - %u - %u\n",
- sizeof (glibtop_command), sizeof (glibtop_response),
- sizeof (glibtop_mountentry), sizeof (glibtop_union),
- sizeof (glibtop_sysdeps), sizeof (glibtop_response_union));
-#endif
-
- switch (server->method) {
- case GLIBTOP_METHOD_DIRECT:
- server->features = 0;
- break;
- case GLIBTOP_METHOD_INET:
-#ifdef DEBUG
- fprintf (stderr, "Connecting to '%s' port %ld.\n",
- server->server_host, server->server_port);
-#endif
-
- connect_type = glibtop_make_connection
- (server->server_host, server->server_port,
- &server->socket);
-
-#ifdef DEBUG
- fprintf (stderr, "Connect Type is %d.\n", connect_type);
-#endif
-
- server->flags |= _GLIBTOP_INIT_STATE_SERVER;
-
- server->features = -1;
- break;
- case GLIBTOP_METHOD_UNIX:
-#ifdef DEBUG
- fprintf (stderr, "Connecting to Unix Domain Socket.\n");
-#endif
-
- connect_type = glibtop_make_connection
- ("unix", 0, &server->socket);
-
-#ifdef DEBUG
- fprintf (stderr, "Connect Type is %d.\n", connect_type);
-#endif
-
- server->flags |= _GLIBTOP_INIT_STATE_SERVER;
-
- server->features = -1;
- break;
- case GLIBTOP_METHOD_PIPE:
-#ifdef DEBUG
- fprintf (stderr, "Opening pipe to server (%s).\n",
- LIBGTOP_SERVER);
-#endif
-
- if (pipe (server->input) || pipe (server->output))
- glibtop_error_io_r (server, "cannot make a pipe");
-
- server->pid = fork ();
-
- if (server->pid < 0) {
- glibtop_error_io_r (server, "fork failed");
- } else if (server->pid == 0) {
- close (0); close (1);
- close (server->input [0]); close (server->output [1]);
- dup2 (server->input [1], 1);
- dup2 (server->output [0], 0);
- execl (LIBGTOP_SERVER, "libgtop-server", NULL);
- glibtop_error_io_r (server, "execl (%s)",
- LIBGTOP_SERVER);
- _exit (2);
- }
-
- close (server->input [1]);
- close (server->output [0]);
-
- server->flags |= _GLIBTOP_INIT_STATE_SERVER;
-
- server->features = -1;
- break;
- }
-
- /* If the server has been started, ask it for its features. */
-
- if (server->flags & _GLIBTOP_INIT_STATE_SERVER) {
- char version [BUFSIZ], buffer [BUFSIZ];
- glibtop_sysdeps sysdeps;
- size_t size, nbytes;
-
- /* First check whether the server version is correct. */
-
- sprintf (version, LIBGTOP_VERSION_STRING,
- LIBGTOP_VERSION, LIBGTOP_SERVER_VERSION,
- (guint) sizeof (glibtop_command),
- (guint) sizeof (glibtop_response),
- (guint) sizeof (glibtop_union),
- (guint) sizeof (glibtop_sysdeps));
-
- size = strlen (version) + 1;
-
- glibtop_read_l (server, sizeof (nbytes), &nbytes);
-
- if (nbytes != size)
- glibtop_error_r (server,
- "Requested %u bytes but got %u.",
- size, nbytes);
-
- glibtop_read_l (server, nbytes, buffer);
-
- if (memcmp (version, buffer, size))
- glibtop_error_r (server, "server version is not %s",
- LIBGTOP_VERSION);
-
- /* Now ask it for its features. */
-
- glibtop_call_l (server, GLIBTOP_CMND_SYSDEPS, 0, NULL,
- sizeof (glibtop_sysdeps), &sysdeps);
-
- server->features = sysdeps.features;
-
- memcpy (&server->sysdeps, &sysdeps, sizeof (glibtop_sysdeps));
-
-#ifdef DEBUG
- fprintf (stderr, "Server features are %lu.\n",
- server->features);
-#endif
- }
-
- /* In any case, we call the open functions of our own sysdeps
- * directory. */
-
-#ifdef DEBUG
- fprintf (stderr, "Calling sysdeps open function.\n");
-#endif
-
- glibtop_init_s (&server, features, flags);
-}
diff --git a/lib/parameter.c b/lib/parameter.c
deleted file mode 100644
index 4e996b30..00000000
--- a/lib/parameter.c
+++ /dev/null
@@ -1,98 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/parameter.h>
-#include <glibtop/error.h>
-
-#define _write_data(ptr,size) \
- if ((data_ptr == NULL) || (data_size < size)) return -size; \
- if (ptr == NULL) { char * const p = data_ptr; *p = '\0'; return 1; } \
- memcpy (data_ptr, ptr, size); \
- return size;
-
-#define _check_data(size) \
- if ((data_ptr == NULL) || (data_size != size)) { \
- glibtop_warn_r (server, "glibtop_set_parameter (%u): " \
- "Expected %lu bytes but got %lu.", \
- (unsigned) parameter, (unsigned long) size, (unsigned long) data_size); \
- return; \
- }
-
-#define _strlen(ptr) (ptr ? strlen (ptr) : 0)
-
-size_t
-glibtop_get_parameter_l (glibtop *server, const unsigned parameter,
- void *data_ptr, size_t data_size)
-{
- switch (parameter) {
- case GLIBTOP_PARAM_METHOD:
- _write_data (&server->method,
- sizeof (server->method));
- case GLIBTOP_PARAM_FEATURES:
- _write_data (&server->features,
- sizeof (server->features));
- case GLIBTOP_PARAM_COMMAND:
- _write_data (server->server_command,
- _strlen(server->server_command));
- case GLIBTOP_PARAM_HOST:
- _write_data (server->server_host,
- _strlen(server->server_host));
- case GLIBTOP_PARAM_PORT:
- _write_data (&server->server_port,
- sizeof (server->server_port));
- case GLIBTOP_PARAM_ERROR_METHOD:
- _write_data (&server->error_method,
- sizeof (server->error_method));
- case GLIBTOP_PARAM_REQUIRED:
- _write_data (&server->required,
- sizeof (server->required));
- }
-
- return 0;
-}
-
-void
-glibtop_set_parameter_l (glibtop *server, const unsigned parameter,
- const void *data_ptr, size_t data_size)
-{
- switch (parameter) {
- case GLIBTOP_PARAM_METHOD:
- _check_data (sizeof (server->method));
- memcpy (&server->method, data_ptr, data_size);
- break;
- case GLIBTOP_PARAM_FEATURES:
- /* You should not be allowed to set this field. */
- glibtop_warn_r (server, "glibtop_set_parameter (%u): " \
- "Cannot modify read-only value.",
- parameter);
- break;
- case GLIBTOP_PARAM_ERROR_METHOD:
- _check_data (sizeof (server->error_method));
- memcpy (&server->error_method, data_ptr, data_size);
- break;
- case GLIBTOP_PARAM_REQUIRED:
- _check_data (sizeof (server->required));
- memcpy (&server->required, data_ptr, data_size);
- break;
- }
-}
diff --git a/lib/read.c b/lib/read.c
deleted file mode 100644
index e7bd0fa5..00000000
--- a/lib/read.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <errno.h>
-#include <glibtop/read.h>
-#include <glibtop/error.h>
-#include <glib/gi18n-lib.h>
-
-
-
-void
-glibtop_read_l (glibtop *server, size_t size, void *buf)
-{
- int fd;
- glibtop_init_r (&server, 0, 0);
-
-#ifdef DEBUG
- fprintf (stderr, "LIBRARY: really reading %d bytes.\n", (int)size);
-#endif
-
- fd = server->socket ? server->socket : server->input[0];
-
- while (size) {
- ssize_t nread = read(fd, buf, size);
-
- if (nread < 0 && errno == EINTR)
- continue;
-
- if (nread <= 0)
- glibtop_error_io_r(
- server,
- ngettext ("read %d byte",
- "read %d bytes", size),
- (int)size);
-
- size -= nread;
- buf = (char *)buf + nread;
- }
-}
diff --git a/lib/read_data.c b/lib/read_data.c
deleted file mode 100644
index 7e6a4c2d..00000000
--- a/lib/read_data.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-
-#include <glibtop/error.h>
-#include <glibtop/read_data.h>
-#include <glib/gi18n-lib.h>
-
-/* Reads some data from server. */
-
-void *
-glibtop_read_data_l (glibtop *server)
-{
- size_t size;
- void *ptr;
- int ret;
-
- glibtop_init_r (&server, 0, 0);
-
-#ifdef DEBUG
- fprintf (stderr, "LIBRARY: reading %lu data bytes.\n",
- (unsigned long) sizeof (size_t));
-#endif
-
- if (server->socket) {
- ret = recv (server->socket, &size, sizeof (size_t), 0);
- } else {
- ret = read (server->input [0], &size, sizeof (size_t));
- }
-
- if (ret < 0)
- glibtop_error_io_r (server, _("read data size"));
-
-#ifdef DEBUG
- fprintf (stderr, "LIBRARY: really reading %lu data bytes (ret = %d).\n",
- (unsigned long) size, ret);
-#endif
-
- if (!size) return NULL;
-
- ptr = g_malloc (size);
-
- if (server->socket) {
- ret = recv (server->socket, ptr, size, 0);
- } else {
- ret = read (server->input [0], ptr, size);
- }
-
- if (ret < 0)
- glibtop_error_io_r (server,
- ngettext ("read %lu byte of data",
- "read %lu bytes of data",
- (unsigned long) size),
- (unsigned long) size);
-
- return ptr;
-}
diff --git a/lib/structures.pl b/lib/structures.pl
deleted file mode 100644
index 976dc560..00000000
--- a/lib/structures.pl
+++ /dev/null
@@ -1,104 +0,0 @@
-#!/usr/bin/perl
-
-die "Usage: $0 features.def structures.def" unless $#ARGV == 2;
-
-$[ = 1; # set array base to 1
-$, = ' '; # set output field separator
-$\ = "\n"; # set output record separator
-
-sub toupper {
- local($_) = @_;
- tr/a-z/A-Z/;
- return $_;
-}
-
-sub tolower {
- local($_) = @_;
- tr/A-Z/a-z/;
- return $_;
-}
-
-$structures{$structure_count++} = 'glibtop';
-
-open FEATURESDEF, $ARGV[1] or
- die "open ($ARGV[1]): $!";
-
-while (<FEATURESDEF>) {
- chop; # strip record separator
-
- if (/^[^\#]/) {
- &parse_features_def ($_);
- }
-}
-
-close FEATURESDEF;
-
-open STRUCTDEF, $ARGV[2] or
- die "open ($ARGV[2]): $!";
-
-while (<STRUCTDEF>) {
- chop; # strip record separator
-
- if (/^[^\#]/) {
- &parse_structure_def ($_);
- }
-}
-
-close STRUCTDEF;
-
-$init_structures_code = sprintf
- (qq[\tscm_glibtop_structure_tags [GLIBTOP_STRUCTURE_GLIBTOP] = scm_make_structure_type\n\t\t("glibtop", sizeof (glibtop));\n]);
-
-for ($nr = 0; $nr < $structure_count; $nr++) {
- $structure = $structures{$nr};
-
- $init_structures_code .= sprintf
- (qq[\tscm_glibtop_structure_tags [GLIBTOP_STRUCTURE_%s] = scm_make_structure_type\n\t\t("%s", sizeof (%s));\n],
- toupper($structure), $structure, $structure);
-}
-
-print qq[/* structures.h */];
-print qq[/* This is a generated file. Please modify \`guile.pl\' */];
-print '';
-print qq[\#ifndef __GLIBTOP_STRUCTURES_H__];
-print qq[\#define __GLIBTOP_STRUCTURES_H__];
-print '';
-print qq[\#include <glibtop.h>];
-print '';
-print qq[G_BEGIN_DECLS];
-print '';
-
-for ($nr = 0; $nr < $structure_count; $nr++) {
- $structure = $structures{$nr};
-
- printf (qq[\#define %-40s\t%d\n], 'GLIBTOP_STRUCTURE_'.&toupper($structure), $nr);
-}
-
-print '';
-printf (qq[\#define %-40s\t%d\n], 'GLIBTOP_MAX_STRUCTURES', $structure_count);
-print '';
-print qq[G_END_DECLS];
-print '';
-print qq[\#endif /* __GLIBTOP_STRUCTURES_H__ */];
-
-sub parse_features_def {
- local($line) = @_;
- @line_fields = split(/\|/, $line, 9999);
- $retval = $line_fields[1];
- $element_def = $line_fields[3];
- $feature = $line_fields[2];
- $param_def = $line_fields[4];
-
- $feature =~ s/^@//;
- $features{$feature} = $feature;
-
- $structures{$structure_count++} = 'glibtop_'.$feature;
-}
-
-sub parse_structure_def {
- local($line) = @_;
- @line_fields = split(/\|/, $line, 9999);
- $name = $line_fields[1];
-
- $structures{$structure_count++} = $name;
-}
diff --git a/lib/sysdeps.c b/lib/sysdeps.c
deleted file mode 100644
index 1540a601..00000000
--- a/lib/sysdeps.c
+++ /dev/null
@@ -1,198 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/union.h>
-#include <glibtop/sysdeps.h>
-#include <glibtop/init_hooks.h>
-
-const unsigned long glibtop_server_features =
-GLIBTOP_SUID_CPU +
-GLIBTOP_SUID_MEM +
-GLIBTOP_SUID_SWAP +
-GLIBTOP_SUID_UPTIME +
-GLIBTOP_SUID_LOADAVG +
-GLIBTOP_SUID_SHM_LIMITS +
-GLIBTOP_SUID_MSG_LIMITS +
-GLIBTOP_SUID_SEM_LIMITS +
-GLIBTOP_SUID_PROCLIST +
-GLIBTOP_SUID_PROC_STATE +
-GLIBTOP_SUID_PROC_UID +
-GLIBTOP_SUID_PROC_MEM +
-GLIBTOP_SUID_PROC_TIME +
-GLIBTOP_SUID_PROC_SIGNAL +
-GLIBTOP_SUID_PROC_KERNEL +
-GLIBTOP_SUID_PROC_SEGMENT +
-GLIBTOP_SUID_PROC_ARGS +
-GLIBTOP_SUID_PROC_MAP +
-GLIBTOP_SUID_NETLOAD +
-GLIBTOP_SUID_NETLIST +
-GLIBTOP_SUID_PROC_WD +
-GLIBTOP_SUID_PPP;
-
-const _glibtop_init_func_t _glibtop_init_hook_s [] = {
-#if !GLIBTOP_SUID_CPU
- _glibtop_init_cpu_s,
-#endif
-#if !GLIBTOP_SUID_MEM
- _glibtop_init_mem_s,
-#endif
-#if !GLIBTOP_SUID_SWAP
- _glibtop_init_swap_s,
-#endif
-#if !GLIBTOP_SUID_UPTIME
- _glibtop_init_uptime_s,
-#endif
-#if !GLIBTOP_SUID_LOADAVG
- _glibtop_init_loadavg_s,
-#endif
-#if !GLIBTOP_SUID_SHM_LIMITS
- _glibtop_init_shm_limits_s,
-#endif
-#if !GLIBTOP_SUID_MSG_LIMITS
- _glibtop_init_msg_limits_s,
-#endif
-#if !GLIBTOP_SUID_SEM_LIMITS
- _glibtop_init_sem_limits_s,
-#endif
-#if !GLIBTOP_SUID_PROCLIST
- _glibtop_init_proclist_s,
-#endif
-#if !GLIBTOP_SUID_PROC_STATE
- _glibtop_init_proc_state_s,
-#endif
-#if !GLIBTOP_SUID_PROC_UID
- _glibtop_init_proc_uid_s,
-#endif
-#if !GLIBTOP_SUID_PROC_MEM
- _glibtop_init_proc_mem_s,
-#endif
-#if !GLIBTOP_SUID_PROC_TIME
- _glibtop_init_proc_time_s,
-#endif
-#if !GLIBTOP_SUID_PROC_SIGNAL
- _glibtop_init_proc_signal_s,
-#endif
-#if !GLIBTOP_SUID_PROC_KERNEL
- _glibtop_init_proc_kernel_s,
-#endif
-#if !GLIBTOP_SUID_PROC_SEGMENT
- _glibtop_init_proc_segment_s,
-#endif
-#if !GLIBTOP_SUID_PROC_ARGS
- _glibtop_init_proc_args_s,
-#endif
-#if !GLIBTOP_SUID_PROC_MAP
- _glibtop_init_proc_map_s,
-#endif
-#if !GLIBTOP_SUID_NETLOAD
- _glibtop_init_netload_s,
-#endif
-#if !GLIBTOP_SUID_NETLIST
- _glibtop_init_netlist_s,
-#endif
-#if !GLIBTOP_SUID_PROC_WD
- _glibtop_init_proc_wd_s,
-#endif
-#if !GLIBTOP_SUID_PPP
- _glibtop_init_ppp_s,
-#endif
- NULL
-};
-
-const _glibtop_init_func_t _glibtop_init_hook_p [] = {
-#if GLIBTOP_SUID_CPU
- _glibtop_init_cpu_p,
-#endif
-#if GLIBTOP_SUID_MEM
- _glibtop_init_mem_p,
-#endif
-#if GLIBTOP_SUID_SWAP
- _glibtop_init_swap_p,
-#endif
-#if GLIBTOP_SUID_UPTIME
- _glibtop_init_uptime_p,
-#endif
-#if GLIBTOP_SUID_LOADAVG
- _glibtop_init_loadavg_p,
-#endif
-#if GLIBTOP_SUID_SHM_LIMITS
- _glibtop_init_shm_limits_p,
-#endif
-#if GLIBTOP_SUID_MSG_LIMITS
- _glibtop_init_msg_limits_p,
-#endif
-#if GLIBTOP_SUID_SEM_LIMITS
- _glibtop_init_sem_limits_p,
-#endif
-#if GLIBTOP_SUID_PROCLIST
- _glibtop_init_proclist_p,
-#endif
-#if GLIBTOP_SUID_PROC_STATE
- _glibtop_init_proc_state_p,
-#endif
-#if GLIBTOP_SUID_PROC_UID
- _glibtop_init_proc_uid_p,
-#endif
-#if GLIBTOP_SUID_PROC_MEM
- _glibtop_init_proc_mem_p,
-#endif
-#if GLIBTOP_SUID_PROC_TIME
- _glibtop_init_proc_time_p,
-#endif
-#if GLIBTOP_SUID_PROC_SIGNAL
- _glibtop_init_proc_signal_p,
-#endif
-#if GLIBTOP_SUID_PROC_KERNEL
- _glibtop_init_proc_kernel_p,
-#endif
-#if GLIBTOP_SUID_PROC_SEGMENT
- _glibtop_init_proc_segment_p,
-#endif
-#if GLIBTOP_SUID_PROC_ARGS
- _glibtop_init_proc_args_p,
-#endif
-#if GLIBTOP_SUID_PROC_MAP
- _glibtop_init_proc_map_p,
-#endif
-#if GLIBTOP_SUID_NETLOAD
- _glibtop_init_netload_p,
-#endif
-#if GLIBTOP_SUID_NETLIST
- _glibtop_init_netlist_p,
-#endif
-#if GLIBTOP_SUID_PROC_WD
- _glibtop_init_proc_wd_p,
-#endif
-#if GLIBTOP_SUID_PPP
- _glibtop_init_ppp_p,
-#endif
- NULL
-};
-
-/* Checks which features are implemented. */
-
-void
-glibtop_get_sysdeps_r (glibtop *server, glibtop_sysdeps *buf)
-{
- *buf = server->sysdeps;
-}
diff --git a/lib/write.c b/lib/write.c
deleted file mode 100644
index 2e407069..00000000
--- a/lib/write.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <errno.h>
-#include <glibtop/write.h>
-#include <glibtop/error.h>
-#include <glib/gi18n-lib.h>
-
-/* Writes some data to server. */
-
-void
-glibtop_write_l (glibtop *server, size_t size, void *buf)
-{
- int ret;
- int fd;
-
- glibtop_init_r (&server, 0, 0);
-
- if (size == 0) return;
-
-#ifdef DEBUG
- fprintf (stderr, "LIBRARY: really writing %d bytes.\n", (int)size);
-#endif
-
- fd = server->socket ? server->socket : server->output[1];
-
- while ((ret = write(fd, buf, size)) < 0 && errno == EINTR)
- ;
-
- if (ret < 0)
- glibtop_error_io_r (server,
- ngettext("wrote %d byte",
- "wrote %d bytes", size),
- (int) size);
-}
diff --git a/libgtop-2.0.pc.in b/libgtop-2.0.pc.in
deleted file mode 100644
index e1753322..00000000
--- a/libgtop-2.0.pc.in
+++ /dev/null
@@ -1,13 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: libgtop
-Description: Portable System Access Library
-Requires: glib-2.0
-Version: @VERSION@
-Libs: -L${libdir} -lgtop-2.0
-Cflags: -I${includedir}/libgtop-2.0
-
-
diff --git a/libgtop-sysdeps.m4 b/libgtop-sysdeps.m4
deleted file mode 100644
index 03044626..00000000
--- a/libgtop-sysdeps.m4
+++ /dev/null
@@ -1,315 +0,0 @@
-dnl This file is intended for use both internally in libgtop and in every program
-dnl that wants to use it.
-dnl
-dnl It defines the following variables:
-dnl
-dnl * 'libgtop_sysdeps_dir' - sysdeps dir for libgtop.
-dnl * 'libgtop_use_machine_h' - some of system dependend parts of libgtop provide
-dnl their own header file. In this case we need to
-dnl define 'HAVE_GLIBTOP_MACHINE_H'.
-dnl * 'libgtop_need_server' - is the server really needed? Defines 'NEED_LIBGTOP'
-dnl if true; defines conditional 'NEED_LIBGTOP'.
-
-AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
- AC_REQUIRE([AC_CANONICAL_HOST])
-
- AC_SUBST(libgtop_sysdeps_dir)
- AC_SUBST(libgtop_use_machine_h)
- AC_SUBST(libgtop_need_server)
-
- AC_ARG_WITH(libgtop-examples,
- AS_HELP_STRING([--with-examples],
- [Build the libgtop examples @<:@default=yes@:>@]),[
- build_examples="$withval"], [build_examples=yes])
-
- AM_CONDITIONAL(EXAMPLES, test x"$build_examples" = xyes)
-
- AC_ARG_ENABLE(hacker-mode,
- AS_HELP_STRING([--enable-hacker-mode],
- [Enable building of unstable sysdeps]),
- [hacker_mode="$enableval"], [hacker_mode=no])
-
- AM_CONDITIONAL(HACKER_MODE, test x"$hacker_mode" = xyes)
-
- AC_ARG_WITH(libgtop-smp,
- AS_HELP_STRING([--with-libgtop-smp],
- [Enable SMP support @<:@default-auto@:>@]),[
- libgtop_smp="$withval"],[libgtop_smp=auto])
-
- if test $libgtop_smp = auto ; then
- AC_MSG_CHECKING(whether to enable SMP support)
- case "$host_os" in
- linux*)
- libgtop_smp=yes
- ;;
- aix*)
- libgtop_smp=yes
- ;;
- *)
- libgtop_smp=no
- ;;
- esac
- AC_MSG_RESULT($libgtop_smp)
- fi
-
- if test $libgtop_smp = yes ; then
- AC_DEFINE(HAVE_LIBGTOP_SMP, 1, [Define if libgtop supports SMP])
- fi
-
- AM_CONDITIONAL(LIBGTOP_SMP, test $libgtop_smp = yes)
-
- AC_MSG_CHECKING(for libgtop sysdeps directory)
-
- case "$host_os" in
- linux*)
- libgtop_sysdeps_dir=linux
- libgtop_use_machine_h=no
- libgtop_have_sysinfo=yes
- libgtop_need_server=no
- ;;
- netbsd*|openbsd*|bsdi*)
- libgtop_sysdeps_dir=bsd
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod 2755 $(bindir)/libgtop_server2'
- ;;
- freebsd*|kfreebsd*)
- libgtop_sysdeps_dir=freebsd
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server2 && chmod 2755 $(bindir)/libgtop_server2'
- ;;
- solaris*)
- libgtop_sysdeps_dir=solaris
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- libgtop_postinstall='chgrp sys $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
- ;;
- aix*)
- libgtop_sysdeps_dir=aix
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- libgtop_have_sysinfo=yes
- libgtop_postinstall='chgrp system $(bindir)/libgtop_server && chmod g+s $(bindir)/libgtop_server2'
- ;;
- *)
- if test x$hacker_mode = xyes ; then
- case "$host_os" in
- sunos4*)
- #Please note that this port is obsolete and not working at
- #all. It is only useful for people who want to fix it ... :-)
- libgtop_sysdeps_dir=sun4
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- ;;
- osf*)
- libgtop_sysdeps_dir=osf1
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- ;;
- *)
- libgtop_sysdeps_dir=stub
- libgtop_use_machine_h=no
- libgtop_need_server=no
- ;;
- esac
- else
- libgtop_sysdeps_dir=stub
- libgtop_use_machine_h=no
- libgtop_need_server=no
- fi
- ;;
- esac
-
- test -z "$libgtop_postinstall" && libgtop_postinstall=:
-
- AC_MSG_RESULT($libgtop_sysdeps_dir)
-
- AC_SUBST(libgtop_sysdeps_dir)
- AC_SUBST(libgtop_postinstall)
- AC_SUBST(libgtop_have_sysinfo)
-
- case "$host_os" in
- *bsd*)
- case "$host_os" in
- *kfreebsd*)
- AC_CHECK_LIB(kvm, kvm_open, KVM_LIBS="-lkvm -lfreebsd -lbsd", KVM_LIBS=, -lfreebsd -lbsd);;
- *)
- AC_CHECK_LIB(kvm, kvm_open, KVM_LIBS=-lkvm, KVM_LIBS=);;
- esac
-
- AC_SUBST(KVM_LIBS)
-
- case "$host_os" in
- kfreebsd*)
- EXTRA_SYSDEPS_LIBS="-lgeom -ldevstat"
- ;;
- freebsd*)
- osreldate=`sysctl -n kern.osreldate 2>/dev/null`
- if test -n "${osreldate}" && test ${osreldate} -ge 600000 ; then
- EXTRA_SYSDEPS_LIBS="-lgeom -ldevstat"
- fi
- ;;
- esac
-
- AC_SUBST(EXTRA_SYSDEPS_LIBS)
-
- AC_CHECK_HEADERS(net/if_var.h)
- AC_MSG_CHECKING([for I4B])
- AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <sys/socket.h>
-
-#include <net/if.h>
-#include <net/if_types.h>
-
-#ifdef HAVE_NET_IF_VAR_H
-#include <net/if_var.h>
-#endif
-
-#include <net/netisr.h>
-#include <net/route.h>
-
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__)
-#include <net/if_sppp.h>
-#else
-#include <i4b/sppp/if_sppp.h>
-#endif
-],[
- size_t size = sizeof (struct sppp);
-], have_i4b=yes, have_i4b=no)
- AC_MSG_RESULT($have_i4b)
- if test x$have_i4b = xyes; then
- AC_DEFINE(HAVE_I4B, 1, [Define if I4B is available])
- AC_MSG_CHECKING([for I4B accounting])
- AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <sys/socket.h>
-
-#include <net/if.h>
-#include <net/if_types.h>
-
-#ifdef HAVE_NET_IF_VAR_H
-#include <net/if_var.h>
-#endif
-
-#include <net/netisr.h>
-#include <net/route.h>
-
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__)
-#include <net/if_sppp.h>
-#else
-#include <i4b/sppp/if_sppp.h>
-#endif
-
-#include <machine/i4b_acct.h>
-],[
- size_t size = sizeof (struct i4bisppp_softc);
-], have_i4b_acct=yes, have_i4b_acct=no)
- AC_MSG_RESULT($have_i4b_acct)
- if test x$have_i4b_acct = xyes ; then
- AC_DEFINE(HAVE_I4B_ACCT, 1,
- [Define if I4B accounting is supported])
- else
- AC_WARN([
-*** I4B accounting disabled - you won't get any PPP statistics.
-*** Read "misc/i4b_acct.txt" in the LibGTop source directory
-*** to see how to enable it.])
- fi
- fi
-
- AC_MSG_CHECKING(what we need to define to get struct msginfo)
- AC_CACHE_VAL(msginfo_needs,
- msginfo_needs=
- for def in nothing KERNEL _KERNEL; do
- AC_COMPILE_IFELSE([#define $def
-#include <sys/types.h>
-#include <sys/ipc.h>
-#include <sys/msg.h>
-#include <stdio.h>
-
-int
-main (void)
-{
- struct msginfo mi;
- mi.msgmax = 0;
- return 0;
-}],
- [
- msginfo_needs=$def
- if test ${msginfo_needs} = KERNEL; then
- AC_DEFINE(STRUCT_MSGINFO_NEEDS_KERNEL, 1,
- [Define to 1 if we need to define KERNEL to get 'struct msginfo'])
- elif test ${msginfo_needs} = _KERNEL; then
- AC_DEFINE(STRUCT_MSGINFO_NEEDS__KERNEL, 1,
- [Define to 1 if we need to define _KERNEL to get 'struct msginfo'])
- fi
- ]
- )
- test -n "${msginfo_needs}" && break
- done
- )
- AC_MSG_RESULT($msginfo_needs)
- if test -z "${msginfo_needs}"; then
- AC_MSG_ERROR([Could not find the definition of 'struct msginfo'])
- fi
- ;;
- linux*)
- os_major_version=`uname -r | sed 's/-pre[[0-9]]*//' | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- os_minor_version=`uname -r | sed 's/-pre[[0-9]]*//' | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- os_micro_version=`uname -r | sed 's/-pre[[0-9]]*//' | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- os_version_expr="$os_major_version 65536 * $os_minor_version 256 * + $os_micro_version + p q"
-
- AC_CHECK_HEADERS(linux/version.h, have_linux_version_h=yes,
- have_linux_version_h=no)
-
- if test x$have_linux_version_h = xyes ; then
- version_code=`cat /usr/include/linux/version.h | \
- grep \#define | grep LINUX_VERSION_CODE`
- os_version_code=`echo $version_code | \
- sed 's/^.*LINUX_VERSION_CODE[[ \t]]*\([[0-9]]*\).*$/\1/'`
- else
- os_version_code=`echo "$os_version_expr" | dc`
- fi
-
- AC_MSG_CHECKING(for Linux kernel version code)
- AC_DEFINE_UNQUOTED(GLIBTOP_LINUX_VERSION_CODE, $os_version_code,
- [Same as LINUX_VERSION_CODE either from <linux/version.h> or from the running kernel (if there are no configured kernel sources).])
- AC_MSG_RESULT($os_version_code)
- ;;
- solaris*)
- os_major_version=`uname -r | sed 's/\([[0-9]]*\).\([[0-9]]*\)\.*\([[0-9]]*\)/\1/'`
- os_minor_version=`uname -r | sed 's/\([[0-9]]*\).\([[0-9]]*\)\.*\([[0-9]]*\)/\2/'`
- os_micro_version=`uname -r | sed 's/\([[0-9]]*\).\([[0-9]]*\)\.*\([[0-9]]*\)/\3/'`
- test -z "$os_micro_version" && os_micro_version=0
- os_version_expr="$os_major_version 10000 * $os_minor_version 100 * + $os_micro_version + p q"
- os_version_code=`echo "$os_version_expr" | dc`
-
- AC_MSG_CHECKING(for Solaris release code)
- AC_DEFINE_UNQUOTED(GLIBTOP_SOLARIS_RELEASE, $os_version_code,
- [Solaris release code (eg. 20501 for Solaris 2.5.1).])
- AC_MSG_RESULT($os_version_code)
- ;;
- esac
-
- AC_MSG_CHECKING(for machine.h in libgtop sysdeps dir)
- AC_MSG_RESULT($libgtop_use_machine_h)
-
- AC_MSG_CHECKING(whether we need libgtop)
- AC_MSG_RESULT($libgtop_need_server)
-
- if test x$libgtop_need_server = xyes ; then
- AC_DEFINE(NEED_LIBGTOP, 1, [Define if libgtop is required])
- fi
-
- if test x$libgtop_use_machine_h = xyes ; then
- AC_DEFINE(HAVE_GLIBTOP_MACHINE_H, 1,
- [Define if machine.h in libgtop sysdeps dir])
- fi
-
- AM_CONDITIONAL(NEED_LIBGTOP, test x$libgtop_need_server = xyes)
-])
-
diff --git a/libgtop.spec.in b/libgtop.spec.in
deleted file mode 100644
index 5957868e..00000000
--- a/libgtop.spec.in
+++ /dev/null
@@ -1,126 +0,0 @@
-# Note that this is NOT a relocatable package
-%define ver @VERSION@
-%define RELEASE SNAP
-%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
-%define prefix /usr
-
-Summary: LibGTop library
-Name: libgtop
-Version: %ver
-Release: %rel
-License: GPL
-Group: X11/Libraries
-Source: ftp://ftp.gnome.org/pub/GNOME/sources/libgtop/libgtop-%{ver}.tar.gz
-BuildRoot: /tmp/libgtop-root
-Packager: Martin Baulig <martin@home-of-linux.org>
-URL: http://www.home-of-linux.org/gnome/libgtop/
-Prereq: /sbin/install-info
-Docdir: %{prefix}/doc
-
-%description
-
-A library that fetches information about the running system such as
-cpu and memory usage, active processes etc.
-
-On Linux systems, these information are taken directly from the /proc
-filesystem while on other systems a server is used to read those
-information from /dev/kmem or whatever.
-
-%package devel
-Summary: Libraries, includes, etc to develop LibGTop applications
-Group: X11/libraries
-Requires: libgtop
-
-%description devel
-Libraries, include files, etc you can use to develop GNOME applications.
-
-%package examples
-Summary: Examples for LibGTop
-Group: X11/libraries
-Requires: libgtop
-
-%description examples
-Examples for LibGTop.
-
-
-%changelog
-
-* Tue Aug 19 1998 Martin Baulig <martin@home-of-linux.org>
-
-- released LibGTop 0.25.0
-
-* Sun Aug 16 1998 Martin Baulig <martin@home-of-linux.org>
-
-- first version of the RPM
-
-%prep
-%setup
-
-%build
-# Needed for snapshot releases.
-if [ ! -f configure ]; then
- CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --without-linux-table --with-libgtop-examples --with-libgtop-smp
-else
-%ifarch alpha
- CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --without-linux-table --with-libgtop-inodedb --with-libgtop-examples --with-libgtop-smp
-%else
- CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --without-linux-table --with-libgtop-examples --with-libgtop-smp
-%endif
-fi
-
-if [ "$SMP" != "" ]; then
- (make "MAKE=make -k -j $SMP"; exit 0)
- make
-else
- make
-fi
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-make prefix=$RPM_BUILD_ROOT%{prefix} install
-
-#
-# msf - remove these as they are really supposed to come from gnome-libs
-#
-# martin - don't remove since they are no longer installed if build
-# with GNOME
-#
-# rm -f $RPM_BUILD_ROOT/%{prefix}/lib/libgnomesupport.a
-# rm -f $RPM_BUILD_ROOT/%{prefix}/lib/libgnomesupport.la
-# rm -f $RPM_BUILD_ROOT/%{prefix}/lib/libgnomesupport.so.0
-# rm -f $RPM_BUILD_ROOT/%{prefix}/lib/libgnomesupport.so.0.0.0
-
-rm -fr $RPM_BUILD_ROOT/%{prefix}/include/libgtop
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%files
-%defattr(-, root, root)
-
-%doc RELNOTES-0.25 RELNOTES-1.0 AUTHORS ChangeLog NEWS README
-%doc TODO NEWS.old copyright.txt
-%doc src/inodedb/README.inodedb
-
-%{prefix}/lib/lib*.so.*
-%{prefix}/share/*
-%{prefix}/bin/*
-
-%files devel
-%defattr(-, root, root)
-
-%{prefix}/lib/lib*.so
-%{prefix}/lib/*a
-%{prefix}/lib/*.sh
-%{prefix}/lib/*.def
-%{prefix}/include/*
-
-%files examples
-%defattr(-,root,root)
-
-%{prefix}/libexec/libgtop
diff --git a/libgtopconfig.h.in b/libgtopconfig.h.in
deleted file mode 100644
index c164e937..00000000
--- a/libgtopconfig.h.in
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef LIBGTOPCONFIG_H
-#define LIBGTOPCONFIG_H
-
-#define LIBGTOP_MAJOR_VERSION @LIBGTOP_MAJOR_VERSION@
-#define LIBGTOP_MINOR_VERSION @LIBGTOP_MINOR_VERSION@
-#define LIBGTOP_MICRO_VERSION @LIBGTOP_MICRO_VERSION@
-
-#endif /* LIBGTOPCONFIG_H */
diff --git a/ltconfig b/ltconfig
deleted file mode 100755
index c14d83c1..00000000
--- a/ltconfig
+++ /dev/null
@@ -1,3114 +0,0 @@
-#! /bin/sh
-
-# ltconfig - Create a system-specific libtool.
-# Copyright (C) 1996-1999 Free Software Foundation, Inc.
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# This file 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.
-#
-# This program 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 this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# A lot of this script is taken from autoconf-2.10.
-
-# Check that we are running under the correct shell.
-SHELL=${CONFIG_SHELL-/bin/sh}
-echo=echo
-if test "X$1" = X--no-reexec; then
- # Discard the --no-reexec flag, and continue.
- shift
-elif test "X$1" = X--fallback-echo; then
- # Avoid inline document here, it may be left over
- :
-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
- # Yippee, $echo works!
- :
-else
- # Restart under the correct shell.
- exec "$SHELL" "$0" --no-reexec ${1+"$@"}
-fi
-
-if test "X$1" = X--fallback-echo; then
- # used as fallback echo
- shift
- cat <<EOF
-$*
-EOF
- exit 0
-fi
-
-# Find the correct PATH separator. Usually this is `:', but
-# DJGPP uses `;' like DOS.
-if test "X${PATH_SEPARATOR+set}" != Xset; then
- UNAME=${UNAME-`uname 2>/dev/null`}
- case X$UNAME in
- *-DOS) PATH_SEPARATOR=';' ;;
- *) PATH_SEPARATOR=':' ;;
- esac
-fi
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
-
-if test "X${echo_test_string+set}" != Xset; then
- # find a string as large as possible, as long as the shell can cope with it
- for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
- if (echo_test_string="`eval $cmd`") 2>/dev/null &&
- echo_test_string="`eval $cmd`" &&
- (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null; then
- break
- fi
- done
-fi
-
-if test "X`($echo '\t') 2>/dev/null`" != 'X\t' ||
- test "X`($echo "$echo_test_string") 2>/dev/null`" != X"$echo_test_string"; then
- # The Solaris, AIX, and Digital Unix default echo programs unquote
- # backslashes. This makes it impossible to quote backslashes using
- # echo "$something" | sed 's/\\/\\\\/g'
- #
- # So, first we look for a working echo in the user's PATH.
-
- IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
- for dir in $PATH /usr/ucb; do
- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
- test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
- echo="$dir/echo"
- break
- fi
- done
- IFS="$save_ifs"
-
- if test "X$echo" = Xecho; then
- # We didn't find a better echo, so look for alternatives.
- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
- test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
- # This shell has a builtin print -r that does the trick.
- echo='print -r'
- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
- test "X$CONFIG_SHELL" != X/bin/ksh; then
- # If we have ksh, try running ltconfig again with it.
- ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}"
- export ORIGINAL_CONFIG_SHELL
- CONFIG_SHELL=/bin/ksh
- export CONFIG_SHELL
- exec "$CONFIG_SHELL" "$0" --no-reexec ${1+"$@"}
- else
- # Try using printf.
- echo='printf "%s\n"'
- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- test "X`($echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
- # Cool, printf works
- :
- elif test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
- test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
- CONFIG_SHELL="$ORIGINAL_CONFIG_SHELL"
- export CONFIG_SHELL
- SHELL="$CONFIG_SHELL"
- export SHELL
- echo="$CONFIG_SHELL $0 --fallback-echo"
- elif test "X`("$CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
- test "X`("$CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
- echo="$CONFIG_SHELL $0 --fallback-echo"
- else
- # maybe with a smaller string...
- prev=:
-
- for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null; then
- break
- fi
- prev="$cmd"
- done
-
- if test "$prev" != 'sed 50q "$0"'; then
- echo_test_string=`eval $prev`
- export echo_test_string
- exec "${ORIGINAL_CONFIG_SHELL}" "$0" ${1+"$@"}
- else
- # Oops. We lost completely, so just stick with echo.
- echo=echo
- fi
- fi
- fi
- fi
-fi
-
-# Sed substitution that helps us do robust quoting. It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed='sed -e s/^X//'
-sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
-
-# Same as above, but do not quote variable references.
-double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
-
-# Sed substitution to delay expansion of an escaped shell variable in a
-# double_quote_subst'ed string.
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
-
-# The name of this program.
-progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
-
-# Constants:
-PROGRAM=ltconfig
-PACKAGE=libtool
-VERSION=1.3.5
-TIMESTAMP=" (1.385.2.206 2000/05/27 11:12:27)"
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
-rm="rm -f"
-
-help="Try \`$progname --help' for more information."
-
-# Global variables:
-default_ofile=libtool
-can_build_shared=yes
-enable_shared=yes
-# All known linkers require a `.a' archive for static linking (except M$VC,
-# which needs '.lib').
-enable_static=yes
-enable_fast_install=yes
-enable_dlopen=unknown
-enable_win32_dll=no
-ltmain=
-silent=
-srcdir=
-ac_config_guess=
-ac_config_sub=
-host=
-nonopt=
-ofile="$default_ofile"
-verify_host=yes
-with_gcc=no
-with_gnu_ld=no
-need_locks=yes
-ac_ext=c
-objext=o
-libext=a
-exeext=
-cache_file=
-
-old_AR="$AR"
-old_CC="$CC"
-old_CFLAGS="$CFLAGS"
-old_CPPFLAGS="$CPPFLAGS"
-old_LDFLAGS="$LDFLAGS"
-old_LD="$LD"
-old_LN_S="$LN_S"
-old_LIBS="$LIBS"
-old_NM="$NM"
-old_RANLIB="$RANLIB"
-old_DLLTOOL="$DLLTOOL"
-old_OBJDUMP="$OBJDUMP"
-old_AS="$AS"
-
-# Parse the command line options.
-args=
-prev=
-for option
-do
- case "$option" in
- -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
- *) optarg= ;;
- esac
-
- # If the previous option needs an argument, assign it.
- if test -n "$prev"; then
- eval "$prev=\$option"
- prev=
- continue
- fi
-
- case "$option" in
- --help) cat <<EOM
-Usage: $progname [OPTION]... [HOST [LTMAIN]]
-
-Generate a system-specific libtool script.
-
- --debug enable verbose shell tracing
- --disable-shared do not build shared libraries
- --disable-static do not build static libraries
- --disable-fast-install do not optimize for fast installation
- --enable-dlopen enable dlopen support
- --enable-win32-dll enable building dlls on win32 hosts
- --help display this help and exit
- --no-verify do not verify that HOST is a valid host type
--o, --output=FILE specify the output file [default=$default_ofile]
- --quiet same as \`--silent'
- --silent do not print informational messages
- --srcdir=DIR find \`config.guess' in DIR
- --version output version information and exit
- --with-gcc assume that the GNU C compiler will be used
- --with-gnu-ld assume that the C compiler uses the GNU linker
- --disable-lock disable file locking
- --cache-file=FILE configure cache file
-
-LTMAIN is the \`ltmain.sh' shell script fragment or \`ltmain.c' program
-that provides basic libtool functionality.
-
-HOST is the canonical host system name [default=guessed].
-EOM
- exit 0
- ;;
-
- --debug)
- echo "$progname: enabling shell trace mode"
- set -x
- ;;
-
- --disable-shared) enable_shared=no ;;
-
- --disable-static) enable_static=no ;;
-
- --disable-fast-install) enable_fast_install=no ;;
-
- --enable-dlopen) enable_dlopen=yes ;;
-
- --enable-win32-dll) enable_win32_dll=yes ;;
-
- --quiet | --silent) silent=yes ;;
-
- --srcdir) prev=srcdir ;;
- --srcdir=*) srcdir="$optarg" ;;
-
- --no-verify) verify_host=no ;;
-
- --output | -o) prev=ofile ;;
- --output=*) ofile="$optarg" ;;
-
- --version) echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"; exit 0 ;;
-
- --with-gcc) with_gcc=yes ;;
- --with-gnu-ld) with_gnu_ld=yes ;;
-
- --disable-lock) need_locks=no ;;
-
- --cache-file=*) cache_file="$optarg" ;;
-
- -*)
- echo "$progname: unrecognized option \`$option'" 1>&2
- echo "$help" 1>&2
- exit 1
- ;;
-
- *)
- if test -z "$ltmain"; then
- ltmain="$option"
- elif test -z "$host"; then
-# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1
-# if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then
-# echo "$progname: warning \`$option' is not a valid host type" 1>&2
-# fi
- host="$option"
- else
- echo "$progname: too many arguments" 1>&2
- echo "$help" 1>&2
- exit 1
- fi ;;
- esac
-done
-
-if test -z "$ltmain"; then
- echo "$progname: you must specify a LTMAIN file" 1>&2
- echo "$help" 1>&2
- exit 1
-fi
-
-if test ! -f "$ltmain"; then
- echo "$progname: \`$ltmain' does not exist" 1>&2
- echo "$help" 1>&2
- exit 1
-fi
-
-# Quote any args containing shell metacharacters.
-ltconfig_args=
-for arg
-do
- case "$arg" in
- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
- ltconfig_args="$ltconfig_args '$arg'" ;;
- *) ltconfig_args="$ltconfig_args $arg" ;;
- esac
-done
-
-# A relevant subset of AC_INIT.
-
-# File descriptor usage:
-# 0 standard input
-# 1 file creation
-# 2 errors and warnings
-# 3 some systems may open it to /dev/tty
-# 4 used on the Kubota Titan
-# 5 compiler messages saved in config.log
-# 6 checking for... messages and results
-if test "$silent" = yes; then
- exec 6>/dev/null
-else
- exec 6>&1
-fi
-exec 5>>./config.log
-
-# NLS nuisances.
-# Only set LANG and LC_ALL to C if already set.
-# These must not be set unconditionally because not all systems understand
-# e.g. LANG=C (notably SCO).
-if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi
-if test "X${LANG+set}" = Xset; then LANG=C; export LANG; fi
-
-if test -n "$cache_file" && test -r "$cache_file"; then
- echo "loading cache $cache_file within ltconfig"
- . $cache_file
-fi
-
-if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
- # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
- if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
- ac_n= ac_c='
-' ac_t=' '
- else
- ac_n=-n ac_c= ac_t=
- fi
-else
- ac_n= ac_c='\c' ac_t=
-fi
-
-if test -z "$srcdir"; then
- # Assume the source directory is the same one as the path to LTMAIN.
- srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'`
- test "$srcdir" = "$ltmain" && srcdir=.
-fi
-
-trap "$rm conftest*; exit 1" 1 2 15
-if test "$verify_host" = yes; then
- # Check for config.guess and config.sub.
- ac_aux_dir=
- for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/config.guess; then
- ac_aux_dir=$ac_dir
- break
- fi
- done
- if test -z "$ac_aux_dir"; then
- echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2
- echo "$help" 1>&2
- exit 1
- fi
- ac_config_guess=$ac_aux_dir/config.guess
- ac_config_sub=$ac_aux_dir/config.sub
-
- # Make sure we can run config.sub.
- if $SHELL $ac_config_sub sun4 >/dev/null 2>&1; then :
- else
- echo "$progname: cannot run $ac_config_sub" 1>&2
- echo "$help" 1>&2
- exit 1
- fi
-
- echo $ac_n "checking host system type""... $ac_c" 1>&6
-
- host_alias=$host
- case "$host_alias" in
- "")
- if host_alias=`$SHELL $ac_config_guess`; then :
- else
- echo "$progname: cannot guess host type; you must specify one" 1>&2
- echo "$help" 1>&2
- exit 1
- fi ;;
- esac
- host=`$SHELL $ac_config_sub $host_alias`
- echo "$ac_t$host" 1>&6
-
- # Make sure the host verified.
- test -z "$host" && exit 1
-
-elif test -z "$host"; then
- echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2
- echo "$help" 1>&2
- exit 1
-else
- host_alias=$host
-fi
-
-# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
-case "$host_os" in
-linux-gnu*) ;;
-linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
-esac
-
-host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-
-case "$host_os" in
-aix3*)
- # AIX sometimes has problems with the GCC collect2 program. For some
- # reason, if we set the COLLECT_NAMES environment variable, the problems
- # vanish in a puff of smoke.
- if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
- fi
- ;;
-esac
-
-# Determine commands to create old-style static archives.
-old_archive_cmds='$AR cru $oldlib$oldobjs'
-old_postinstall_cmds='chmod 644 $oldlib'
-old_postuninstall_cmds=
-
-# Set a sane default for `AR'.
-test -z "$AR" && AR=ar
-
-# Set a sane default for `OBJDUMP'.
-test -z "$OBJDUMP" && OBJDUMP=objdump
-
-# If RANLIB is not set, then run the test.
-if test "${RANLIB+set}" != "set"; then
- result=no
-
- echo $ac_n "checking for ranlib... $ac_c" 1>&6
- IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
- for dir in $PATH; do
- test -z "$dir" && dir=.
- if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then
- RANLIB="ranlib"
- result="ranlib"
- break
- fi
- done
- IFS="$save_ifs"
-
- echo "$ac_t$result" 1>&6
-fi
-
-if test -n "$RANLIB"; then
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
- old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
-fi
-
-# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
-test -z "$DLLTOOL" && DLLTOOL=dlltool
-test -z "$OBJDUMP" && OBJDUMP=objdump
-test -z "$AS" && AS=as
-
-# Check to see if we are using GCC.
-if test "$with_gcc" != yes || test -z "$CC"; then
- # If CC is not set, then try to find GCC or a usable CC.
- if test -z "$CC"; then
- echo $ac_n "checking for gcc... $ac_c" 1>&6
- IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
- for dir in $PATH; do
- test -z "$dir" && dir=.
- if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
- CC="gcc"
- break
- fi
- done
- IFS="$save_ifs"
-
- if test -n "$CC"; then
- echo "$ac_t$CC" 1>&6
- else
- echo "$ac_t"no 1>&6
- fi
- fi
-
- # Not "gcc", so try "cc", rejecting "/usr/ucb/cc".
- if test -z "$CC"; then
- echo $ac_n "checking for cc... $ac_c" 1>&6
- IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
- cc_rejected=no
- for dir in $PATH; do
- test -z "$dir" && dir=.
- if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
- if test "$dir/cc" = "/usr/ucb/cc"; then
- cc_rejected=yes
- continue
- fi
- CC="cc"
- break
- fi
- done
- IFS="$save_ifs"
- if test $cc_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $CC
- shift
- if test $# -gt 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same name, so the bogon will be chosen
- # first if we set CC to just the name; use the full file name.
- shift
- set dummy "$dir/cc" "$@"
- shift
- CC="$@"
- fi
- fi
-
- if test -n "$CC"; then
- echo "$ac_t$CC" 1>&6
- else
- echo "$ac_t"no 1>&6
- fi
-
- if test -z "$CC"; then
- echo "$progname: error: no acceptable cc found in \$PATH" 1>&2
- exit 1
- fi
- fi
-
- # Now see if the compiler is really GCC.
- with_gcc=no
- echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
- echo "$progname:581: checking whether we are using GNU C" >&5
-
- $rm conftest.c
- cat > conftest.c <<EOF
-#ifdef __GNUC__
- yes;
-#endif
-EOF
- if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
- with_gcc=yes
- fi
- $rm conftest.c
- echo "$ac_t$with_gcc" 1>&6
-fi
-
-# Allow CC to be a program name with arguments.
-set dummy $CC
-compiler="$2"
-
-echo $ac_n "checking for object suffix... $ac_c" 1>&6
-$rm conftest*
-echo 'int i = 1;' > conftest.c
-echo "$progname:603: checking for object suffix" >& 5
-if { (eval echo $progname:604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
- # Append any warnings to the config.log.
- cat conftest.err 1>&5
-
- for ac_file in conftest.*; do
- case $ac_file in
- *.c) ;;
- *) objext=`echo $ac_file | sed -e s/conftest.//` ;;
- esac
- done
-else
- cat conftest.err 1>&5
- echo "$progname: failed program was:" >&5
- cat conftest.c >&5
-fi
-$rm conftest*
-echo "$ac_t$objext" 1>&6
-
-echo $ac_n "checking for executable suffix... $ac_c" 1>&6
-if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_cv_exeext="no"
- $rm conftest*
- echo 'main () { return 0; }' > conftest.c
- echo "$progname:629: checking for executable suffix" >& 5
- if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
- # Append any warnings to the config.log.
- cat conftest.err 1>&5
-
- for ac_file in conftest.*; do
- case $ac_file in
- *.c | *.err | *.$objext ) ;;
- *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
- esac
- done
- else
- cat conftest.err 1>&5
- echo "$progname: failed program was:" >&5
- cat conftest.c >&5
- fi
- $rm conftest*
-fi
-if test "X$ac_cv_exeext" = Xno; then
- exeext=""
-else
- exeext="$ac_cv_exeext"
-fi
-echo "$ac_t$ac_cv_exeext" 1>&6
-
-echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
-pic_flag=
-special_shlib_compile_flags=
-wl=
-link_static_flag=
-no_builtin_flag=
-
-if test "$with_gcc" = yes; then
- wl='-Wl,'
- link_static_flag='-static'
-
- case "$host_os" in
- beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
- aix*)
- # Below there is a dirty hack to force normal static linking with -ldl
- # The problem is because libdl dynamically linked with both libc and
- # libC (AIX C++ library), which obviously doesn't included in libraries
- # list by gcc. This cause undefined symbols with -static flags.
- # This hack allows C programs to be linked with "-static -ldl", but
- # we not sure about C++ programs.
- link_static_flag="$link_static_flag ${wl}-lC"
- ;;
- cygwin* | mingw* | os2*)
- # We can build DLLs from non-PIC.
- ;;
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- pic_flag='-m68020 -resident32 -malways-restore-a4'
- ;;
- sysv4*MP*)
- if test -d /usr/nec; then
- pic_flag=-Kconform_pic
- fi
- ;;
- *)
- pic_flag='-fPIC'
- ;;
- esac
-else
- # PORTME Check for PIC flags for the system compiler.
- case "$host_os" in
- aix3* | aix4*)
- # All AIX code is PIC.
- link_static_flag='-bnso -bI:/lib/syscalls.exp'
- ;;
-
- hpux9* | hpux10* | hpux11*)
- # Is there a better link_static_flag that works with the bundled CC?
- wl='-Wl,'
- link_static_flag="${wl}-a ${wl}archive"
- pic_flag='+Z'
- ;;
-
- irix5* | irix6*)
- wl='-Wl,'
- link_static_flag='-non_shared'
- # PIC (with -KPIC) is the default.
- ;;
-
- cygwin* | mingw* | os2*)
- # We can build DLLs from non-PIC.
- ;;
-
- osf3* | osf4* | osf5*)
- # All OSF/1 code is PIC.
- wl='-Wl,'
- link_static_flag='-non_shared'
- ;;
-
- sco3.2v5*)
- pic_flag='-Kpic'
- link_static_flag='-dn'
- special_shlib_compile_flags='-belf'
- ;;
-
- solaris*)
- pic_flag='-KPIC'
- link_static_flag='-Bstatic'
- wl='-Wl,'
- ;;
-
- sunos4*)
- pic_flag='-PIC'
- link_static_flag='-Bstatic'
- wl='-Qoption ld '
- ;;
-
- sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- pic_flag='-KPIC'
- link_static_flag='-Bstatic'
- wl='-Wl,'
- ;;
-
- uts4*)
- pic_flag='-pic'
- link_static_flag='-Bstatic'
- ;;
- sysv4*MP*)
- if test -d /usr/nec ;then
- pic_flag='-Kconform_pic'
- link_static_flag='-Bstatic'
- fi
- ;;
- *)
- can_build_shared=no
- ;;
- esac
-fi
-
-if test -n "$pic_flag"; then
- echo "$ac_t$pic_flag" 1>&6
-
- # Check to make sure the pic_flag actually works.
- echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
- $rm conftest*
- echo "int some_variable = 0;" > conftest.c
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $pic_flag -DPIC"
- echo "$progname:776: checking if $compiler PIC flag $pic_flag works" >&5
- if { (eval echo $progname:777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
- # Append any warnings to the config.log.
- cat conftest.err 1>&5
-
- case "$host_os" in
- hpux9* | hpux10* | hpux11*)
- # On HP-UX, both CC and GCC only warn that PIC is supported... then they
- # create non-PIC objects. So, if there were any warnings, we assume that
- # PIC is not supported.
- if test -s conftest.err; then
- echo "$ac_t"no 1>&6
- can_build_shared=no
- pic_flag=
- else
- echo "$ac_t"yes 1>&6
- pic_flag=" $pic_flag"
- fi
- ;;
- *)
- echo "$ac_t"yes 1>&6
- pic_flag=" $pic_flag"
- ;;
- esac
- else
- # Append any errors to the config.log.
- cat conftest.err 1>&5
- can_build_shared=no
- pic_flag=
- echo "$ac_t"no 1>&6
- fi
- CFLAGS="$save_CFLAGS"
- $rm conftest*
-else
- echo "$ac_t"none 1>&6
-fi
-
-# Check to see if options -o and -c are simultaneously supported by compiler
-echo $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6
-$rm -r conftest 2>/dev/null
-mkdir conftest
-cd conftest
-$rm conftest*
-echo "int some_variable = 0;" > conftest.c
-mkdir out
-# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
-# that will create temporary files in the current directory regardless of
-# the output directory. Thus, making CWD read-only will cause this test
-# to fail, enabling locking or at least warning the user not to do parallel
-# builds.
-chmod -w .
-save_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS -o out/conftest2.o"
-echo "$progname:829: checking if $compiler supports -c -o file.o" >&5
-if { (eval echo $progname:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then
-
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s out/conftest.err; then
- echo "$ac_t"no 1>&6
- compiler_c_o=no
- else
- echo "$ac_t"yes 1>&6
- compiler_c_o=yes
- fi
-else
- # Append any errors to the config.log.
- cat out/conftest.err 1>&5
- compiler_c_o=no
- echo "$ac_t"no 1>&6
-fi
-CFLAGS="$save_CFLAGS"
-chmod u+w .
-$rm conftest* out/*
-rmdir out
-cd ..
-rmdir conftest
-$rm -r conftest 2>/dev/null
-
-if test x"$compiler_c_o" = x"yes"; then
- # Check to see if we can write to a .lo
- echo $ac_n "checking if $compiler supports -c -o file.lo... $ac_c" 1>&6
- $rm conftest*
- echo "int some_variable = 0;" > conftest.c
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -c -o conftest.lo"
- echo "$progname:862: checking if $compiler supports -c -o file.lo" >&5
-if { (eval echo $progname:863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
-
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- echo "$ac_t"no 1>&6
- compiler_o_lo=no
- else
- echo "$ac_t"yes 1>&6
- compiler_o_lo=yes
- fi
- else
- # Append any errors to the config.log.
- cat conftest.err 1>&5
- compiler_o_lo=no
- echo "$ac_t"no 1>&6
- fi
- CFLAGS="$save_CFLAGS"
- $rm conftest*
-else
- compiler_o_lo=no
-fi
-
-# Check to see if we can do hard links to lock some files if needed
-hard_links="nottested"
-if test "$compiler_c_o" = no && test "$need_locks" != no; then
- # do not overwrite the value of need_locks provided by the user
- echo $ac_n "checking if we can lock with hard links... $ac_c" 1>&6
- hard_links=yes
- $rm conftest*
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- touch conftest.a
- ln conftest.a conftest.b 2>&5 || hard_links=no
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- echo "$ac_t$hard_links" 1>&6
- $rm conftest*
- if test "$hard_links" = no; then
- echo "*** WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2
- need_locks=warn
- fi
-else
- need_locks=no
-fi
-
-if test "$with_gcc" = yes; then
- # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
- echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions ... $ac_c" 1>&6
- $rm conftest*
- echo "int some_variable = 0;" > conftest.c
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c"
- echo "$progname:914: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
- if { (eval echo $progname:915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
-
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- echo "$ac_t"no 1>&6
- compiler_rtti_exceptions=no
- else
- echo "$ac_t"yes 1>&6
- compiler_rtti_exceptions=yes
- fi
- else
- # Append any errors to the config.log.
- cat conftest.err 1>&5
- compiler_rtti_exceptions=no
- echo "$ac_t"no 1>&6
- fi
- CFLAGS="$save_CFLAGS"
- $rm conftest*
-
- if test "$compiler_rtti_exceptions" = "yes"; then
- no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
- else
- no_builtin_flag=' -fno-builtin'
- fi
-
-fi
-
-# Check for any special shared library compilation flags.
-if test -n "$special_shlib_compile_flags"; then
- echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2
- if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$special_shlib_compile_flags[ ]" >/dev/null; then :
- else
- echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2
- can_build_shared=no
- fi
-fi
-
-echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6
-$rm conftest*
-echo 'main(){return(0);}' > conftest.c
-save_LDFLAGS="$LDFLAGS"
-LDFLAGS="$LDFLAGS $link_static_flag"
-echo "$progname:958: checking if $compiler static flag $link_static_flag works" >&5
-if { (eval echo $progname:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- echo "$ac_t$link_static_flag" 1>&6
-else
- echo "$ac_t"none 1>&6
- link_static_flag=
-fi
-LDFLAGS="$save_LDFLAGS"
-$rm conftest*
-
-if test -z "$LN_S"; then
- # Check to see if we can use ln -s, or we need hard links.
- echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
- $rm conftest.dat
- if ln -s X conftest.dat 2>/dev/null; then
- $rm conftest.dat
- LN_S="ln -s"
- else
- LN_S=ln
- fi
- if test "$LN_S" = "ln -s"; then
- echo "$ac_t"yes 1>&6
- else
- echo "$ac_t"no 1>&6
- fi
-fi
-
-# Make sure LD is an absolute path.
-if test -z "$LD"; then
- ac_prog=ld
- if test "$with_gcc" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
- echo "$progname:991: checking for ld used by GCC" >&5
- ac_prog=`($CC -print-prog-name=ld) 2>&5`
- case "$ac_prog" in
- # Accept absolute paths.
- [\\/]* | [A-Za-z]:[\\/]*)
- re_direlt='/[^/][^/]*/\.\./'
- # Canonicalize the path of ld
- ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
- done
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we are not using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
- elif test "$with_gnu_ld" = yes; then
- echo $ac_n "checking for GNU ld... $ac_c" 1>&6
- echo "$progname:1015: checking for GNU ld" >&5
- else
- echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
- echo "$progname:1018: checking for non-GNU ld" >&5
- fi
-
- if test -z "$LD"; then
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some GNU ld's only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
- test "$with_gnu_ld" != no && break
- else
- test "$with_gnu_ld" != yes && break
- fi
- fi
- done
- IFS="$ac_save_ifs"
- fi
-
- if test -n "$LD"; then
- echo "$ac_t$LD" 1>&6
- else
- echo "$ac_t"no 1>&6
- fi
-
- if test -z "$LD"; then
- echo "$progname: error: no acceptable ld found in \$PATH" 1>&2
- exit 1
- fi
-fi
-
-# Check to see if it really is or is not GNU ld.
-echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6
-# I'd rather use --version here, but apparently some GNU ld's only accept -v.
-if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
- with_gnu_ld=yes
-else
- with_gnu_ld=no
-fi
-echo "$ac_t$with_gnu_ld" 1>&6
-
-# See if the linker supports building shared libraries.
-echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6
-
-allow_undefined_flag=
-no_undefined_flag=
-need_lib_prefix=unknown
-need_version=unknown
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-archive_cmds=
-archive_expsym_cmds=
-old_archive_from_new_cmds=
-export_dynamic_flag_spec=
-whole_archive_flag_spec=
-thread_safe_flag_spec=
-hardcode_libdir_flag_spec=
-hardcode_libdir_separator=
-hardcode_direct=no
-hardcode_minus_L=no
-hardcode_shlibpath_var=unsupported
-runpath_var=
-always_export_symbols=no
-export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
-# include_expsyms should be a list of space-separated symbols to be *always*
-# included in the symbol list
-include_expsyms=
-# exclude_expsyms can be an egrep regular expression of symbols to exclude
-# it will be wrapped by ` (' and `)$', so one must not match beginning or
-# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
-# as well as any symbol that contains `d'.
-exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
-# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
-# platforms (ab)use it in PIC code, but their linkers get confused if
-# the symbol is explicitly referenced. Since portable code cannot
-# rely on this symbol name, it's probably fine to never include it in
-# preloaded symbol tables.
-
-case "$host_os" in
-cygwin* | mingw*)
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- if test "$with_gcc" != yes; then
- with_gnu_ld=no
- fi
- ;;
-
-esac
-
-ld_shlibs=yes
-if test "$with_gnu_ld" = yes; then
- # If archive_cmds runs LD, not CC, wlarc should be empty
- wlarc='${wl}'
-
- # See if GNU ld supports shared libraries.
- case "$host_os" in
- aix3* | aix4*)
- # On AIX, the GNU linker is very broken
- ld_shlibs=no
- cat <<EOF 1>&2
-
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
-*** to be unable to reliably create shared libraries on AIX.
-*** Therefore, libtool is disabling shared libraries support. If you
-*** really care for shared libraries, you may want to modify your PATH
-*** so that a non-GNU linker is found, and then restart.
-
-EOF
- ;;
-
- amigaos*)
- archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
-
- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- # that the semantics of dynamic libraries on AmigaOS, at least up
- # to version 4, is to share data among multiple programs linked
- # with the same dynamic library. Since this doesn't match the
- # behavior of shared libraries on other platforms, we can use
- # them.
- ld_shlibs=no
- ;;
-
- beos*)
- if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- allow_undefined_flag=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
-
- cygwin* | mingw*)
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- hardcode_libdir_flag_spec='-L$libdir'
- allow_undefined_flag=unsupported
- always_export_symbols=yes
-
- # Extract the symbol export list from an `--export-all' def file,
- # then regenerate the def file from the symbol export list, so that
- # the compiled dll only exports the symbol export list.
- # Be careful not to strip the DATA tag left by newer dlltools.
- export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
- test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
- $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def $objdir/$soname-ltdll.$objext $libobjs $convenience~
- sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $objdir/$soname-def > $export_symbols'
-
- # If DATA tags from a recent dlltool are present, honour them!
- archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~
- _lt_hint=1;
- cat $export_symbols | while read symbol; do
- set dummy \$symbol;
- case \$# in
- 2) echo " \$2 @ \$_lt_hint ; " >> $objdir/$soname-def;;
- *) echo " \$2 @ \$_lt_hint \$3 ; " >> $objdir/$soname-def;;
- esac;
- _lt_hint=`expr 1 + \$_lt_hint`;
- done~
- test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
- test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
- $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
- $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
- $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
- $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
- $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts'
-
- old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a'
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
- # can we support soname and/or expsyms with a.out? -oliva
- fi
- ;;
-
- solaris* | sysv5*)
- if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
- ld_shlibs=no
- cat <<EOF 1>&2
-
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
-*** create shared libraries on Solaris systems. Therefore, libtool
-*** is disabling shared libraries support. We urge you to upgrade GNU
-*** binutils to release 2.9.1 or newer. Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-EOF
- elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
-
- sunos4*)
- archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
- wlarc=
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
-
- *)
- if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
- esac
-
- if test "$ld_shlibs" = yes; then
- runpath_var=LD_RUN_PATH
- hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
- export_dynamic_flag_spec='${wl}--export-dynamic'
- case $host_os in
- cygwin* | mingw*)
- # dlltool doesn't understand --whole-archive et. al.
- whole_archive_flag_spec=
- ;;
- *)
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
- whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- whole_archive_flag_spec=
- fi
- ;;
- esac
- fi
-else
- # PORTME fill in a description of your system's linker (not GNU ld)
- case "$host_os" in
- aix3*)
- allow_undefined_flag=unsupported
- always_export_symbols=yes
- archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'
- # Note: this linker hardcodes the directories in LIBPATH if there
- # are no directories specified by -L.
- hardcode_minus_L=yes
- if test "$with_gcc" = yes && test -z "$link_static_flag"; then
- # Neither direct hardcoding nor static linking is supported with a
- # broken collect2.
- hardcode_direct=unsupported
- fi
- ;;
-
- aix4*)
- hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
- hardcode_libdir_separator=':'
- if test "$with_gcc" = yes; then
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- hardcode_direct=yes
- else
- # We have old collect2
- hardcode_direct=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- hardcode_minus_L=yes
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_libdir_separator=
- fi
- shared_flag='-shared'
- else
- shared_flag='${wl}-bM:SRE'
- hardcode_direct=yes
- fi
- allow_undefined_flag=' ${wl}-berok'
- archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
- archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
- case "$host_os" in aix4.[01]|aix4.[01].*)
- # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
- always_export_symbols=yes ;;
- esac
- ;;
-
- amigaos*)
- archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- # see comment about different semantics on the GNU ld section
- ld_shlibs=no
- ;;
-
- cygwin* | mingw*)
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- hardcode_libdir_flag_spec=' '
- allow_undefined_flag=unsupported
- # Tell ltmain to make .lib files, not .a files.
- libext=lib
- # FIXME: Setting linknames here is a bad hack.
- archive_cmds='$CC -o $lib $libobjs $linkopts `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
- # The linker will automatically build a .lib file if we build a DLL.
- old_archive_from_new_cmds='true'
- # FIXME: Should let the user specify the lib program.
- old_archive_cmds='lib /OUT:$oldlib$oldobjs'
- fix_srcfile_path='`cygpath -w $srcfile`'
- ;;
-
- freebsd1*)
- ld_shlibs=no
- ;;
-
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
- # support. Future versions do this automatically, but an explicit c++rt0.o
- # does not break anything, and helps significantly (at the cost of a little
- # extra space).
- freebsd2.2*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
-
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
- freebsd2*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
- hardcode_direct=yes
- hardcode_minus_L=yes
- hardcode_shlibpath_var=no
- ;;
-
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- freebsd*)
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
-
- hpux9* | hpux10* | hpux11*)
- case "$host_os" in
- hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
- *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;;
- esac
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator=:
- hardcode_direct=yes
- hardcode_minus_L=yes # Not in the search PATH, but as the default
- # location of the library.
- export_dynamic_flag_spec='${wl}-E'
- ;;
-
- irix5* | irix6*)
- if test "$with_gcc" = yes; then
- archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
- else
- archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
- fi
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' # a.out
- else
- archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linkopts' # ELF
- fi
- hardcode_libdir_flag_spec='${wl}-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
-
- openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
-
- os2*)
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- allow_undefined_flag=unsupported
- archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def~$echo DATA >> $objdir/$libname.def~$echo " SINGLE NONSHARED" >> $objdir/$libname.def~$echo EXPORTS >> $objdir/$libname.def~emxexp $libobjs >> $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def'
- old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
- ;;
-
- osf3*)
- if test "$with_gcc" = yes; then
- allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
- else
- allow_undefined_flag=' -expect_unresolved \*'
- archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
- fi
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- ;;
-
- osf4* | osf5*) # As osf3* with the addition of the -msym flag
- if test "$with_gcc" = yes; then
- allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
- else
- allow_undefined_flag=' -expect_unresolved \*'
- archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
- fi
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- ;;
- rhapsody*)
- archive_cmds='$CC -bundle -undefined suppress -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flags_spec='-L$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
-
- sco3.2v5*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
- hardcode_shlibpath_var=no
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- ;;
-
- solaris*)
- no_undefined_flag=' -z text'
- # $CC -shared without GNU ld will not create a library from C++
- # object files and a static libstdc++, better avoid it by now
- archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
- archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_shlibpath_var=no
- case "$host_os" in
- solaris2.[0-5] | solaris2.[0-5].*) ;;
- *) # Supported since Solaris 2.6 (maybe 2.5.1?)
- whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
- esac
- ;;
-
- sunos4*)
- archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_direct=yes
- hardcode_minus_L=yes
- hardcode_shlibpath_var=no
- ;;
-
- sysv4)
- if test "x$host_vendor" = xsequent; then
- # Use $CC to link under sequent, because it throws in some extra .o
- # files that make .init and .fini sections work.
- archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $linkopts'
- else
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
- fi
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var=no
- hardcode_direct=no #Motorola manual says yes, but my tests say they lie
- ;;
-
- sysv4.3*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
- hardcode_shlibpath_var=no
- export_dynamic_flag_spec='-Bexport'
- ;;
-
- sysv5*)
- no_undefined_flag=' -z text'
- # $CC -shared without GNU ld will not create a library from C++
- # object files and a static libstdc++, better avoid it by now
- archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
- archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
- hardcode_libdir_flag_spec=
- hardcode_shlibpath_var=no
- runpath_var='LD_RUN_PATH'
- ;;
-
- uts4*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_shlibpath_var=no
- ;;
-
- dgux*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_shlibpath_var=no
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
- hardcode_shlibpath_var=no
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- ld_shlibs=yes
- fi
- ;;
-
- sysv4.2uw2*)
- archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts'
- hardcode_direct=yes
- hardcode_minus_L=no
- hardcode_shlibpath_var=no
- hardcode_runpath_var=yes
- runpath_var=LD_RUN_PATH
- ;;
-
- unixware7*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var=no
- ;;
-
- *)
- ld_shlibs=no
- ;;
- esac
-fi
-echo "$ac_t$ld_shlibs" 1>&6
-test "$ld_shlibs" = no && can_build_shared=no
-
-if test -z "$NM"; then
- echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
- case "$NM" in
- [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path.
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
- for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then
- # Check to see if the nm accepts a BSD-compat flag.
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
- # nm: unknown option "B" ignored
- if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- NM="$ac_dir/nm -B"
- break
- elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
- NM="$ac_dir/nm -p"
- break
- else
- NM=${NM="$ac_dir/nm"} # keep the first match, but
- continue # so that we can try to find one that supports BSD flags
- fi
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$NM" && NM=nm
- ;;
- esac
- echo "$ac_t$NM" 1>&6
-fi
-
-# Check for command to grab the raw symbol name followed by C symbol from nm.
-echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6
-
-# These are sane defaults that work on at least a few old systems.
-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
-
-# Character class describing NM global symbol codes.
-symcode='[BCDEGRST]'
-
-# Regexp to match symbols that can be accessed directly from C.
-sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
-
-# Transform the above into a raw symbol and a C symbol.
-symxfrm='\1 \2\3 \3'
-
-# Transform an extracted symbol line into a proper C declaration
-global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
-
-# Define system-specific variables.
-case "$host_os" in
-aix*)
- symcode='[BCDT]'
- ;;
-cygwin* | mingw*)
- symcode='[ABCDGISTW]'
- ;;
-hpux*) # Its linker distinguishes data from code symbols
- global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
- ;;
-irix*)
- symcode='[BCDEGRST]'
- ;;
-solaris*)
- symcode='[BDT]'
- ;;
-sysv4)
- symcode='[DFNSTU]'
- ;;
-esac
-
-# If we're using GNU nm, then use its standard symbol codes.
-if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
- symcode='[ABCDGISTW]'
-fi
-
-# Try without a prefix undercore, then with it.
-for ac_symprfx in "" "_"; do
-
- # Write the raw and C identifiers.
- global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$/$symxfrm/p'"
-
- # Check to see that the pipe works correctly.
- pipe_works=no
- $rm conftest*
- cat > conftest.c <<EOF
-#ifdef __cplusplus
-extern "C" {
-#endif
-char nm_test_var;
-void nm_test_func(){}
-#ifdef __cplusplus
-}
-#endif
-main(){nm_test_var='a';nm_test_func();return(0);}
-EOF
-
- echo "$progname:1653: checking if global_symbol_pipe works" >&5
- if { (eval echo $progname:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
- # Now try to grab the symbols.
- nlist=conftest.nm
- if { echo "$progname:1657: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
-
- # Try sorting and uniquifying the output.
- if sort "$nlist" | uniq > "$nlist"T; then
- mv -f "$nlist"T "$nlist"
- else
- rm -f "$nlist"T
- fi
-
- # Make sure that we snagged all the symbols we need.
- if egrep ' nm_test_var$' "$nlist" >/dev/null; then
- if egrep ' nm_test_func$' "$nlist" >/dev/null; then
- cat <<EOF > conftest.c
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-EOF
- # Now generate the symbol file.
- eval "$global_symbol_to_cdecl"' < "$nlist" >> conftest.c'
-
- cat <<EOF >> conftest.c
-#if defined (__STDC__) && __STDC__
-# define lt_ptr_t void *
-#else
-# define lt_ptr_t char *
-# define const
-#endif
-
-/* The mapping between symbol names and symbols. */
-const struct {
- const char *name;
- lt_ptr_t address;
-}
-lt_preloaded_symbols[] =
-{
-EOF
- sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.c
- cat <<\EOF >> conftest.c
- {0, (lt_ptr_t) 0}
-};
-
-#ifdef __cplusplus
-}
-#endif
-EOF
- # Now try linking the two files.
- mv conftest.$objext conftstm.$objext
- save_LIBS="$LIBS"
- save_CFLAGS="$CFLAGS"
- LIBS="conftstm.$objext"
- CFLAGS="$CFLAGS$no_builtin_flag"
- if { (eval echo $progname:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- pipe_works=yes
- else
- echo "$progname: failed program was:" >&5
- cat conftest.c >&5
- fi
- LIBS="$save_LIBS"
- else
- echo "cannot find nm_test_func in $nlist" >&5
- fi
- else
- echo "cannot find nm_test_var in $nlist" >&5
- fi
- else
- echo "cannot run $global_symbol_pipe" >&5
- fi
- else
- echo "$progname: failed program was:" >&5
- cat conftest.c >&5
- fi
- $rm conftest* conftst*
-
- # Do not use the global_symbol_pipe unless it works.
- if test "$pipe_works" = yes; then
- break
- else
- global_symbol_pipe=
- fi
-done
-if test "$pipe_works" = yes; then
- echo "${ac_t}ok" 1>&6
-else
- echo "${ac_t}failed" 1>&6
-fi
-
-if test -z "$global_symbol_pipe"; then
- global_symbol_to_cdecl=
-fi
-
-# Check hardcoding attributes.
-echo $ac_n "checking how to hardcode library paths into programs... $ac_c" 1>&6
-hardcode_action=
-if test -n "$hardcode_libdir_flag_spec" || \
- test -n "$runpath_var"; then
-
- # We can hardcode non-existant directories.
- if test "$hardcode_direct" != no &&
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
- # have to relink, otherwise we might link with an installed library
- # when we should be linking with a yet-to-be-installed one
- ## test "$hardcode_shlibpath_var" != no &&
- test "$hardcode_minus_L" != no; then
- # Linking always hardcodes the temporary library directory.
- hardcode_action=relink
- else
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
- hardcode_action=immediate
- fi
-else
- # We cannot hardcode anything, or else we can only hardcode existing
- # directories.
- hardcode_action=unsupported
-fi
-echo "$ac_t$hardcode_action" 1>&6
-
-
-reload_flag=
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
-echo $ac_n "checking for $LD option to reload object files... $ac_c" 1>&6
-# PORTME Some linkers may need a different reload flag.
-reload_flag='-r'
-echo "$ac_t$reload_flag" 1>&6
-test -n "$reload_flag" && reload_flag=" $reload_flag"
-
-# PORTME Fill in your ld.so characteristics
-library_names_spec=
-libname_spec='lib$name'
-soname_spec=
-postinstall_cmds=
-postuninstall_cmds=
-finish_cmds=
-finish_eval=
-shlibpath_var=
-shlibpath_overrides_runpath=unknown
-version_type=none
-dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-file_magic_cmd=
-file_magic_test_file=
-deplibs_check_method='unknown'
-# Need to set the preceding variable on all platforms that support
-# interlibrary dependencies.
-# 'none' -- dependencies not supported.
-# `unknown' -- same as none, but documents that we really don't know.
-# 'pass_all' -- all dependencies passed with no checks.
-# 'test_compile' -- check by making test program.
-# 'file_magic [regex]' -- check by looking for files in library path
-# which responds to the $file_magic_cmd with a given egrep regex.
-# If you have `file' or equivalent on your system and you're not sure
-# whether `pass_all' will *always* work, you probably want this one.
-echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6
-case "$host_os" in
-aix3*)
- version_type=linux
- library_names_spec='${libname}${release}.so$versuffix $libname.a'
- shlibpath_var=LIBPATH
-
- # AIX has no versioning support, so we append a major version to the name.
- soname_spec='${libname}${release}.so$major'
- ;;
-
-aix4*)
- version_type=linux
- # AIX has no versioning support, so currently we can not hardcode correct
- # soname into executable. Probably we can add versioning support to
- # collect2, so additional links can be useful in future.
- # We preserve .a as extension for shared libraries though AIX4.2
- # and later linker supports .so
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
- shlibpath_var=LIBPATH
- deplibs_check_method=pass_all
- ;;
-
-amigaos*)
- library_names_spec='$libname.ixlibrary $libname.a'
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
- ;;
-
-beos*)
- library_names_spec='${libname}.so'
- dynamic_linker="$host_os ld.so"
- shlibpath_var=LIBRARY_PATH
- deplibs_check_method=pass_all
- lt_cv_dlopen="load_add_on"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- ;;
-
-bsdi4*)
- version_type=linux
- need_version=no
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
- file_magic_cmd=/usr/bin/file
- file_magic_test_file=/shlib/libc.so
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- export_dynamic_flag_spec=-rdynamic
- # the default ld.so.conf also contains /usr/contrib/lib and
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- # libtool to hard-code these into programs
- ;;
-
-cygwin* | mingw*)
- version_type=windows
- need_version=no
- need_lib_prefix=no
- if test "$with_gcc" = yes; then
- library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.a'
- else
- library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
- fi
- dynamic_linker='Win32 ld.exe'
- deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
- file_magic_cmd='${OBJDUMP} -f'
- # FIXME: first we should search . and the directory the executable is in
- shlibpath_var=PATH
- lt_cv_dlopen="LoadLibrary"
- lt_cv_dlopen_libs=
- ;;
-
-freebsd1*)
- dynamic_linker=no
- ;;
-
-freebsd*)
- objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
- version_type=freebsd-$objformat
- case "$version_type" in
- freebsd-elf*)
- deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
- file_magic_cmd=/usr/bin/file
- file_magic_test_file=`echo /usr/lib/libc.so*`
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
- need_version=no
- need_lib_prefix=no
- ;;
- freebsd-*)
- deplibs_check_method=unknown
- library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
- need_version=yes
- ;;
- esac
- shlibpath_var=LD_LIBRARY_PATH
- case "$host_os" in
- freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*)
- shlibpath_overrides_runpath=yes
- ;;
- *) # from 3.2 on
- shlibpath_overrides_runpath=no
- ;;
- esac
- ;;
-
-gnu*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
- soname_spec='${libname}${release}.so$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-hpux9* | hpux10* | hpux11*)
- # Give a soname corresponding to the major version so that dld.sl refuses to
- # link against other versions.
- dynamic_linker="$host_os dld.sl"
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- shlibpath_var=SHLIB_PATH
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
- soname_spec='${libname}${release}.sl$major'
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
- postinstall_cmds='chmod 555 $lib'
- case "$host_os" in
- hpux10.20*)
- # TODO: Does this work for hpux-11 too?
- deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
- file_magic_cmd=/usr/bin/file
- file_magic_test_file=/usr/lib/libc.sl
- ;;
- esac
- ;;
-
-irix5* | irix6*)
- version_type=irix
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}.so.$major'
- library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so'
- case "$host_os" in
- irix5*)
- libsuff= shlibsuff=
- # this will be overridden with pass_all, but let us keep it just in case
- deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
- ;;
- *)
- case "$LD" in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
- *) libsuff= shlibsuff= libmagic=never-match;;
- esac
- ;;
- esac
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- file_magic_cmd=/usr/bin/file
- file_magic_test_file=`echo /lib${libsuff}/libc.so*`
- deplibs_check_method='pass_all'
- ;;
-
-# No shared lib support for Linux oldld, aout, or coff.
-linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
- dynamic_linker=no
- ;;
-
-# This must be Linux ELF.
-linux-gnu*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- deplibs_check_method=pass_all
-
- if test -f /lib/ld.so.1; then
- dynamic_linker='GNU ld.so'
- else
- # Only the GNU ld.so supports shared libraries on MkLinux.
- case "$host_cpu" in
- powerpc*) dynamic_linker=no ;;
- *) dynamic_linker='Linux ld.so' ;;
- esac
- fi
- ;;
-
-netbsd*)
- version_type=sunos
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- dynamic_linker='NetBSD (a.out) ld.so'
- else
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
- soname_spec='${libname}${release}.so$major'
- dynamic_linker='NetBSD ld.elf_so'
- fi
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-openbsd*)
- version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
- library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-os2*)
- libname_spec='$name'
- need_lib_prefix=no
- library_names_spec='$libname.dll $libname.a'
- dynamic_linker='OS/2 ld.exe'
- shlibpath_var=LIBPATH
- ;;
-
-osf3* | osf4* | osf5*)
- version_type=osf
- need_version=no
- soname_spec='${libname}${release}.so'
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
- shlibpath_var=LD_LIBRARY_PATH
- # this will be overridden with pass_all, but let us keep it just in case
- deplibs_check_method='file_magic COFF format alpha shared library'
- file_magic_cmd=/usr/bin/file
- file_magic_test_file=/shlib/libc.so
- deplibs_check_method='pass_all'
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- ;;
-
-rhapsody*)
- version_type=sunos
- library_names_spec='${libname}.so'
- soname_spec='${libname}.so'
- shlibpath_var=DYLD_LIBRARY_PATH
- deplibs_check_method=pass_all
- ;;
-
-sco3.2v5*)
- version_type=osf
- soname_spec='${libname}${release}.so$major'
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-solaris*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- # ldd complains unless libraries are executable
- postinstall_cmds='chmod +x $lib'
- deplibs_check_method="file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib"
- file_magic_cmd=/usr/bin/file
- file_magic_test_file=/lib/libc.so
- ;;
-
-sunos4*)
- version_type=sunos
- library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- fi
- need_version=yes
- ;;
-
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- version_type=linux
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
- shlibpath_var=LD_LIBRARY_PATH
- case "$host_vendor" in
- sequent)
- file_magic_cmd='/bin/file'
- deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
- ;;
- ncr)
- deplibs_check_method='pass_all'
- ;;
- motorola)
- need_lib_prefix=no
- need_version=no
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
- file_magic_cmd=/usr/bin/file
- file_magic_test_file=`echo /usr/lib/libc.so*`
- ;;
- esac
- ;;
-
-uts4*)
- version_type=linux
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-dgux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
- soname_spec='${libname}${release}.so$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-sysv4*MP*)
- if test -d /usr/nec ;then
- version_type=linux
- library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
- soname_spec='$libname.so.$major'
- shlibpath_var=LD_LIBRARY_PATH
- fi
- ;;
-
-*)
- dynamic_linker=no
- ;;
-esac
-echo "$ac_t$dynamic_linker" 1>&6
-test "$dynamic_linker" = no && can_build_shared=no
-
-# Report the final consequences.
-echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6
-
-# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in
-# configure.in, otherwise build static only libraries.
-case "$host_os" in
-cygwin* | mingw* | os2*)
- if test x$can_build_shared = xyes; then
- test x$enable_win32_dll = xno && can_build_shared=no
- echo "checking if package supports dlls... $can_build_shared" 1>&6
- fi
-;;
-esac
-
-if test -n "$file_magic_test_file" && test -n "$file_magic_cmd"; then
- case "$deplibs_check_method" in
- "file_magic "*)
- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- egrep "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such. This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem. Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
-
-EOF
- fi ;;
- esac
-fi
-
-echo $ac_n "checking whether to build shared libraries... $ac_c" 1>&6
-test "$can_build_shared" = "no" && enable_shared=no
-
-# On AIX, shared libraries and static libraries use the same namespace, and
-# are all built from PIC.
-case "$host_os" in
-aix3*)
- test "$enable_shared" = yes && enable_static=no
- if test -n "$RANLIB"; then
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
- postinstall_cmds='$RANLIB $lib'
- fi
- ;;
-
-aix4*)
- test "$enable_shared" = yes && enable_static=no
- ;;
-esac
-
-echo "$ac_t$enable_shared" 1>&6
-
-# Make sure either enable_shared or enable_static is yes.
-test "$enable_shared" = yes || enable_static=yes
-
-echo "checking whether to build static libraries... $enable_static" 1>&6
-
-if test "$hardcode_action" = relink; then
- # Fast installation is not supported
- enable_fast_install=no
-elif test "$shlibpath_overrides_runpath" = yes ||
- test "$enable_shared" = no; then
- # Fast installation is not necessary
- enable_fast_install=needless
-fi
-
-echo $ac_n "checking for objdir... $ac_c" 1>&6
-rm -f .libs 2>/dev/null
-mkdir .libs 2>/dev/null
-if test -d .libs; then
- objdir=.libs
-else
- # MS-DOS does not allow filenames that begin with a dot.
- objdir=_libs
-fi
-rmdir .libs 2>/dev/null
-echo "$ac_t$objdir" 1>&6
-
-if test "x$enable_dlopen" != xyes; then
- enable_dlopen=unknown
- enable_dlopen_self=unknown
- enable_dlopen_self_static=unknown
-else
-if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then
- lt_cv_dlopen=no lt_cv_dlopen_libs=
-echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
-echo "$progname:2248: checking for dlopen in -ldl" >&5
-ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-ldl $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2256 "ltconfig"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlopen();
-
-int main() {
-dlopen()
-; return 0; }
-EOF
-if { (eval echo $progname:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "$progname: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
-else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for dlopen""... $ac_c" 1>&6
-echo "$progname:2288: checking for dlopen" >&5
-if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 2293 "ltconfig"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char dlopen(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dlopen();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_dlopen) || defined (__stub___dlopen)
-choke me
-#else
-dlopen();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo $progname:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_dlopen=yes"
-else
- echo "$progname: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_dlopen=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- lt_cv_dlopen="dlopen"
-else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
-echo "$progname:2335: checking for dld_link in -ldld" >&5
-ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-ldld $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2343 "ltconfig"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char dld_link();
-
-int main() {
-dld_link()
-; return 0; }
-EOF
-if { (eval echo $progname:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "$progname: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
-else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for shl_load""... $ac_c" 1>&6
-echo "$progname:2375: checking for shl_load" >&5
-if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 2380 "ltconfig"
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char shl_load(); below. */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char shl_load();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_shl_load) || defined (__stub___shl_load)
-choke me
-#else
-shl_load();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo $progname:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_shl_load=yes"
-else
- echo "$progname: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_shl_load=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- lt_cv_dlopen="shl_load"
-else
- echo "$ac_t""no" 1>&6
-echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
-echo "$progname:2423: checking for shl_load in -ldld" >&5
-ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-ldld $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2431 "ltconfig"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char shl_load();
-
-int main() {
-shl_load()
-; return 0; }
-EOF
-if { (eval echo $progname:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "$progname: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
-else
- echo "$ac_t""no" 1>&6
-fi
-
-
-fi
-
-
-fi
-
-
-fi
-
-
-fi
-
-fi
-
- if test "x$lt_cv_dlopen" != xno; then
- enable_dlopen=yes
- fi
-
- case "$lt_cv_dlopen" in
- dlopen)
-for ac_hdr in dlfcn.h; do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "$progname:2488: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <<EOF
-#line 2493 "ltconfig"
-#include <$ac_hdr>
-int fnord = 0;
-EOF
-ac_try="$ac_compile >/dev/null 2>conftest.out"
-{ (eval echo $progname:2498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "$progname: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-done
-
- if test "x$ac_cv_header_dlfcn_h" = xyes; then
- CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
- fi
- eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
- LIBS="$lt_cv_dlopen_libs $LIBS"
-
- echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
-echo "$progname:2526: checking whether a program can dlopen itself" >&5
-if test "${lt_cv_dlopen_self+set}" = set; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- lt_cv_dlopen_self=cross
- else
- cat > conftest.c <<EOF
-#line 2534 "ltconfig"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-# define LTDL_GLOBAL RTLD_GLOBAL
-#else
-# ifdef DL_GLOBAL
-# define LTDL_GLOBAL DL_GLOBAL
-# else
-# define LTDL_GLOBAL 0
-# endif
-#endif
-
-/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
-#ifndef LTDL_LAZY_OR_NOW
-# ifdef RTLD_LAZY
-# define LTDL_LAZY_OR_NOW RTLD_LAZY
-# else
-# ifdef DL_LAZY
-# define LTDL_LAZY_OR_NOW DL_LAZY
-# else
-# ifdef RTLD_NOW
-# define LTDL_LAZY_OR_NOW RTLD_NOW
-# else
-# ifdef DL_NOW
-# define LTDL_LAZY_OR_NOW DL_NOW
-# else
-# define LTDL_LAZY_OR_NOW 0
-# endif
-# endif
-# endif
-# endif
-#endif
-
-fnord() { int i=42;}
-main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
- if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
- if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
-
-EOF
-if { (eval echo $progname:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
-then
- lt_cv_dlopen_self=yes
-else
- echo "$progname: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- lt_cv_dlopen_self=no
-fi
-rm -fr conftest*
-fi
-
-fi
-
-echo "$ac_t""$lt_cv_dlopen_self" 1>&6
-
- if test "$lt_cv_dlopen_self" = yes; then
- LDFLAGS="$LDFLAGS $link_static_flag"
- echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
-echo "$progname:2599: checking whether a statically linked program can dlopen itself" >&5
-if test "${lt_cv_dlopen_self_static+set}" = set; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test "$cross_compiling" = yes; then
- lt_cv_dlopen_self_static=cross
- else
- cat > conftest.c <<EOF
-#line 2607 "ltconfig"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-# define LTDL_GLOBAL RTLD_GLOBAL
-#else
-# ifdef DL_GLOBAL
-# define LTDL_GLOBAL DL_GLOBAL
-# else
-# define LTDL_GLOBAL 0
-# endif
-#endif
-
-/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
-#ifndef LTDL_LAZY_OR_NOW
-# ifdef RTLD_LAZY
-# define LTDL_LAZY_OR_NOW RTLD_LAZY
-# else
-# ifdef DL_LAZY
-# define LTDL_LAZY_OR_NOW DL_LAZY
-# else
-# ifdef RTLD_NOW
-# define LTDL_LAZY_OR_NOW RTLD_NOW
-# else
-# ifdef DL_NOW
-# define LTDL_LAZY_OR_NOW DL_NOW
-# else
-# define LTDL_LAZY_OR_NOW 0
-# endif
-# endif
-# endif
-# endif
-#endif
-
-fnord() { int i=42;}
-main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
- if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
- if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
-
-EOF
-if { (eval echo $progname:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
-then
- lt_cv_dlopen_self_static=yes
-else
- echo "$progname: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- lt_cv_dlopen_self_static=no
-fi
-rm -fr conftest*
-fi
-
-fi
-
-echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
-fi
- ;;
- esac
-
- case "$lt_cv_dlopen_self" in
- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
- *) enable_dlopen_self=unknown ;;
- esac
-
- case "$lt_cv_dlopen_self_static" in
- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
- *) enable_dlopen_self_static=unknown ;;
- esac
-fi
-
-# Copy echo and quote the copy, instead of the original, because it is
-# used later.
-ltecho="$echo"
-if test "X$ltecho" = "X$CONFIG_SHELL $0 --fallback-echo"; then
- ltecho="$CONFIG_SHELL \$0 --fallback-echo"
-fi
-LTSHELL="$SHELL"
-
-LTCONFIG_VERSION="$VERSION"
-
-# Only quote variables if we're using ltmain.sh.
-case "$ltmain" in
-*.sh)
- # Now quote all the things that may contain metacharacters.
- for var in ltecho old_CC old_CFLAGS old_CPPFLAGS \
- old_LD old_LDFLAGS old_LIBS \
- old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS \
- AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \
- reload_flag reload_cmds wl \
- pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
- thread_safe_flag_spec whole_archive_flag_spec libname_spec \
- library_names_spec soname_spec \
- RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
- old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds postuninstall_cmds \
- file_magic_cmd export_symbols_cmds deplibs_check_method allow_undefined_flag no_undefined_flag \
- finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
- hardcode_libdir_flag_spec hardcode_libdir_separator \
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
-
- case "$var" in
- reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
- postinstall_cmds | postuninstall_cmds | \
- finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- esac
- done
-
- case "$ltecho" in
- *'\$0 --fallback-echo"')
- ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
- ;;
- esac
-
- trap "$rm \"$ofile\"; exit 1" 1 2 15
- echo "creating $ofile"
- $rm "$ofile"
- cat <<EOF > "$ofile"
-#! $SHELL
-
-# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
-# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
-#
-# Copyright (C) 1996-1999 Free Software Foundation, Inc.
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# This program 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.
-#
-# This program 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 this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
-Xsed="sed -e s/^X//"
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
-
-### BEGIN LIBTOOL CONFIG
-EOF
- cfgfile="$ofile"
- ;;
-
-*)
- # Double-quote the variables that need it (for aesthetics).
- for var in old_CC old_CFLAGS old_CPPFLAGS \
- old_LD old_LDFLAGS old_LIBS \
- old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS; do
- eval "$var=\\\"\$var\\\""
- done
-
- # Just create a config file.
- cfgfile="$ofile.cfg"
- trap "$rm \"$cfgfile\"; exit 1" 1 2 15
- echo "creating $cfgfile"
- $rm "$cfgfile"
- cat <<EOF > "$cfgfile"
-# `$echo "$cfgfile" | sed 's%^.*/%%'` - Libtool configuration file.
-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
-EOF
- ;;
-esac
-
-cat <<EOF >> "$cfgfile"
-# Libtool was configured as follows, on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-#
-# CC=$old_CC CFLAGS=$old_CFLAGS CPPFLAGS=$old_CPPFLAGS \\
-# LD=$old_LD LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS \\
-# NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
-# DLLTOOL=$old_DLLTOOL OBJDUMP=$old_OBJDUMP AS=$old_AS \\
-# $0$ltconfig_args
-#
-# Compiler and other test output produced by $progname, useful for
-# debugging $progname, is in ./config.log if it exists.
-
-# The version of $progname that generated this script.
-LTCONFIG_VERSION=$LTCONFIG_VERSION
-
-# Shell to use when invoking shell scripts.
-SHELL=$LTSHELL
-
-# Whether or not to build shared libraries.
-build_libtool_libs=$enable_shared
-
-# Whether or not to build static libraries.
-build_old_libs=$enable_static
-
-# Whether or not to optimize for fast installation.
-fast_install=$enable_fast_install
-
-# The host system.
-host_alias=$host_alias
-host=$host
-
-# An echo program that does not interpret backslashes.
-echo=$ltecho
-
-# The archiver.
-AR=$AR
-
-# The default C compiler.
-CC=$CC
-
-# The linker used to build libraries.
-LD=$LD
-
-# Whether we need hard or soft links.
-LN_S=$LN_S
-
-# A BSD-compatible nm program.
-NM=$NM
-
-# Used on cygwin: DLL creation program.
-DLLTOOL="$DLLTOOL"
-
-# Used on cygwin: object dumper.
-OBJDUMP="$OBJDUMP"
-
-# Used on cygwin: assembler.
-AS="$AS"
-
-# The name of the directory that contains temporary libtool files.
-objdir=$objdir
-
-# How to create reloadable object files.
-reload_flag=$reload_flag
-reload_cmds=$reload_cmds
-
-# How to pass a linker flag through the compiler.
-wl=$wl
-
-# Object file suffix (normally "o").
-objext="$objext"
-
-# Old archive suffix (normally "a").
-libext="$libext"
-
-# Executable file suffix (normally "").
-exeext="$exeext"
-
-# Additional compiler flags for building library objects.
-pic_flag=$pic_flag
-
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$compiler_c_o
-
-# Can we write directly to a .lo ?
-compiler_o_lo=$compiler_o_lo
-
-# Must we lock files when doing compilation ?
-need_locks=$need_locks
-
-# Do we need the lib prefix for modules?
-need_lib_prefix=$need_lib_prefix
-
-# Do we need a version for libraries?
-need_version=$need_version
-
-# Whether dlopen is supported.
-dlopen=$enable_dlopen
-
-# Whether dlopen of programs is supported.
-dlopen_self=$enable_dlopen_self
-
-# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=$enable_dlopen_self_static
-
-# Compiler flag to prevent dynamic linking.
-link_static_flag=$link_static_flag
-
-# Compiler flag to turn off builtin functions.
-no_builtin_flag=$no_builtin_flag
-
-# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$export_dynamic_flag_spec
-
-# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$whole_archive_flag_spec
-
-# Compiler flag to generate thread-safe objects.
-thread_safe_flag_spec=$thread_safe_flag_spec
-
-# Library versioning type.
-version_type=$version_type
-
-# Format of library name prefix.
-libname_spec=$libname_spec
-
-# List of archive names. First name is the real one, the rest are links.
-# The last name is the one that the linker finds with -lNAME.
-library_names_spec=$library_names_spec
-
-# The coded name of the library, if different from the real name.
-soname_spec=$soname_spec
-
-# Commands used to build and install an old-style archive.
-RANLIB=$RANLIB
-old_archive_cmds=$old_archive_cmds
-old_postinstall_cmds=$old_postinstall_cmds
-old_postuninstall_cmds=$old_postuninstall_cmds
-
-# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$old_archive_from_new_cmds
-
-# Commands used to build and install a shared archive.
-archive_cmds=$archive_cmds
-archive_expsym_cmds=$archive_expsym_cmds
-postinstall_cmds=$postinstall_cmds
-postuninstall_cmds=$postuninstall_cmds
-
-# Method to check whether dependent libraries are shared objects.
-deplibs_check_method=$deplibs_check_method
-
-# Command to use when deplibs_check_method == file_magic.
-file_magic_cmd=$file_magic_cmd
-
-# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$allow_undefined_flag
-
-# Flag that forces no undefined symbols.
-no_undefined_flag=$no_undefined_flag
-
-# Commands used to finish a libtool library installation in a directory.
-finish_cmds=$finish_cmds
-
-# Same as above, but a single script fragment to be evaled but not shown.
-finish_eval=$finish_eval
-
-# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$global_symbol_pipe
-
-# Transform the output of nm in a proper C declaration
-global_symbol_to_cdecl=$global_symbol_to_cdecl
-
-# This is the shared library runtime path variable.
-runpath_var=$runpath_var
-
-# This is the shared library path variable.
-shlibpath_var=$shlibpath_var
-
-# Is shlibpath searched before the hard-coded library search path?
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
-# How to hardcode a shared library path into an executable.
-hardcode_action=$hardcode_action
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec=$hardcode_libdir_flag_spec
-
-# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator=$hardcode_libdir_separator
-
-# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
-# resulting binary.
-hardcode_direct=$hardcode_direct
-
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
-# resulting binary.
-hardcode_minus_L=$hardcode_minus_L
-
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
-# the resulting binary.
-hardcode_shlibpath_var=$hardcode_shlibpath_var
-
-# Compile-time system search path for libraries
-sys_lib_search_path_spec=$sys_lib_search_path_spec
-
-# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
-
-# Fix the shell variable \$srcfile for the compiler.
-fix_srcfile_path="$fix_srcfile_path"
-
-# Set to yes if exported symbols are required.
-always_export_symbols=$always_export_symbols
-
-# The commands to list exported symbols.
-export_symbols_cmds=$export_symbols_cmds
-
-# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$exclude_expsyms
-
-# Symbols that must always be exported.
-include_expsyms=$include_expsyms
-
-EOF
-
-case "$ltmain" in
-*.sh)
- echo '### END LIBTOOL CONFIG' >> "$ofile"
- echo >> "$ofile"
- case "$host_os" in
- aix3*)
- cat <<\EOF >> "$ofile"
-
-# AIX sometimes has problems with the GCC collect2 program. For some
-# reason, if we set the COLLECT_NAMES environment variable, the problems
-# vanish in a puff of smoke.
-if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
-fi
-EOF
- ;;
- esac
-
- # Append the ltmain.sh script.
- sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1)
- # We use sed instead of cat because bash on DJGPP gets confused if
- # if finds mixed CR/LF and LF-only lines. Since sed operates in
- # text mode, it properly converts lines to CR/LF. This bash problem
- # is reportedly fixed, but why not run on old versions too?
-
- chmod +x "$ofile"
- ;;
-
-*)
- # Compile the libtool program.
- echo "FIXME: would compile $ltmain"
- ;;
-esac
-
-test -n "$cache_file" || exit 0
-
-# AC_CACHE_SAVE
-trap '' 1 2 15
-cat > confcache <<\EOF
-# This file is a shell script that caches the results of configure
-# tests run on this system so they can be shared between configure
-# scripts and configure runs. It is not useful on other systems.
-# If it contains results you don't want to keep, you may remove or edit it.
-#
-# By default, configure uses ./config.cache as the cache file,
-# creating it if it does not exist already. You can give configure
-# the --cache-file=FILE option to use a different cache file; that is
-# what configure does when it calls configure scripts in
-# subdirectories, so they share the cache.
-# Giving --cache-file=/dev/null disables caching, for debugging configure.
-# config.status only pays attention to the cache file if you give it the
-# --recheck option to rerun configure.
-#
-EOF
-# The following way of writing the cache mishandles newlines in values,
-# but we know of no workaround that is simple, portable, and efficient.
-# So, don't put newlines in cache variables' values.
-# Ultrix sh set writes to stderr and can't be redirected directly,
-# and sets the high bit in the cache file unless we assign to the vars.
-(set) 2>&1 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in
- *ac_space=\ *)
- # `set' does not quote correctly, so add quotes (double-quote substitution
- # turns \\\\ into \\, and sed turns \\ into \).
- sed -n \
- -e "s/'/'\\\\''/g" \
- -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
- ;;
- esac >> confcache
-if cmp -s $cache_file confcache; then
- :
-else
- if test -w $cache_file; then
- echo "updating cache $cache_file"
- cat confcache > $cache_file
- else
- echo "not updating unwritable cache $cache_file"
- fi
-fi
-rm -f confcache
-
-exit 0
-
-# Local Variables:
-# mode:shell-script
-# sh-indentation:2
-# End:
diff --git a/misc/Makefile.am b/misc/Makefile.am
deleted file mode 100644
index 4f9aa50d..00000000
--- a/misc/Makefile.am
+++ /dev/null
@@ -1,2 +0,0 @@
-EXTRA_DIST = i4b_acct.h i4b_acct.txt
-
diff --git a/misc/README.indent b/misc/README.indent
deleted file mode 100644
index 012bf8a1..00000000
--- a/misc/README.indent
+++ /dev/null
@@ -1,8 +0,0 @@
-The indentation in LibGTop was done with the following command:
-
- find . -name \*.[ch] | xargs -i emacs -batch {} \
- -l /gnome/compile/libgtop/misc/format.el -f save-buffer
-
-December 26, 1999
-Martin
-
diff --git a/misc/format.el b/misc/format.el
deleted file mode 100644
index c0901142..00000000
--- a/misc/format.el
+++ /dev/null
@@ -1,5 +0,0 @@
-(setq c-basic-offset 4)
-(if (not (word-search-forward "Mode: C" nil t))
- (insert-string "/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */\n\n"))
-(mark-whole-buffer)
-(indent-region (region-beginning) (region-end) nil)
diff --git a/misc/i4b_acct.h b/misc/i4b_acct.h
deleted file mode 100644
index 87538f0f..00000000
--- a/misc/i4b_acct.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/* This file contains modified code from `/usr/src/i4b/driver/i4b_isppp.c'
- * which belongs to the I4B package.
- *
- * The original copyright of this file [/usr/src/i4b/driver/i4b_isppp.c] is
- *
- * -----------------------------------------------------------------------------
- *
- * Copyright (c) 1997 Joerg Wunsch. All rights reserved.
- *
- * Copyright (c) 1997, 1998 Hellmuth Michaelis. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the author nor the names of any co-contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- * 4. Altered versions must be plainly marked as such, and must not be
- * misrepresented as being the original software and/or documentation.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * -----------------------------------------------------------------------------
- */
-
-#define I4BISPPPACCT 1 /* enable accounting messages */
-
-struct i4bisppp_softc {
- /*
- * struct sppp starts with a struct ifnet, but we gotta allocate
- * more space for it. NB: do not relocate this union, it must
- * be first in isppp_softc. The tls and tlf hooks below want to
- * convert a ``struct sppp *'' into a ``struct isppp_softc *''.
- */
- union {
- struct ifnet scu_if;
- struct sppp scu_sp;
- } sc_if_un;
-#define sc_if sc_if_un.scu_if
- int sc_state; /* state of the interface */
-#ifndef __FreeBSD__
- int sc_unit; /* unit number for Net/OpenBSD */
-#endif
- void *sc_cdp; /* ptr to call descriptor */
-
-#ifdef I4BISPPPACCT
- int sc_iinb; /* isdn driver # of inbytes */
- int sc_ioutb; /* isdn driver # of outbytes */
- int sc_inb; /* # of bytes rx'd */
- int sc_outb; /* # of bytes tx'd */
- int sc_linb; /* last # of bytes rx'd */
- int sc_loutb; /* last # of bytes tx'd */
- int sc_fn; /* flag, first null acct */
-#endif
-
-#if defined(__FreeBSD__) && __FreeBSD__ >= 3
- struct callout_handle sc_ch;
-#endif
-};
diff --git a/misc/i4b_acct.txt b/misc/i4b_acct.txt
deleted file mode 100644
index 4fd7d024..00000000
--- a/misc/i4b_acct.txt
+++ /dev/null
@@ -1,96 +0,0 @@
-To get ISDN statistics with the I4B package do the following:
-
-* Look at the declaration of `struct i4bisppp_softc' in
- /usr/src/i4b/driver/i4b_isppp.c.
-
- It is looking like this:
-
- struct i4bisppp_softc {
- /*
- * struct sppp starts with a struct ifnet, but we gotta allocate
- * more space for it. NB: do not relocate this union, it must
- * be first in isppp_softc. The tls and tlf hooks below want to
- * convert a ``struct sppp *'' into a ``struct isppp_softc *''.
- */
- union {
- struct ifnet scu_if;
- struct sppp scu_sp;
- } sc_if_un;
- #define sc_if sc_if_un.scu_if
- int sc_state; /* state of the interface */
- #ifndef __FreeBSD__
- int sc_unit; /* unit number for Net/OpenBSD */
- #endif
- call_desc_t *sc_cdp; /* ptr to call descriptor */
-
- #ifdef I4BISPPPACCT
- int sc_iinb; /* isdn driver # of inbytes */
- int sc_ioutb; /* isdn driver # of outbytes */
- int sc_inb; /* # of bytes rx'd */
- int sc_outb; /* # of bytes tx'd */
- int sc_linb; /* last # of bytes rx'd */
- int sc_loutb; /* last # of bytes tx'd */
- int sc_fn; /* flag, first null acct */
- #endif
-
- #if defined(__FreeBSD__) && __FreeBSD__ >= 3
- struct callout_handle sc_ch;
- #endif
- } i4bisppp_softc[NI4BISPPP];
-
-* Create a new file /usr/include/machine/i4b_acct.h and put the declaration
- of this structure in this file.
-
-* Replace `call_desc_t *' with `void *' in it.
-
-* The result should look like this:
-
- struct i4bisppp_softc {
- /*
- * struct sppp starts with a struct ifnet, but we gotta allocate
- * more space for it. NB: do not relocate this union, it must
- * be first in isppp_softc. The tls and tlf hooks below want to
- * convert a ``struct sppp *'' into a ``struct isppp_softc *''.
- */
- union {
- struct ifnet scu_if;
- struct sppp scu_sp;
- } sc_if_un;
- #define sc_if sc_if_un.scu_if
- int sc_state; /* state of the interface */
- #ifndef __FreeBSD__
- int sc_unit; /* unit number for Net/OpenBSD */
- #endif
- void *sc_cdp; /* ptr to call descriptor */
-
- #ifdef I4BISPPPACCT
- int sc_iinb; /* isdn driver # of inbytes */
- int sc_ioutb; /* isdn driver # of outbytes */
- int sc_inb; /* # of bytes rx'd */
- int sc_outb; /* # of bytes tx'd */
- int sc_linb; /* last # of bytes rx'd */
- int sc_loutb; /* last # of bytes tx'd */
- int sc_fn; /* flag, first null acct */
- #endif
-
- #if defined(__FreeBSD__) && __FreeBSD__ >= 3
- struct callout_handle sc_ch;
- #endif
- };
-
-* Put a
-
- #define I4BISPPPACCT 1 /* enable accounting messages */
-
- at the top of your /usr/include/machine/i4b_acct.h
-
-* This file should now look about like `misc/i4b_acct.h' in the LibGTop
- source directory.
-
-* Done.
-
-This is necessary since LibGTop reads its data directly out of the kernel
-and the `struct i4bisppp_softc' is only defined there and in no header file
-(someone can tell the I4B people to put it in some header file ?).
-
-Martin <martin@home-of-linux.org>
diff --git a/misc/porting-libgtop.txt b/misc/porting-libgtop.txt
deleted file mode 100644
index 62f524d9..00000000
--- a/misc/porting-libgtop.txt
+++ /dev/null
@@ -1,81 +0,0 @@
-There are a few instructions as I write them here (I'll at this file
-to CVS as well).
-
-First, there is a new 0.99.9 tarball. You should use this one when
-porting libgtop to Solaris, it has a lot of fixes in the header files
-and I just tested it with DEC OSF/1 3.2 native `cc' and BSDI 3.1; both
-compiled without problems.
-
-The tarball is not yet on ftp.gnome.org since I want to fix the broken
-DEC OSF/1 port and check whether it works with Digital Unix 3.2C this
-weekend.
-
-Here the instructions:
-
-========================================================================
-
-* Edit libgtop-sysdeps.m4:
-
- Somewhere in the GNOME_LIBGTOP_SYSDEPS macro you'll find
-
- freebsd*|netbsd*|openbsd*)
- libgtop_sysdeps_dir=freebsd
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
- ;;
-
- add something like
-
- solaris*)
- libgtop_sysdeps_dir=solaris
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
- ;;
-
- there.
-
- Until you port is stable, please add it to the
-
- if test x$hacker_mode = xyes ; then
- case "$host_os" in
- ...
- esac
-
- section so this will look like
-
- if test x$hacker_mode = xyes ; then
- case "$host_os" in
- solaris*)
- libgtop_sysdeps_dir=solaris
- libgtop_use_machine_h=yes
- libgtop_need_server=yes
- libgtop_postinstall='chgrp kmem $(bindir)/libgtop_server && chmod 2755 $(bindir)/libgtop_server'
- ;;
-
-
- If you add the check there configure will only detect Solaris as a
- valid system if you give it the `--enable-hacker-mode' parameter so
- it doesn't matter if it does not compile or not work, it won't get
- compiled for "normal" users.
-
-* Copy sysdeps/stub_suid to sysdeps/solaris
-
-* Run configure with --enable-hacker-mode and try a make, it should
- compile without problems.
-
- If not, please let me know - in this case the `stub_suid' directory
- is broken.
-
-* Now you can start porting LibGTop ...
-
-I don't know how similar Solaris and Sun4 are, but perhaps you can
-use some code from my very old and broken sun4 port in sysdeps/sun4.
-
-=========================================================================
-
-If you have any more questions, feel free to ask them ...
-
-Happy porting,
-Martin
diff --git a/misc/timings/timings.linux-proc b/misc/timings/timings.linux-proc
deleted file mode 100644
index 3183e9cb..00000000
--- a/misc/timings/timings.linux-proc
+++ /dev/null
@@ -1,26 +0,0 @@
-This statistics were made on a PPRO 200 running Linux 2.2.1
-reading everything from /proc while the system was idle.
-
-
-Feature (Flags ): Count - utime - stime
-----------------------------------------------------------
-CPU (0x000007ff): 100000 - 13.90 - 181.80
-Memory (0x0000007f): 10000 - 32.00 - 8061.00
-Swap (0x0000001f): 10000 - 46.00 - 8130.00
-Uptime (0x00000003): 100000 - 19.60 - 72.20
-Loadavg (0x0000000f): 100000 - 32.40 - 77.10
-
-Proclist (0x00000007): 10000 - 2250.00 - 4419.00
-
-Proc_State (0x0000000f): 100000 - 40.70 - 221.00
-Proc_Uid (0x00000fff): 100000 - 72.40 - 327.30
-Proc_Mem (0x0000003f): 100000 - 65.70 - 283.90
-Proc_Segment (0x000000f5): 100000 - 76.50 - 281.10
-Proc_Time (0x000001ff): 100000 - 37.00 - 160.90
-Proc_Signal (0x0000000f): 100000 - 52.50 - 148.50
-Proc_Kernel (0x0000017f): 100000 - 56.70 - 153.50
-----------------------------------------------------------
-TOTAL 70030000 - 396830000
-
-All timings are in clock ticks (1000000 ticks per second).
-
diff --git a/misc/timings/timings.linux-sysctl b/misc/timings/timings.linux-sysctl
deleted file mode 100644
index b6cf9612..00000000
--- a/misc/timings/timings.linux-sysctl
+++ /dev/null
@@ -1,27 +0,0 @@
-This statistics were made on a PPRO 200 running Linux 2.2.1
-(the same machine I made the timings.linux-proc on) with my
-new sysctl () based kernel module.
-
-
-Feature (Flags ): Count - utime - stime
-----------------------------------------------------------
-CPU (0x0000003f): 100000 - 3.50 - 5.40
-Memory (0x0000003f): 10000 - 3.00 - 6.00
-Swap (0x0000001f): 10000 - 10.00 - 7.00
-Uptime (0x00000003): 100000 - 2.30 - 7.00
-Loadavg (0x00000001): 100000 - 3.00 - 5.60
-
-Proclist (0x00000007): 10000 - 13.00 - 46.00
-
-Proc_State (0x0000000d): 100000 - 3.20 - 7.70
-Proc_Uid (0x00000fff): 100000 - 3.60 - 7.40
-Proc_Mem (0x0000003f): 100000 - 4.10 - 34.30
-Proc_Segment (0x000000ff): 100000 - 5.90 - 41.50
-Proc_Time (0x0000013d): 100000 - 3.50 - 7.50
-Proc_Signal (0x0000000f): 100000 - 2.70 - 8.80
-Proc_Kernel (0x000000fe): 100000 - 4.00 - 13.30
-----------------------------------------------------------
-TOTAL 3840000 - 14440000
-
-All timings are in clock ticks (1000000 ticks per second).
-
diff --git a/po/ChangeLog b/po/ChangeLog
deleted file mode 100644
index 4f12c334..00000000
--- a/po/ChangeLog
+++ /dev/null
@@ -1,1780 +0,0 @@
-2007-09-18 Alexander Shopov <ash@contact.bg>
-
- * bg.po: Updated Bulgarian translation by
- Alexander Shopov <ash@contact.bg>
-
-2007-09-17 Artur Flinta <aflinta@svn.gnome.org>
-
- * pl.po: Updated Polish translation by GNOME PL Team.
-
-2007-09-16 Kenneth Nielsen <k.nielsen81@gmail.com>
-
- * da.po: Updated Danish translation
-
-2007-09-16 Gil Forcada <gforcada@svn.gnome.org>
-
- * ca.po: Updated Catalan translation.
-
-2007-09-16 Gintautas Miliauskas <gintas@akl.lt>
-
- * lt.po: Updated Lithuanian translation.
-
-2007-09-13 Djihed Afifi <djihed@gmail.com>
-
- * ar.po: Updated Arabic Translation by Youssef Chahibi.
-
-2007-09-13 Gabor Kelemen <kelemeng@gnome.hu>
-
- * hu.po: Translation updated.
-
-2007-09-13 Mugurel Tudor <mugurelu@gnome.ro>
-
- * ro.po: Updated Romanian translation
- by Mişu Moldovan <dumol@gnome.ro>
-
-2007-09-12 Maxim Dziumanenko <dziumanenko@gmail.com>
-
- * uk.po: Update Ukrainian translation.
-
-2007-09-12 Goran Rakić <grakic@devbase.net>
-
- * sr.po, sr@Latn.po: Updated Serbian translation.
-
-2007-09-08 Duarte Loreto <happyguy_pt@hotmail.com>
-
- * pt.po: Updated Portuguese translation.
-
-2007-09-05 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
-
- * ru.po: Updated Russian translation.
-
-2007-09-03 Jovan Naumovski <jovan@lugola.net>
-
- * mk.po: Updated Macedonian translation.
-
-2007-08-24 Stéphane Raimbault <stephane.raimbault@gmail.com>
-
- * fr.po: Updated French translation.
-
-2007-08-10 Runa Bhattacharjee <runabh@gmail.com>
-
- * bn_IN.po: Updated Bengali India Translation.
-
-2007-08-07 Ankit Patel <ankit644@yahoo.com>
-
- * gu.po: Updated Gujarati Translation.
-
-2007-08-06 Ilkka Tuohela <hile@iki.fi>
-
- * fi.po: Updated Finnish translation.
-
-2007-08-05 Inaki Larranaga Murgoitio <dooteo@zundan.com>
-
- * eu.po: Updated Basque translation.
-
-2007-07-21 Leonardo Ferreira Fontenelle <leonardof@svn.gnome.org>
-
- * pt_BR.po: Brazilian Portuguese translation updated by Og Maciel
- <ogmaciel@ubuntu.com>.
-
-2007-07-19 Hendrik Richter <hendrikr@gnome.org>
-
- * de.po: Updated German translation.
-
-2007-07-17 Wouter Bolsterlee <wbolster@svn.gnome.org>
-
- * nl.po: Dutch translation updated by Wouter Bolsterlee.
-
-2007-07-16 Ilkka Tuohela <hile@iki.fi>
-
- * fi.po: Updated Finnish translation.
-
-2007-07-09 I. Felix <ifelix@svn.gnome.org>
-
- * ta.po: Tamil Translation updated by Tirumurthi Vasudevan
-
-2007-07-07 Takeshi AIHANA <takeshi.aihana@gmail.com>
-
- * ja.po: Updated Japanese translation.
-
-2007-06-27 Clytie Siddall <clytie@riverland.net.au>
-
- * vi.po: Updated Vietnamese translation.
-
-2007-06-23 Kjartan Maraas <kmaraas@gnome.org>
-
- * nb.po: Updated Norwegian bokmål translation.
-
-2007-06-13 Pema Geyleg <pema.geyleg@gmail.com>
-
- * dz.po: Updated dzongkha translation.
-
-2007-05-27 Daniel Nylander <po@danielnylander.se>
-
- * sv.po: Updated Swedish translation.
-
-2007-05-18 Theppitak Karoonboonyanan <thep@linux.thai.net>
-
- * th.po: Updated Thai translation.
-
-2007-05-17 Priit Laes <plaes@svn.gnome.org>
-
- * et.po: Updated Estonian translation by Ivar Smolin <okul@linux.ee>.
-
-2007-05-15 David Lodge <dave@cirt.net>
-
- * en_GB.po: Updated British English translation
-
-2007-05-14 Jorge Gonzalez <jorgegonz@svn.gnome.org>
-
- * es.po: Updated Spanish translation.
-
-2007-04-27 I Felix <ifelix25@gmail.com>
-
- * ta.po: Updated Tamil Translation.
-
-2007-04-25 Benoît Dejean <benoit@placenet.org>
-
- * ta.po: Updated Tamil translation.
- Translated by Senthil Kumar <senthil0627@gmail.com>.
-
-2007-03-25 Ignacio Casal Quinteiro <nacho.resa@gmail.com>
-
- * gl.po: Updated Galician Translation.
-
-2007-03-03 Artur Flinta <aflinta@svn.gnome.org>
-
- * pl.po: Updated Polish translation by GNOME PL Team.
-
-2007-02-27 Gintautas Miliauskas <gintas@akl.lt>
-
- * lt.po: Updated Lithuanian translation.
-
-2006-02-20 Maxim Dziumanenko <dziumanenko@gmail.com>
-
- * uk.po: Updated Ukrainian translation.
-
-2006-12-1 Djihed Afifi <djihed@gmail.com>
-
- * ar.po: Updated Arabic Translation.
-
-2006-11-19 Wouter Bolsterlee <wbolster@cvs.gnome.org>
-
- * pl.po: Translation updated by GNOME PL Team.
-
-2006-11-18 Djihed Afifi <djihed@gmail.com>
-
- * ar.po: Updated Arabic Translation.
-
-2006-10-30 Djihed Afifi <djihed@gmail.com>
-
- * ar.po Updated Arabic Translation.
-
-2006-10-30 Satoru SATOH <ss@gnome.gr.jp>
-
- * ja.po: Fixed wrong plural form entries.
-
-2006-09-21 Pawan Chitrakar <pchitrakar@gmail.com>
-
- * ne.po: Updated Nepali Translation
-
-2006-09-19 Sunil Mohan Adapa <sunil@atc.tcs.co.in>
-
- * te.po: Added Telugu "te" translation done by
- Sree Ganesh <mrthottempudi@yahoo.com>.
- * LINGUAS: Added "te".
-
-2006-09-01 Runa Bhattacharjee <runabh@gmail.com>
-
- * bn_IN.po: Fixed some typos.
-
-2006-08-27 Theppitak Karoonboonyanan <thep@linux.thai.net>
-
- * th.po: Fixed plural strings.
-
-2006-08-16 Gabor Kelemen <kelemeng@gnome.hu>
-
- * hu.po: Translation updated.
-
-2006-08-14 Matic Žgur <mr.zgur@gmail.com>
-
- * sl.po: Updated Slovenian translation.
-
-2006-08-07 Runa Bhattacharjee <runabh@gmail.com>
-
- * bn_IN.po: Updated Bengali India Translation.
-
-2006-08-05 Ani Peter <peter.ani@gmail.com>
-
- *ml.po Updated Malayalam Translation
-
-2006-07-05 Thierry Randrianiriana <thierryR@cvs.gnome.org>
-
- * mg.po: Added Malagasy translation
- * LINGUAS: Added Malagasy code 'mg' to the list
-
-2006-07-03 Runa Bhattacharjee <runabh@gmail.com>
-
- * bn_IN.po: Added Bengali India Translation
- * LINGUAS: Added Bengali India (bn_IN) to the list of languages.
-
-2006-07-03 Simos Xenitellis <simos@gnome.org>
-
- * ne.po: Fixed ^M, bug #316750.
-
-2006-06-26 Abel Cheung <abel@oaka.org>
-
- * zh_HK.po, zh_TW.po: Updated traditional Chinese translation.
-
-2006-06-08 Gora Mohanty <gmohanty@cvs.gnome.org>
-
- * LINGUAS: Added 'eo' (Esperanto)
- * eo.po: Added Esperanto translation by Guillaume Savaton
- <gsavaton@hotmail.com>
-
-2006-04-07 Ales Nyakhaychyk <nab@mail.by>
-
- * be.po: Updated Belarusian translation.
-
-2006-04-02 Kjartan Maraas <kmaraas@gnome.org>
-
- * POTFILES.skip: Remove non-existing files.
- * nb.po: Updated Norwegian bokmål translation.
- * no.po: Same.
-
-2006-03-27 Yair Hershkovitz <yairhr@gmail.com>
-
- * he.po: Updated Hebrew translation.
-
-2006-03-22 Gora Mohanty <gmohanty@cvs.gnome.org>
-
- * or.po: Updated Oriya translation.
-
-2006-03-18 Vladimer Sichinava <vlsichinava@gmail.com>
-
- * ka.po: Updated Georgian translation.
-
-2006-03-03 Žygimantas Beručka <zygis@gnome.org>
-
- * lt.po: Updated Lithuanian translation.
-
-2006-02-28 Clytie Siddall <clytie@riverland.net.au>
-
- * lv.po: Updated Latvian translation by Raivis Dejus <orvils@gmail.com>.
-
-2005-12-04 Theppitak Karoonboonyanan <thep@linux.thai.net>
-
- * th.po: Added Thai translation.
-
-2005-11-17 Timur Jamakeev <timurj@cvs.gnome.org>
-
- * ky.po: Added Kirghiz translation.
-
-2005-11-16 Priit Laes <plaes@cvs.gnome.org>
-
- * et.po: Translation updated by Ivar Smolin.
-
-2005-10-28 Erdal Ronahi <erdal.ronahi@gmail.com>
-
- * ku.po: Added Kurdish translation
-
-2005-10-03 Christian Rose <menthos@menthos.com>
-
- * sv.po: Reverted unauthorized changes made by
- user 'kloczek'.
-
-2005-10-01 Runa Bhattacharjee <runa@bengalinux.org>
-
- * bn.po: Updated Bengali (bn) translation. Translation by Mahay Alam Khan <makl10n@yahoo.com>
-
-2005-09-08 Inaki Larranaga <dooteo@euskalgnu.org>
-
- * eu.po: Updated Basque translation.
-
-2005-08-29 Telsa Gwynne <hobbit@aloss.ukuu.org.uk>
-
- * cy.po: Updated Welsh translation.
-
-2005-08-22 Mugurel Tudor <mugurelu@gnome.ro>
-
- * ro.po: Updated Romanian translation
- by Mişu Moldovan <dumol@gnome.ro>
-
-2005-08-02 Dave Neary <bolsh@gimp.org>
-
- * tr.po: Fix a C formatting string translation.
-
-2005-06-28 Alexander Shopov <ash@contact.bg>
-
- * bg.po: Updated Bulgarian translation by
- Alexander Shopov <ash@contact.bg>
-
-2005-07-04 Hendrik Richter <hendi@gnome-de.org>
-
- * de.po: Fixed German translation by
- Jens Seidel <jensseidel@users.sf.net>.
-
-2005-06-22 Abel Cheung <maddog@linuxhall.org>
-
- * zh_TW.po: Fix language team reference.
-
-2005-06-15 Alexander Shopov <ash@contact.bg>
-
- * bg.po: Updated Bulgarian translation by
- Rostislav Raykov <zbrox@i-space.org>
-
-2005-06-13 Ignacio Casal Quinteiro <nacho.resa@gmail.com>
-
- * gl.po: Updated Galician Translation.
-
-2005-04-01 Adi Attar <aattar@cvs.gnome.org>
-
- * xh.po: Added Xhosa translation.
-
-2005-03-31 Steve Murphy <murf@e-tools.com>
-
- * rw.po: Added Kinyarwanda translation.
-
-2005-03-19 Priit Laes <plaes@cvs.gnome.org>
-
- * et.po: Translation updated by Ivar Smolin.
-
-2005-03-17 Adam Weinberger <adamw@gnome.org>
-
- * en_CA.po: Updated Canadian English translation.
-
-2005-03-12 Baris Cicek <baris@teamforce.name.tr>
-
- * tr.po: Updated Turkish Translation
-
-2005-03-07 Dan Damian <dand@gnome.ro>
-
- * ro.po: Updated Romanian translation by
- Mişu Moldovan <dumol@go.ro>.
-
-2005-03-06 Danilo Šegan <dsegan@gmx.net>
-
- * sr.po, sr@Latn.po: Updated Serbian translation.
-
-2005-03-05 Abel Cheung <maddog@linuxhall.org>
-
- * zh_TW.po: Updated traditional Chinese translation from GNOME HK Team
- * bg.po: Mark wrong entry as fuzzy (msgfmt check failed).
-
-2005-03-04 Laszlo Dvornik <dvornik@gnome.hu>
-
- * hu.po: Hungarian translation updated by Gabor Kelemen.
-
-2005-03-03 Alessio Frusciante <algol@firenze.linux.it>
-
- * it.po: Updated Italian translation.
-
-2005-02-24 Artur Flinta <aflinta@cvs.gnome.org>
-
- * pl.po: Updated Polish translation by GNOME PL Team.
-
-2004-02-24 Ankit Patel <ankit644@yahoo.com>
-
- * gu.po: Updated Gujarati Translation.
-
-2004-02-22 Roozbeh Pournader <roozbeh@farsiweb.info>
-
- * fa.po: Updated Persian translation by
- Azin Azadi <aazadi@gmail.com>.
-
-2005-02-22 Priit Laes <plaes@cvs.gnome.org>
-
- * et.po: Translation updated by Ivar Smolin.
-
-2005-02-20 Raphael Higino <raphaelh@cvs.gnome.org>
-
- * pt_BR.po: Updated Brazilian Portuguese translation.
-
-2005-02-18 Changwoo Ryu <cwryu@debian.org>
-
- * ko.po: Updated Korean translation.
-
-2005-02-18 Kostas Papadimas <pkst@gnome.org>
-
- * el.po: Updated Greek translation.
-
-2005-02-17 Vincent van Adrighem <adrighem@gnome.org>
-
- * nl.po: Translation updated by Tino Meinen.
-
-2005-02-16 Jordi Mallach <jordi@sindominio.net>
-
- * ca.po: Updated Catalan translation.
-
-2005-02-15 Maxim Dziumanenko <mvd@mylinux.com.ua>
-
- * uk.po: Updated Ukrainian translation.
-
-2005-02-14 Christophe Merlet <redfox@redfoxcenter.org>
-
- * fr.po: Updated French translation.
-
-2005-02-14 Laurent Dhima <laurenti@alblinux.net>
-
- * sq.po: Updated Albanian translation.
-
-2005-02-14 Benoît Dejean <TazForEver@dlfp.org>
-
- * fr.po: Updated French translation.
-
-2005-02-08 Leonid Kanter <leon@asplinux.ru>
-
- * ru.po: Updated Russian translation
-
-2005-02-07 David Lodge <dave@cirt.net>
-
- * en_GB.po: Updated British translation.
-
-2005-02-06 Ole Laursen <olau@hardworking.dk>
-
- * da.po: Updated Danish translation.
-
-2005-02-06 Pauli Virtanen <pauli.virtanen@hut.fi>
-
- * fi.po: Updated Finnish translation.
-
-2005-02-04 Priit Laes <plaes@cvs.gnome.org>
-
- * et.po: Translation updated by Tõivo Leedjärv.
-
-2005-01-30 Žygimantas Beručka <uid0@akl.lt>
-
- * lt.po: Updated Lithuanian translation.
-
-2005-01-28 Kjartan Maraas <kmaraas@gnome.org>
-
- * nb.po: Update
- * no.po: Update
-
-2005-01-27 Alexander Shopov <ash@contact.bg>
-
- * bg.po: Updated Bulgarian translation by
- Iassen Pramatarov <turin@fsa-bg.org>
-
-2005-01-26 Duarte Loreto <happyguy_pt@hotmail.com>
-
- * pt.po: Updated Portuguese translation.
-
-2005-01-24 Funda Wang <fundawang@linux.net.cn>
-
- * zh_CN.po: Updated Simplified Chinese translation.
-
-2005-01-24 Alexander Shopov <ash@contact.bg>
-
- * bg.po: Updated Bulgarian translation by
- Vladimir Petkov <vpetkov@i-space.org>
-
-2005-01-24 Benoît Dejean <TazForEver@dlfp.org>
-
- * POTFILES.in:
- * POTFILES.skip: Removed lib/lib.c as it is generated.
- Closes #165038.
-
-2005-01-17 Benoît Dejean <TazForEver@dlfp.org>
-
- * POTFILES.in: Updated.
-
-2005-01-16 Hendrik Richter <hendrik@gnome-de.org>
-
- * de.po: Updated German translation.
-
-2005-01-16 Takeshi AIHANA <aihana@gnome.gr.jp>
-
- * ja.po: Updated Japanese translation.
-
-2005-01-13 Benoît Dejean <TazForEver@dlfp.org>
-
- * POTFILES.in:
- * POTFILES.skip: Don't translate examples/smp.c.
-
-2005-01-13 Christian Rose <menthos@menthos.com>
-
- * POTFILES.in: Added missing file.
-
-2005-01-02 Miloslav Trmac <mitr@volny.cz>
-
- * cs.po: Updated Czech translation.
-
-2004-12-29 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
-
- * es.po: Updated Spanish translation
-
-2004-12-29 Marcel Telka <marcel@telka.sk>
-
- * sk.po: Updated Slovak translation.
-
-2004-12-29 Christian Rose <menthos@menthos.com>
-
- * sv.po: Updated Swedish translation.
-
-2004-12-29 Adam Weinberger <adamw@gnome.org>
-
- * en_CA.po: Updated Canadian English translation.
-
-2004-12-29 Pawan Chitrakar <pawan@nplinux.org>
-
- * ne.po: Added Nepali Translation
-
-2004-12-29 Benoît Dejean <tazforever@dlfp.org>
-
- * POTFILES.in: Removed a bunch of strings.
-
-2004-12-28 Christian Rose <menthos@menthos.com>
-
- * POTFILES.in: Added comment and missing file.
- * .cvsignore: Added entries and cleaned up.
- * sv.po: Updated Swedish translation.
-
-2004-12-28 Kjartan Maraas <kmaraas@gnome.org>
-
- * nb.po: Update
- * no.po: Update
-
-2004-12-28 Marcel Telka <marcel@telka.sk>
-
- * sk.po: Updated Slovak translation.
-
-2004-12-27 Benoît Dejean <tazforever@dlfp.org>
-
- * POTFILES.in: Removed a lot of unused/useless files.
-
-2004-12-26 Adam Weinberger <adamw@gnome.org>
-
- * en_CA.po: Updated Canadian English translation.
-
-2004-12-25 Miloslav Trmac <mitr@volny.cz>
-
- * cs.po: Updated Czech translation.
-
-2004-12-04 Žygimantas Beručka <uid0@akl.lt>
-
- * lt.po: Updated Lithuanian translation.
-
-2004-11-23 Martin Willemoes Hansen <mwh@sysrq.dk>
-
- * da.po: Updated Danish translation.
-
-2004-09-26 Adam Weinberger <adamw@gnome.org>
-
- * en_CA.po: Updated Canadian English translation.
-
-2004-09-24 Benoît Dejean <tazforever@dlfp.org>
-
- * POTFILES.in: Updated.
-
-2004-09-20 Alessio Frusciante <algol@firenze.linux.it>
-
- * it.po: Updated Italian translation.
-
-2004-09-14 Gora Mohanty <gmohanty@cvs.gnome.org>
-
- * or.po: Updated Oriya translation.
-
-2004-09-12 Laszlo Dvornik <dvornik@gnome.hu>
-
- * hu.po: Updated Hungarian translation by Gabor Kelemen.
-
-2004-09-12 Dafydd Harries <daf@muse.19inch.net>
-
- * cy.po: Updated Welsh translation.
-
-2004-09-10 Christophe Merlet <redfox@redfoxcenter.org>
-
- * fr.po: Updated French translation from
- Benoit Dejean <TazForEver@dlfp.org>.
-
-2004-09-07 Akagic Amila <bono@linux.org.ba>
-
- * bs.po: Updated Bosnian translation.
-
-2004-09-06 Mugurel Tudor <mugurelu@go.ro>
-
- * ro.po: Updated Romanian translation
- by Misu Moldovan <dumol@go.ro>
-
-2004-09-06 Kostas Papadimas <pkst@gnome.org>
-
- * el.po: Updated Greek translation.
-
-2004-09-05 Raphael Higino <raphaelh@cvs.gnome.org>
-
- * pt_BR.po: Updated Brazilian Portuguese translation.
-
-2004-09-03 Baris Cicek <baris@teamforce.name.tr>
-
- * tr.po: Updated Turkish Translation
-
-2004-09-02 Hendrik Richter <hendrik@gnome-de.org>
-
- * de.po: Updated German translation
-
-2004-08-30 Nikos Charonitakis <charosn@her.forthnet.gr>
-
- * el.po: Updated Greek translation.
-
-2004-08-28 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
-
- * es.po: Updated Spanish translation.
-
-2004-08-28 Akagic Amila <bono@linux.org.ba>
-
- * bs.po: Added Bosnian translation.
-
-2004-08-26 Iñaki Larrañaga <dooteo@euskalgnu.org>
-
- * eu.po: Updated Basque translation.
-
-2004-08-23 Maxim Dziumanenko <mvd@mylinux.com.ua>
-
- * uk.po: Updated Ukrainian translation.
-
-2004-08-23 Martin Willemoes Hansen <mwh@sysrq.dk>
-
- * da.po: Updated Danish translation.
-
-2004-08-21 Jordi Mallach <jordi@sindominio.net>
-
- * ca.po: Updated Catalan translation.
-
-2004-08-21 Kjartan Maraas <kmaraas@gnome.org>
-
- * nb.po: Add this.
-
-2004-08-20 Laurent Dhima <laurenti@alblinux.net>
-
- * sq.po: Updated Albanian translation.
-
-2004-08-18 Pauli Virtanen <pauli.virtanen@hut.fi>
-
- * fi.po: Updated Finnish translation.
-
-2004-08-18 Laurent Dhima <laurenti@alblinux.net>
-
- * sq.po: Updated Albanian translation.
-
-2004-08-15 Duarte Loreto <happyguy_pt@hotmail.com>
-
- * pt.po: Fixed typo in Portuguese translation.
-
-2004-08-13 Tommi Vainikainen <thv@iki.fi>
-
- * fi.po: Unified some fields in po headers for Finnish team.
-
-2004-08-11 Dmitry G. Mastrukov <dmitry@taurussoft.org>
-
- * ru.po: Updated Russian translation
- from Russian team <gnome-cyr@gnome.org>.
-
-2004-08-10 Artur Flinta <aflinta@cvs.gnome.org>
-
- * pl.po: Updated Polish translation by GNOME PL Team.
-
-2004-08-08 Funda Wang <fundawang@linux.net.cn>
-
- * zh_CN.po: Updated Simplified Chinese translation.
-
-2004-08-07 Marcel Telka <marcel@telka.sk>
-
- * sk.po: Updated Slovak translation.
-
-2004-08-07 Danilo Šegan <dsegan@gmx.net>
-
- * sr.po, sr@Latn.po: Updated Serbian translation.
-
-2004-08-04 Christian Rose <menthos@menthos.com>
-
- * sv.po: Updated Swedish translation.
-
-2004-08-03 Benoît Dejean <tazforever@dlfp.org>
-
- * am.po:
- * ar.po:
- * az.po:
- * be.po:
- * bg.po:
- * bn.po:
- * ca.po:
- * cs.po:
- * cy.po:
- * da.po:
- * de.po:
- * el.po:
- * en_CA.po:
- * en_GB.po:
- * es.po:
- * et.po:
- * eu.po:
- * fa.po:
- * fi.po:
- * fr.po:
- * ga.po:
- * gl.po:
- * gu.po:
- * he.po:
- * hi.po:
- * hr.po:
- * hu.po:
- * id.po:
- * it.po:
- * ja.po:
- * ko.po:
- * lt.po:
- * lv.po:
- * mi.po:
- * mk.po:
- * ml.po:
- * mn.po:
- * ms.po:
- * nl.po:
- * nn.po:
- * no.po:
- * pa.po:
- * pl.po:
- * pt.po:
- * pt_BR.po:
- * ro.po:
- * ru.po:
- * sk.po:
- * sl.po:
- * sq.po:
- * sr.po:
- * sr@Latn.po:
- * sv.po:
- * ta.po:
- * tr.po:
- * uk.po:
- * vi.po:
- * zh_CN.po:
- * zh_TW.po: Updated.
-
-2004-08-03 Changwoo Ryu <cwryu@debian.org>
-
- * ko.po: Updated Korean translation.
-
-2004-08-01 Kjartan Maraas <kmaraas@gnome.org>
-
- * no.po: Updated Norwegian translation.
-
-2004-07-31 Laszlo Dvornik <dvornik@gnome.hu>
-
- * hu.po: Updated Hungarian translation by Gabor Kelemen.
-
-2004-07-31 Laszlo Dvornik <dvornik@gnome.hu>
-
- * hu.po: Updated Hungarian translation by Gabor Kelemen.
-
-2004-07-31 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
-
- * es.po: Updated Spanih translation.
-
-2004-07-28 David Lodge <dave@cirt.net>
- * en_GB.po: Updated British translation.
-
-2004-07-26 Duarte Loreto <happyguy_pt@hotmail.com>
-
- * pt.po: Updated Portuguese translation.
-
-2004-07-21 Metin Amiroff <metin@karegen.com>
-
- * az.po: Translation updated by Mətin Əmirov.
-
-2004-07-21 Takeshi AIHANA <aihana@gnome.gr.jp>
-
- * ja.po: Updated Japanese translation.
-
-2004-07-21 Guntupalli Karunakar <karunakar@freedomink.org>
-
- * hi.po: Updated Hindi translation.
-
-2004-07-21 Vincent van Adrighem <adrighem@gnome.org>
-
- * nl.po: Translation updated by Jeroen van der Vegt.
-
-2004-07-20 Benoît Dejean <tazforever@dlfp.org>
-
- * am.po:
- * ar.po:
- * az.po:
- * be.po:
- * bg.po:
- * bn.po:
- * ca.po:
- * cs.po:
- * cy.po:
- * da.po:
- * de.po:
- * el.po:
- * en_CA.po:
- * en_GB.po:
- * es.po:
- * et.po:
- * eu.po:
- * fa.po:
- * fi.po:
- * fr.po:
- * ga.po:
- * gl.po:
- * gu.po:
- * he.po:
- * hi.po:
- * hr.po:
- * hu.po:
- * id.po:
- * it.po:
- * ja.po:
- * ko.po:
- * lt.po:
- * lv.po:
- * mi.po:
- * mk.po:
- * ml.po:
- * mn.po:
- * ms.po:
- * nl.po:
- * nn.po:
- * no.po:
- * pa.po:
- * pl.po:
- * pt.po:
- * pt_BR.po:
- * ro.po:
- * ru.po:
- * sk.po:
- * sl.po:
- * sq.po:
- * sr.po:
- * sr@Latn.po:
- * sv.po:
- * ta.po:
- * tr.po:
- * uk.po:
- * vi.po:
- * zh_CN.po:
- * zh_TW.po: Updated.
-
-2004-07-19 Laurent Dhima <laurenti@alblinux.net>
-
- * sq.po: Updated Albanian translation.
-
-2004-07-19 Miloslav Trmac <mitr@volny.cz>
-
- * cs.po: Updated Czech translation.
-
-2004-07-18 Adam Weinberger <adamw@gnome.org>
-
- * en_CA.po: Updated Canadian English translation.
-
-2004-07-18 Benoît Dejean <tazforever@dlfp.org>
-
- * POTFILES.in: Updated. Closes #147822.
-
-2004-07-08 Alexander Shopov <ash@contact.bg>
-
- * bg.po: Updated Bulgarian translation by
- Rostislav Raykov <zbrox@i-space.org>
-
-2004-06-28 Laurent Dhima <laurenti@alblinux.net>
-
- * sq.po: Translation updated.
-
-2004-06-26 John C Barstow <jbowtie@amathaine.com>
-
- * mi.po: Translation added.
-
-2004-05-14 Baris Cicek <baris@teamforce.name.tr>
-
- * tr.po: Updated Turkish Translation
-
-2004-04-16 Iñaki Larrañaga <dooteo@euskalgnu.org>
-
- * eu.po: Added Basque translation.
-
-2004-04-15 Andras Timar <timar@gnome.hu>
-
- * hu.po: Updated Hungarian translation.
-
-2004-04-09 Guntupalli Karunakar <karunakar@freedomink.org>
-
- * gu.po: Added Gujurati translation by
- Gujarati Team <magnet@magnet-i.com>.
-
-2004-03-30 Adam Weinberger <adamw@gnome.org>
-
- * en_CA.po: Added Canadian English translation.
-
-2004-03-23 Åsmund Skjæveland <aasmunds@fys.uio.no>
-
- * nn.po: Updated Norwegian Nynorsk translation.
-
-2004-03-22 Gareth Owen <gowen72@yahoo.com>
-
- * en_GB.po: Added British translation
-
-2004-03-22 Guntupalli Karunakar <karunakar@freedomink.org>
-
- * pa.po: Punjabi translation by
- Amanpreet Singh Alam <amanlinux@netscape.net>.
-
-2004-03-21 Andras Timar <timar@gnome.hu>
-
- * hu.po: Added Hungarian translation.
-
-2004-03-18 Mugurel Tudor <mugurelu@go.ro>
-
- * ro.po: Updated Romanian translation by
- Mişu Moldovan <dumol@go.ro>
-
-2004-03-16 Dafydd Harries <daf@muse.19inch.net>
-
- * cy.po: Updated Welsh translation.
-
-2004-03-15 Alessio Frusciante <algol@firenze.linux.it>
-
- * it.po: Updated Italian translation.
-
-2004-03-15 Yuriy Syrota <rasta@cvs.gnome.org>
-
- * uk.po: Updated Ukrainian translation.
-
-2004-03-13 Ales Nyakhaychyk <nab@mail.by>
-
- * be.po: Updated Belarusian translation.
-
-2004-03-12 Tomasz Kłoczko <kloczek@pld.org.pl>
-
- * hr.po: added Plural-Forms field in header and missing empty
- entries.
-
-2004-03-11 Gustavo Maciel Dias Vieira <gdvieira@zaz.com.br>
-
- * pt_BR.po: Updated Brazilian Portuguese translation done by
- Medina <afmedina@uol.com.br>.
-
-2004-03-11 Dmitry G. Mastrukov <dmitry@taurussoft.org>
-
- * ru.po: Updated Russian translation
- from Russian team <gnome-cyr@gnome.org>.
-
-2004-03-10 Alessio Frusciante <algol@firenze.linux.it>
-
- * it.po: Updated Italian translation.
-
-2004-03-07 Funda Wang <fundawang@linux.net.cn>
-
- * zh_CN.po: Updated Simplified Chinese translation.
-
-2004-03-06 Mətin Əmirov <metin@karegen.com>
-
- * az.po: Translation updated.
-
-2004-02-26 Guntupalli Karunakar <karunakar@freedomink.org>
-
- * hi.po: Updated Hindi translation.
-
-2004-02-23 Laurent Dhima <laurenti@alblinux.net>
-
- * sq.po: Fixed Albanian translation.
-
-2004-02-21 Nikos Charonitakis <frolix68@yahoo.gr>
-
- * el.po: Updated Greek translation.
-
-2004-02-08 Changwoo Ryu <cwryu@debian.org>
-
- * ko.po: Updated Korean translation.
-
-2004-02-07 Robert Sedak <robert.sedak@sk.htnet.hr>
-
- * hr.po: Updated Croatian translation.
-
-2004-02-05 Pauli Virtanen <pauli.virtanen@hut.fi>
-
- * fi.po: Updated Finnish translation.
-
-2004-02-02 Laurent Dhima <laurenti@alblinux.net>
-
- * sq.po: Updated Albanian translation.
-
-2004-01-31 Mətin Əmirov <metin@karegen.com>
-
- * az.po: Translation updated.
-
-2004-01-28 Miloslav Trmac <mitr@volny.cz>
-
- * cs.po: Fixed Czech translation.
-
-2004-01-26 Alastair McKinstry <mckinstry@computer.org>
-
- * ga.po: Updated Irish translation.
-
-2004-01-24 Alessio Frusciante <algol@firenze.linux.it>
-
- * it.po: Updated Italian translation.
-
-2004-01-17 Changwoo Ryu <cwryu@debian.org>
-
- * ko.po: Updated Korean translation.
-
-2004-01-15 Laurent Dhima <laurenti@alblinux.net>
-
- * sq.po: Updated Albanian translation.
-
-2004-01-13 Artur Flinta <aflinta@cvs.gnome.org>
-
- * pl.po: Updated Polish translation by GNOME PL Team.
-
-2004-01-13 Kjartan Maraas <kmaraas@gnome.org>
-
- * no.po: Updated Norwegian translation.
-
-2004-01-06 Christian Rose <menthos@menthos.com>
-
- * sv.po: Updated Swedish translation.
-
-2004-01-06 Åsmund Skjæveland <aasmunds@fys.uio.no>
-
- * nn.po: Updated Norwegian Nynorsk translation.
-
-2004-01-04 Sanlig Badral <badral@openmn.org>
-
- * mn.po: Updated Mongolian translation.
-
-2004-01-04 Christian Neumair <chris@gnome-de.org>
-
- * de.po: Updated German translation.
-
-2004-01-04 Christophe Merlet <redfox@redfoxcenter.org>
-
- * fr.po: Updated French translation.
-
-2004-01-04 Duarte Loreto <happyguy_pt@hotmail.com>
-
- * pt.po: Updated and revised Portuguese translation.
-
-2004-01-03 Robert Sedak <robert.sedak@sk.htnet.hr>
-
- * hr.po: Updated Croatian translation.
-
-2004-01-02 Sanlig Badral <Badral@openmn.org>
-
- * mn.po: Updated Mongolian translation.
-
-2003-12-14 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
-
- * es.po: Updated Spanish translation.
-
-2003-12-03 Sanlig Badral <badral@openmn.org>
-
- * mn.po: Updated Mongolian translation.
-
-2003-12-02 Miloslav Trmac <mitr@volny.cz>
-
- * cs.po: Updated Czech translation.
-
-2003-11-20 Ole Laursen <olau@hardworking.dk>
-
- * da.po: Updated Danish translation.
-
-2002-03-10 Hasbullah Bin Pit <sebol@ikhlas.com>
-
- * ms.po: Updated Malay translation.
-
-2003-11-07 Vincent van Adrighem <adrighem@gnome.org>
-
- * nl.po: Dutch translation updated by Jeroen van der Vegt.
-
-2003-11-04 Vincent van Adrighem <adrighem@gnome.org>
-
- * nl.po: Dutch translation updated by Jeroen van der Vegt.
-
-2003-11-03 Jordi Mallach <jordi@sindominio.net>
-
- * ca.po: Updated Catalan translation.
-
-2003-11-02 Žygimantas Beručka <uid0@tuxfamily.org>
-
- * lt.po: Added Lithuanian translation.
-
-2003-11-02 KAMAGASAKO Masatoshi <emerald@gnome.gr.jp>
-
- * ja.po: Updated Japanese translation.
-
-2003-11-01 Marcel Telka <marcel@telka.sk>
-
- * sk.po: Updated Slovak translation.
-
-2003-10-30 Kostas Papadimas <pkst@gnome.org>
-
- * el.po: Updated Greek translation.
-
-2003-10-22 Danilo Šegan <dsegan@gmx.net>
-
- * sr.po, sr@Latn.po: Updated Serbian translation.
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * POTFILES.in: fixed distchecking
-
-2003-10-19 Carlos Perelló Marín <carlos@gnome.org>
-
- * POTFILES.ignore: Removed, we use now POTFILES.skip
-
-2003-10-01 Gustavo Maciel Dias Vieira <gdvieira@zaz.com.br>
-
- * pt_BR.po: Applied revision by Augusta Marques da Silva
- <augusta.marques@gmx.net>.
-
-2003-09-30 Laurent Dhima <laurenti@alblinux.net>
-
- * sq.po: Added Albanian translation.
-
-2003-09-17 Fatih Demir <kabalak@gtranslator.org>
-
- * ta.po: Committed new Tamil translation by Dinesh.
-
-2003-09-13 Carlos Perelló Marín <carlos@gnome.org>
-
- * es_ES.po, LEEME.es: Removed, it's only for one string that is a
- comment and procman is not using it. This modules is not maintained
- and all people tells that should die so I don't think that any other
- application will use it in the near future. This one is related with
- the bug #105676
-
-2003-09-08 Mugurel Tudor <mugurelu@go.ro>
-
- * ro.po: Updated Romanian translation by
- Mişu Moldovan <dumol@go.ro>
-
-2003-09-06 Taneem Ahmed <taneem@bengalinux.org>
-
- * bn.po: Added Bangla translation by Vat
- of Ankur group <gnome-translation@bengalinux.org>.
-
-2003-08-28 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
-
- * es.po: Revision of Spanish translation by
- Francisco Javier F. Serrador <serrador@arrakis.es>.
-
-2003-08-28 Alessio Frusciante <algol@firenze.linux.it>
-
- * it.po: Updated Italian translation.
-
-2003-08-25 Duarte Loreto <happyguy_pt@hotmail.com>
-
- * pt.po: Fixed typos in Portuguese translation.
-
-2003-08-18 Metin Amiroff <metin@karegen.com>
-
- * az.po: Updated Azerbaijani translation.
-
-2003-08-13 Guntupalli Karunakar <karunakar@freedomink.org>
-
- * hi.po: Added Hindi translation.
-
-2003-08-09 Dafydd Harries <daf@parnassus.ath.cx>
-
- * cy.po: Added Welsh translation.
-
-2003-08-09 Wang Jian <lark@linux.net.cn>
-
- * zh_CN.po: Updated Simplified Chinese translation by
- Funda Wang <fundawang@linux.net.cn>.
-
-2003-08-08 Danilo Šegan <dsegan@gmx.net>
-
- * sr.po, sr@Latn.po: Updated Serbian translation.
-
-2003-07-21 Arafat Medini <lumina@silverpen.de>
-
- * ar.po: Updated Arabic translation.
-
-2003-07-19 Arafat Medini <lumina@silverpen.de>
-
- * ar.po: Updated Arabic translation.
-
-2003-07-19 Arafat Medini <lumina@silverpen.de>
-
- * ar.po: Updated Arabic translation.
-
-2003-07-13 Metin Amiroff <metin@karegen.com>
-
- * az.po: Updated Azerbaijani translation.
-
-2003-06-25 Mohammad DAMT <mdamt@bisnisweb.com>
-
- * id.po: Updated Indonesian translation
-
-2003-06-23 Vincent van Adrighem <V.vanAdrighem@dirck.mine.nu>
-
- * nl.po: Dutch translation updated by Kees van den Broek.
-
-2003-06-14 Arafat Medini <lumina@silverpen.de>
-
- * ar.po: Updated Arabic translation.
-
-2003-06-12 Abel Cheung <maddog@linux.org.hk>
-
- * zh_TW.po: Updated traditional Chinese translation.
-
-2003-06-04 Paul Duffy <dubhthach@frink.nuigalway.ie>
-
- * ga.po: Updated Irish Translation.
-
-2003-05-25 Abel Cheung <maddog@linux.org.hk>
-
- * he.po: Mark wrong entry as fuzzy (msgfmt check failed).
-
-2003-05-16 Danilo ©egan <dsegan@gmx.net>
-
- * sr.po, sr@Latn.po: Updated Serbian translation by Serbian
- team (Prevod.org).
-
-2003-05-10 Danilo Segan <dsegan@gmx.net>
-
- * sr.po, sr@Latn.po: Added Serbian translation by Serbian team
- (Prevod.org).
-
-2003-04-20 Abel Cheung <maddog@linux.org.hk>
-
- * zh_TW.po: Updated traditional Chinese translation.
-
-2003-03-18 Gil "Dolfin" Osher <dolfin@rpg.org.il>
-
- * he.po: Updated Hebrew translation.
-
-2003-03-13 Christian Rose <menthos@menthos.com>
-
- * ml.po: Added Malayalam translation by
- FSF-India <locale@gnu.org.in>.
-
-2003-03-10 Roozbeh Pournader <roozbeh@sharif.edu>
-
- * fa.po: Added Persian translation.
-
-2003-03-08 Gil "Dolfin" Osher <dolfin@rpg.org.il>
-
- * he.po: Added Hebrew translation.
-
-2003-03-06 Yuriy Syrota <rasta renome.rovno.ua>
-
- * uk.po: Updated Ukrainian translation.
-
-2003-02-25 T?µivo Leedj?€rv <toivo@linux.ee>
-
- * et.po: Added Estonian translation.
-
-2003-02-23 Abel Cheung <maddog@linux.org.hk>
-
- * zh_TW.po: Updated traditional Chinese translation.
-
-2003-02-22 Jordi Mallach <jordi@sindominio.net>
-
- * ca.po: Barbarism fixes from Jordi Mas.
-
-2003-02-22 Abel Cheung <maddog@linux.org.hk>
-
- * zh_TW.po: Updated traditional Chinese translation.
-
-2003-02-16 Mohammad DAMT <mdamt@bisnisweb.com>
-
- * id.po: Added Indonesian translation
-
-2003-02-09 Christian Rose <menthos@menthos.com>
-
- * sv.po: Some fixes for problems catched in translation review.
-
-2003-02-07 Miloslav Trmac <mitr@volny.cz>
-
- * cs.po: Fixed typos in Czech translation.
-
-2003-01-25 Alessio Frusciante <algol@firenze.linux.it>
-
- * it.po: Added Italian translation.
-
-2003-01-23 Marius Andreiana <marius galuna.ro>
-
- * ro.po: added ( thanks to Mi?Ÿu Moldovan )
-
-2003-01-22 Christian Rose <menthos@menthos.com>
-
- * mn.po: Added Mongolian translation by
- Sanlig Badral <badral@chinggis.com>.
-
-2003-01-20 Pablo Saratxaga <pablo@mandrakesoft.com>
-
- * vi.po: Updated Vietnamese file
-
-2003-01-18 Abel Cheung <maddog@linux.org.hk>
-
- * zh_TW.po: Updated traditional Chinese translation.
-
-2003-01-16 Daniel Yacob <locales@geez.org>
-
- * am.po: Added Amharic translation.
-
-2003-01-16 Pablo Saratxaga <pablo@mandrakesoft.com>
-
- * vi.po: Updated Vietnamese file
-
-2003-01-03 Andras Timar <timar@gnome.hu>
-
- * hu.po: Updated Hungarian translation.
-
-2002-12-14 Christophe Merlet <redfox@redfoxcenter.org>
-
- * fr.po: Updated French translation and converted to UTF-8.
-
-2002-11-25 Yanko Kaneti <yaneti@declera.com>
-
- * *.po: Convert all to UTF-8.
-
-2002-11-07 Simos Xenitellis <simos74@gmx.net>
-
- * el.po: Updated Greek translation.
-
-2002-11-04 Vincent van Adrighem <V.vanAdrighem@dirck.mine.nu>
-
- * nl.po: Jeroen van der Vegt updated Dutch translation.
-
-2002-11-03 Dmitry G. Mastrukov <dmitry@taurussoft.org>
-
- * be.po: Added Belarusian translation
- * from Belarusian team <i18n@infonet.by>.
-
-2002-09-26 Stanislav Brabec <sbrabec@suse.cz>
-
- * cs.po: Added Czech translation from Miloslav Trmac
- <mitr@volny.cz>.
-
-2002-09-19 Fatih Demir <kabalak@gtranslator.org>
-
- * tr.po: Committed updated Turkish translation by ?–mer.
-
-2002-09-02 Peteris Krisjanis <peteris.krisjanis@os.lv>
-
- * lv.po: Updated Latvian translation.
-
-2002-08-22 Andras Timar <timar@gnome.hu>
-
- * hu.po: Updated Hungarian translation.
-
-2002-08-20 Peteris Krisjanis <peteris.krisjanis@os.lv>
-
- * lv.po (added): Latvian translation.
-
-2002-08-07 Christian Neumair <christian-neumair@web.de>
-
- * de.po: Updated German translation.
-
-2002-07-13 Jordi Mallach <jordi@sindominio.net>
-
- * ca.po: Updated Catalan translation.
-
-2002-06-25 Yanko Kaneti <yaneti@declera.com>
-
- * bg.po (added): Bulgarian translation by
- Borislav Aleksandrov <B.Aleksandrov@cnsys.bg>.
-
-2002-06-22 Pablo Saratxaga <pablo@mandrakesoft.com>
-
- * ca.po: Updated Catalan file
-
-2002-06-17 Pablo Saratxaga <pablo@mandrakesoft.com>
-
- * vi.po: Updated Vietnamese file
-
-2002-06-13 Takayuki KUSANO <AE5T-KSN@asahi-net.or.jp>
-
- * ja.po: Updated Japanese translation.
-
-2002-06-10 Pablo Saratxaga <pablo@mandrakesoft.com>
-
- * vi.po: Updated Vientamese file
-
-2002-06-02 Germ??n Poo Caama?±o <gpoo@ubiobio.cl>
-
- * es.po: Updated Spanish translation from
- Juan Manuel Garc?­a Molina <juanma_gm@wanadoo.es>
-
-2002-06-02 Zbigniew Chyla <cyba@gnome.pl>
-
- * pl.po: Updated Polish translation by
- GNOME PL Team <translators@gnome.pl>.
-
-2002-06-02 Carlos Perell?³ Mar?­n <carlos@gnome-db.org>
-
- * es.po: Fixed.
-
-2002-05-28 Carlos Perello Marin <carlos@gnome-db.org>
-
- * LEEME.es: Updated.
-
-2002-05-28 Carlos Perello Marin <carlos@gnome-db.org>
-
- * es.po, es_ES.po: Updated so the contry dependent string is
- placed at es_ES.po for Spain and the US like number notation is
- stored at es.po. It's much more easy mantain the es_ES.po file than
- 4 or 5 files from American countries.
- * es_DO.pom, es_GT.po, es_HN.po, es_MX.po, es_PA.po, es_PE.po,
- es_SV.po: Removed, we only need to update es.po and es_ES.po now.
-
-2002-05-19 Vlad Harchev <hvv@hippo.ru>
-
- * ru.po: updated russian translation from Dmitry G. Mastrukov
- <dmitry@taurussoft.org>.
-
-2002-05-10 Valek Filippov <frob@df.ru>
-
- * ru.po: Updated russian translation from Dmitry Mastrukov.
-
-2002-05-08 Zbigniew Chyla <cyba@gnome.pl>
-
- * pl.po: Updated Polish translation by
- GNOME PL Team <translators@gnome.pl>.
-
-2002-05-08 Pablo Saratxaga <pablo@mandrakesoft.com>
-
- * vi.po: Added Vietnamese file
-
-2002-05-06 Duarte Loreto <happyguy_pt@hotmail.com>
-
- * pt.po: Updated Portuguese translation and converted to UTF-8.
-
-2002-05-05 Christian Rose <menthos@menthos.com>
-
- * sv.po: Updated Swedish translation.
-
-2002-04-25 Changwoo Ryu <cwryu@debian.org>
-
- * ko.po: Updated Korean translation.
-
-2002-04-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
-
- * sk.po: Updated Slovak translation by Marcel Telka <marcel@telka.sk>.
-
-2002-04-23 Kjartan Maraas <kmaraas@gnome.org>
-
- * no.po: Updated Norwegian (bokm?¥l) translation.
-
-2002-04-19 Ole Laursen <olau@hardworking.dk>
-
- * da.po: Updated Danish translation.
-
-2002-04-19 Pauli Virtanen <pauli.virtanen@hut.fi>
-
- * fi.po: Updated Finnish translation.
-
-2002-04-09 Valek Filippov <frob@df.ru>
-
- * ru.po: Updated russian translation from Dmitry Mastrukov.
-
-2002-04-02 Duarte Loreto <happyguy_pt@hotmail.com>
-
- * pt.po: Updated Portuguese translation.
-
-2002-03-31 Abel Cheung <maddog@linux.org.hk>
-
- * .cvsignore: Added file.
- * POTFILES.in: Added missing popt files.
-
-2002-03-25 Duarte Loreto <happyguy_pt@hotmail.com>
-
- * pt.po: Updated Portuguese translation.
-
-2002-03-23 Hasbullah Bin Pit <sebol@ikhlas.com>
-
- * ms.po: Updated Malay Translation.
-
-2002-03-15 Valek Filippov <frob@df.ru>
-
- * ru.po: Updated russian translation.
-
-2002-03-06 Kjartan Maraas <kmaraas@gnome.org>
-
- * no.po: Updated Norwegian (bokm?¥l) translation.
-
-2002-03-06 Germ??n Poo-Caama?±o <gpoo@ubiobio.cl>
-
- * es.po: Fixed spanish translation encoding.
-
-2002-03-06 Germ??n Poo-Caama?±o <gpoo@ubiobio.cl>
-
- * es.po: Update spanish translation.
-
-2002-03-05 Matthias Warkus <mawarkus@gnome.org>
-
- * de.po: Fixed German translation.
-
-2002-03-01 Zbigniew Chyla <cyba@gnome.pl>
-
- * pl.po: Updated Polish translation by
- GNOME PL Team <translators@gnome.pl>.
-
-2002-02-12 Kjartan Maraas <kmaraas@gnome.org>
-
- * no.po: Updated Norwegian (bokm?¥l) translation.
-
-2002-02-09 Abel Cheung <maddog@linux.org.hk>
-
- * zh_TW.po: Updated traditional Chinese translation.
-
-2002-02-05 Abel Cheung <maddog@linux.org.hk>
-
- * zh_CN.GB2312.po -> zh_CN.po: Convert to UTF-8 encoding.
-
-2002-01-27 Christian Rose <menthos@menthos.com>
-
- * README.tools, update.pl, update.sh: Removed, they are
- obsoleted by intltool.
- * sv.po: Updated and converted to UTF-8.
-
-2002-01-25 Roy-Magne Mo <rmo@sunnmore.net>
-
- * nn.po: Updated Norwegian (nynorsk) translation.
-
-2002-01-14 Hasbullah Bin Pit <sebol@ikhlas.com>
-
- * ms.po: Added Malay Translation.
-
-2001-11-26 Abel Cheung <maddog@linux.org.hk>
-
- * stamp-cat-id: Removed, and add it to .cvsignore.
-
-2001-10-30 Zbigniew Chyla <cyba@gnome.pl>
-
- * pl.po: Updated Polish translation by
- GNOME PL Team <translators@gnome.pl>.
-
-2001-10-17 Carlos Perell?³ Mar?­n <carlos@gnome-db.org>
-
- * pt.po: Added by Duarte Loreto <happyguy_pt@hotmail.com>
-
-2001-09-16 Abel Cheung <maddog@linux.org.hk>
-
- * zh_TW.po: Added traditoinal Chinese translation.
-
-2001-07-16 Kjartan Maraas <kmaraas@gnome.org>
-
- * nn.po: Added Norwegian (nynorsk) translation.
-
-2001-03-25 Fatih Demir <kabalak@gtranslator.org>
-
- * tr.po: %100'ification.
-
-2001-03-23 Fatih Demir <kabalak@gtranslator.org>
-
- * tr.po: Updated Turkish translation by G?¶rkem.
-
-2001-03-15 Valek Filippov <frob@df.ru>
-
- * ru.po: Updated russian translation.
-
-2001-03-09 Pablo Saratxaga <pablo@mandrakesoft.com>
-
- * az.po: converted to 8bit encoding as requested for Gnome 1.4
-
-2001-02-25 Simos Xenitellis <simos@hellug.gr>
-
- * el.po: Updated Greek translation.
-
-2001-02-23 Simos Xenitellis <simos@hellug.gr>
-
- * el.po: Some more strings.
-
-2001-02-19 Simos Xenitellis <simos@hellug.gr>
-
- * el.po: Update of Greek translation.
-
-2001-02-15 Christian Meyer <cm@ggtt.de>
-
- * de.po: Some minor changes.
-
-2001-02-14 Jarkko Ranta <jjranta@cc.joensuu.fi>
-
- * fi.po: Updated Finnish translation
-
-2001-02-14 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
-
- * sk.po: Updated Slovak translation from Marcel Telka <marcel@telka.sk>
-
-2001-02-13 Szabolcs Ban <shooby@gnome.hu>
-
- * hu.po: Updated Hungarian translation from Robert Vanyi
-
-2001-02-13 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
-
- * sk.po: Added Slovak translation from Marcel Telka <marcel@telka.sk>
-
-2001-02-13 Martin Baulig <baulig@suse.de>
-
- * fi.po: Reverted Jarkko Ranta's change; please do
- not commit any compressed files in future.
-
-2001-02-10 Christophe Merlet <christophe@merlet.net>
-
- * fr.po: Updated French translation.
-
-2001-02-09 Gustavo Maciel Dias Vieira <gdvieira@zaz.com.br>
-
- * pt_BR.po: Updated Brazilian Portuguese translation.
-
-2001-02-08 Jarkko Ranta <jjranta@cc.joensuu.fi>
-
- * fi.po: Updated Finnish translation by Pauli Virtanen
-
-2001-02-08 Valek Filippov <frob@df.ru>
-
- * ru.po: Updated russian translation.
-
-2001-02-05 Christophe Merlet <christophe@merlet.net>
-
- * fr.po: Updated French translation.
-
-2001-01-05 Pablo Saratxaga <pablo@mandrakesoft.com>
-
- * az.po: Added Azeri file
- * ja.po: fixed a syntax error (missing %c )
-
-2000-10-15 Yukihiro Nakai <nakai@gnome.gr.jp>
-
- * ja.po: Update Japanese translation.
-
-2000-10-11 Yukihiro Nakai <nakai@gnome.gr.jp>
-
- * ja.po: Update Japanese translation.
-
-2000-09-19 Christian Meyer <linux@chrisime.de>
-
- * de.po: Minor fix.
-
-2000-09-19 Christian Meyer <linux@chrisime.de>
-
- * de.po: Updated German translation.
-
-2000-09-10 Christian Meyer <linux@chrisime.de>
-
- * de.po: Updated German translation.
- * update.pl: Added update.pl from menesis.
- * README.tools: Added text file.
-
-2000-08-16 Kjartan Maraas <kmaraas@gnome.org>
-
- * no.po: Updated Norwegian translation.
-
-2000-06-25 Takayuki KUSANO <AE5T-KSN@asahi-net.or.jp>
-
- * ja.po: Updated Japanese translation.
-
-2000-05-26 Yuri Syrota <rasta@renome.rovno.ua>
-
- * uk.po: Updated Ukrainian translation.
-
-2000-05-20 Manuel de Vega Barreiro <barreiro@arrakis.es>
-
- * es.po: Updated Spanish translation.
-
-2000-05-18 Martin Norb?€ck <d95mback@dtek.chalmers.se>
-
- * sv.po: Updated Swedish translation.
-
-2000-05-18 Jesus Bravo Alvarez <jba@pobox.com>
-
- * gl.po: Updated Galician translation.
-
-2000-05-17 Kjartan Maraas <kmaraas@online.no>
-
- * no.po: Updated translation.
-
-2000-05-16 Kenneth Christiansen <kenneth@gnome.org>
-
- * POTFILES.in: New strings added
-
-2000-05-16 Kenneth Christiansen <kenneth@gnome.org>
-
- * da.po: New da translation
- * update.sh: New update.sh script
-
-2000-05-16 Jesus Bravo Alvarez <jba@pobox.com>
-
- * *.po: Added and merged ca, el, ga, pt_BR, ru, uk and zh_CN
- from HEAD branch
-
-2000-05-09 Andreas Hyden <a.hyden@cyberpoint.se>
-
- * update.sh: Added update.sh script.
-
-2000-04-01 Jesus Bravo Alvarez <jba@pobox.com>
-
- * gl.po: Updated Galician translation.
-
-1999-10-09 Jesus Bravo Alvarez <jba@pobox.com>
-
- * gl.po: Added Galician translation.
-
-1999-09-29 Kenneth ll?©phaane Christiansen <kenneth@ripen.dk>
-
- * da.po: Updated.
-
-1999-09-27 Zbigniew Chyla <chyla@alice.ci.pwr.wroc.pl>
-
- * pl.po: Added translation.
-
-1999-09-22 Kjartan Maraas <kmaraas@online.no>
-
- * da.po: Added Danish translation from Kenneth
- Christiansen <kenneth@ripen.dk>.
-
-1999-09-20 Vincent Renardias <vincent@ldsol.com>
-
- * fr.po: 100% complete. removed ~40 old translations.
-
-1999-09-17 Zbigniew Chyla <chyla@alice.ci.pwr.wroc.pl>
-
- * pl.po: Added translation.
-
-1999-09-16 Tomas Ogren <stric@ing.umu.se>
-
- * sv.po: Synced
-
-1999-07-11 Kjartan Maraas <kmaraas@online.no>
-
- * no.po: Updated translation.
-
-1999-07-11 Tomas Ogren <stric@ing.umu.se>
-
- * sv.po: New file
-
-1999-01-27 Kjartan Maraas <kmaraas@fib.hl.no>
-
- * no.po: Updated translation
-
-1998-12-22 Yukihiro Nakai <Nakai@TokyoNet.AD.JP>
-
- * ja.po: New file - added Japanese translation
-
-1998-10-11 Martin Baulig <martin@home-of-linux.org>
-
- * POTFILES.in: Removed `sysdeps/linux/procdata.c'.
-
-1998-10-11 Kjartan Maraas <kmaraas@fib.hl.no>
-
- * no.po: New file - added norwegian translation.
-
-1998-10-07 Martin Baulig <martin@home-of-linux.org>
-
- * de.po: New file - added german translation.
-
- * POTFILES.in: Regenerated.
-
-Sun, 31 May 1998 22:38:59 +0200 Vincent Renardias <vincent@waw.com>
-
- * fr.po: new file - ChangeLog isn't empty anymore _(;
-
-1998-05-21 Martin Baulig <martin@home-of-linux.org>
-
- * ChangeLog: new file - currently empty
diff --git a/po/LINGUAS b/po/LINGUAS
deleted file mode 100644
index aa5db783..00000000
--- a/po/LINGUAS
+++ /dev/null
@@ -1,77 +0,0 @@
-# please keep this list sorted alphabetically
-#
-am
-ar
-az
-be
-bg
-bn
-bn_IN
-bs
-ca
-cs
-cy
-da
-de
-dz
-el
-en_CA
-en_GB
-eo
-es
-et
-eu
-fa
-fi
-fr
-ga
-gl
-gu
-he
-hi
-hr
-hu
-id
-it
-ja
-ka
-ko
-ku
-ky
-lt
-lv
-mg
-mi
-mk
-ml
-mn
-ms
-nb
-ne
-nl
-nn
-oc
-or
-pa
-pl
-pt
-pt_BR
-ro
-ru
-rw
-sk
-sl
-sq
-sr
-sr@Latn
-sv
-ta
-te
-th
-tr
-uk
-vi
-xh
-zh_CN
-zh_HK
-zh_TW
diff --git a/po/POTFILES.in b/po/POTFILES.in
deleted file mode 100644
index d10cb992..00000000
--- a/po/POTFILES.in
+++ /dev/null
@@ -1,20 +0,0 @@
-# List of source files containing translatable strings.
-# Please keep this file sorted alphabetically.
-lib/close.c
-lib/command.c
-lib/init.c
-lib/open.c
-lib/parameter.c
-lib/read.c
-lib/read_data.c
-lib/sysdeps.c
-lib/write.c
-src/daemon/gnuserv.c
-src/daemon/io.c
-src/daemon/main.c
-src/daemon/server.c
-src/daemon/slave.c
-src/daemon/version.c
-sysdeps/linux/siglist.c
-sysdeps/osf1/siglist.c
-sysdeps/sun4/siglist.c
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
deleted file mode 100644
index 92b4a431..00000000
--- a/po/POTFILES.skip
+++ /dev/null
@@ -1,2 +0,0 @@
-examples/smp.c
-lib/lib.c
diff --git a/po/am.po b/po/am.po
deleted file mode 100644
index 6aa61cf0..00000000
--- a/po/am.po
+++ /dev/null
@@ -1,205 +0,0 @@
-# Translations into the Amharic Language.
-# Copyright (C) 2002 Free Software Foundation, Inc.
-# This file is distributed under the same license as the libgtop package.
-# Ge'ez Frontier Foundation <locales@geez.org>, 2002.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2003-01-16 08:39+EDT\n"
-"Last-Translator: Ge'ez Frontier Foundation <locales@geez.org>\n"
-"Language-Team: Amharic <locales@geez.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] ""
-msgstr[1] ""
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr ""
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] ""
-msgstr[1] ""
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr ""
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "አስተካክል"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr ""
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr ""
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr ""
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr ""
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr ""
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr ""
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "ውጣ"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "ውድቅ"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "የEMT ስህተት"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "አቋርጥ"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "የBus ስህተት"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "የተሰበረ መተላለፊያ"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "አቁም"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "ቀጥል"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr ""
diff --git a/po/ar.po b/po/ar.po
deleted file mode 100644
index 7a7bca2e..00000000
--- a/po/ar.po
+++ /dev/null
@@ -1,238 +0,0 @@
-# translation of libgtop.HEAD.ar.po to Arabic
-# This file is distributed under the same license as the PACKAGE package.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
-#
-# Arafat Medini <lumina@silverpen.de>, 2002,2003.
-# Isam Bayazidi <bayazidi@arabeyes.org>, 2002.
-# Abdulaziz Al-Arfaj <alarfaj0@yahoo.com>, 2004.
-# Khaled Hosny <khaledhosny@eglug.org>, 2006.
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD.ar\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-08-26 14:20-0700\n"
-"PO-Revision-Date: 2007-09-08 14:32-0000\n"
-"Last-Translator: Youssef Chahibi <chahibi@gmail.com>\n"
-"Language-Team: Arabic <support@arabeyes.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.11.4\n"
-"Plural-Forms: Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : n>=3 && n<=10 ? 2 : 3\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "اقرأ بايت واحدة"
-msgstr[1] "اقرأ بايتين"
-msgstr[2] "اقرأ %d بايتات"
-msgstr[3] "اقرأ %d بايت"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "اقرأ حجم البيانات"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "اقرأ بايت واحدة "
-msgstr[1] "اقرأ بايتين"
-msgstr[2] "اقرأ %lu بايتات"
-msgstr[3] "اقرأ %lu بايت"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "كتابة بايت واحدة"
-msgstr[1] "كتابة بايتين"
-msgstr[2] "كتابة %d بايتات"
-msgstr[3] "كتابة %d بايت"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "فعّل التنقيح"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "فعّل خرْج مسهِب"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "لا تشعّب إلى الخلفية"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "استُحضرت من inetd "
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "شغّل '%s --help' لرؤية قائمة كاملة لخيارات سطر الأوامر.\n"
-
-#: ../sysdeps/osf1/siglist.c:27
-#: ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "علق"
-
-#: ../sysdeps/osf1/siglist.c:28
-#: ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "قاطِع"
-
-#: ../sysdeps/osf1/siglist.c:29
-#: ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "اخرج"
-
-#: ../sysdeps/osf1/siglist.c:30
-#: ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "توجيه ممنوع"
-
-#: ../sysdeps/osf1/siglist.c:31
-#: ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "فخ رسم"
-
-#: ../sysdeps/osf1/siglist.c:32
-#: ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "اجهض"
-
-#: ../sysdeps/osf1/siglist.c:33
-#: ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "خطأ EMT"
-
-#: ../sysdeps/osf1/siglist.c:34
-#: ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "استثناء أرقام عشرية"
-
-#: ../sysdeps/osf1/siglist.c:35
-#: ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "اقتل"
-
-#: ../sysdeps/osf1/siglist.c:36
-#: ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "خطأ ناقل"
-
-#: ../sysdeps/osf1/siglist.c:37
-#: ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "انتهاك اﻻنقسام"
-
-#: ../sysdeps/osf1/siglist.c:38
-#: ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "متغيّر سيء لنداء النظام"
-
-#: ../sysdeps/osf1/siglist.c:39
-#: ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "أنبوب مكسور"
-
-#: ../sysdeps/osf1/siglist.c:40
-#: ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "ساعة منبهة"
-
-#: ../sysdeps/osf1/siglist.c:41
-#: ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "إنهاء"
-
-#: ../sysdeps/osf1/siglist.c:42
-#: ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "حالة عاجلة عند المقبس"
-
-#: ../sysdeps/osf1/siglist.c:43
-#: ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "قف"
-
-#: ../sysdeps/osf1/siglist.c:44
-#: ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "أوقف لوحة المفاتيح"
-
-#: ../sysdeps/osf1/siglist.c:45
-#: ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "تابع"
-
-#: ../sysdeps/osf1/siglist.c:46
-#: ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "تغيرت حالة الابن"
-
-#: ../sysdeps/osf1/siglist.c:47
-#: ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "قراءة من tty في الخلفية"
-
-#: ../sysdeps/osf1/siglist.c:48
-#: ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "كتابة لـ tty في الخلفية"
-
-#: ../sysdeps/osf1/siglist.c:49
-#: ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "دخْل/خرْج ممكن الآن"
-
-#: ../sysdeps/osf1/siglist.c:50
-#: ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "تجاوز حد الـمعالج"
-
-#: ../sysdeps/osf1/siglist.c:51
-#: ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "تجاوز حد حجم الملف"
-
-#: ../sysdeps/osf1/siglist.c:52
-#: ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "ساعة تنبيه تخيّلية"
-
-#: ../sysdeps/osf1/siglist.c:53
-#: ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "كتابة لمحة عن ساعة التنبيه"
-
-#: ../sysdeps/osf1/siglist.c:54
-#: ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "تغير حجم النافذة"
-
-#: ../sysdeps/osf1/siglist.c:55
-#: ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "طلب معلومات"
-
-#: ../sysdeps/osf1/siglist.c:56
-#: ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "اشارة 1 معرفة من طرف المستخدم"
-
-#: ../sysdeps/osf1/siglist.c:57
-#: ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "اشارة 2 معرفة من طرف المستخدم"
-
-#~ msgid "DEBUG"
-#~ msgstr "DEBUG"
-#~ msgid "VERBOSE"
-#~ msgstr "VERBOSE"
-#~ msgid "NO-DAEMON"
-#~ msgstr "NO-DAEMON"
-#~ msgid "INETD"
-#~ msgstr "INETD"
-
diff --git a/po/az.po b/po/az.po
deleted file mode 100644
index b4fc865d..00000000
--- a/po/az.po
+++ /dev/null
@@ -1,209 +0,0 @@
-# translation of libgtop.HEAD.az.po to Azerbaijani Turkish
-# Copyright (C) 2001, 2004 Free Software Foundation, Inc.
-# Vasif Ismailoglu MD <azerb_linux@hotmail.com>, 2001.
-# Mətin Əmirov <metin@karegen.com>, 2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD.az\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2004-01-12 19:43+0200\n"
-"Last-Translator: Mətin Əmirov <metin@karegen.com>\n"
-"Language-Team: Azerbaijani Turkish <translation-team-az@lists.sourceforge."
-"net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.0.2\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d bayt oxunub"
-msgstr[1] "%d bayt oxunub"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "mə'lumat böyüklüyünü oxu"
-
-#: lib/read_data.c:72
-#, fuzzy, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%d bayt oxunub"
-msgstr[1] "%d bayt oxunub"
-
-#: lib/write.c:52
-#, fuzzy, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d bayt yazıldı"
-msgstr[1] "%d bayt yaz"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Xəta yoxlamsını fəallaşdır"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEBUG"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Sözlü çıxış ver"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Arxaya qaçma"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DEAMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "inetd tərəfindən oyandırıldı"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"%s şərhində xəta oldü %s.\n"
-"'%s --help' əmrindən bütün əmr sətiri seçimləri üçün işə salın.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Hangup"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Interrupt"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Çıx"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Hökmsüz tə'limat"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "İzləmə yolu"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Ləğv Et"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "EMT xətası"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Floating-point exception"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Öldür"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Yol Xətası"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Seqmentlərə Bölmə Qaydası Pozulması"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Sistem çağırışı üçün xətalı arqument"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Qırıq boru"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Zəngli saat"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Qurtarma"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Qapıdakı tə'cili hal"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Dayandır"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Klaviaturadan dayandır"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Davam Et"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Törəmə halı dəyişdi"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "tty-dən arxa plan gedişatı mə'lumatı"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "tty-yə yazma əməliyyatı"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "I/O indi mümkündür"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "CPU sərhədi aşıldı"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Dosye böyüklüyü sərhədi aşıldı"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Virtual Zəngli Saat"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Profil Zəngli Saati"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Pəncərə Böyüklüyü Dəyişikliyi"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Mə'lumat sifarişi"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "İstifadəçi siqnal 1 təsvir etdi"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "İstifadəçi siqnal 2 təsvir etdi"
diff --git a/po/be.po b/po/be.po
deleted file mode 100644
index bc88c116..00000000
--- a/po/be.po
+++ /dev/null
@@ -1,213 +0,0 @@
-# Беларускі пераклад libgtop.HEAD.
-# Беларускі пераклад libgtop.HEAD
-# Copyright (C) 1999, 2004 Free Software Foundation, Inc.
-# Vital Khilko <dojlid@mova.org>, 2003.
-# Ales Nyakhaychyk <nab@mail.by>, 2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-07 13:38+0200\n"
-"PO-Revision-Date: 2004-03-13 14:28+0200\n"
-"Last-Translator: Ales Nyakhaychyk <nab@mail.by>\n"
-"Language-Team: Belarusian <i18n@mova.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
-"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
-"X-Generator: KBabel 1.0.2\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "прачытаны %d байт"
-msgstr[1] "прачытаны %d байты"
-msgstr[2] "прачытана %d байтаў"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "памер прачытаных даньняў"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "прачытаны %lu байт даных"
-msgstr[1] "прачытаны %lu байты даных"
-msgstr[2] "прачытана %lu байтаў даных"
-
-#: ../lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "запісаны %d байт"
-msgstr[1] "запісаны %d байты"
-msgstr[2] "запісана %d байтаў"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Уключыць адладку"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "АДЛАДКА"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Уключыць дэталёвы вывад"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "ПАДРАБЯЗНА"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Ня нараджаць у рэжыме тла"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "БЯЗ-ДЭМАНУ"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Выкліканы з inetd"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Памылка ў ключох %s: %s.\n"
-"Запусьціце '%s --help' каб убачыць поўны сьпіс даступных ключоў.\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "Разарваць"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "Перарваць"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "Выйсьці"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "Недапушчальная інструкцыя"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "Захоп трасыроўкі"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "Перарываньне"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "Памылка EMT"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "Выключэньне пункту, які плавае"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "Забіць"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "Памылка шыны"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "Парушэньне сэгментацыі"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "Кепскі аргумэнт у сыстэмным выкліку"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "Парушаны канал"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "Таймэр"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "Завяршэньне"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "Тэрміновыя умовы сокету"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "Спыніць"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "Спыненьне клявіятуры"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "Працягнуць"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "Стан нашчадку быў зьменены"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "Чытаньне ў тле з tty"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "Запіс у тле ў tty"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "Зараз магчымы ўвод/вывад"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "Перавышана мяжа ЦПУ"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "Перавышана мяжа памеру файлу"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "Віртуальны таймэр"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "Прафіляваны таймэр"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "Зьмена памераў акна"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "Запыт інфармацыі"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "Сыгнал карыстальніку 1"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "Сыгнал карыстальніку 2"
diff --git a/po/bg.po b/po/bg.po
deleted file mode 100644
index fe833e9d..00000000
--- a/po/bg.po
+++ /dev/null
@@ -1,190 +0,0 @@
-# Bulgarian translation for libgtop po-file
-# Copyright (C) 2002, 2004, 2005, 2007 Free Software Foundation, Inc.
-# Borislav Aleksandrov <B.Aleksandrov@cnsys.bg>, 2002.
-# Yanko Kaneti <yaneti@declera.com>, 2002.
-# Rostislav Raykov <zbrox@i-space.org>, 2004.
-# Vladimir Petkov <vpetkov@i-space.org>, 2005.
-# Alexander Shopov <ash@contact.bg>, 2007.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop trunk\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-09-18 10:43+0300\n"
-"PO-Revision-Date: 2007-09-18 10:43+0300\n"
-"Last-Translator: Alexander Shopov <ash@contact.bg>\n"
-"Language-Team: Bulgarian <dict@fsa-bg.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "прочетен %d байт"
-msgstr[1] "прочетени %d байта"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "прочетен е размерът на данните"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "прочетен %lu байт данни"
-msgstr[1] "прочетени %lu байта данни"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "записан %d байт"
-msgstr[1] "записани %d байта"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Включване на изчистване на грешките"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Включване на подробен изход"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Не се поражда процес във фонов режим"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Извикан от inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Изпълнете „%s --help“ за пълния списък от опции за командата.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Затваряне на връзката"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Прекъсване"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Напускане"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Недопустима инструкция"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Точка на прекъсване"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Прекъсване"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Грешка на емулацията"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Изключение с плаваща запетая"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Убиване"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Грешка в шината"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Надхвърляне на сегмента"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Грешен аргумент на системно извикване"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Нарушен програмен канал"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Алармен часовник"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Завършване"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Неотложно състояние на socket"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Стоп"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Стоп от клавиатурата"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Продължаване"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Промяна в състоянието на дъщерни процеси"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Фоново четене от терминал"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Фонов запис в терминал"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "Възможен е вх./изх."
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Превишен процесорен лимит"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Превишено ограничение за размер на файл"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Виртуален алармен часовник"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Засичан алармен часовник"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Променяне размера на прозорец"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Заявка за данни"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Сигнал на потребител 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Сигнал на потребител 2"
diff --git a/po/bn.po b/po/bn.po
deleted file mode 100644
index e6cc0367..00000000
--- a/po/bn.po
+++ /dev/null
@@ -1,1248 +0,0 @@
-# Bengali translation of libgtop.
-# Copyright (C) 2003 Free Software Foundation, Inc.
-# This file is distributed under the same license as the libgtop package.
-# Vat <vatzcar@yahoo.co.in>, 2003.
-# Mahay Alam Khan <makl10n@yahoo.com>, 2005.
-# Samia Niamatullah <mailsamia2001@yahoo.com>, 2005.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-10-01 06:02+0200\n"
-"PO-Revision-Date: 2005-10-01 01:05+0600\n"
-"Last-Translator: Mahay Alam Khan <makl10n@yahoo.com>\n"
-"Language-Team: Bengali <gnome-translation@bengalinux.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d বাইট পড়েছি"
-msgstr[1] "%d বাইট পড়েছি"
-
-# msgstr "%d বাইট পড়া গেছে" "ড়" এর জায়গায় "ডহ্হা" লেখা
-# #########################################
-# দয়া করে "গেছে" এর পরিবর্তে "গিয়েছে" লিখেন
-# #########################################
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "ডাটা সাইজ পড়ো"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu বাইট তথ্য পড়েছি"
-msgstr[1] "%lu বাইট তথ্য পড়েছি"
-
-# msgstr "%d বাইট তথ্য পড়া গেছে"
-# msgstr "%d বাইট তথ্য পড়া হোক"
-#: ../lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d বাইট লিখেছি"
-msgstr[1] "%d বাইট লিখেছি"
-
-# msgstr "%d বাইট লেখা হয়েছে"
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "ডিবাগিং চালু করুন"
-
-# msgstr "ডিবাগ প্রক্রিয়া সক্রিয় করা হোক"
-# ২ এটা কি বিবেচনা করা যায় না? অন্যান্য জায়গায় "ডিবাগ" লেখা হইছে, তাই এখানে অন্য রকম হয়ে যায়।
-# আপনার আপত্তি থাকলে অবশ্য কোন কথা নাই।
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "ডিবাগ"
-
-# msgstr "ডিবাগ"
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "বর্ণনাযুক্ত আউটপুট সক্রিয় করো"
-
-# msgstr "ভার্বোস (Verbose) ফলাফল চালু করুন"
-# msgstr "বর্ণনাযুক্ত ফলাফল দেখানো হোক"
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "বর্ণনাযুক্ত"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "পশ্চাতে ফর্ক করা হবে না"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "inetd এর থেকে নেওয়া হয়েছে"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"অপশন %s এ ভুল হয়েছে: %s।\n"
-"কমান্ড লাইন অপশনের সম্পূর্ণ তালিকা দেখার জন্য '%s --help' লিখুন।\n"
-
-# msgstr "সিস্টেম বুট হবার পর থেকে নিষ্ক্রিয় কাজে অতিবাহিত সময় (সেকেন্ডে)"
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "সংযোগ বিচ্ছিন্ন করুন"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "ইন্টেরাপ্ট"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "প্রস্থান"
-
-# msgstr "প্রস্থান"
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "অবৈধ ইনস্ট্রাকশন"
-
-# msgstr "অবৈধ ইনস্ট্রাকশন"
-# Instruction এখানে Technical term।
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "ট্রেস ট্র্যাপ"
-
-# ২ এটা আসলে ঠিক বোঝা যাচ্ছে না। তাই মনে হয় বাদ রাখাই ভাল
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "বাতিল করো"
-
-# msgstr "বন্ধ করা"
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "EMT সংক্রান্ত ভুল"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "দশমিক সংক্রান্ত ব্যতিক্রম"
-
-# msgstr "ভগ্নাংশ সংক্রান্ত ব্যতীক্রম" <-- বানান ভুল
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "কিল"
-
-# msgstr "শেষ করা (Kill)"
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "বাস সংক্রান্ত ভুল"
-
-# msgstr "বাস (Bus) সংক্রান্ত সমস্যা"
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "সেগমেন্ট সীমা লঙ্ঘন"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "সিস্টেম call এ ভুল মান প্রেরিত হয়েছে"
-
-# msgstr "সিস্টেম call এ ভুল মান প্রেরিত হয়েছে"
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "অচল পাইপ"
-
-# msgstr "অচল পাইপ"
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "এলার্ম ঘড়ি"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "সমাপন"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "সকেটে জরুরি অবস্থা"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "বন্ধ করুন"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "কিবোর্ড বন্ধ করুন"
-
-# ২ কীবোর্ড
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "চালিয়ে যান"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Child এর অবস্থা পরিবর্তিত হয়েছে"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "পশ্চাত থেকে tty পড়া"
-
-# ভাল হইলো না
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "পশ্চাত থেকে tty এ লেখা"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "এখন I/O সম্ভব"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "CPU সীমা ছাড়িয়ে গেছে"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "ফাইলের সাইজ সীমা ছাড়িয়ে গেছে"
-
-# msgstr "ফাইলের আয়তন সীমা ছাড়িয়ে গেছে"
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "কাল্পনিক এলার্ম ঘড়ি"
-
-# msgstr "কাল্পনিক এলার্ম ঘড়ি"
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "এলার্ম ঘড়ি প্রোফাইল করা হচ্ছে"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "উইন্ডোর সাইজ পরিবর্তন"
-
-# msgstr "উইন্ডো'র আয়তন পরিবর্তন"
-# Window এর বাংলা করার দরকার নাই
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "তথ্যের আবেদন"
-
-# msgstr "তথ্যের আবেদন"
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "ব্যবহারকারী নির্ধারিত সিগনাল ১"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "ব্যবহারকারী নির্ধারিত সিগনাল ২"
-
-#~ msgid "Ticks (%ld per second):"
-#~ msgstr "টিক (প্রতি সেকেন্ডে %ld সংখ্যক):"
-
-#~ msgid "Total"
-#~ msgstr "মোট"
-
-#~ msgid "User"
-#~ msgstr "ব্যবহারকারী"
-
-#~ msgid "Nice"
-#~ msgstr "নাইস"
-
-#~ msgid "Idle"
-#~ msgstr "নিস্ক্রিয়"
-
-# msgstr "নিষ্ক্রিয়"
-# ২ বানান ভুল করছেন; ভাল করে খেয়াল করেন
-#~ msgid ""
-#~ "CPU (0x%08lx): %12.0f %12.0f %12.0f %12.0f %12.0f\n"
-#~ "\n"
-#~ msgstr ""
-#~ "সিপিইউ (0x%08lx): %12.0f %12.0f %12.0f %12.0f %12.0f\n"
-#~ "\n"
-
-#~ msgid "CPU %3d (0x%08lx): %12lu %12lu %12lu %12lu %12lu\n"
-#~ msgstr "সিপিইউ %3d (0x%08lx): %12lu %12lu %12lu %12lu %12lu\n"
-
-#~ msgid "Percent:"
-#~ msgstr "শতাংশ:"
-
-#~ msgid "Total (%)"
-#~ msgstr "মোট (%)"
-
-#~ msgid "User (%)"
-#~ msgstr "ব্যবহারকারী (%)"
-
-#~ msgid "Nice (%)"
-#~ msgstr "সুন্দর (%)"
-
-#~ msgid "Idle (%)"
-#~ msgstr "নিস্ক্রিয় (%)"
-
-# বানান
-#~ msgid ""
-#~ "CPU (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
-#~ "\n"
-#~ msgstr ""
-#~ "সিপিইউ (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
-#~ "\n"
-
-#~ msgid "CPU %3d (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
-#~ msgstr "সিপিইউ %3d (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
-
-#~ msgid "Spin:"
-#~ msgstr "আবর্তন:"
-
-# msgstr "তথ্যের মাপ পড়া গেছে"
-# msgstr "তথ্যের মাপ পড়া হোক"
-# #############################################
-# #############################################
-# ২ আচ্ছা
-#, fuzzy
-#~ msgid "read data %d byte"
-#~ msgid_plural "read data %d bytes"
-#~ msgstr[0] "%d বাইট তথ্য পড়া গিয়েছে"
-#~ msgstr[1] "%d বাইট তথ্য পড়া গিয়েছে"
-
-# msgstr "সংক্ষিপ্ত ব্যবহার বিধি প্রদর্শন করা হোক"
-#~ msgid "Total CPU Time"
-#~ msgstr "মোট সিপিইউ সময়"
-
-#~ msgid "CPU Time in User Mode"
-#~ msgstr "ইউজার মোডে (User Mode) ব্যয়িত সিপিইউ সময়"
-
-# এটা বোঝা যাচ্ছে না ;-(
-# আরো ভাল কিছু মাথায় না আসলে এইটা Try করে:
-# msgstr "ইউজার মোডে (User Mode) ব্যয়িত সিপিইউ সময়"
-# User Mode এর বাংলা না করাই ভাল; কারণ এটা একটা Technical Term
-#~ msgid "CPU Time in User Mode (nice)"
-#~ msgstr "ইউজার মোডে (User Mode) ব্যয়িত সিপিইউ সময় (নাইস)"
-
-#~ msgid "CPU Time in System Mode"
-#~ msgstr "সিস্টেম মোডে ব্যয়িত সিপিইউ সময়"
-
-# msgstr "সিস্টেম মোডে ব্যয়িত সিপিইউ সময়"
-#~ msgid "CPU Time in the Idle Task"
-#~ msgstr "নিস্ক্রিয় অবস্থায় ব্যয়িত সিপিইউ সময়"
-
-# msgstr "কর্মহীন অবস্থায় ব্যয়িত সিপিইউ সময়"
-#~ msgid "Tick Frequency"
-#~ msgstr "টিক (Tick) কম্পাঙ্ক"
-
-#~ msgid "SMP Total CPU Time"
-#~ msgstr "এসএমপি মোট সিপিইউ সময়"
-
-# msgstr "মোট এসএমপি সিপিইউ সময়"
-#~ msgid "SMP CPU Time in User Mode"
-#~ msgstr "ইউজার মোডে ব্যয়িত এসএমপি সিপিইউ সময়"
-
-# msgstr "ইউজার মোডে ব্যয়িত এসএমপি সিপিইউ সময়"
-#~ msgid "SMP CPU Time in User Mode (nice)"
-#~ msgstr "ইউজার মোডে ব্যয়িত এসএমপি সিপিইউ সময় (নাইস)"
-
-# msgstr "ইউজার মোডে ব্যয়িত এসএমপি সিপিইউ সময় (নাইস)"
-#~ msgid "SMP CPU Time in System Mode"
-#~ msgstr "সিস্টেম মোডে ব্যয়িত এসএমপি সিপিইউ সময়"
-
-# msgstr "সিস্টেম মোডে ব্যয়িত এসএমপি সিপিইউ সময়"
-#~ msgid "SMP CPU Time in the Idle Task"
-#~ msgstr "নিস্ক্রিয় কাজের পেছনে ব্যয়িত এসএমপি সিপিইউ সময়"
-
-# msgstr "নিষ্ক্রিয় টাস্কের পেছনে ব্যয়িত এসএমপি সিপিইউ সময়"
-# Task একটা Technical term
-#~ msgid "Number of clock ticks since system boot"
-#~ msgstr "সিস্টেম বুট হওয়ার পর অতিক্রান্ত ঘড়ির টিক (Tick) সংখ্যা"
-
-#~ msgid "Number of clock ticks the system spent in user mode"
-#~ msgstr "ইউজার মোডে সিস্টেমটি যে সংখ্যক ঘড়ির টিক (Tick) অতিবাহিত করেছে"
-
-#~ msgid "Number of clock ticks the system spent in user mode (nice)"
-#~ msgstr "ইউজার মোডে সিস্টেমটি যে সংখ্যক ঘড়ির টিক (Tick) অতিবাহিত করেছে (নাইস)"
-
-#~ msgid "Number of clock ticks the system spent in system mode"
-#~ msgstr "সিস্টেম মোডে সিস্টেমটি যে সংখ্যক ঘড়ির টিক (Tick) অতিবাহিত করেছে"
-
-#~ msgid "Number of clock ticks the system spent in the idle task"
-#~ msgstr "নিস্ক্রিয় অবস্থায় সিস্টেমটি যে সংখ্যক ঘড়ির টিক (Tick) অতিবাহিত করেছে"
-
-#~ msgid "Tick frequency (default is 100)"
-#~ msgstr "টিক কম্পাঙ্ক (ডিফল্ট হল ১০০)"
-
-#~ msgid "Total blocks"
-#~ msgstr "মোট ব্লক"
-
-# msgstr "মোট ব্লক"
-#~ msgid "Free blocks"
-#~ msgstr "ফাঁকা ব্লক"
-
-# msgstr "ফাঁকা ব্লক"
-#~ msgid "Available blocks"
-#~ msgstr "ব্যবহারযোগ্য ব্লক"
-
-# msgstr "ব্যবহারযোগ্য ব্লক"
-#~ msgid "Total file nodes"
-#~ msgstr "মোট ফাইল নোড"
-
-# msgstr "মোট ফাইল নোড"
-#~ msgid "Free file nodes"
-#~ msgstr "ফাঁকা ফাইল নোড"
-
-# msgstr "সংকেত (Signal)"
-# msgstr "সিগন্যাল"
-# এখানে Signal একটা Technical Term
-#, fuzzy
-#~ msgid "Block size"
-#~ msgstr "আটকান আছে"
-
-# msgstr "ফাঁকা ফাইল নোড"
-#~ msgid "Free blocks available to the superuser"
-#~ msgstr "সুপারইউজারের ব্যবহারযোগ্য মুক্ত ব্লক"
-
-# msgstr "প্রধানব্যবহারকারীর ব্যবহারযোগ্য ফাঁকা ব্লক"
-# msgstr "সুপারইউজারের ব্যবহারযোগ্য ফাঁকা ব্লক" <-- এইটার ব্যাপারে নিশ্চিত না
-#~ msgid "Free blocks available to non-superusers"
-#~ msgstr "সাধারন ব্যবহারকারীদের ব্যবহারযোগ্য মুক্ত ব্লক"
-
-# আগেরটার মত
-#~ msgid "Load Average"
-#~ msgstr "গড় বোঝা"
-
-# msgstr "গড় বোঝা" <- "গড়" বানান "গড" কেন ?
-# msgstr "গড় কাজের পরিমাণ"
-#~ msgid "Running Tasks"
-#~ msgstr "চলন্ত কার্যসমূহ"
-
-# টাস্ক
-#~ msgid "Number of Tasks"
-#~ msgstr "কার্যসমূহের সংখ্যা"
-
-# msgstr "টাস্কের সংখ্যা"
-#~ msgid "Last PID"
-#~ msgstr "শেষ পিআইডি"
-
-#~ msgid ""
-#~ "Number of jobs running simultaneously averaged over 1, 5 and 15 minutes"
-#~ msgstr "গড়ে ১, ৫ ও ১৫ মিনিটের বেশি যুগপত্‍ চলা কাজগুলি সংখ্যায়"
-
-# msgstr "গড়ে ১,৫ ও ১৫ মিনিটের বেশি যুগপত্ চলা কাজগুলি সংখ্যায়"
-# msgstr "গড়ে ১, ৫ ও ১৫ মিনিটের বেশি যুগপত্‍ত্চচলন্ত কাজের সংখ্যা"
-# ইংরেজিটা বোঝা যাচ্ছে না বলে বাংলা নিয়েও Confusion আছে
-#~ msgid "Number of tasks currently running"
-#~ msgstr "বর্তমানে চলা কার্যসমূহের সংখ্যা"
-
-# msgstr "বর্তমানে চলন্ত টাস্কের সংখ্যা"
-# "সংখ্যায়" না, বরং "সংখ্যা"
-# "চলন্ত" কি ভাল শোনায় না ?
-#~ msgid "Total number of tasks"
-#~ msgstr "কার্যসমূহের মোট সংখ্যা"
-
-# msgstr "টাস্কের মোট সংখ্যা"
-#~ msgid "Total Memory"
-#~ msgstr "মোট মেমরি"
-
-# Memory-এর বাংলা করার দরকার নাই
-#~ msgid "Used Memory"
-#~ msgstr "ব্যবহৃত মেমরি"
-
-#~ msgid "Free Memory"
-#~ msgstr "মুক্ত মেমরি"
-
-# msgstr "মুক্ত মেমরি"
-# msgstr "ফাঁকা মেমরি"
-#~ msgid "Shared Memory"
-#~ msgstr "বন্টিত মেমরি"
-
-# msgstr "বন্টিত মেমরি"
-# "Shared=বন্টিত", এটা সুন্দর হইছে
-#~ msgid "Buffers"
-#~ msgstr "বাফার"
-
-#~ msgid "Cached"
-#~ msgstr "ক্যাশ-এ রক্ষিত"
-
-#~ msgid "Locked"
-#~ msgstr "আটকান (Locked)"
-
-# msgstr "লক'কৃত (Locked)"
-#~ msgid "Total physical memory in kB"
-#~ msgstr "প্রকৃত মেমরির পরিমাণ (কিলোবাইট)"
-
-# msgstr "প্রকৃত মেমরির পরিমাণ (কিলোবাইট)"
-#~ msgid "Used memory size in kB"
-#~ msgstr "ব্যবহৃত মেমরির পরিমাণ (কিলোবাইট)"
-
-# আগেরটার মত
-#~ msgid "Free memory size in kB"
-#~ msgstr "মুক্ত মেমরির পরিমাণ (কিলোবাইট)"
-
-#~ msgid "Shared memory size in kB"
-#~ msgstr "বন্টিত মেমরির পরিমাণ (কিলোবাইট)"
-
-#~ msgid "Size of buffers kB"
-#~ msgstr "বাফারের আকার (কিলোবাইট)"
-
-#~ msgid "Size of cached memory in kB"
-#~ msgstr "ক্যাশ মেমরির আকার (কিলোবাইট)"
-
-#~ msgid "Memory used from user processes in kB"
-#~ msgstr "ইউজার প্রসেসসমূহের ব্যবহৃত মেমরির পরিমাণ (কিলোবাইট)"
-
-# msgstr "ইউজার প্রসেসসমূহের ব্যবহৃত মেমরির পরিমাণ (কিলোবাইট)"
-#~ msgid "Memory in locked pages in kB"
-#~ msgstr "আটকান (Locked) পৃষ্ঠাতে রক্ষিত মেমেরির পরিমাণ (কিলোবাইট)"
-
-# msgstr "লক'কৃত (Locked) পেজ-এ রক্ষিত মেমেরির পরিমাণ (কিলোবাইট)"
-#~ msgid "Number of list elements"
-#~ msgstr "তালিকাস্থ উপাদানের সংখ্যা"
-
-# msgstr "তালিকার উপাদানের সংখ্যা"
-# msgstr "তালিকাস্থ উপাদানের সংখ্যা"
-#~ msgid "Total size of list"
-#~ msgstr "তালিকার মোট আয়তন"
-
-#~ msgid "Size of a single list element"
-#~ msgstr "একক তালিকা উপাদানের আয়তন"
-
-# ২ এইটা কি আরেকটু ভাল করে লেখা যায় ?
-#~ msgid "Size in kilobytes of message pool"
-#~ msgstr "সঞ্চিত বার্তাসমূহের (Message pool) আকার (কিলোবাইট)"
-
-# এইটা নিয়ে Confusion আছে
-#~ msgid "Number of entries in message map"
-#~ msgstr "বার্তা ম্যাপে লিপিভুক্ত বিষয়গুলি সংখ্যায়"
-
-# ২ "সংখ্যা"
-# ২ "গুলো" <- Sayamindu will ultimately change it and so it's better to change it now.
-#~ msgid "Max size of message"
-#~ msgstr "বার্তার সর্বাধিক আয়তন"
-
-#~ msgid "Default max size of queue"
-#~ msgstr "সারির সর্বাধিক ডিফল্ট আয়তন"
-
-# msgstr "সারির সাধারন সর্বাধিক আয়তন" <-- বানান ভুল আছে
-# বোঝা যাচ্ছে না
-# Default এর বাংলা করলে বোঝা যায় না; তাই না করাই ভাল
-#~ msgid "Max queues system wide"
-#~ msgstr "নিয়মানুগ সর্বাধিক সারি"
-
-#~ msgid "Message segment size"
-#~ msgstr "বার্তা-অংশের আয়তন"
-
-#~ msgid "Number of system message headers"
-#~ msgstr "সিস্টেম বার্তা শিরোনামে সংখ্যা"
-
-# ২ ভাল করে পড়ে দেখেন
-#~ msgid "Interface Flags"
-#~ msgstr "ইন্টারফেস পতাকা"
-
-# msgstr "ইন্টারফেস পতাকা"
-# msgstr "ইন্টারফেস ফ্ল্যাগ"
-#~ msgid "MTU"
-#~ msgstr "এমটিইউ"
-
-#, fuzzy
-#~ msgid "IPv4 Subnet"
-#~ msgstr "সাবনেট"
-
-#, fuzzy
-#~ msgid "IPv4 Address"
-#~ msgstr "ঠিকানা"
-
-#~ msgid "Packets In"
-#~ msgstr "আগত প্যাকেট"
-
-#~ msgid "Packets Out"
-#~ msgstr "বহিরাগত প্যাকেট"
-
-# msgstr "প্যাকেট গেছে"
-# msgstr "প্রেরিত প্যাকেট"
-# ২ "বহিরাগত" মানে "বাইরে থেকে আগত" - মনে হয় আপনি এটা বোঝাতে চাচ্ছেন না
-#~ msgid "Packets Total"
-#~ msgstr "মোট প্যাকেট সংখ্যা"
-
-#~ msgid "Bytes In"
-#~ msgstr "আগত বাইট"
-
-#~ msgid "Bytes Out"
-#~ msgstr "বহিরাগত বাইট"
-
-# msgstr "বাইট গেছে"
-#~ msgid "Bytes Total"
-#~ msgstr "মোট বাইট"
-
-#~ msgid "Errors In"
-#~ msgstr "আগত ভুল"
-
-#~ msgid "Errors Out"
-#~ msgstr "বহিরাগত ভুল"
-
-# আগের মত
-#~ msgid "Errors Total"
-#~ msgstr "মোট ভুল"
-
-#~ msgid "Collisions"
-#~ msgstr "সংঘর্ষ"
-
-#, fuzzy
-#~ msgid "IPv6 Address"
-#~ msgstr "ঠিকানা"
-
-#~ msgid "Maximum Transfer Unit"
-#~ msgstr "সর্বাধিক স্থানান্তরিত একক"
-
-# msgstr "সর্বাধিক একক স্থানান্তকরন"
-# msgstr "সর্বাধিক স্থানান্তরিত একক"
-#~ msgid "PPP State"
-#~ msgstr "পিপিপি অবস্থা"
-
-#~ msgid "Input bytes"
-#~ msgstr "আগত বাইট"
-
-# এটা ভাল হইছে; এটার মত "আগত প্যাকেট" লিখলে আরো ভাল হয়।
-#~ msgid "Output bytes"
-#~ msgstr "বহিরাগত বাইট"
-
-#~ msgid "Number of input bytes"
-#~ msgstr "আগত বাইট সংখ্যা"
-
-#~ msgid "Number of output bytes"
-#~ msgstr "বহিরাগত বাইট সংখ্যা"
-
-#~ msgid "Size"
-#~ msgstr "আয়তন"
-
-#~ msgid "Length in bytes of the returned string."
-#~ msgstr "ফিরিয়ে দেওয়া পংক্তির দৈর্ঘ্য (বাইটে)।"
-
-#~ msgid ""
-#~ "Kernel flags of the process.\n"
-#~ "\n"
-#~ "On Linux, currently every flag has the math bit set, because crt0.s "
-#~ "checks for math emulation, so this is not included in the output.\n"
-#~ "\n"
-#~ "This is probably a bug, as not every process is a compiled C program.\n"
-#~ "\n"
-#~ "The math bit should be a decimal 4, and the traced bit is decimal 10."
-#~ msgstr ""
-#~ "প্রসেসের কার্নেল পতাকা।\n"
-#~ "\n"
-#~ "লিনাক্সে, crt0.s এর গাণিতিক সমকক্ষতা (Math Emulation) পরীক্ষার জন্য বর্তমানে "
-#~ "প্রতিটি ফ্ল্যাগের গাণিতিক বিট থাকে এবং একারণে এটি ফলাফলের অন্তর্ভুক্ত নয়।\n"
-#~ "\n"
-#~ "প্রতিটি প্রসেস কম্পাইল করা সি প্রোগ্রাম নয় বলে এটি সম্ভবত একটি প্রোগ্রাম সংক্রান্ত "
-#~ "ত্রুটি (বাগ)।\n"
-#~ "\n"
-#~ "গাণিতিক বিট দশমিক ৪ এবং শনাক্তকৃত (Traced) বিটটি দশমিক ১০ হওয়া উচিত্‍।"
-
-# msgstr ""
-# "প্রসেসের কার্নেল ফ্ল্যাগ।\n"
-# "\n"
-# "লিনাক্সে, crt0.s গাণিতিক সমকক্ষতা (Math Emulation) পরীক্ষা বলে বর্তমানে প্রতিটি ফ্ল্যাগের গাণিতিক বিট সক্রিয় থাকে এবং "
-# "একারণে এটি ফলাফলের অন্তর্ভুক্ত নয়।\n"
-# "\n"
-# "প্রতিটি প্রোগ্রামই কম্পাইলকৃত সি প্রোগ্রাম নয় বলে এটি সম্ভবত একটি প্রোগ্রাম ত্রুটি (Bug)।\n"
-# "\n"
-# "গাণিতিক বিট দশমিক ৪ এবং শনাক্তকৃত (Traced) বিটটি দশমিক ১০ হওয়া উচিত্‍।"
-# *************** Process এর বাংলা করার দরকার নাই ***************************
-# ২ ৩য় লাইনে, "গাণিতিক বিট" কি অবস্থায় থাকে ?
-#~ msgid ""
-#~ "The number of minor faults the process has made, those which have not "
-#~ "required loading a memory page from disk."
-#~ msgstr ""
-#~ "প্রক্রিয়ার করা গৌণ ফল্ট-এর সংখ্যা, যেগুলির ডিস্ক থেকে মেমরি পাতা আনার প্রয়োজন "
-#~ "হয়নি।"
-
-# msgstr "প্রসেসটির গৌণ ফল্ট-এর সংখ্যা যার জন্য ডিস্ক থেকে মেমরি পেজ আনতে হয়নি।"
-# এখানে Fault একটা Technical Term। তবে সব জায়গায় না ;-)
-# ২ "প্রসেস" লিখলে খুবই ভাল হইতো
-#~ msgid ""
-#~ "The number of major faults the process has made, those which have "
-#~ "required loading a memory page from disk."
-#~ msgstr ""
-#~ "প্রক্রিয়ার করা মুখ্য ফল্ট-এর সংখ্যা, যেগুলির ডিস্ক থেকে মেমরি পাতা আনার প্রয়োজন "
-#~ "হয়েছে।"
-
-# msgstr "প্রসেসটির গৌণ ফল্ট-এর সংখ্যা যার জন্য ডিস্ক থেকে মেমরি পেজ আনতে হয়েছে।"
-#~ msgid ""
-#~ "The number of minor faults that the process and its children have made."
-#~ msgstr "প্রসেস ও তার child দের করা গৌণ ফল্ট-এর সংখ্যা"
-
-# ঠিক করেন
-#~ msgid ""
-#~ "The number of major faults that the process and its children have made."
-#~ msgstr "প্রসেস ও তার child দের করা মুখ্য ফল্ট-এর সংখ্যা"
-
-# ঠিক করেন
-#~ msgid ""
-#~ "The current value of esp (32-bit stack pointer), as found in the kernel "
-#~ "stack page for the process."
-#~ msgstr ""
-#~ "প্রসেসটির জন্য কার্নেলের স্ট্যাক পেজে প্রাপ্ত esp (৩২-বিট স্ট্যাক পয়েন্টার) এর "
-#~ "বর্তমান মান।"
-
-#~ msgid "The current EIP (32-bit instruction pointer)."
-#~ msgstr "EIP এর বর্তমান মান (৩২-বিট ইনস্ট্রাকশন পয়েন্টার)।"
-
-#~ msgid ""
-#~ "This is the \"channel\" in which the process is waiting. This is the "
-#~ "address of a system call, and can be looked up in a namelist if you need "
-#~ "a textual name. (If you have an up-to-date /etc/psdatabase, then try ps -"
-#~ "l to see the WCHAN field in action)"
-#~ msgstr ""
-#~ "এটি \"channel\" যেখানে প্রক্রিয়া অপেক্ষা করছে। এটি সিস্টেম কলের ঠিকানা,এবং এর "
-#~ "জন্য নথিতালিকা দেখা যেতে পারে যদি আপনার কোন পাঠযোগ্য নাম প্রয়োজন হয়। "
-#~ "(যদিআপনার সাম্প্রতিক /etc/psdatabase থাকে, তাহলে কাজের WCHAN এলাকায় দেখার "
-#~ "জন্য ps -l চেষ্টা করুন)"
-
-# ২ এটি সেই চ্যানেল যেখানে প্রসেসটি অপেক্ষা করছে...............
-#~ msgid "This is the textual name of the `nwchan' field."
-#~ msgstr "এটি 'nwchan' ক্ষেত্রের (Field) পাঠযোগ্য নাম"
-
-# msgstr "এটি 'nwchan' ক্ষেত্রের (Field) পাঠযোগ্য নাম"
-#~ msgid "Virtual"
-#~ msgstr "ভার্চুয়াল"
-
-# msgstr "ভার্চুয়াল"
-# এখানে Virtual একটা Technical term। "ভার্চুয়াল মেমরি" থেকে আসছে।
-#~ msgid "Resident"
-#~ msgstr "রেসিডেন্ট"
-
-# msgstr "রেসিডেন্ট"
-# আগেরটার মতই
-#~ msgid "Share"
-#~ msgstr "বন্টন"
-
-#~ msgid "Total # of pages of memory"
-#~ msgstr "মেমরির মোট পাতার সংখ্যা"
-
-# মেমরি
-#~ msgid "Number of pages of virtual memory"
-#~ msgstr "ভার্চুয়াল মেমরির মোট পাতার সংখ্যা"
-
-#~ msgid "Number of pages of shared (mmap'd) memory"
-#~ msgstr "বন্টিত মেমরির (mmap'd) মোট পাতার সংখ্যা"
-
-# "শেয়ার্‌ড মেমরি" বা "বন্টিত মেমরি"। বাংলা না করাই মনে হয় ভাল।
-#~ msgid ""
-#~ "Number of pages the process has in real memory, minus 3 for "
-#~ "administrative purposes. This is just the pages which count towards text, "
-#~ "data, or stack space. This does not include pages which have not been "
-#~ "demand-loaded in, or which are swapped out."
-#~ msgstr ""
-#~ "বাস্তব মেমরির মোট পাতার সংখ্যা, পরিচালনার জন্য ৩ বাদ দিয়ে। এটি কেবল একটি "
-#~ "পাতাযেটা অক্ষর, তথ্য, অথবা স্ট্যাকের জায়গা গননা করে। এটিতে সেই সমস্ত পাতা "
-#~ "অম্তর্ভুক্ত নয় যেগুলি,চাহিদায়-নেওয়া (demand-loaded) নয় অথবা সরিয়ে ফেলা হয়েছে।"
-
-# ২ "গণনা", "অন্তর্ভুক্ত"
-# ২ আগেরবার এটা কোন কারণে আমার চোখে পরে নাই ;-(
-#~ msgid ""
-#~ "Current limit in bytes on the rss of the process (usually 2,147,483,647)."
-#~ msgstr "বাইটে প্রকাশিত প্রসেসের বর্তমান rss সীমা (সাধারণত ২,১৪৭,৪৮৩,৬৪৭)।"
-
-#~ msgid "Dirty Size"
-#~ msgstr "অপরিচ্ছন্ন (Dirty) আয়তন"
-
-# msgstr "অপরিচ্ছন্ন (Dirty) আয়তন"
-#~ msgid "Start_Code"
-#~ msgstr "কোড_আরম্ভ"
-
-#~ msgid "End_Code"
-#~ msgstr "কোড_শেষ"
-
-#~ msgid "Start_Stack"
-#~ msgstr "স্ট্যাক_আরম্ভ"
-
-#~ msgid "Total size of dirty pages"
-#~ msgstr "অপরিচ্ছন্ন (Dirty) পেজ-এর মোট আয়তন"
-
-# msgstr "অপরিচ্ছন্ন (Dirty) পেজ-এর মোট আয়তন"
-#~ msgid "Address of beginning of code segment"
-#~ msgstr "কোড সেগমেন্ট আরম্ভের ঠিকানা"
-
-# msgstr "কোড সেগমেন্ট আরম্ভের ঠিকানা"
-#~ msgid "Address of end of code segment"
-#~ msgstr "কোড সেগমেন্ট শেষের ঠিকানা"
-
-# msgstr "কোড সেগমেন্ট শেষ হওয়ার ঠিকানা"
-#~ msgid "Address of the bottom of stack segment"
-#~ msgstr "স্ট্যাক সেগমেন্ট-এর তলদেশের ঠিকানা"
-
-# msgstr "কোড অংশের নিচের ঠিকানা" <-- স্ট্যাক নাই
-# সেগমেন্ট
-#~ msgid "Signal"
-#~ msgstr "সংকেত (Signal)"
-
-# msgstr "সংকেত (Signal)"
-# msgstr "সিগন্যাল"
-# এখানে Signal একটা Technical Term
-#~ msgid "Blocked"
-#~ msgstr "আটকান আছে"
-
-#~ msgid "Mask of pending signals"
-#~ msgstr "অমীমাংসিত সংকেতের (Signal) মুখোশ"
-
-# msgstr "অমীমাংসিত সিগন্যাল-এর মুখোশ"
-#~ msgid "Mask of blocked signals"
-#~ msgstr "আটকে রাখা সংকেতের (Signal) মুখোশ"
-
-# সিগন্যাল
-# ২ msgstr "সংকেত আটকে রাখার (Signal) মুখোশ"
-#~ msgid "Mask of ignored signals"
-#~ msgstr "প্রত্যাখ্যাত সংকেতের (Signal) মুখোশ"
-
-# সিগন্যাল
-#~ msgid "Mask of caught signals"
-#~ msgstr "গ্রহণ করা সংকেতের মুখোশ"
-
-#~ msgid "State"
-#~ msgstr "অবস্থা"
-
-#~ msgid "UID"
-#~ msgstr "ইউআইডি (UID)"
-
-#~ msgid "GID"
-#~ msgstr "জিআইডি (GID)"
-
-#, fuzzy
-#~ msgid "RGid"
-#~ msgstr "জিআইডি (Gid)"
-
-# msgstr "প্রসেসটি কার্নেল মোডে যে পরিমাণ এসএমপি সিপিইউ সময় ব্যয় করেছে"
-#, fuzzy
-#~ msgid "RUid"
-#~ msgstr "ইউআইডি (Uid)"
-
-#~ msgid "Basename of executable file in call to exec()"
-#~ msgstr "exec() ডাকা এক্সিকিউটেবল ফাইলের মূল নাম"
-
-# ইংরেজি স্পষ্ট না; exec()'কে এক্সিকিউটেবল ডাকতেছে নাকি এক্সিকিউটেবল'কে exec() ডাকতেছে ?
-#~ msgid "Single-Char code for process state (S=sleeping)"
-#~ msgstr "একটি অক্ষর দিয়ে প্রসেসের অবস্থা প্রকাশের সংকেত (Code) (S=নিস্ক্রিয়)"
-
-# msgstr "একটি অক্ষর দিয়ে প্রসেসের অবস্থা প্রকাশের সংকেত (Code) (S=নিষ্ক্রিয়)"
-#~ msgid "UID of process"
-#~ msgstr "প্রসেসের UID"
-
-# প্রসেস
-#~ msgid "GID of process"
-#~ msgstr "প্রসেসের GID"
-
-# msgstr "একটি অক্ষর দিয়ে প্রসেসের অবস্থা প্রকাশের সংকেত (Code) (S=নিষ্ক্রিয়)"
-#, fuzzy
-#~ msgid "Real UID of process"
-#~ msgstr "প্রসেসের UID"
-
-# প্রসেস
-#, fuzzy
-#~ msgid "Real GID of process"
-#~ msgstr "প্রসেসের GID"
-
-#, fuzzy
-#~ msgid "Processor"
-#~ msgstr "প্রসেস আইডি"
-
-#~ msgid "Start_Time"
-#~ msgstr "আরম্ভের_সময়"
-
-#~ msgid "TimeOut"
-#~ msgstr "সময় শেষ"
-
-#~ msgid "Frequency"
-#~ msgstr "কম্পাঙ্ক"
-
-#~ msgid "Start time of process in seconds since the epoch"
-#~ msgstr "epoch এর পর থেকে প্রসেস শুরুর সময় (সেকেন্ডে)"
-
-#~ msgid "Real time accumulated by process (should be utime + stime)"
-#~ msgstr "যে প্রকৃত সময় যাবত্‍ প্রসেসটি চলছে (utime+stime হওয়া উচিত্‍)"
-
-# msgstr "যে প্রকৃত সময় যাবত্‍ প্রসেসটি চলছে (utime+stime হওয়া উচিত্‍)"
-#~ msgid "user-mode CPU time accumulated by process"
-#~ msgstr "প্রসেসটি ইউজার মোডে যে পরিমাণ সিপিইউ সময় ব্যয় করেছে"
-
-#~ msgid "kernel-mode CPU time accumulated by process"
-#~ msgstr "প্রসেসটি কার্নেল মোডে যে পরিমাণ সিপিইউ সময় ব্যয় করেছে"
-
-# msgstr "প্রসেসটি কার্নেল মোডে যে পরিমাণ সিপিইউ সময় ব্যয় করেছে"
-#~ msgid "cumulative utime of process and reaped children"
-#~ msgstr "প্রসেসের ক্রমবর্ধিত utime এবং অর্জিত children"
-
-# আরেকটু সহজ করা যায় না ? ;-)
-#~ msgid "cumulative stime of process and reaped children"
-#~ msgstr "প্রmsmsj ক্রমবর্ধিত stime এবং অর্জিত children"
-
-# ২ এইটা কিরকম হইলো ???
-#~ msgid "The time (in jiffies) of the process's next timeout"
-#~ msgstr "পরবর্তীতে যখন প্রসেসটির সময় শেষ হয়ে যাবে (jiffies এ)"
-
-# msgstr "পরবর্তীতে যখন প্রসেসটির সময় শেষ হয়ে যাবে (jiffies এ)"
-#~ msgid ""
-#~ "The time (in jiffies) before the next SIGALRM is sent to the process due "
-#~ "to an interval timer."
-#~ msgstr ""
-#~ "ইন্টারভেল টাইমারের কারণে আর যে সময় পর প্রসেসটির নিকট SIGALRM প্রেরণ করা হবে। "
-#~ "(jiffies এ)"
-
-#~ msgid "Tick frequency"
-#~ msgstr "টিক কম্পাঙ্ক"
-
-#~ msgid "SMP user-mode CPU time accumulated by process"
-#~ msgstr "প্রসেসটি ইউজার মোডে যে পরিমাণ এসএমপি সিপিইউ সময় ব্যয় করেছে"
-
-#~ msgid "SMP kernel-mode CPU time accumulated by process"
-#~ msgstr "প্রসেসটি কার্নেল মোডে যে পরিমাণ এসএমপি সিপিইউ সময় ব্যয় করেছে"
-
-# msgstr "প্রসেসটি কার্নেল মোডে যে পরিমাণ এসএমপি সিপিইউ সময় ব্যয় করেছে"
-#~ msgid "Uid"
-#~ msgstr "ইউআইডি (Uid)"
-
-#~ msgid "EUid"
-#~ msgstr "ইইউআইডি (EUid)"
-
-#~ msgid "Gid"
-#~ msgstr "জিআইডি (Gid)"
-
-# ২ ( এর আগে একটা Space দিয়ে দিছি
-#~ msgid "EGid"
-#~ msgstr "ইজিআইডি (EGid)"
-
-# msgstr "প্রসেসটি কার্নেল মোডে যে পরিমাণ এসএমপি সিপিইউ সময় ব্যয় করেছে"
-#, fuzzy
-#~ msgid "SUid"
-#~ msgstr "ইউআইডি (Uid)"
-
-#, fuzzy
-#~ msgid "SGid"
-#~ msgstr "জিআইডি (Gid)"
-
-# msgstr "প্রসেসটি কার্নেল মোডে যে পরিমাণ এসএমপি সিপিইউ সময় ব্যয় করেছে"
-#, fuzzy
-#~ msgid "FSUid"
-#~ msgstr "ইউআইডি (Uid)"
-
-#, fuzzy
-#~ msgid "FSGid"
-#~ msgstr "জিআইডি (Gid)"
-
-#~ msgid "Pid"
-#~ msgstr "পিআইডি (Pid)"
-
-#~ msgid "PPid"
-#~ msgstr "পিপিআইডি (PPid)"
-
-#~ msgid "PGrp"
-#~ msgstr "পিজিআরপি (PGrp)"
-
-#~ msgid "Session"
-#~ msgstr "অধিবেশন (session)"
-
-# msgstr "সেশন"
-#~ msgid "Tty"
-#~ msgstr "টিটিআই (Tty)"
-
-# ২ টিটিওয়াই - মনে হয় আমারই ভুল ;-(
-#~ msgid "TPGid"
-#~ msgstr "টিপিজিআইডি (TiGid)"
-
-#~ msgid "Priority"
-#~ msgstr "অগ্রাধিকার"
-
-#, fuzzy
-#~ msgid "NGroups"
-#~ msgstr "গ্রুপের আইডি"
-
-#, fuzzy
-#~ msgid "Groups"
-#~ msgstr "গ্রুপের আইডি"
-
-#~ msgid "User ID"
-#~ msgstr "ব্যবহারকারীর আইডি"
-
-# msgstr "ব্যবহারকারীর আইডি"
-# অন্যান্য ফাইলে আইডি-ই লেখা হইছে
-#~ msgid "Effective User ID"
-#~ msgstr "সক্রিয় ব্যবহারকারীর আইডি"
-
-#~ msgid "Group ID"
-#~ msgstr "গ্রুপের আইডি"
-
-# msgstr "গ্রুপ পরিচয়"
-#~ msgid "Effective Group ID"
-#~ msgstr "সক্রিয় গ্রুপের আইডি"
-
-#, fuzzy
-#~ msgid "Set User ID"
-#~ msgstr "ব্যবহারকারীর আইডি"
-
-#, fuzzy
-#~ msgid "Set Group ID"
-#~ msgstr "গ্রুপের আইডি"
-
-#, fuzzy
-#~ msgid "Filesystem User ID"
-#~ msgstr "ফাইল সিস্টেমের ব্যবহার"
-
-# msgstr "গ্রুপ পরিচয়"
-#, fuzzy
-#~ msgid "Filesystem Group ID"
-#~ msgstr "সক্রিয় গ্রুপের আইডি"
-
-#~ msgid "Process ID"
-#~ msgstr "প্রসেস আইডি"
-
-# msgstr "প্রক্রিয়াকরন পরিচয়" <-- "করণ"
-# msgstr "প্রসেস আইডি"
-#~ msgid "PID of parent process"
-#~ msgstr "মূল (Parent) প্রসেসের পিআইডি"
-
-# msgstr "মূল (Parent) প্রসেসের পিআইডি"
-#~ msgid "Process group ID"
-#~ msgstr "প্রসেস গ্রুপ আইডি"
-
-# msgstr "গোষ্ঠি প্রক্রিয়াকরন পরিচয়"
-# msgstr "প্রসেস গ্রুপ আইডি"
-#~ msgid "Session ID"
-#~ msgstr "অধিবেশন (session) আইডি"
-
-# msgstr "সেশন আইডি"
-#~ msgid "Full device number of controlling terminal"
-#~ msgstr "নিয়ন্ত্রণকারী প্রান্তের সমস্ত যন্ত্রের সংখ্যা"
-
-# msgstr "নিয়ন্ত্রন প্রান্তের সমস্ত যন্ত্রের সংখ্যা" <-- "নিয়ন্ত্রণ" বানান ভুল আছে
-# msgstr "নিয়ন্ত্রণকারী টার্মিনালের পূর্ণ ডিভাইস নম্বর"
-# ২ এটা কি ভাল করে খেয়াল করে ঠিক করছেন ?
-#~ msgid "Terminal process group ID"
-#~ msgstr "প্রান্তিক প্রসেসের গ্রুপ আইডি"
-
-# msgstr "টার্মিনাল প্রসেসের গ্রুপ আইডি"
-#~ msgid "Kernel scheduling priority"
-#~ msgstr "কার্নেল শিডিউলিং (scheduling) এর অগ্রাধিকার"
-
-# msgstr "কার্নেল শিডিউলিং (scheduling) এর অগ্রাধিকার"
-# scheduling একটা দুর্ধর্ষ Technical Term।
-#~ msgid "Standard unix nice level of process"
-#~ msgstr "প্রসেসের সাধারণ ইউনিক্স নাইস স্তর"
-
-# msgstr "নিয়ন্ত্রন প্রান্তের সমস্ত যন্ত্রের সংখ্যা" <-- "নিয়ন্ত্রণ" বানান ভুল আছে
-# msgstr "নিয়ন্ত্রণকারী টার্মিনালের পূর্ণ ডিভাইস নম্বর"
-# ২ এটা কি ভাল করে খেয়াল করে ঠিক করছেন ?
-#, fuzzy
-#~ msgid "Number of additional process groups"
-#~ msgstr "প্রান্তিক প্রসেসের গ্রুপ আইডি"
-
-# msgstr "নিয়ন্ত্রন প্রান্তের সমস্ত যন্ত্রের সংখ্যা" <-- "নিয়ন্ত্রণ" বানান ভুল আছে
-# msgstr "নিয়ন্ত্রণকারী টার্মিনালের পূর্ণ ডিভাইস নম্বর"
-# ২ এটা কি ভাল করে খেয়াল করে ঠিক করছেন ?
-#, fuzzy
-#~ msgid "Array of additional process groups"
-#~ msgstr "প্রান্তিক প্রসেসের গ্রুপ আইডি"
-
-# msgstr "সাধারন ইউনিক্স সুন্দর স্তরের প্রক্রিয়া"
-# msgstr "প্রসেসের প্রমিত ইউনিক্স নাইস স্তর"
-# নাইস
-#~ msgid "Number of entries in semaphore map"
-#~ msgstr "সিমাফোর (semaphore) ম্যাপে অন্তর্ভুক্তির (Entry) সংখ্যা"
-
-# msgstr "সিমাফোর (semaphore) ম্যাপে অন্তর্ভুক্তির (Entry) সংখ্যা"
-#~ msgid "Max number of arrays"
-#~ msgstr "সর্বাধিক array এর সংখ্যা"
-
-#~ msgid "Max semaphores system wide"
-#~ msgstr "নিয়মানুগ সর্বাধিক semaphore গুলো"
-
-# msgstr "নিয়মানুগ সর্বাধিক semaphore গুলি"
-# msgstr "সিস্টেমে ব্যবহারযোগ্য সর্বাধিক সিমাফোর (Semaphor)"
-#~ msgid "Number of undo structures system wide"
-#~ msgstr "নিয়মানুগ শেষ পরিবর্তন বাতিলের গঠন সংখ্যা"
-
-#~ msgid "Max semaphores per array"
-#~ msgstr "গুচ্ছ (Array) প্রতি সর্বাধিক সিমাফোর (Semaphore)"
-
-# msgstr "গুচ্ছ (Array) প্রতি সর্বাধিক সিমাফোর (Semaphore)"
-#~ msgid "Max ops per semop call"
-#~ msgstr "semop call প্রতি সর্বাধিক ops"
-
-#~ msgid "Max number of undo entries per process"
-#~ msgstr "প্রসেস প্রতি শেষ পরিবর্তন বাতিল (Undo) অন্তর্ভুক্তির (Entry) সর্বাধিক সংখ্যা"
-
-# msgstr "প্রসেস প্রতি শেষ পরিবর্তন বাতিল (Undo) অন্তর্ভুক্তির (Entry) সর্বাধিক সংখ্যা"
-#~ msgid "sizeof struct sem_undo"
-#~ msgstr "struct sem_undo এর আয়তন"
-
-#~ msgid "Semaphore max value"
-#~ msgstr "সিমাফোর (Semaphor) এর সর্বাধিক মান"
-
-# msgstr "সিমাফোর (Semaphor) এর সর্বাধিক মান"
-#~ msgid "Adjust on exit max value"
-#~ msgstr "বাহির হবার সময় সর্বাধিক মান বিন্যস্ত কর"
-
-# এটার বাংলা বা ইংরেজি কোনটাই বোঝা যাচ্ছে না
-#~ msgid "Max segment size"
-#~ msgstr "সেগমেন্টের সর্বোচ্চ আকার"
-
-# msgstr "সেগমেন্টের সর্বোচ্চ আকার"
-#~ msgid "Min segment size"
-#~ msgstr "সেগমেন্টের ন্যুনতম আকার"
-
-# আগেরটার মতই
-#~ msgid "Max number of segments"
-#~ msgstr "সেগমেন্টের সর্বোচ্চ সংখ্যা"
-
-# ঐ
-#~ msgid "Max shared segments per process"
-#~ msgstr "প্রসেস প্রতি সর্বাধিক বন্টিত সেগমেন্ট"
-
-# msgstr "প্রসেস প্রতি সর্বাধিক বন্টিত (Shared) সেগমেন্ট"
-#~ msgid "Max total shared memory"
-#~ msgstr "সর্বাধিক মোট বন্টিত মেমরি"
-
-# মেমরি
-#~ msgid "Total Swap Space"
-#~ msgstr "মোট সোয়াপ (Swap) জায়গা"
-
-# msgstr "মোট সোয়াপ (Swap)"
-#~ msgid "Used Swap Space"
-#~ msgstr "ব্যবহৃত সোয়াপ (Swap) জায়গা"
-
-# ঐ
-#~ msgid "Free Swap Space"
-#~ msgstr "মুক্ত সোয়াপ (Swap) জায়গা"
-
-#~ msgid "Page In"
-#~ msgstr "আগত পাতা"
-
-#~ msgid "Page Out"
-#~ msgstr "পাতা গেছে"
-
-# msgstr "পাতা (Page) গিয়েছে"
-# ২ এটা মনে হয় খেয়াল করেন নাই
-#~ msgid ""
-#~ "Total number of swap pages that have been brought in since system boot"
-#~ msgstr "সিস্টেম চালু হবার পর থেকে মোট যে সংখ্যক সোয়াপ (Swap) পাতা আনা হয়েছে"
-
-# msgstr "সিস্টেম চালু হবার পর থেকে মোট যে সংখ্যক সোয়াপ (Swap) পাতা (Page) আনা হয়েছে"
-#~ msgid ""
-#~ "Total number of swap pages that have been brought out since system boot"
-#~ msgstr "সিস্টেম চালু হবার পর থেকে মোট যে সংখ্যক সোয়াপ পাতা আনা হয়েছে"
-
-# আগেরটার মতই
-#~ msgid "Server Features"
-#~ msgstr "সার্ভারের বৈশিষ্ট্যগুলো"
-
-# msgstr "সার্ভারের বৈশিষ্ট্যগুলি" <-- "গুলি" ভাল শোনায় না
-# msgstr "সার্ভারের বৈশিষ্ট্যাবলী"
-#~ msgid "CPU Usage"
-#~ msgstr "সিপিইউ-এর ব্যবহার"
-
-#~ msgid "Memory Usage"
-#~ msgstr "মেমরির ব্যবহার"
-
-# মেমরি
-#~ msgid "Swap Usage"
-#~ msgstr "সোয়াপের ব্যবহার"
-
-#~ msgid "System Uptime"
-#~ msgstr "সিস্টেম চালু থাকার সময়"
-
-#~ msgid "Load Averange"
-#~ msgstr "গড় ভার"
-
-# msgstr "গড় ভার" <- "গড"
-# msgstr "গড় কাজের মাত্রা"
-#~ msgid "Shared Memory Limits"
-#~ msgstr "বন্টিত মেমরি সীমা"
-
-# মেমরি
-#~ msgid "Message Queue Limits"
-#~ msgstr "বার্তা সারির (Message Queue) সীমা"
-
-# msgstr "বার্তা সারির (Message Queue) ধারণক্ষমতা"
-#~ msgid "Semaphore Set Limits"
-#~ msgstr "Semaphore Set এর সীমা"
-
-#~ msgid "List of running Processes"
-#~ msgstr "চলন্ত প্রসেসসমূহের তালিকা"
-
-# msgstr "চলন্ত প্রক্রিয়াকরনগুলির তালিকা" <- "করণ"
-#~ msgid "Process Status information"
-#~ msgstr "প্রসেসের অবস্থাসূচক তথ্যাবলী"
-
-# এটা কিছু বোঝা যাচ্ছে না। তাছাড়া "করুন" শব্দটা এখানে আসার কথা না।
-# msgstr "প্রসেসের অবস্থাসূচক তথ্যাবলী"
-#~ msgid "Process UID and TTY information"
-#~ msgstr "ইউআইডি এবং টিটিওয়াই তথ্য প্রক্রিয়াকরন করুন"
-
-# msgstr "প্রসেসের ইউআইডি (UID) ও টিটিওয়াই (TTY) সংক্রান্ত তথ্যাবলী"
-# ২ "প্রক্রিয়াকরণ"
-# ২ এটা কি ভাল করে খেয়াল করছেন ?
-#~ msgid "Process Memory information"
-#~ msgstr "প্রসেসের মেমরি সংক্রান্ত তথ্যাবলী"
-
-# msgstr "প্রসেসের মেমরি সংক্রান্ত তথ্যাবলী"
-#~ msgid "Process Time information"
-#~ msgstr "প্রসেসের সময় সংক্রান্ত তথ্যাবলী"
-
-# msgstr "প্রসেসের সময় সংক্রান্ত তথ্যাবলী"
-#~ msgid "Process Signal information"
-#~ msgstr "প্রসেসের সিগন্যাল সংক্রান্ত তথ্যাবলী"
-
-# msgstr "প্রসেসের সিগন্যাল সংক্রান্ত তথ্যাবলী"
-#~ msgid "Process Kernel Data information"
-#~ msgstr "প্রসেসের কার্নেল তথ্যবিষয়ক তথ্যাবলী"
-
-# msgstr "প্রসেসের কার্নেল তথ্যবিষয়ক তথ্যাবলী"
-#~ msgid "Process Segment information"
-#~ msgstr "প্রসেসের সেগমেন্ট সংক্রান্ত তথ্যাবলী"
-
-# msgstr "প্রসেসের সেগমেন্ট সংক্রান্ত তথ্যাবলী"
-#~ msgid "Process Arguments"
-#~ msgstr "প্রসেসে প্রেরিত মান"
-
-# msgstr "প্রসেসের নিকট প্রেরিত মান"
-#~ msgid "Process Memory Map"
-#~ msgstr "প্রসেসের মেমরি ম্যাপ"
-
-# msgstr "প্রসেসের মেমরি ম্যাপ"
-#~ msgid "Mount List"
-#~ msgstr "মাউন্টের তালিকা"
-
-#~ msgid "File System Usage"
-#~ msgstr "ফাইল সিস্টেমের ব্যবহার"
-
-# msgstr "ফাইলসিস্টেমের ব্যবহার"
-#~ msgid "Network Load"
-#~ msgstr "নেটওয়ার্ক ভার"
-
-# msgstr "নেটওয়ার্কের কাজের মাত্রা"
-#~ msgid "PPP Statistics"
-#~ msgstr "পিপিপি পরিসংখ্যান"
-
-#~ msgid "Command line arguments of the process"
-#~ msgstr "কমান্ড লাইন থেকে প্রসেসকে প্রেরিত মান"
-
-# msgstr "কমান্ড লাইন থেকে প্রসেসকে প্রেরিত মান"
-#~ msgid "List of currently mounted filesystems"
-#~ msgstr "বর্তমানে মাউন্ট করা ফাইল-সিস্টেমের তালিকা"
-
-# msgstr "বর্তমানে মাউন্ট করা ফাইল-সিস্টেমের তালিকা"
-#~ msgid "Uptime"
-#~ msgstr "চালু থাকা সময়"
-
-# msgstr "চালু থাকার সময়"
-# msgstr "সচল থাকার সময়"
-#~ msgid "Idletime"
-#~ msgstr "নিস্ক্রিয়ভাবে ব্যয়িত সময়"
-
-# msgstr "নিষ্ক্রিয়ভাবে ব্যয়িত সময়"
-# নিষ্ক্রিয়
-#~ msgid "Time in seconds since system boot"
-#~ msgstr "সিস্টেম বুট হবার পর থেকে অতিবাহিত সময় (সেকেন্ডে)"
-
-#~ msgid "Time in seconds the system spent in the idle task since system boot"
-#~ msgstr "সিস্টেম বুট হবার পর থেকে নিস্ক্রিয় কাজে অতিবাহিত সময় (সেকেন্ডে)"
-
-#, fuzzy
-#~ msgid "Time of last system boot in seconds since the epoch"
-#~ msgstr "epoch এর পর থেকে প্রসেস শুরুর সময় (সেকেন্ডে)"
diff --git a/po/bn_IN.po b/po/bn_IN.po
deleted file mode 100644
index 05681443..00000000
--- a/po/bn_IN.po
+++ /dev/null
@@ -1,221 +0,0 @@
-# Bengali India translation of libgtop.
-# Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc.
-# This file is distributed under the same license as the libgtop package.
-#
-# Vat <vatzcar@yahoo.co.in>, 2003.
-# Mahay Alam Khan <makl10n@yahoo.com>, 2005.
-# Samia Niamatullah <mailsamia2001@yahoo.com>, 2005.
-# Runa Bhattacharjee <runabh@gmail.com>, 2007.
-msgid ""
-msgstr ""
-"Project-Id-Version: bn_IN\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-14 03:41+0100\n"
-"PO-Revision-Date: 2007-08-10 14:47+0530\n"
-"Last-Translator: Runa Bhattacharjee <runabh@gmail.com>\n"
-"Language-Team: Bengali INDIA\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d বাইট পড়া হয়েছে"
-msgstr[1] "%d বাইট পড়া হয়েছে"
-
-# msgstr "%d বাইট পড়া গেছে" "ড়" এর জায়গায় "ডহ্হা" লেখা
-# #########################################
-# দয়া করে "গেছে" এর পরিবর্তে "গিয়েছে" লিখেন
-# #########################################
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "তথ্যের মাপ পড়া হবে"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu বাইট তথ্য পড়া হয়েছে"
-msgstr[1] "%lu বাইট তথ্য পড়া হয়েছে"
-
-# msgstr "%d বাইট তথ্য পড়া গেছে"
-# msgstr "%d বাইট তথ্য পড়া হোক"
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d বাইট লেখা হয়েছে"
-msgstr[1] "%d বাইট লেখা হয়েছে"
-
-# msgstr "%d বাইট লেখা হয়েছে"
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "ডিবাগ ব্যবস্থা সক্রিয় করুন"
-
-# msgstr "ডিবাগ"
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "বিস্তারিত (ভার্বোস) আউটপুট সক্রিয় করা হবে"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "পটভূমিতে fork করা হবে না"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "inetd থেকে আরম্ভ করা হয়েছে"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"কমান্ড-লাইন থেকে ব্যবহারযোগ্য সমস্ত বিকল্পের সম্পূর্ণ তালিকা দেখতে '%s --help' প্রয়োগ "
-"করুন।\n"
-
-# msgstr "সিস্টেম বুট হবার পর থেকে নিষ্ক্রিয় কাজে অতিবাহিত সময় (সেকেন্ডে)"
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "বন্ধ করুন"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "ইন্টারাপ্ট উৎপন্ন করা হবে"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "প্রস্থান"
-
-# msgstr "প্রস্থান"
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "অবৈধ নির্দেশ"
-
-# msgstr "অবৈধ ইনস্ট্রাকশন"
-# Instruction এখানে Technical term।
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "ট্রেস ট্র্যাপ"
-
-# ২ এটা আসলে ঠিক বোঝা যাচ্ছে না। তাই মনে হয় বাদ রাখাই ভাল
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "অস্বাভাবিক প্রস্থান"
-
-# msgstr "বন্ধ করা"
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT সংক্রান্ত সমস্যা"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "ফ্লোটিং-পয়েন্ট এক্সেপশন"
-
-# msgstr "ভগ্নাংশ সংক্রান্ত ব্যতীক্রম" <-- বানান ভুল
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Kill করুন"
-
-# msgstr "শেষ করা (Kill)"
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "বাস সংক্রান্ত সমস্যা"
-
-# msgstr "বাস (Bus) সংক্রান্ত সমস্যা"
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "সেগমেন্টেশন সংক্রান্ত সমস্যা"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "সিস্টেম-কল'এ ভুল আর্গুমেন্ট প্রেরিত হয়েছে"
-
-# msgstr "সিস্টেম call এ ভুল মান প্রেরিত হয়েছে"
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "ক্ষতিগ্রস্ত পাইপ"
-
-# msgstr "অচল পাইপ"
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "অ্যালার্ম ঘড়ি"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "সমাপ্তি"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "সকেটে গুরুতর অবস্থা"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "বন্ধ করুন"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "কি-বোর্ড বন্ধ করুন"
-
-# ২ কীবোর্ড
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "এগিয়ে চলুন"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "চাইল্ডের অবস্থা পরিবর্তিত হয়েছে"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "পটভূমিতে tty'থেকে পড়া হচ্ছে"
-
-# ভাল হইলো না
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "পটভূমিতে tty'এ লেখা হচ্ছে"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O বর্তমানে করা সম্ভব"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "CPU'র সীমা অতিক্রান্ত"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "ফাইলের মাপের সীমা অতিক্রান্ত"
-
-# msgstr "ফাইলের আয়তন সীমা ছাড়িয়ে গেছে"
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "ভার্চুয়াল অ্যালার্ম ঘড়ি"
-
-# msgstr "কাল্পনিক এলার্ম ঘড়ি"
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "অ্যালার্ম ঘড়ি প্রোফাইল করা হবে"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "উইন্ডোর মাপে পরিবর্তন"
-
-# msgstr "উইন্ডো'র আয়তন পরিবর্তন"
-# Window এর বাংলা করার দরকার নাই
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "তথ্যের অনুরোধ"
-
-# msgstr "তথ্যের আবেদন"
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "ব্যবহারকারী নির্ধারিত সিগনাল ১"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "ব্যবহারকারী নির্ধারিত সিগনাল ২"
-
diff --git a/po/bs.po b/po/bs.po
deleted file mode 100644
index 376be27e..00000000
--- a/po/bs.po
+++ /dev/null
@@ -1,214 +0,0 @@
-# translation of libgtop.HEAD.po to Bosnian
-# This file is distributed under the same license as the libgtop package.
-# Copyright (C) 2004 Free Software Foundation, Inc.
-# Vedran Ljubovic <vljubovic@smartnet.ba>, 2004.
-# Kemal Šanjta <gomez@lugzdk.ba>, 2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2004-09-05 16:54+0200\n"
-"Last-Translator: Kemal Šanjta <gomez@lugzdk.ba>\n"
-"Language-Team: Bosnian <lokal@linux.org.ba>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
-"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
-"X-Generator: KBabel 1.3\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "čitaj %d bajt"
-msgstr[1] "čitaj %d bajta"
-msgstr[2] "čitaj %d bajtova"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "veličina pročitanih podataka"
-
-#: lib/read_data.c:72
-#, fuzzy, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "čitaj %d bajt"
-msgstr[1] "čitaj %d bajta"
-msgstr[2] "čitaj %d bajtova"
-
-#: lib/write.c:52
-#, fuzzy, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "piši %d bajt"
-msgstr[1] "piši %d bajta"
-msgstr[2] "piši %d bajtova"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Uključi debugging"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEBUG"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Uključi rječiti izlaz"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Ne fork-uj u pozadinu"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Pozvan iz inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Greška u opciji %s: %s.\n"
-"Pokrenite '%s --help' da vidite punu listu dostupnih opcija na komandnoj "
-"liniji.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Prekidanje veze"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Prekid"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Izađi"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Nedopuštena instrukcija"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Prati trap"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Odustani"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "EMT greška"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Floating-point exception"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Ubij"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Sabirnička greška"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Povreda segmenta"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Neispravan argument za sistemski poziv"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Prekinut kanal"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Alarm"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Završavanje"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Hitno stanje na socketu"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Zaustavi"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Zaustavljanje tastature"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Nastavi"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Status djeteta je promijenjen"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Pozadinsko čitanje iz tty-a"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Pozadinsko pisanje na tty"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "U/I je sada moguć"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "CPU granica iskorištena"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Prekoračeno ograničenje veličine spisa"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Virtualni alarmni sat"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Profiliranje sata alarma"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Promjena veličine prozora"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Zahtjev za informacijom"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Korisnički definisan signal 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Korisnički definisan signal 2"
diff --git a/po/ca.po b/po/ca.po
deleted file mode 100644
index 93fc1349..00000000
--- a/po/ca.po
+++ /dev/null
@@ -1,201 +0,0 @@
-# Catalan translation of libgtop.
-# Copyright © 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
-# Softcatalà <gnome@softcatala.net>, 2000, 2001, 2002.
-# Jordi Mallach <jordi@sindominio.net>, 2002, 2003, 2004, 2005.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 2.9.91\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-09-16 22:33+0200\n"
-"PO-Revision-Date: 2005-09-04 01:16+0200\n"
-"Last-Translator: Jordi Mallach <jordi@sindominio.net>\n"
-"Language-Team: Catalan <tradgnome@softcatala.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n!=1;\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "s'ha llegit %d octet"
-msgstr[1] "s'ha llegit %d octets"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "llegeix la mida de les dades"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "s'ha llegit %lu octet de dades"
-msgstr[1] "s'ha llegit %lu octets de dades"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "s'ha escrit %d octet"
-msgstr[1] "s'ha escrit %d octets"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Activa la depuració"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Activa la sortida detallada"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "No bifurquis al segon pla"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Ha estat cridat des d'inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Executeu «%s --help» per a veure una llista completa de les opcions "
-"disponibles de la línia d'ordres.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Termina"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Interromp"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Surt"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Instrucció il·legal"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Captura traça"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Avorta"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Error EMT"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Excepció de coma flotant"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Mata"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Error de bus"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Violació de segment"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Argument erroni a una crida al sistema"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Conducte trencat"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Alarma del rellotge"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Terminació"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Condició urgent en socket"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Parada"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Parada de teclat"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Continua"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "L'estat del fill ha canviat"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Lectura de tty en segon pla"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Escriptura a tty en segon pla"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "E/S ara és possible"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Límit de CPU excedit"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Límit de mida de fitxer excedit"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Alarma del rellotge virtual"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Alarma del rellotge perfilada"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Canvi de la mida de la finestra"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Petició d'informació"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Senyal 1 definit per l'usuari"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Senyal 2 definit per l'usuari"
-
-#~ msgid "DEBUG"
-#~ msgstr "DEPURACIÓ"
-
-#~ msgid "VERBOSE"
-#~ msgstr "DETALLA"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "SENSE DIMONI"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/cs.po b/po/cs.po
deleted file mode 100644
index cc427f17..00000000
--- a/po/cs.po
+++ /dev/null
@@ -1,211 +0,0 @@
-# Czech translation of libgtop
-# This file is distributed under the same license as the libgtop package.
-# Copyright (C) 2004 Miloslav Trmac <mitr@volny.cz>
-# Miloslav Trmac <mitr@volny.cz>, 2002, 2003, 2004
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2005-01-02 15:10+0100\n"
-"Last-Translator: Miloslav Trmac <mitr@volny.cz>\n"
-"Language-Team: Czech <cs@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
-"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "přečten %d bajt"
-msgstr[1] "přečteny %d bajty"
-msgstr[2] "přečteno %d bajtů"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "velikost přečtených dat"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "přečten %lu bajt dat"
-msgstr[1] "přečteny %lu bajty dat"
-msgstr[2] "přečteno %lu bajtů dat"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "zapsán %d bajt"
-msgstr[1] "zapsány %d bajty"
-msgstr[2] "zapsáno %d bajtů"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Povolit ladění"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "LADĚNÍ"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Povolit podrobný výstup"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "PODROBNĚ"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Neforkovat do pozadí"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NE-DÉMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Spuštěn z inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Chyba v přepínači %s: %s.\n"
-"Úplný seznam dostupných přepínačů zobrazíte spuštěním '%s --help'.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Zavěšení"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Přerušení"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Konec"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Neplatná instrukce"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Trasovací zachycení"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Přerušení"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "Chyba EMT"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Výjimka v plovoucí řádové čárce"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Zabití"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Chyba sběrnice"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Porušení segmentace"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Špatný argument systémového volání"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Přerušená roura"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Alarm"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Přerušení"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Urgentní stav soketu"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Zastavení"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Zastavení z klávesnice"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Pokračování"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Stav potomka se změnil"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Čtení tty z pozadí"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Zápis na tty z pozadí"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "I/O je nyní možné"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "Překročen limit CPU"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Překročen limit velikosti souboru"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Virtuální alarm"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Profilovací alarm"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Změna velikosti okna"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Požadavek na informaci"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Uživatelem definovaný signál 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Uživatelem definovaný signál 2"
diff --git a/po/cy.po b/po/cy.po
deleted file mode 100644
index f8ba3e1a..00000000
--- a/po/cy.po
+++ /dev/null
@@ -1,207 +0,0 @@
-# libgtop yn Gymraeg.
-# This file is distributed under the same license as the libgtop package.
-# Dafydd Harries <daf@muse.19inch.net>, 2003 2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2005-08-29 20:39+0100\n"
-"Last-Translator: Bryn Salisbury <bryn@randomlyevil.org.uk>\n"
-"Language-Team: Welsh <gnome-cy@www.linux.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Form: nplurals=2: plural=(n == 2) ? 1 : 0;\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "darllen %d beit"
-msgstr[1] "darllen %d feit"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "darllen maint data"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "darllennwyd %lu beit"
-msgstr[1] "darllennwyd %lu feit"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "ysgrifennwyd %d beit"
-msgstr[1] "ysgrifennwyd %d feit"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Galluogi datnamu"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DATNAMU"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Galluogi allbwn amleiriog"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "AMLEIRIOG"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Peidio fforcio i'r cefndir"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "DIM-ELLYLL"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Cychwynwyd o inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Gwall efo'r opsiwn %s: %s.\n"
-"Rhedwch '%s --help' er mwyn gweld rhestr cyflawn o'r opsinnau llinell "
-"gorchymyn sydd ar gael.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Hongian i fyny"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Ymyrryd"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Gadael"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Cyfarwyddiad anghyfriethlon"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Trap trywyddu"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Terfynu"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "Gwall EMT"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Eithriad pwynt symudol"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Lladd"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Gwall bws"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Trosedd segmentu"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Ymresymiad gwael i alwad system"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Piben torredig"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Cloc larwm"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Terfynnu"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Amod pwysig ar soced"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Atal"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Ataliad bysellfwrdd"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Parhau"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Statws plentyn wedi newid"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Darllen cefndir o TTY"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Ysgrifennu cefndir at TTY"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "I/O nawr yn bosib"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "Y tu hwnt i'r cyfwng CPU"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Y tu hwnt i'r cyfwng maint ffeil"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Cloc larwm rhithwir"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Cloc larm proffeilio"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Newid maint ffenest"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Cais gwybodaeth"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Arwydd diffiniwyd gan y defnyddiwr 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Arwydd diffiniwyd gan y defnyddiwr 2"
diff --git a/po/da.po b/po/da.po
deleted file mode 100644
index 3e7bdb58..00000000
--- a/po/da.po
+++ /dev/null
@@ -1,203 +0,0 @@
-# Danish translation of libgtop.
-# Copyright (C) 1998, 2002, 03, 04, 05 Free Software Foundation, Inc.
-# This file is distributed under the same license as the libgtop package.
-# Kenneth Christiansen <kenneth@ripen.dk>, 1998, 1999.
-# Keld Simonsen <keld@dkuug.dk>, 2000.
-# Ole Laursen <olau@hardworking.dk>, 2002, 03, 05.
-# Martin Willemoes Hansen <mwh@sysrq.dk>, 2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-09-16 23:21+0200\n"
-"PO-Revision-Date: 2007-09-16 23:21+0200\n"
-"Last-Translator: Ole Laursen <olau@hardworking.dk>\n"
-"Language-Team: Danish <dansk@klid.dk>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "læste %d byte"
-msgstr[1] "læste %d byte"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "læste datastørrelse"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "læste %lu byte"
-msgstr[1] "læste %lu byte"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "skrev %d byte"
-msgstr[1] "skrev %d byte"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Slå fejlfinding til"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Slå meddelsom udskrift til"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Forgren ikke til baggrund"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Kaldt fra inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Kør '%s --help' for at få en liste over alle tilgængelige tilvalgsflag.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Læg på"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Afbrud"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Afslut"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Ugyldig instruktion"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Spore fælde"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Afbryd"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT-fejl"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Flydende tals-undtagelse"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Afslut"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Bus-fejl"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Segmentovertrædelse"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Ugyldig argument til systemkald"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Brudt datakanal"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Alarmklokke"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Terminering"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Vigtig tilstand på sokkel"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Stop"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Tastaturstop"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Fortsæt"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Barnets status er ændret"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Læsing fra tty i baggrunden"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Skriving til tty i baggrunden"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O nu muligt"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Processor-grænse overskredet"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Grænse for filstørrelse overskredet"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Virtuel alarmklokke"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Profilerer alarmklokken"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Ændring i vinduesstørrelse"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Informationsforespørsel"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Brugerdefineret signal 2"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Brugerdefineret signal 2"
-
-#~ msgid "DEBUG"
-#~ msgstr "FEJLFINDING"
-
-#~ msgid "VERBOSE"
-#~ msgstr "MEDDELSOM"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "INGEN-SERVER"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/de.po b/po/de.po
deleted file mode 100644
index b66c52cf..00000000
--- a/po/de.po
+++ /dev/null
@@ -1,204 +0,0 @@
-# German libgtop translation.
-# Martin Baulig <martin@home-of-linux.org>, 1998-2000.
-# Christian Meyer <cm@ggtt.de>, 2000, 2001.
-# Christian Neumair <chris@gnome-de.org>, 2002-2004.
-# Hendrik Richter <hendrikr@gnome.org>, 2004, 2005, 2007.
-#
-# hmm... ein paar englische Strings sollte man lieber in Ruhe lassen...! -cm-
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 2.5.0\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-07-19 19:27+0200\n"
-"PO-Revision-Date: 2007-07-19 19:28+0200\n"
-"Last-Translator: Hendrik Richter <hendrikr@gnome.org>\n"
-"Language-Team: German <gnome-de@gnome.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d Byte gelesen"
-msgstr[1] "%d Bytes gelesen"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "Datenmenge lesen"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu Byte der Daten gelesen"
-msgstr[1] "%lu Bytes der Daten gelesen"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d Byte geschrieben"
-msgstr[1] "%d Bytes geschrieben"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Fehlerdiagnose einschalten"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Redselige Ausgabe einschalten"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Nicht in den Hintergrund abspalten"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Durch inetd aufgerufen"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Führen Sie »%s --help« aus, um eine vollständige Liste der verfügbaren "
-"Optionen zu sehen.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Auflegen"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Unterbrechung"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Verlassen"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Unzulässige Anweisung"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Trace-Trap"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Abbrechen"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT-Fehler"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Gleitkomma-Ausnahme"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Töten"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Busfehler"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Segmentschutzverletzung"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Ungültiges Argument für Systemaufruf"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Gebrochene Pipe"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Wecker"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Beenden"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Dringender Socketzustand"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Stopp"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Tastatur-Stopp"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Fortfahren"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Kind-Status hat sich geändert"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Hintergrundlesen von tty"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Hintergrundschreiben auf tty"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "E/A nun möglich"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "CPU-Limit überschritten"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Limit der Dateigröße überschritten"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Virtueller Wecker"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Genauer Wecker"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Veränderung der Fenstergröße"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Informationsanforderung"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Benutzerdefiniertes Signal 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Benutzerdefiniertes Signal 2"
-
-#~ msgid "DEBUG"
-#~ msgstr "DIAGNOSE"
-
-#~ msgid "VERBOSE"
-#~ msgstr "REDSELIG"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "KEIN-DAEMON"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/dz.po b/po/dz.po
deleted file mode 100644
index f599c930..00000000
--- a/po/dz.po
+++ /dev/null
@@ -1,204 +0,0 @@
-# translation of libgtop.HEAD.po to
-# This file is distributed under the same license as the PACKAGE package.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER, 2006.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-14 03:41+0100\n"
-"PO-Revision-Date: 2006-03-28 11:12-0500\n"
-"Last-Translator: \n"
-"Language-Team: <en@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n!=1);\n"
-"X-Poedit-Language: Dzongkha\n"
-"X-Poedit-Country: BHUTAN\n"
-"X-Poedit-SourceCharset: utf-8\n"
-"X-Generator: KBabel 1.10.2\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "བའིཊི་ %d ལྷག"
-msgstr[1] "བའིཊི་ %d ལྷག"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "གནད་སྡུད་ཀྱི་ཚད་ལྷག"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "གནས་སྡུད་ བའིཊི་ %lu ལྷག"
-msgstr[1] "གནས་སྡུད་ བའིཊི་ %lu ལྷག"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "བའིཊི་ %d བྲིས་ཡི། "
-msgstr[1] "བའིཊི་ %d བྲིས་ཡི།"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "རྐྱེན་སེལ་འབད་ནི་ ལྕོགས་ཅན་བཟོ།"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "ཚིག་མང་ཨའུཊི་པུཊི་ ལྕོགས་ཅན་བཟོ།"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "རྒྱབ་གཞིའི་ནང་ ཁ་མ་སྤེལ།"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "ཨའི་ཨེན་ཨི་ཊི་ཌི་ནང་ལས་ ལས་བཀོལ་འབད།"
-
-#: ../src/daemon/gnuserv.c:498
-#, fuzzy, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"གདམ་ཁ་%s: %sལུ་འཛོལ་བ། \n"
-"འཐོབ་ཚུགས་པའི་ བརྡ་ལམ་གདམ་ཁའི་ ཐོ་ཡིག་ཧྲིལ་བུ་ཅིག་ལུ་ བལྟ་ནིའི་དོན་ལས་ '%s --help' གཡོག་བཀོལ།\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "ཐོགས་རྐྱེན།"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "བར་ཆད།"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "སྤངས།"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "ཁྲིམས་འགལ་བཀོད་རྒྱ།"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "ཧིང་ རྗེས་འཚོལ་འབད།"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "བར་བཤོལ་འབད།"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "ཨི་ཨེམ་ཊི་འཛོལ་བ།"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "ལྡིང་ཚད་དམིགས་བསལ།"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "གསད།"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "བརྡ་རྟགས་འགྲུལ་ལམ་གྱི་འཛོལ་བ།"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "ཆ་བགོ་བའི་འགལ་བ།"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "རིམ་ལུགས་བོད་བརྡ་ལུ་ སྒྲུབ་རྟགས་བྱང་ཉེས།"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "རྒྱུད་དུང་ཆད་པ།"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "འཇིགས་བརྡ་ཆེ་འཁོར།"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "རྩ་གྲོལ།"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "སོཀ་ཀེཊི་ལུ་ འཕྲལ་མཁོའི་གནས་སྟངས།"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "བཀག"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "ལྡེ་སྒྲོམ་བཀག"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "འཕྲོ་མཐུད།"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "རྩ་ལག་གི་གནས་ཚད་ བསྒྱུར་བཅོས་ཡར་སོ་ནུག"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "ཊི་ཊི་ཝའི་ནང་ལས་ རྒྱབ་གཞི་ལྷག་ཡོད།"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "ཊི་ཊི་ཝའི་ལུ་ རྒྱབ་གཞི་བྲིས།"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "ཨའི་/ཨོ་ ད་ལྟོ་ཚུགས་པས།"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "ལས་སྦྱོར་ལྟེ་བའི་ཚད་ལས་ ལྷག་སོ་ནུག"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "ཡིག་སྣོད་ཀྱི་ཚད་ལས་ ལྷག་སོ་ནུག"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "བར་ཅུ་ཡེལ་ འཇིགས་བརྡའི་ཆེ་འཁོར།"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "གསལ་སྡུད་འཇིགས་བརྡའི་ཆེ་འཁོར།"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "སྒོ་སྒྲིག་ཚད་ཀྱི་བསྒྱུར་བཅོས།"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "བརྡ་དོན་གྱི་ཞུ་བ།"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "ལག་ལེན་པའི་ ངེས་འཛིན་བརྡ་རྟགས་ ༡པ།"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "ལག་ལེན་པའི་ངེས་འཛིན་བརྡ་རྟགས་ ༢པ།"
-
-#~ msgid "DEBUG"
-#~ msgstr "རྐྱེན་སེལ།"
-
-#~ msgid "VERBOSE"
-#~ msgstr "ཚིག་མང་།"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "ཌེ་མཱོན་མིན་འདུག"
-
-#~ msgid "INETD"
-#~ msgstr "ཨའི་ཨེན་ཨི་ཊི་ཌི།"
diff --git a/po/el.po b/po/el.po
deleted file mode 100644
index 376a2059..00000000
--- a/po/el.po
+++ /dev/null
@@ -1,223 +0,0 @@
-# translation of el.po to
-# translation of el.po to Greek
-# libgtop greek .po file
-# Copyright (C) 2000-2001,2003, 2004, 2005 Free Software Foundation, Inc.
-#
-# sarantis: ~134 messages, (unknown), initial translation.
-# simos: 240 messages, 19Feb2001, added more messages, still 65 left.
-# simos: 308 messages, 25Feb2001, completed.
-# simos: 310 messages, 07Nov2002, completed.
-# kostas: 322 messages,30Oct2003, update for Gnome 2.6
-# Nikos: add plurals, minor fixes, 21Feb2004.
-# Nikos: small update, 30Aug2004.
-# Sarantis Paskalis <paskalis@di.uoa.gr>, 2000.
-# Simos Xenitellis <simos@hellug.gr>, 2001.
-# Kostas Papadimas <pkst@gnome.org>, 2003, 2004, 2005.
-# Nikos Charonitakis <charosn@her.forthnet.gr>, 2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: el\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2005-02-18 13:40+0200\n"
-"Last-Translator: Kostas Papadimas <pkst@gnome.org>\n"
-"Language-Team: Greek <nls@tux.hellug.gr>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: KBabel 1.3.1\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "ανάγνωση %d byte"
-msgstr[1] "ανάγνωση %d bytes"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "ανάγνωση μεγέθους δεδομένων"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "ανάγνωση %lu byte δεδομένων"
-msgstr[1] "ανάγνωση %lu bytes δεδομένων"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "εγγραφή %d byte"
-msgstr[1] "εγγραφή %d bytes"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Ενεργοποίηση εκσφαλμάτωσης"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "ΕΚΣΦΑΛΜΑΤΩΣΗ"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Ενεργοποίηση περιφραστικής εξόδου"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Να μη γίνει δικράνωση στο παρασκήνιο"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "ΧΩΡΊΣ-ΔΑΊΜΟΝΑ"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Εκτελεσμένο από το inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Σφάλμα στην επιλογή %s: %s.\n"
-"Εκτελέστε '%s --help' για να δείτε μια πλήρη λίστα των διαθέσιμων επιλογών "
-"της γραμμής εντολών.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Αποτελμάτωση"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Διακοπή"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Έξοδος"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Ακατάλληλη εντολή"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Παγίδευση παρακολούθησης"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Αποβολή"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "Σφάλμα EMT"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Εξαίρεση κιν. υποδιαστολής"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Σκότωμα"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Σφάλμα διαύλου"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Παραβίαση τμηματοποίησης"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Ακατάλληλο όρισμα σε κλήση συστήματος"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Διακοπείσα σωλήνωση"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Ξυπνητήρι"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Τερματισμός"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Επείγουσα συνθήκη σε υποδοχέα"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Διακοπή"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Διακοπή πληκτρολογίου"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Συνέχεια"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Η κατάσταση θυγατρικής διεργασίας έχει αλλάξει"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Ανάγνωση παρασκηνίου από tty"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Εγγραφή παρασκηνίου σε tty"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "Η Ε/Ε είναι τώρα δυνατή"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "Το όριο ΚΜΕ έχει ξεπεραστεί"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Το όριο μεγέθους αρχείου έχει ξεπεραστεί"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Ιδεατό ξυπνητήρι"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Έλεγχος απόδοσης ξυπνητηριού"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Αλλαγή μεγέθους παραθύρου"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Αίτηση πληροφορίας"
-
-# sysdeps/names/procsignal.c:49
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Σήμα 1 οριζόμενο από το χρήστη"
-
-# sysdeps/names/procsignal.c:49
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Σήμα 2 οριζόμενο από το χρήστη"
diff --git a/po/en_CA.po b/po/en_CA.po
deleted file mode 100644
index 1894c72a..00000000
--- a/po/en_CA.po
+++ /dev/null
@@ -1,208 +0,0 @@
-# English/Canada translation of libgtop.
-# Copyright (C) 2004 Adam Weinberger and the GNOME Foundation
-# This file is distributed under the same license as the libgtop package.
-# Adam Weinberger <adamw@gnome.org>, 2004.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2004-12-29 15:51-0400\n"
-"Last-Translator: Adam Weinberger <adamw@gnome.org>\n"
-"Language-Team: Canadian English <adamw@gnome.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "read %d byte"
-msgstr[1] "read %d bytes"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "read data size"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "read %lu byte of data"
-msgstr[1] "read %lu bytes of data"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "wrote %d byte"
-msgstr[1] "wrote %d bytes"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Enable debugging"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEBUG"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Enable verbose output"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Don't fork into background"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Invoked from inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Hangup"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Interrupt"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Quit"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Illegal instruction"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Trace trap"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Abort"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "EMT error"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Floating-point exception"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Kill"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Bus error"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Segmentation violation"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Bad argument to system call"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Broken pipe"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Alarm clock"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Termination"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Urgent condition on socket"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Stop"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Keyboard stop"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Continue"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Child status has changed"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Background read from TTY"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Background write to TTY"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "I/O now possible"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "CPU limit exceeded"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "File size limit exceeded"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Virtual alarm clock"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Profiling alarm clock"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Window size change"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Information request"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "User defined signal 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "User defined signal 2"
diff --git a/po/en_GB.po b/po/en_GB.po
deleted file mode 100644
index cc2ac757..00000000
--- a/po/en_GB.po
+++ /dev/null
@@ -1,230 +0,0 @@
-# English (British) translation.
-# Copyright (C) 2004 The GNOME Foundation
-# This file is distributed under the same license as the libgtop package.
-# Gareth Owen <gowen72@yahoo.com>, David Lodge <dave@cirt.net>, 2004.
-# Gareth Owen <gowen72@yahoo.comg>, 2004.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-15 22:52+0100\n"
-"PO-Revision-Date: 2007-05-15 22:52-0000\n"
-"Last-Translator: David Lodge <dave@cirt.net>\n"
-"Language-Team: English/GB <en@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "read %d byte"
-msgstr[1] "read %d bytes"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "read data size"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "read %lu byte of data"
-msgstr[1] "read %lu bytes of data"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "wrote %d byte"
-msgstr[1] "wrote %d bytes"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Enable debugging"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Enable verbose output"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Don't fork into background"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Invoked from inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Run '%s --help' to see a full list of available command line options.\n"
-
-#: ../sysdeps/osf1/siglist.c:27
-#: ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Hangup"
-
-#: ../sysdeps/osf1/siglist.c:28
-#: ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Interrupt"
-
-#: ../sysdeps/osf1/siglist.c:29
-#: ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Quit"
-
-#: ../sysdeps/osf1/siglist.c:30
-#: ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Illegal instruction"
-
-#: ../sysdeps/osf1/siglist.c:31
-#: ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Trace trap"
-
-#: ../sysdeps/osf1/siglist.c:32
-#: ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Abort"
-
-#: ../sysdeps/osf1/siglist.c:33
-#: ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT error"
-
-#: ../sysdeps/osf1/siglist.c:34
-#: ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Floating-point exception"
-
-#: ../sysdeps/osf1/siglist.c:35
-#: ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Kill"
-
-#: ../sysdeps/osf1/siglist.c:36
-#: ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Bus error"
-
-#: ../sysdeps/osf1/siglist.c:37
-#: ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Segmentation violation"
-
-#: ../sysdeps/osf1/siglist.c:38
-#: ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Bad argument to system call"
-
-#: ../sysdeps/osf1/siglist.c:39
-#: ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Broken pipe"
-
-#: ../sysdeps/osf1/siglist.c:40
-#: ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Alarm clock"
-
-#: ../sysdeps/osf1/siglist.c:41
-#: ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Termination"
-
-#: ../sysdeps/osf1/siglist.c:42
-#: ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Urgent condition on socket"
-
-#: ../sysdeps/osf1/siglist.c:43
-#: ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Stop"
-
-#: ../sysdeps/osf1/siglist.c:44
-#: ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Keyboard stop"
-
-#: ../sysdeps/osf1/siglist.c:45
-#: ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Continue"
-
-#: ../sysdeps/osf1/siglist.c:46
-#: ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Child status has changed"
-
-#: ../sysdeps/osf1/siglist.c:47
-#: ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Background read from tty"
-
-#: ../sysdeps/osf1/siglist.c:48
-#: ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Background write to tty"
-
-#: ../sysdeps/osf1/siglist.c:49
-#: ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O now possible"
-
-#: ../sysdeps/osf1/siglist.c:50
-#: ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "CPU limit exceeded"
-
-#: ../sysdeps/osf1/siglist.c:51
-#: ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "File size limit exceeded"
-
-#: ../sysdeps/osf1/siglist.c:52
-#: ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Virtual alarm clock"
-
-#: ../sysdeps/osf1/siglist.c:53
-#: ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Profiling alarm clock"
-
-#: ../sysdeps/osf1/siglist.c:54
-#: ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Window size change"
-
-#: ../sysdeps/osf1/siglist.c:55
-#: ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Information request"
-
-#: ../sysdeps/osf1/siglist.c:56
-#: ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "User defined signal 1"
-
-#: ../sysdeps/osf1/siglist.c:57
-#: ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "User defined signal 2"
-
-#~ msgid "DEBUG"
-#~ msgstr "DEBUG"
-#~ msgid "VERBOSE"
-#~ msgstr "VERBOSE"
-#~ msgid "NO-DAEMON"
-#~ msgstr "NO-DAEMON"
-#~ msgid "INETD"
-#~ msgstr "INETD"
-
diff --git a/po/eo.po b/po/eo.po
deleted file mode 100644
index 8e8b28f7..00000000
--- a/po/eo.po
+++ /dev/null
@@ -1,208 +0,0 @@
-# Esperanto translation of libgtop
-# Copyright (C) 2006 THE libgtop'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the libgtop package.
-# Dominique PELLE <dominique.pelle@free.fr>, 2006.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-06-08 00:34+0530\n"
-"PO-Revision-Date: 2006-06-06 21:30+1200\n"
-"Last-Translator: Dominique PELLE <dominique.pelle@free.fr>\n"
-"Language-Team: Esperanto <eo-tradukado@lists.tuxfamily.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "legis %d bajton"
-msgstr[1] "legis %d bajtojn"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "grandeco de legita datumo"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "legis %lu bajton da datumo"
-msgstr[1] "legis %lu bajtojn da datumo"
-
-#: ../lib/write.c:53
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "skribis %d bajton"
-msgstr[1] "skribis %d bajtojn"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Ebligu sencimigon"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "SENCIMIGO"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Ebligu babileman eligon"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "BABILEMA"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Ne forku fone"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NE-DEMONO"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Alvokita de inetd"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Eraro en opcio %s: %s.\n"
-"Lanĉu '%s --help' por vidi plenan liston de uzeblaj opcioj de komanda "
-"linio.\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "Malkontaktu"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "Interrompu"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "Adiaŭu"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "Nevalida komando"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "Spura escepto"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "Ĉesigu"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "EMT eraro"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "Glitpunkta escepto"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "Mortigu"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "Busa eraro"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "Aliro al nerezervita memoro"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "Nevalida argumento de kornovoko"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "Rompita dukto"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "Vekhorloĝo"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "Ĉesigo"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "Urĝa kondiĉo ĉe kontaktoskatolo"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "Ĉesigu"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "Klavara ĉesigo"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "Daŭrigu"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "Stato de ido ŝanĝiĝis"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "Fona lego el tty"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "Fona skribo al tty"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "Eneligo nun eblas"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "Limo de procesilo superitas"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "Limo de dosiergrandeco superitas"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "Virtuala alarm-takto"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "Profila alarm-takto"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "Ŝanĝo de grandeco de fenestro"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "Informpeto"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "Uzant-difinita signalo 1"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "Uzant-difinita signalo 2"
diff --git a/po/es.po b/po/es.po
deleted file mode 100644
index 26e05ff2..00000000
--- a/po/es.po
+++ /dev/null
@@ -1,193 +0,0 @@
-# translation of libgtop.libgtop-GNOME-2-0-port.po to Spanish
-#
-# Pablo Saratxaga <srtxg@chanae.alphanet.ch>, 1998-2000.
-# Germán Poo Caamaño <gpoo@ubiobio.cl>, 2002.
-# Pablo Saratxaga <srtxg@chanae.alphanet.ch>, 2002.
-# Juan Manuel García Molina <juanma_gm@wanadoo.es>, 2002.
-# Francisco Javier F. Serrador <serrador@cvs.gnome.org>, 2003, 2004.
-# Jorge González <jorgegonz@svn.gnome.org>, 2007.
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD.es\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-14 03:41+0100\n"
-"PO-Revision-Date: 2007-05-14 09:30+0200\n"
-"Last-Translator: Jorge González <jorgegonz@svn.gnome.org>\n"
-"Language-Team: Spanish <traductores@es.gnome.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"First-Translator: Pablo Saratxaga <srtxg@chanae.alphanet.ch>\n"
-"X-Generator: KBabel 1.11.4\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "leído %d byte"
-msgstr[1] "leídos %d bytes"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "leído tamaño de datos"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "leído %lu byte de datos"
-msgstr[1] "leídos %lu bytes de datos"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "escrito %d byte"
-msgstr[1] "escritos %d bytes"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Activar depuración"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Activa salida detallada"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "No se pudo abrir un proceso en segundo plano"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Invocado desde inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Ejecute '%s --help' para ver una lista completa de las opciones disponibles.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Terminar"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Interrumpir"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Salir"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Instrucción ilegal"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Atrapar traza"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Abortar"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Error EMT"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Excepción de coma flotante"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Matar"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Error de bus"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Violación de segmento"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Argumento incorrecto en llamada al sistema"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Tubería rota"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Alarma de reloj"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Terminación"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Condición urgente en socket"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Parada"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Parada de teclado"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Continuar"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Cambio de estado de hijo"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Lectura en segundo plano de tty"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Escritura en segundo plano a tty"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "E/S ahora posible"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Excedido límite de CPU"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Tamaño límite de archivo excedido"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Alarma de reloj virtual"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Alarma de reloj perfilada"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Cambio del tamaño de ventana"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Solicitud de información"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Señal 1 definida por el usuario"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Señal 2 definida por el usuario"
-
diff --git a/po/et.po b/po/et.po
deleted file mode 100644
index dcb0110d..00000000
--- a/po/et.po
+++ /dev/null
@@ -1,192 +0,0 @@
-# libgtop eesti keele tõlge.
-# Estonian translation of libgtop.
-#
-# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
-# Copyright (C) 2007 The GNOME Project.
-# This file is distributed under the same license as the libgtop package.
-#
-# Tõivo Leedjärv <toivo@linux.ee>, 2003.
-# Ivar Smolin <okul@linux.ee>, 2005, 2007.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-14 03:41+0100\n"
-"PO-Revision-Date: 2007-05-14 08:09+0300\n"
-"Last-Translator: Ivar Smolin <okul@linux.ee>\n"
-"Language-Team: Estonian <gnome-et@linux.ee>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "loetud %d bait"
-msgstr[1] "loetud %d baiti"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "loetud andmete hulk"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "loetud %lu bait andmeid"
-msgstr[1] "loetud %lu baiti andmeid"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "kirjutatud %d bait"
-msgstr[1] "kirjutatud %d baiti"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Silumise lubamine"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Teaberohke väljundi lubamine"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Taustale siirdumine keelatud"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Käivitatakse inetd abil"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Kõigi käsureavõtmete nimekirja vaatamiseks käivita '%s --help'.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Toru hargilepanek"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Katkestamine"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Lõpetamine"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Lubamatu instruktsioon"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Jälitamispüünis"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Katkestamine"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT viga"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Ujukomaviga"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Kõrvaldamine"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Siini viga"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Segmenteerimisviga"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Vigane süsteemikutsungi argument"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Katkine toru"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Alarmkell"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Lõpetamine"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Sokli edasilükkamatu seisund"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Seiskamine"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Seiskamine klaviatuurilt"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Jätkamine"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Lapsprotsessi olek muudetud"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Taustalugemine tty'lt"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Taustakirjutamine tty'le"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "S/V on nüüd võimalik"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Protsessoriaja piirang ületatud"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Failisuuruse piirang ületatud"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Virtuaalne alarmkell"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Alarmkella profileerimine"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Akna suuruse muutmine"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Teabepäring"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Kasutaja kirjeldatud signaal 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Kasutaja kirjeldatud signaal 2"
diff --git a/po/eu.po b/po/eu.po
deleted file mode 100644
index 8f1b516b..00000000
--- a/po/eu.po
+++ /dev/null
@@ -1,193 +0,0 @@
-# translation of eu.po to Basque
-# This file is distributed under the same license as the PACKAGE package.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
-#
-# Hizkuntza Politikarako Sailburuordetza <hizpol@ej-gv.es>, 2004.
-# Iñaki Larrañaga Murgoitio <dooteo@euskalgnu.org>, 2004, 2005.
-# Iñaki Larrañaga Murgoitio <dooteo@zundan.com>, 2007.
-msgid ""
-msgstr ""
-"Project-Id-Version: eu\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-08-05 13:55+0200\n"
-"PO-Revision-Date: 2007-08-05 13:56+0200\n"
-"Last-Translator: Iñaki Larrañaga Murgoitio <dooteo@zundan.com>\n"
-"Language-Team: Basque <eu@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.11.4\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "byte %d irakurrita"
-msgstr[1] "%d byte irakurrita"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "irakurri datuen tamaina"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "datuen byte %lu irakurrita"
-msgstr[1] "datuen %lu byte irakurrita"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "byte %d idatzita"
-msgstr[1] "%d byte idatzita"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Gaitu arazketa"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Gaitu irteera xehatua"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Ez sardetu atzeko planoan"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "inetd-etik deitua"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Exekutatu '%s --help' komando-lerroko aukera erabilgarrien zerrenda "
-"ikusteko.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Eseki"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Eten"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Irten"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Argibide ilegala"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Gelditze-puntuaren segimendua"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Abortatu"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT errorea"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Koma mugikorraren salbuespena"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Hil"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Bus errorea"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Segmentu-bortxaketa"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Argumentu okerra sistemaren deian"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Kanalizazio hautsia"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Iratzargailua"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Amaiera"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Presazko baldintza socket-ean"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Gelditu"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Teklatua gelditzea"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Jarraitu"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Umearen egoera aldatu egin da"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Irakurri tty atzeko planoan "
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Idatzi tty-en atzeko planoan "
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "S/I posible da orain"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "PUZaren muga gaindituta"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Fitxategi-tamainaren muga gaindituta"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Iratzargailu birtuala"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Iratzargailuaren profila"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Leihoaren tamaina aldatzea"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Informazio-eskaera"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Erabiltzaileak zehaztutako 1. seinalea"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Erabiltzaileak zehaztutako 2. seinalea"
-
diff --git a/po/fa.po b/po/fa.po
deleted file mode 100644
index 5c8decbc..00000000
--- a/po/fa.po
+++ /dev/null
@@ -1,206 +0,0 @@
-# Persian translation of libgtop.
-# Copyright (C) 2003, 2005 Sharif FarsiWeb, Inc.
-# Roozbeh Pournader <roozbeh@farsiweb.info>, 2003.
-# Azin Azadi <aazadi@gmail.com>, 2005.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2005-02-03 13:40+0330\n"
-"Last-Translator: Azin Azadi <aazadi@gmail.com>\n"
-"Language-Team: Persian <farsi@lists.sharif.edu>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "خوانده شد %Id بایت"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "‌اندازه‌ی داده‌های خوانده شده"
-
-#: lib/read_data.c:72
-#, fuzzy, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "خوانده شد %Id بایت"
-
-#: lib/write.c:52
-#, fuzzy, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%Id بایت نوشته شد"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "به کار انداختن اشکال‌زدایی"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "اشکال‌زدایی"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "به کار انداختن خروجی مفصل"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "مفصل"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "عدم انشعاب در پس‌زمینه"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "از inetd احضار شد"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"خطا در گزینه‌ی ‎.\n"
-"%s: %sبرای دیدن فهرست کاملی از گزینه‌های موجود برای سطر فرمان، «%s --help» را "
-"اجرا کنید.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "معوق گذاشتن"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "وقفه"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "خروج"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "دستورالعمل غیرمجاز"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "ردگیری تله"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "قطع کردن"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "خطای EMT"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "استثنای ممیز شناور"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "خاموش کردن"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "خطای گذرگاه"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "تخلف قطعه قطعه کردن"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "آرگومان بد به فراخوانی سیستم"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "لوله‌ی شکسته"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "ساعت زنگی"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "پایان دادن"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "وضعیت اورژانس برای سوکت"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "توقف"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "توقف صفحه‌کلید"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "ادامه"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "وضعیت بچه عوض شد"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "خواندن پس‌زمینه از tty"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "نوشتن پس‌زمینه در tty"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "ورودی/خروجی اکنون امکان دارد"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "بیشتر از محدودیت واحد پردازش مرکزی شد"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "بیشتر از محدودیت اندازه‌ی پرونده شد"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-#, fuzzy
-msgid "Virtual alarm clock"
-msgstr "ساعت هشدار مجازی"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "تغییر اندازه‌ی پنجره"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "درخواست اطلاعات"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "سیگنال تعریف شده توسط کاربر ۱"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "سیگنال تعریف شده توسط کاربر ۲"
diff --git a/po/fi.po b/po/fi.po
deleted file mode 100644
index bea1da7f..00000000
--- a/po/fi.po
+++ /dev/null
@@ -1,201 +0,0 @@
-# libgtop (libgtop-GNOME-2-0-port) Finnish translation.
-# Suomennos: http://gnome-fi.sourceforge.net/
-#
-# Copyright (C) 2002 Free Software Foundation, Inc.
-# Original translator is unknown.
-# Pauli Virtanen <pauli.virtanen@hut.fi>, 2000-2002.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 1.90.1\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-08-06 16:33+0300\n"
-"PO-Revision-Date: 2005-01-29 15:17+0200\n"
-"Last-Translator: Pauli Virtanen <pauli.virtanen@hut.fi>\n"
-"Language-Team: Finnish <gnome-fi-laatu@lists.sourceforge.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d tavun luku"
-msgstr[1] "%d tavun luku"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "datan koon luku"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu tavun luku"
-msgstr[1] "%lu tavun luku"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d tavun kirjoitus"
-msgstr[1] "%d tavun kirjoitus"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Käytä virheenetsintää"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Näytä lisätietoja"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Älä käynnistä taustaprosessia"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Käynnistetty inetd-prosssista"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Katso kaikki valitsimet käyttäen komentoa \"%s --help\".\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Katkeaminen"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Keskeytys"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Lopetus"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Virheellinen käsky"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Jäljitys"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Peruminen"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT-virhe"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Liukulukupoikkeus"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Tappo"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Väylävirhe"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Muistinkäsittelyvirhe"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Virheellinen järjestelmäkutsun parametri"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Rikkinäinen putki"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Ajastin"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Sulkeutuminen"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Kiireellinen tilanne pistokkeessa"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Pysäytys"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Näppäimistöpysäytys"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Jatkaminen"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Lapsen tila muuttunut"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Tty:n taustaluku"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Tty:n taustakirjoitus"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O nyt mahdollista"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "CPU-raja ylittyi"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Tiedoston kokoraja ylittyi"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Valeajastin"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Profilointiajastin"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Ikkunan koon muutos"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Tietojen pyyntö"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Käyttäjän määrittelemä signaali 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Käyttäjän määrittelemä signaali 2"
-
-#~ msgid "DEBUG"
-#~ msgstr "VIRHEENETSINTÄ"
-
-#~ msgid "VERBOSE"
-#~ msgstr "LISÄTIEDOT"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "EI-DEMONIA"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/fr.po b/po/fr.po
deleted file mode 100644
index e0e754cc..00000000
--- a/po/fr.po
+++ /dev/null
@@ -1,192 +0,0 @@
-# French translation of libgtop.
-# Copyright (C) 1998-2004 Free Software Foundation, Inc.
-# This file is distributed under the GNU General Public License Version 2.
-#
-# Vincent Renardias <vincent@ldsol.com>, 1998-1999.
-# Fabrice Bellet <Fabrice.Bellet@imag.fr>, 1999.
-# Christophe Merlet <redfox@redfoxcenter.org>, 2000-2004.
-# Benoit Dejean <tazforever@dlfp.org>, 2004.
-# Stéphane Raimbault <stephane.raimbault@gmail.com>, 2007.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 2.9.91\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-08-24 21:26+0200\n"
-"PO-Revision-Date: 2007-08-24 21:27+0200\n"
-"Last-Translator: Stéphane Raimbault <stephane.raimbault@gmail.com>\n"
-"Language-Team: GNOME French Team <gnomefr@traduc.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n>1;\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d octet lu"
-msgstr[1] "%d octets lus"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "taille des données lues"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "lecture de %lu octet de données"
-msgstr[1] "lecture de %lu octets de données"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "écriture de %d octet"
-msgstr[1] "écriture de %d octets"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Active le débogage"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Active la sortie bavarde"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Ne pas lancer en tâche de fond"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Invoqué à partir de inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Lancer « %s --help » pour afficher la liste des options de la ligne de commande.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Hangup"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Interruption"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Quitter"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Instruction illégale"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Point d'arrêt rencontré"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Annulation"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Erreur EMT"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Exception virgule flottante"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Tuer"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Erreur bus"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Violation de segmentation"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Mauvais argument d'appel système"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Tube cassé"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Alarme d'horloge"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Signal de fin"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Condition urgente sur socket"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Arrêt"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Arrêt depuis le clavier"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Continuer"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "L'état du fils a changé"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Lecture sur tty en arrière-plan"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Écriture sur tty en arrière-plan"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "E/S maintenant possible"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Limite de temps CPU dépassée"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Taille de fichier excessive"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Alarme virtuelle"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Profile de l'alarme"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Redimensionnement de la fenêtre"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Demande d'information"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Signal utilisateur 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Signal utilisateur 2"
diff --git a/po/ga.po b/po/ga.po
deleted file mode 100644
index 4c371434..00000000
--- a/po/ga.po
+++ /dev/null
@@ -1,203 +0,0 @@
-# Irish (gaeilge) translations for libgtop.pot (Gnome)
-# Copyright (C) 1998,2004 Free Software Foundation, Inc.
-# Alastair McKinstry <mckinstry@computer.org>, 1998
-# Paul Duffy <dubhthach@frink.nuigalway.ie>, 2003
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop-GNOME-2-0-port \n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2004-01-23 18:10+0000\n"
-"Last-Translator: Alastair McKinstry <mckinstry@computer.org>\n"
-"Language-Team: Irish <gaeilge-gnulinux@lists.sourceforge.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] ""
-msgstr[1] ""
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr ""
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] ""
-msgstr[1] ""
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr ""
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr ""
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr ""
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr ""
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr ""
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr ""
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr ""
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr ""
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Idirbhrís"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Ealu"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Earraidh Bus"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Píopa Briste"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr ""
diff --git a/po/gl.po b/po/gl.po
deleted file mode 100644
index 8862bfbf..00000000
--- a/po/gl.po
+++ /dev/null
@@ -1,217 +0,0 @@
-# translation of libgtop.gnome-2-10.po to Galego
-# Galician translation of libgtop.
-# Copyright (C) 1999, 2000 Jesus Bravo Alvarez
-#
-# Se desexas colaborar connosco na traducción de programas libres ó galego,
-# vai mira-la páxina do noso grupo: http://www.ctv.es/USERS/jtarrio/trans
-#
-# Conclusion Date: 1999-10-09 23:46+0200
-#
-# Se alguén me axuda coa revisión dalgunhas traduccións "pouco ortodoxas",
-# agradeceríallo. ;-)
-# Jesus Bravo Alvarez <jba@pobox.com>, 1999, 2000.
-# Ignacio Casal Quinteiro <nacho.resa@gmail.com>, 2005.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.gnome-2-10\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-12-04 15:52+0100\n"
-"PO-Revision-Date: 2005-06-13 17:22+0200\n"
-"Last-Translator: Ignacio Casal Quinteiro <nacho.resa@gmail.com>\n"
-"Language-Team: Galego\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.9.1\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "lido %d byte"
-msgstr[1] "lidos %d bytes"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "tamaño dos datos lidos"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "lido %lu byte de datos"
-msgstr[1] "lidos %lu bytes de datos"
-
-#: ../lib/write.c:53
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "escrito %d byte"
-msgstr[1] "escritos %d bytes"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Activar depuración"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEPURACIÓN"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Activar saída detallada"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "DETALLADO"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Non facer fork na tarefa de fondo"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NON-DAEMON"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Invocado desde inetd"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Produciuse un erro na opción %s: %s.\n"
- "Execute '%s --help' para ver unha lista completa das opcións de liña\n"
- "de comandos dispoñibles.\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "Colgar"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "Interromper"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "Saír"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "Instrución ilegal"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "Captura do rastro"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "Interromper"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "Erro EMT"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "Excepción da coma flotante"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "Matar"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "Erro de bus"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "Erro de segmento"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "Argumento incorrecto na chamada ao sistema"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "Canalización danada"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "Reloxo de alarma"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "Finalización"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "Condición urxente no conectador"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "Deter"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "Detención co teclado"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "Continuar"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "O estado do fillo cambiou"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "Lectura en segundo plano do tty"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "Escritura en segundo plano ao tty"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "A E/S é posible agora"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "Límite de CPU excedido"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "Excedeuse o límite de tamaño do ficheiro"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "Reloxo de alarma virtual"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "Reloxo de alarma con perfil"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "Cambio do tamaño da ventá"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "Petición de Información"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "Sinal 1 definido polo usuario"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "Sinal 2 definido polo usuario"
diff --git a/po/gu.po b/po/gu.po
deleted file mode 100644
index df67c348..00000000
--- a/po/gu.po
+++ /dev/null
@@ -1,190 +0,0 @@
-# translation of libgtop.HEAD.gu.po to Gujarati
-# MagNet <magnet@magnet-i.com>, 2004.
-# Ankit Patel <ankit@redhat.com>, 2004, 2005, 2007.
-# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD.gu\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-14 03:41+0100\n"
-"PO-Revision-Date: 2007-08-07 12:42+0530\n"
-"Last-Translator: Ankit Patel <ankit@redhat.com>\n"
-"Language-Team: Gujarati <fedora-trans-gu@redhat.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"<magnet@magnet-i.com>\n"
-"Plural-Forms: nplurals=2; plural=(n!=1);\n\n"
-"\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d બાઈટ વાંચો"
-msgstr[1] "%d બાઈટો વાંચો"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "માહિતિનું માપ વાંચો"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu બાઈટની માહિતી વાંચો"
-msgstr[1] "%lu બાઈટોની માહિતી વાંચો"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d બાઈટ લખાયેલ હતો"
-msgstr[1] "%d બાઈટો લખાયેલ હતા"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "ભૂલ શોધવાની પ્રક્રિયાને સક્રિય કરો"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "વર્ણનીય પરિણામને સક્રિય કરો"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "પાછળના ભાગમાં fork કરો નહિં"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "inetd માંથી શરુ કરાયેલુ"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "પ્રાપ્ય આદેશના વિકલ્પોની પૂર્ણ યાદિ જોવા માટે '%s --help' ચલાવો.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "અટકી ગયેલુ"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "ભંગાણ સૂચન"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "બહાર નીકળો"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "અસામાન્ય માહિતી"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "રેખાંકન અટકાવો"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "અધૂરુ રાખીને જવુ"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT ભૂલ"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "અપૂર્ણાંક અપવાદ"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "મારી નાખો"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Bus ની ભૂલ"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "વિભાગનુ ખંડન"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "સિસ્ટમ કોલ માટેની ખરાબ દલીલ"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "તૂટેલી પાઇપ"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "એલાર્મ ઘડિયાળ"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "પૂરું કરી રહ્યા છે"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "સોકેટ પરની તાત્કાલિક શરત"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "અટકો"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "કી બોર્ડ અટકાવો"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "ચાલુ રાખો"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "બાળ સ્થિતિ બદલાઇ ગઇ છે"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "પાછળના ભાગનું tty માંથી વંચાય છે"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "પાછળનો ભાગ tty માં લખે છે"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O હવે શક્ય છે"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "CPU સીમા પાર થઇ ગઇ છે"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "ફાઇલના માપની સીમા પાર થઇ ગઇ છે"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "આભસી એલાર્મ ઘડિયાળ"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "રુપરેખાંકિત એલાર્મ ઘડિયાળ"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "વિન્ડોના માપમાં બદલાવ"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "જાણકારી માટે વિનંતી"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "વપરાશકર્તા દ્વારા વ્યાખ્યાયિત સંકેત ૧"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "વપરાશકર્તા દ્વારા વ્યાખ્યાયિત સંકેત ૨"
-
diff --git a/po/he.po b/po/he.po
deleted file mode 100644
index 4b8d6163..00000000
--- a/po/he.po
+++ /dev/null
@@ -1,409 +0,0 @@
-# translation of libgtop.libgtop-GNOME-2-0-port.he.po to Hebrew
-# translation of libgtop.libgtop-GNOME-2-0-port.po to Hebrew
-# This file is distributed under the same license as the PACKAGE package.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# Gil 'Dolfin' Osher <dolfin@rpg.org.il>, 2003
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.libgtop-GNOME-2-0-port.he\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-04-27 17:02+0300\n"
-"PO-Revision-Date: 2003-03-18 18:06+0200\n"
-"Last-Translator: Yair Hershkovitz <yairhr@gmail.com>\n"
-"Language-Team: Hebrew <he@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.0\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-# *** This library should not be translated (only copy the english msgs) ***
-# *** Old hebrew translation is commented for backup sake ***
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "read %d byte"
-msgstr[1] "read %d bytes"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "read data size"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "read %lu byte of data"
-msgstr[1] "read %lu bytes of data"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "wrote %d byte"
-msgstr[1] "wrote %d bytes"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Enable debugging"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEBUG"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Enable verbose output"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Don't fork into background"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Invoked from inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "Hangup"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "Interrupt"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "Quit"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "Illegal instruction"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "Trace trap"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "Abort"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "EMT error"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "Floating-point exception"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "Kill"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "Bus error"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "Segmentation violation"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "Bad argument to system call"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "Broken pipe"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "Alarm clock"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "Termination"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "Urgent condition on socket"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "Stop"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "Keyboard stop"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "Continue"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "Child status has changed"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "Background read from tty"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "Background write to tty"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "I/O now possible"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "CPU limit exceeded"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "File size limit exceeded"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "Virtual alarm clock"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "Profiling alarm clock"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "Window size change"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "Information request"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "User defined signal 1"
-
-#: sysdeps/osf1/siglist.c:59 sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "User defined signal 2"
-
-#
-##: lib/read.c:65
-##, c-format
-#msgid "read %d byte"
-#msgid_plural "read %d bytes"
-#msgstr[0] ""
-#"נקראו %d בתים"
-#msgstr[1] ""
-#"נקראו %d בתים"
-#
-##: lib/read_data.c:53
-#msgid "read data size"
-#msgstr "קורא את גודל המידע"
-#
-##: lib/read_data.c:72
-##,, c-format
-#msgid "read %lu byte of data"
-#msgid_plural "read %lu bytes of data"
-#msgstr[0] ""
-#"נקראו %lu בתים של מידע"
-#msgstr[1] ""
-#"נקראו %lu בתים של מידע"
-#
-##: lib/write.c:52
-##, c-format
-#msgid "wrote %d byte"
-#msgid_plural "wrote %d bytes"
-#msgstr[0] ""
-#"נכתבו %d בתים"
-#msgstr[1] ""
-#"נכתבו %d בתים"
-#
-##: src/daemon/gnuserv.c:460
-#msgid "Enable debugging"
-#msgstr "אפשר ניפוי"
-#
-##: src/daemon/gnuserv.c:460
-#msgid "DEBUG"
-#msgstr "ניפוי"
-#
-##: src/daemon/gnuserv.c:462
-#msgid "Enable verbose output"
-#msgstr "אפשר פלט מפורט"
-#
-##: src/daemon/gnuserv.c:462
-#msgid "VERBOSE"
-#msgstr "מפורט"
-#
-##: src/daemon/gnuserv.c:464
-#msgid "Don't fork into background"
-#msgstr "אל תשכפל לרקע"
-#
-##: src/daemon/gnuserv.c:464
-#msgid "NO-DAEMON"
-#msgstr "NO-DAEMON"
-#
-##: src/daemon/gnuserv.c:466
-#msgid "Invoked from inetd"
-#msgstr ""
-#
-##: src/daemon/gnuserv.c:466
-#msgid "INETD"
-#msgstr ""
-#
-##: src/daemon/gnuserv.c:500
-##, c-format
-#msgid ""
-#"Error on option %s: %s.\n"
-#"Run '%s --help' to see a full list of available command line options.\n"
-#msgstr ""
-#"שגיאה באפשרות %s: %s.\n"
-#"הפעל '%s --help' כדי לראות רשימה מלאה של אפשרויות שורות פקודה זמינות.\n"
-#
-##: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-#msgid "Hangup"
-#msgstr "ניתוק"
-#
-##: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-#msgid "Interrupt"
-#msgstr "הפרעה"
-#
-##: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-#msgid "Quit"
-#msgstr "יציאה"
-#
-##: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-#msgid "Illegal instruction"
-#msgstr "הוראה לא חוקית"
-#
-##: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-#msgid "Trace trap"
-#msgstr ""
-#
-##: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-#msgid "Abort"
-#msgstr "ביטול"
-#
-##: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-#msgid "EMT error"
-#msgstr "שגיאת EMT"
-#
-##: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-#msgid "Floating-point exception"
-#msgstr ""
-#
-##: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-#msgid "Kill"
-#msgstr "הרוג"
-#
-##: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-#msgid "Bus error"
-#msgstr "שגיאת אפיק"
-#
-##: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-#msgid "Segmentation violation"
-#msgstr "הפרעת התחלקות"
-#
-##: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-#msgid "Bad argument to system call"
-#msgstr ""
-#
-##: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-#msgid "Broken pipe"
-#msgstr "צינור שבור"
-#
-##: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-#msgid "Alarm clock"
-#msgstr "שעון מעורר"
-#
-##: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-#msgid "Termination"
-#msgstr "סיום"
-#
-##: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-#msgid "Urgent condition on socket"
-#msgstr ""
-#
-##: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-#msgid "Stop"
-#msgstr "עצור"
-#
-##: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-#msgid "Keyboard stop"
-#msgstr "עצירת מקלדת"
-#
-##: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-#msgid "Continue"
-#msgstr "המשך"
-#
-##: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-#msgid "Child status has changed"
-#msgstr "מצב הילד השתנה"
-#
-##: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-#msgid "Background read from tty"
-#msgstr "קרית רקע מ tty"
-#
-##: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-#msgid "Background write to tty"
-#msgstr "כתיבת רקע מ tty"
-#
-##: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-#msgid "I/O now possible"
-#msgstr "קלט/פלט עכשיו אפשרי"
-#
-##: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-#msgid "CPU limit exceeded"
-#msgstr ""
-#
-##: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-#msgid "File size limit exceeded"
-#msgstr ""
-#
-##: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-#msgid "Virtual alarm clock"
-#msgstr "שעון מעורר וירוטאלי"
-#
-##: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-#msgid "Profiling alarm clock"
-#msgstr ""
-#
-##: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-#msgid "Window size change"
-#msgstr "שינוי גודל חלון"
-#
-##: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-#msgid "Information request"
-#msgstr "בקשת מידע"
-#
-##: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-#msgid "User defined signal 1"
-#msgstr "אות מוגדר משתמש 1"
-#
-##: sysdeps/osf1/siglist.c:59 sysdeps/sun4/siglist.c:59
-#msgid "User defined signal 2"
-#msgstr "אות מוגדר משתמש 2"
diff --git a/po/hi.po b/po/hi.po
deleted file mode 100644
index 8c0b356c..00000000
--- a/po/hi.po
+++ /dev/null
@@ -1,211 +0,0 @@
-# translation of libgtop.HEAD.hi.po to Hindi
-# This file is distributed under the same license as the PACKAGE package.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
-# Ashutosh Sahu <ashutosh_sahu@rediffmail.com>, 2003.
-# Ravishankar Shrivastava <raviratlami@yahoo.com>, 2004.
-# Rajesh Ranjan <rranjan@redhat.com>, 2005.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD.hi\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2005-06-24 13:16+0530\n"
-"Last-Translator: Rajesh Ranjan <rranjan@redhat.com>\n"
-"Language-Team: Hindi <fedora-trans-hi@redhat.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.9.1\n"
-"Plural-Forms: nplurals=2; plural=(n!=1);\n"
-"\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "पढ़ें %d बाइट"
-msgstr[1] "पढ़ें %d बाइट्स"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "डेटा आकार पढ़ें"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu आंकड़ा का बाइट पढ़ें"
-msgstr[1] "%lu आंकड़ा का बाइट्स पढ़ें"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d बाइट लिखा"
-msgstr[1] "%d बाइट्स लिखा"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "डीबगिंग सक्षम करें"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "डीबग"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "वाचाल आउटपुट सक्षम करें"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "वाचाल"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "पृष्ठभूमि में फॉर्क न करें"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "डेमन-नहीं"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr " inetd द्वारा बुलाया गया "
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"विकल्प %s: %s.\n"
-"में त्रुटि. चलाएँ '%s --help' उपलब्ध कमांड लाइन विकल्प की पूरी सूची देखने हेतु.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "हैंगअप"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "इंटरप्ट"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "बाहर"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "अवैध निर्देश"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "ट्रेस ट्रैप"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "छोड़ें"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "ईएमटी त्रुटि"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "फ़्लोटिंग-पाइंट अपवाद"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "किल"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "बस त्रुटि"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "सेगमेंटेशन अतिक्रमण"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "सिस्टम काल को गलत आर्गुमेंट"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "टूटा पाइप"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "अलार्म घड़ी"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "समाप्त"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "सॉकेट पर अत्यावश्यक अवस्था"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "रोकें"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "कुंजीपटल रोकें"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "जारी रखें"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "शिशु स्थिति बदल चुकी है"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "टीटीवाई से पढ़ने का कार्य पृष्ठभूमि में करें"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "टीटीवाई पर लिखने का कार्य पृष्ठभूमि में करें"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "आई/ओ अब संभव"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "सीपीयू सीमा से बाहर पहुँच चुकी"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "फ़ाइल आकार सीमा से बाहर पहुँच चुकी"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "आभासी अलार्म घड़ी"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "प्रोफ़ाइलिंग अलार्म घड़ी"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "विंडो आकार परिवर्तन"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "जानकारी निवेदन"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "उपयोगकर्ता पारिभाषित संकेत १"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "उपयोगकर्ता पारिभाषित संकेत २"
diff --git a/po/hr.po b/po/hr.po
deleted file mode 100644
index e07a8fad..00000000
--- a/po/hr.po
+++ /dev/null
@@ -1,211 +0,0 @@
-# Translation of libgtop to Croatiann
-# Copyright (C) Croatiann team
-# Translators: Automatski Prijevod <>,Robert Sedak <robert.sedak@sk.tel.hr>,
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 0\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2004-02-05 23:51+CET\n"
-"Last-Translator: auto\n"
-"Language-Team: Croatian <lokalizacija@linux.hr>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: TransDict server\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
-"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "čitaj %d bajt"
-msgstr[1] "čitaj %d bajtova"
-msgstr[2] ""
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "veličina pročitanih podataka"
-
-#: lib/read_data.c:72
-#, fuzzy, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "čitaj %d bajt"
-msgstr[1] "čitaj %d bajtova"
-msgstr[2] ""
-
-#: lib/write.c:52
-#, fuzzy, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "piši %d bajt"
-msgstr[1] "piši %d bajtova"
-msgstr[2] ""
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Omogućavanje debugiranja"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "Uklanjanje grešaka"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Omogući opširni izlaz"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "OPŠIRNO"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Bez forkanja u pozadini"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Pozvano iz inetda"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Greška na opciji %s: %s.\n"
-"Pokrenite '%s --help' za potpuni popis svih opcija mogućih u naredbenoj "
-"liniji.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Prekidanje veze"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Prekid"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Izlaz"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Nedopuštena instrukcija"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Prati trap"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Odustani"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "EMT greška"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Iznimka pomičnog zareza"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Ubij"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Sabirnička greška"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Povreda segmenta"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Neispravan argument za sistemski poziv"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Prekinut kanal"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Budilica"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Završetak"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Hitno stanje na socketu"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Zaustavi"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Zaustavljanje tipkovnice"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Nastavi"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Status djeteta je promijenjen"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Pozadinsko čitanje iz tty-a"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Pozadinsko pisanje na tty"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "U/I je sada moguć"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "CPU granica iskorištena"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Prekoračeno ograničenje veličine spisa"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Virtualni alarmni sat"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Profiliranje sata alarma"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Promjena veličine prozora"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Zahtjev za informacijom"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Korisnički definiran signal 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Korisnički definiran signal 2"
diff --git a/po/hu.po b/po/hu.po
deleted file mode 100644
index 4c11605d..00000000
--- a/po/hu.po
+++ /dev/null
@@ -1,192 +0,0 @@
-# Hungarian translation of libgtop.
-# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
-# This file is distributed under the same license as the libgtop package.
-#
-# Robert Vanyi <robi@mora.u-szeged.hu>, 2000, 2001.
-# Andras Timar <timar@gnome.hu>, 2002, 2003.
-# Laszlo Dvornik <dvornik@gnome.hu>, 2004.
-# Gabor Kelemen <kelemeng@gnome.hu>, 2004, 2005, 2007.
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-14 03:41+0100\n"
-"PO-Revision-Date: 2007-09-13 23:08+0200\n"
-"Last-Translator: Gabor Kelemen <kelemeng@gnome.hu>\n"
-"Language-Team: Hungarian <gnome@gnome.hu>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d bájt olvasása"
-msgstr[1] "%d bájt olvasása"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "olvasási adatméret"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu bájt adat olvasása"
-msgstr[1] "%lu bájt olvasása"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d bájt kiírva"
-msgstr[1] "%d bájt kiírva"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Hibakeresés engedélyezése"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Részletes üzenetek bekapcsolása"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Ne forkoljon a háttérbe"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "inetd-ből indítva"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Futtassa a(z) \"%s --help\" parancsot a parancssori kapcsolók listájáért.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Felfüggesztés"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Megszakítás"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Kilépés"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Illegális utasítás"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Nyomkövetési csapda"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Megszakítás"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT hiba"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Lebegőpontos kivétel"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Kilövés"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Buszhiba"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Szegmentáció megsértése"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Rendszerhívás rossz argumentummal"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Megszakadt csővezeték"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Ébresztőóra"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Befejezés"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Sürgős állapot a foglalaton"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Leállítás"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Billentyűzet stop"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Folytatás"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "A gyermek állapota megváltozott"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Háttérbeli olvasás a tty-ről"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Háttérbeli írás a tty-re"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "Az I/O most lehetséges"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "CPU-korlát túllépve"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Fájlméret korlátja túllépve"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Virtuális ébresztőóra"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Ébresztőóra profilírozása"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Ablakméret változása"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Információkérés"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Felhasználói szignál 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Felhasználói szignál 2"
-
diff --git a/po/id.po b/po/id.po
deleted file mode 100644
index cb2add50..00000000
--- a/po/id.po
+++ /dev/null
@@ -1,207 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop libgtop-GNOME-2-0-port\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2003-02-10 18:01+0700\n"
-"Last-Translator: Mohammad DAMT <mdamt@bisnisweb.com>\n"
-"Language-Team: Indonesia <id@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: lib/read.c:65
-#, fuzzy, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "baca %d byte"
-msgstr[1] "baca %d byte"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "ukuran data saat membaca"
-
-#: lib/read_data.c:72
-#, fuzzy, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "baca %d byte"
-msgstr[1] "baca %d byte"
-
-#: lib/write.c:52
-#, fuzzy, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "tulis %d byte"
-msgstr[1] "tulis %d byte"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Aktifkan debuging"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEBUG"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Aktifkan output yang lengkap"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Jangan fork ke background"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Diaktifkan dari inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Error pada pilihan %s: %s.\n"
-"Jalankan '%s --help' untuk melihat daftar penuh pilihan perintah yang "
-"tersedia\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Hangup"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Interupsi"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Keluar"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Instruksi ilegal"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Jebakan trace"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Batal"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "Error EMT"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Eksepsi Floating-point"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Matikan"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Error bus"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Pelanggaran segmentasi"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Parameter ke sistem call salah"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Pipa rusak"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Jam alarm"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Penghentian"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Kondisi gawat pada soket"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Stop"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Stop keyboard"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Lanjutkan"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Status anak telah berubah"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Baca diam-diam dari tty"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Tulis diam-diam ke tty"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "I/O dimungkinkan"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "Batasan CPU terlampaui"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Batasan ukuran file terlampaui"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Jam alarm virtual"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Melakukan profil jam alarm"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Ukuran window berubah"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Permintaan informasi"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Sinyal 1 milik user"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Sinyal 2 milik user"
diff --git a/po/it.po b/po/it.po
deleted file mode 100644
index 132d1ba8..00000000
--- a/po/it.po
+++ /dev/null
@@ -1,207 +0,0 @@
-# libgtop Italian translation
-# Copyright (C) 2003 Free Software Foundation, Inc.
-# Alessio Frusciante <algol@firenze.linux.it>, 2003-2005
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2005-03-03 22:47+0100\n"
-"Last-Translator: Alessio Frusciante <algol@firenze.linux.it>\n"
-"Language-Team: Italian <tp@lists.linux.it>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "letto %d byte"
-msgstr[1] "letti %d byte"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "dimensione dei dati letti"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "letto %lu byte di dati"
-msgstr[1] "letti %lu byte di dati"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "scrittura di %d byte"
-msgstr[1] "scrittura di %d byte"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Abilita debug"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEBUG"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Abilita output prolisso"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Non fare fork in background"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Invocato da inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Errore nell'opzione %s: %s.\n"
-"Eseguire '%s --help' per vedere una lista completa delle opzioni per la "
-"linea di comando.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Hangup"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Interrupt"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Quit"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Illegal instruction"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Trace trap"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Abort"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "EMT error"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Floating-point exception"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Kill"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Bus error"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Segmentation violation"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Bad argument to system call"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Broken pipe"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Alarm clock"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Termination"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Urgent condition on socket"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Stop"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Keyboard stop"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Continue"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Lo stato del figlio è cambiato"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Lettura in background dalla tty"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Scrittura in background sulla tty"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "I/O adesso possibile"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "Superato il limite della CPU"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Superato il limite nella dimensione dei file"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Virtual alarm clock"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Profiling alarm clock"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Window size change"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Information request"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Segnale definito dall'utente 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Segnale definito dall'utente 2"
diff --git a/po/ja.po b/po/ja.po
deleted file mode 100644
index 72ad6bb2..00000000
--- a/po/ja.po
+++ /dev/null
@@ -1,192 +0,0 @@
-# libgtop ja.po.
-# Copyright (C) 1998,2000,2002-2007 Free Software Foundation, Inc.
-# Eiichiro ITANI <emu@ceres.dti.ne.jp>, 1998
-# Takayuki KUSANO <AE5T-KSN@asahi-net.or.jp>, 2000, 2002.
-# Yukihiro Nakai <nakai@gnome.gr.jp>, 2000.
-# KAMAGASAKO Masatoshi <emerald@gnome.gr.jp>, 2003.
-# Takeshi AIHANA <takeshi.aihana@gmail.com>, 2004-2007.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop trunk\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-07-08 01:03+0900\n"
-"PO-Revision-Date: 2007-07-08 01:03+0900\n"
-"Last-Translator: Takeshi AIHANA <takeshi.aihana@gmail.com>\n"
-"Language-Team: Japanese <gnome-translation@gnome.gr.jp>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] " %dバイト読み込み"
-msgstr[1] " %dバイト読み込み"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "データの読み込みサイズ"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] " %luバイトデータの読み込み"
-msgstr[1] " %luバイトデータの読み込み"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] " %dバイトの書き込み"
-msgstr[1] " %dバイトの書き込み"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "デバッグを有効にする"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "詳細な出力にする"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "子プロセスをバックグラウンドに回さない"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "`inetd` から起動する"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"利用可能なコマンド・ラインのオプション一覧を表示する場合は '%s --help' を実行"
-"して下さい\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "ハングアップ"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "インタラプト"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "終了"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "不正なインストラクション"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "トレーストラップ"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "停止"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT エラー"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "浮動小数点例外"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "強制終了"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "バスエラー"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "セグメンテーションバイオレーション"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "システムコールの引数が誤っています"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "パイプ破壊"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "アラームクロック"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "ターミネーション"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "ソケットの緊急状態"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "ストップ"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "キーボード停止"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "コンティニュー"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "子プロセス状態が変更された"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "TTY からのバックグラウンド読み込み"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "TTY へのバックグラウンド書き込み"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/Oが使用可能"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "CPU の限界を越えた"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "ファイルサイズの限界を越えた"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "仮想アラームクロック"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "アラームクロックのプロファイル"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "ウィンドウサイズの変更"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "情報リクエスト"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "ユーザ定義シグナル1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "ユーザ定義シグナル2"
diff --git a/po/ka.po b/po/ka.po
deleted file mode 100644
index a02d3e66..00000000
--- a/po/ka.po
+++ /dev/null
@@ -1,220 +0,0 @@
-# translation of libgtop.po to Georgian
-# Copyright (C) 2006 Gnome Georgian Translators
-# This file is distributed under the same license as the libgtop package.
-#
-# Alexander Didebulidze <didebuli@in.tum.de>, 2006.
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-02-25 08:57+0100\n"
-"PO-Revision-Date: 2006-03-18 03:28+0100\n"
-"Last-Translator: Alexander Didebulidze <didebuli@in.tum.de>\n"
-"Language-Team: Georgian <gnome@inet.ge>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0"
-
-#: ../lib/read.c:65
-#, c-format
-#, fuzzy
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "byte"
-
-#: ../lib/read_data.c:53
-#, fuzzy
-msgid "read data size"
-msgstr "სიდიდე"
-
-#: ../lib/read_data.c:72
-#, c-format
-#, fuzzy
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "byte"
-
-#: ../lib/write.c:52
-#, c-format
-#, fuzzy
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "byte"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEBUG"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-#, fuzzy
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr "შეცდომა -სკენ a ხაზი n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "გამოსვლა"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "არალეგალური ინსტრუქცია"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-#, fuzzy
-msgid "Trace trap"
-msgstr "გამოთვალე"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "შეწყვეტა"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "EMT შეცდომა"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-#, fuzzy
-msgid "Bus error"
-msgstr "შეცდომა"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-#, fuzzy
-msgid "Bad argument to system call"
-msgstr "-სკენ"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "შეჩერება"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-#, fuzzy
-msgid "Keyboard stop"
-msgstr "კლავიატურა"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "გაგრძელება"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-#, fuzzy
-msgid "Background read from tty"
-msgstr "ფონი"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-#, fuzzy
-msgid "Background write to tty"
-msgstr "ფონი -სკენ"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "I/O ახლა შესაძლებელია"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-#, fuzzy
-msgid "CPU limit exceeded"
-msgstr "CPU"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-#, fuzzy
-msgid "File size limit exceeded"
-msgstr "ფაილი სიდიდე"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-#, fuzzy
-msgid "Window size change"
-msgstr "ფანჯარა სიდიდე"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-#, fuzzy
-msgid "Information request"
-msgstr "ინფორმაცია"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-#, fuzzy
-msgid "User defined signal 1"
-msgstr "მომხმარებელი 1"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-#, fuzzy
-msgid "User defined signal 2"
-msgstr "მომხმარებელი 2"
-
diff --git a/po/ko.po b/po/ko.po
deleted file mode 100644
index fdf16fd1..00000000
--- a/po/ko.po
+++ /dev/null
@@ -1,203 +0,0 @@
-# libgtop ko.po
-# Sung-Hyun Nam <namsh@lgic.co.kr>, 1998
-# Changwoo Ryu <cwryu@debian.org>, 2002, 2004, 2005.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 2.9.92\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2005-02-18 21:24+0900\n"
-"Last-Translator: Changwoo Ryu <cwryu@debian.org>\n"
-"Language-Team: GNOME Korea <gnome-kr-hackers@lists.kldp.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d바이트 읽음"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "데이타 크기 읽음"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "데이터 %lu바이트 읽음"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d바이트 씀"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "디버깅 사용"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "디버그"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "많은 출력 사용"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "백그라운드로 실행 안 함"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "inetd에 의해 불림"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"옵션 %s에 에러: %s.\n"
-"실행 가능한 명령행 옵션을 모두 보려면 '%s --help'라고 실행하십시오.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "끊어짐"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "인터럽트"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "끝내기"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "잘못된 기계명령"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "추적 트랩"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "중지"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "EMT 에러"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "실수연산 예외"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "죽임"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "버스 에러"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "세그먼테이션 위반"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "시스템 콜에 잘못된 인자"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "깨진 파이프"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "알람 클럭"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Termination"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "소켓에 위급한 조건"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "중지"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "키보드 중지"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "계속"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "하위 프로세스 상태가 바뀌었습니다"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "tty에서 백그라운드 읽기"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "tty로 백그라운드 쓰기"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "I/O 이제 가능"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "CPU 한계 초과"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "파일 크기 한계 초과"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "가상 알람 클럭"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Profiling 알람 클럭"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "창 크기 바뀜"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "정보 요청"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "사용자 정의 신호 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "사용자 정의 신호 2"
diff --git a/po/ku.po b/po/ku.po
deleted file mode 100644
index 1b40592c..00000000
--- a/po/ku.po
+++ /dev/null
@@ -1,208 +0,0 @@
-# translation of libgtop.HEAD.po to Kurdish
-# This file is distributed under the same license as the PACKAGE package.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
-# Erdal Ronahi <erdal.ronahi@gmail.com>, 2005.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-09 13:40+0200\n"
-"PO-Revision-Date: 2005-10-15 16:41+0200\n"
-"Last-Translator: Erdal Ronahi <erdal.ronahi@gmail.com>\n"
-"Language-Team: Kurdish <gnu-ku-wergerandin@lists.sourceforge.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural= n != 1\n"
-"X-Generator: KBabel 1.10\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d bayt hat xwendin"
-msgstr[1] "%d bayt hatin xwendin"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr ""
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] ""
-msgstr[1] ""
-
-#: ../lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d bayt hat nivîsandin"
-msgstr[1] "%d bayt hatin nivîsandin"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:464
-#, fuzzy
-msgid "NO-DAEMON"
-msgstr "DAEMON TUNE"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Derkeve"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Betal bike"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Bikuje"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Bisekinîne"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Bidomîne"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr ""
-
diff --git a/po/ky.po b/po/ky.po
deleted file mode 100644
index 1256c630..00000000
--- a/po/ky.po
+++ /dev/null
@@ -1,210 +0,0 @@
-# translation of ky.po to Kitghiz
-# Kirghiz translation of libgtop.
-# Copyright (C) 1999, 2005 Free Software Foundation, Inc.
-# This file is distributed under the same license as the libgtop package.
-# Timur Jamakeev <ztimur@gmail.com>, 2005.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: ky\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-11-17 17:07+0500\n"
-"PO-Revision-Date: 2005-11-17 17:42+0500\n"
-"Last-Translator: Timur Jamakeev <ztimur@gmail.com>\n"
-"Language-Team: Kitghiz\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: KBabel 1.9.1\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d байт окулду"
-msgstr[1] ""
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "окулган берилиштердин көлөмү"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu байт берилиш окулду"
-msgstr[1] ""
-
-#: ../lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d байт жазылды"
-msgstr[1] ""
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Дебагды иштетүү"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "ДЕБАГ"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Кеңири чыгаруу"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "КЕҢИРИ"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Фондук режимге бөлбөө"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "ДЕМОНУ-ЖОК"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "inetd аркылуу чакырылган"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"\"%s\" параметринде ката байкалды: %s\n"
-"Командалык саптын мүмкүн болгон бардык параметрлерин көрүү үчүн \"%s --help\" командасын колдонуңуз.\n"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Үзүү"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Убактылуу токтотуу"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Чыгуу"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Туура эмес инструкция"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Трассировканы кармоо"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Токтотуу"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "EMT катасы"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Өлтүрүү"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Шина катасы"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Сегментациянын бузулушу"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Системалык чакыруудагы туура эмес аргумент"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Бузулган канал"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Таймер"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Аяктоо"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Көңүл бурууну талап кылган сокет"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Стоп"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Алиптергичти токтотуу"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Улантуу"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Тукумдун абалы өзгөрүлдү"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "tty-ден фондук режимде окуу"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "tty-ге фондук режимде жазуу"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "Киргизүү/Чыгаруу эми мүмкүн"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "CPU пределинен ашты"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Файл көлөмүнүн пределинен ашты"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Виртуалдык таймер"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Профилдик таймер"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Терезе өлчөмүн өзгөртүү"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Маалымат талап кылуу"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Колдонуучу сигналы 1"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Колдонуучу сигналы 2"
-
diff --git a/po/lt.po b/po/lt.po
deleted file mode 100644
index e6718605..00000000
--- a/po/lt.po
+++ /dev/null
@@ -1,198 +0,0 @@
-# translation of lt.po to Lithuanian
-# Lithuanian translation of libgtop library.
-# Copyright (C) 2003-2006 Free Software Foundation.
-# This file is distributed under the same license as the libgtop package.
-#
-#
-# Tomas Kuliavas <tokul@users.sourceforge.net>, 2003.
-# Žygimantas Beručka <zygis@gnome.org>, 2003-2006.
-# Gintautas Miliauskas <gintas@akl.lt>, 2007.
-msgid ""
-msgstr ""
-"Project-Id-Version: lt\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-09-16 13:57+0300\n"
-"PO-Revision-Date: 2007-09-16 13:58+0300\n"
-"Last-Translator: Žygimantas Beručka <zygis@gnome.org>\n"
-"Language-Team: Lithuanian <gnome-lt@lists.akl.lt>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "perskaitytas %d baitas"
-msgstr[1] "perskaityti %d baitai"
-msgstr[2] "perskaityta %d baitų"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "perskaitytų duomenų dydis"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "perskaitytas %lu baitas duomenų"
-msgstr[1] "perskaityti %lu baitai duomenų"
-msgstr[2] "perskaityta %lu baitų duomenų"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "įrašytas %d baitas"
-msgstr[1] "įrašyti %d baitai"
-msgstr[2] "įrašyta %d baitų"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Įjungti testavimo veikseną"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Įjungti išsamią išvestį"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Neperkelti į foninę veikseną"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Paleista iš inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Paleiskite „%s --help“, norėdami pamatyti visus galimus komandinės eilutės "
-"parametrus.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Atsijungti"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Pertraukimas"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Išeiti"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Neleistina instrukcija"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Sekimo spąstai"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Nutraukti"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT klaida"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Slankaus kablelio klaida"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Nužudyti"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Magistralės klaida"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Segmentacijos pažeidimas"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Klaidingi sisteminio iškvietimo argumentai"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Netvarkingas nukreipimas"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Signalinis laikrodis"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Nutraukimas"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Ekstremalios jungties sąlygos "
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Stop"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Klaviatūros sustabdymas"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Tęsti"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Susijusio proceso būklė pakito"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Foninis skaitymas iš tty"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Foninis rašymas į tty"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "Dabar leistinas I/O"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "CPU apribojimai viršyti"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Failų dydžio apribojimai viršyti"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Virtualus signalinis laikrodis"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Profiliavimo signalinis laikrodis"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Lango dydžio keitimas"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Informacijos užklausa"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Pirmas naudotojo nurodytas signalas (USR1)"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Antras naudotojo nurodytas signalas (USR2)"
-
diff --git a/po/lv.po b/po/lv.po
deleted file mode 100644
index 609cdc24..00000000
--- a/po/lv.po
+++ /dev/null
@@ -1,212 +0,0 @@
-# Latvian translation for LibGTop
-# Copyright © 2006 Gnome i18n Project for Latvian.
-# Peteris Krisjanis <peteris.krisjanis@os.lv>, 2002.
-# Raivis Dejus <orvils@gmail.com>, 2006.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-02-24 08:54+0100\n"
-"PO-Revision-Date: 2006-02-24 21:20+0200\n"
-"Last-Translator: Raivis Dejus <orvils@gmail.com>\n"
-"Language-Team: Latvian <locale@laka.lv>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n"
-"X-Generator: KBabel 1.10.2\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "lasīt %d baitu"
-msgstr[1] "lasīt %d baitus"
-msgstr[2] "lasīt %d baitu"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "lasīt datu izmēru"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "lasīt %lu baitu"
-msgstr[1] "lasīt %lu baitus"
-msgstr[2] "lasīt %lu baitu"
-
-#: ../lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "ierakstīju %d baitu"
-msgstr[1] "ierakstīju %d baitus"
-msgstr[2] "ierakstīju %d baitu"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Aktivizēt atkļūdošanu"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEBUG"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Aktivizēt vārdisku izvadi"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Nesadalīties fona"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Izsaukt no inetd"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Kļūda opcijā %s: %s.\n"
-"Palaidiet '%s --help' lai redzētu pilnu pieejamo komandu rindas opciju "
-"sarakstu.\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "Iekārt"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "Pātraukt"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "Iziet"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "Neatļauta instrukcija"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "Izsekot slazdu"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "Pātraukt"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "EMT kļūda"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "Peldošā punkta izņēmums"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "Nobeigt"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "Šinas kļūda"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "Segmentācijas pārkāpums"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "Slikts arguments sistēmas izsaukumam"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "Pātraukts kanāls"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "Brīdinājuma pulkstenis"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "Pātraukšana"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "Steidzama situācija kontaktā"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "Stop"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "Tastatūra stop"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "Turpināt"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "Bērna statuss ir izmainījies"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "Fona lasīšana no tty"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "Fona rakstīšana uz tty"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "I/O tagad iespējams"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "CPU limits pārsniegts"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "Faila izmēra limits pārsniegts"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "Virtuāls brīdinājuma pulkstenis"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "Profilēšanas modinātājs"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "Loga izmēru maiņa"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "Informācijas pieprasījums"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "Lietotāja definēts signāls 1"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "Lietotāja definēts signāls 2" \ No newline at end of file
diff --git a/po/mg.po b/po/mg.po
deleted file mode 100644
index 073d33f2..00000000
--- a/po/mg.po
+++ /dev/null
@@ -1,207 +0,0 @@
-# Malagasy translation of LIBGTOP.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# Thierry Randrianiriana <randrianiriana@gmail.com>, 2006.
-# Fano Rajaonarisoa <rajfanhar@yahoo.fr>, 2006.
-msgid ""
-msgstr ""
-"Project-Id-Version: LIBGTOP 2.16\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-07-05 15:53+0200\n"
-"PO-Revision-Date: 2006-07-05 21:48+0300\n"
-"Last-Translator: Fano Rajaonarisoa <rajfanhar@yahoo.fr>\n"
-"Language-Team: Malagasy <i18n-malagasy-gnome@gna.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n>1;\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d octet voavaky"
-msgstr[1] "%d octet voavaky"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "hijery ny haben'ilay data"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "Voavaky ny %lu amin'ilay data"
-msgstr[1] "Voavaky ny %lu amin'ilay data"
-
-#: ../lib/write.c:53
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d octet voadika"
-msgstr[1] "%d octet voadika"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Alefaso ny debugging"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEBUG"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Alefaso ny famoahana be resaka"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "BE RESAKA"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Aza manasaka any afara"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "TSIA-DAEMON"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Nantsoina avy any amin'ny inetd"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Tsy fetezana amin'ny safidy %s: %s.\n"
-"Alefaso ny '%s --help' ahitana ireo safidin-dazam-baiko misy.\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "Ahatoy"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "Tapao"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "Ajanony"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "Torolàlana tsy ara-dalàna"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "Trace trap"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "Hiala"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "Tsy fetezana EMT"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "Fanavahan'ny floating-point"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "Vonoy"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "Tsy fetezan'ny mpampita"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "Fanimbazimbana ny segmentation"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "Tondriky tsy mety ho an'ny antson'ny rafitra"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "Fantsona simba"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "Famantaranandro misy fanairana"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "Fiafarana"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "Toe-javatra mila jerena maika amin'ny socket"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "Fijanonana"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "Fijanonan'ny kitendry"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "Tohizo"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "Niova ilay toetra zanaka"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "Famakiana ny tty any afara"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "Fanoratana ny tty any afara"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "Mety amin'izay ny I/O"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "Nihoarana ny fetran'ny CPU"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "Voahoatra ny fetran'ny haben-drakitra"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "Famantaranandro virtoaly misy fanairana"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "Manoritsoritra ilay famantaranandro misy fanairana"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "Fanovana ny haben'ny fikandrana"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "Fangataha-panazavana"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "Fambara 1 voafaritry ny mpampiasa"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "Fambara 2 voafaritry ny mpampiasa"
diff --git a/po/mi.po b/po/mi.po
deleted file mode 100644
index 626e229e..00000000
--- a/po/mi.po
+++ /dev/null
@@ -1,212 +0,0 @@
-# translation of libgtop.HEAD.po to Maori
-# This file is distributed under the same license as the PACKAGE package.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
-# John C Barstow <jbowtie@amathaine.com>, 2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2004-06-26 19:13+1200\n"
-"Last-Translator: John C Barstow <jbowtie@amathaine.com>\n"
-"Language-Team: Maori <maori@nzlinux.org.nz>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.3.1\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] ""
-msgstr[1] ""
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr ""
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] ""
-msgstr[1] ""
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr ""
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr ""
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr ""
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr ""
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr ""
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr ""
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr ""
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr ""
-
-#: src/daemon/gnuserv.c:500
-#, fuzzy, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr "He āwhina"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-#, fuzzy
-msgid "Quit"
-msgstr "Whakamutu"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-#, fuzzy
-msgid "Urgent condition on socket"
-msgstr "Whāwhai"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-#, fuzzy
-msgid "Stop"
-msgstr "Whakamutua"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-#, fuzzy
-msgid "Keyboard stop"
-msgstr "whakamutua"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-#, fuzzy
-msgid "File size limit exceeded"
-msgstr "Te Kōnae"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-#, fuzzy
-msgid "Window size change"
-msgstr "Matapihi"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-#, fuzzy
-msgid "Information request"
-msgstr "Rongo"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr ""
diff --git a/po/mk.po b/po/mk.po
deleted file mode 100644
index f2707958..00000000
--- a/po/mk.po
+++ /dev/null
@@ -1,200 +0,0 @@
-# translation of libgtop.HEAD.po to Macedonian
-# translation of libgtop-GNOME-2-0-port.mk.po to
-# translation of libgtop-GNOME-2-0-port.mk.po to
-# translation of mk.po to
-# This file is distributed under the same license as the PACKAGE package.
-# Copyright (C) 2004 THE PACKAGE'S COPYRIGHT HOLDER.
-#
-# Ivan Stojmirov <stojmir@linux.net.mk>, 2002,2003.
-# Jovan Kostovski <chombium@freemail.com.mk>, 2003.
-# Глигор Костоски <gigo@ajvar.com.mk>, 2003.
-# Arangel Angov <ufo@linux.net.mk>, 2004.
-# Арангел Ангов <ufo@linux.net.mk>, 2005.
-# Arangel Angov <arangel@linux.net.mk>, 2007.
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-14 03:41+0100\n"
-"PO-Revision-Date: 2007-09-02 21:56+0200\n"
-"Last-Translator: Arangel Angov <arangel@linux.net.mk>\n"
-"Language-Team: Macedonian <ossm-members@hedona.on.net.mk>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural= n==1 || n%10==1 ? 0 : 1\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "прочитан %d бајт"
-msgstr[1] "прочитани %d бајти"
-msgstr[2] "прочитани %d бајти"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "големина на прочитаните податоци"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "прочитан %lu бајт податоци"
-msgstr[1] "прочитани %lu бајти податоци"
-msgstr[2] "прочитани %lu бајти податоци"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "запишан %d бајт"
-msgstr[1] "запишани %d бајти"
-msgstr[2] "запишани %d бајти"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Овозможи наоѓање грешки"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Овозможи опширен излез"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Не дели процеси во позадина"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "од"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Изврши '%s --помош' за целосна листа на достапни опции за командни линии.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Спушти"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Прекин"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Излез"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Нелегална инструкција"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Следи ја замката"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Прекини"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "ЕМТ грешка"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Грешка во операција со реални броеви"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Убиј"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Грешка во магистралата"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Грешка при сегментација"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Грешен аргумент при системски повик"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Прекината цевка"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Будилник"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Прекинување"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Итна интервенција врз сокет"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Стоп"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Стоп на тастатура"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Продолжи"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Статусот на дете-процесот се смени"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Позадинско читање од терминал"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Позадинско запишување на терминал"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "Влезно/Излезната операција сега е возможна"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Процесорскиот лимит е пречекорен"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Големината на датотека ги надминува границите"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Виртуелен алармен часовник"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Аларм со профили"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Промена на големина на прозорец"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Барање за информации"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Сигнал 1 дефиниран од корисникот"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Сигнал 2 дефиниран од корисникот"
-
diff --git a/po/ml.po b/po/ml.po
deleted file mode 100644
index 63bfa4f7..00000000
--- a/po/ml.po
+++ /dev/null
@@ -1,210 +0,0 @@
-# translation of libgtop.HEAD.ml.po to Malayalam
-# This file is distributed under the same license as the PACKAGE package.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
-# FSF-India <locale@gnu.org.in>, 2003.
-# Ani Peter <apeter@redhat.com>, 2006.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD.ml\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-08-04 16:32+0200\n"
-"PO-Revision-Date: 2006-08-05 01:18+0530\n"
-"Last-Translator: Ani Peter <apeter@redhat.com>\n"
-"Language-Team: Malayalam\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.9.1\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d ബൈറ്റ് വായിക്കുക"
-msgstr[1] "%d ബൈറ്റ്സ് വായിക്കുക"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "ഡേറ്റായുടെ വലിപ്പം വായിക്കുക"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu ബൈറ്റ് ഡേറ്റാ വായിക്കുക"
-msgstr[1] "%lu ബൈറ്റ്സ് ഡേറ്റാ വായിക്കുക"
-
-#: ../lib/write.c:53
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d ബൈറ്റ് എഴുതി"
-msgstr[1] "%d ബൈറ്റ്സ് എഴുതി"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "ഡീബഗ്ഗിങ് പ്രവര്‍ത്തന സജ്ജമാക്കുക"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "ഡീബഗ്"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "വര്‍ബറോസ് ഔട്ട് പുട്ട് പ്രവര്‍ത്തന സജ്ജമാക്കുക"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "വര്‍ബറോസ്"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "പശ്ചാത്തലത്തിലേക്ക് fork ചെയ്യുവാന്‍ പാടില്ല"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "ഡെമണ്‍ ഇല്ല"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "inetd-ല്‍ നിന്നുമുളള വിളി"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"ഉപാധി %s-ല്‍ പിഴവ്: %s.\n"
-"ലഭ്യമായ കമാന്‍ഡ് ലൈന്‍ ഉപാധികളുടെ മുഴുവന്‍ പട്ടികയ്ക്ക് '%s --help' പ്രവര്‍ത്തിപ്പിക്കുക.\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "അവസാനിപ്പിക്കുക"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "ഇന്‍ററപ്റ്റ്"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "പുറത്ത് കടക്കുക"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "തെറ്റായ നിര്‍ദ്ദേശം"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "തടസ്സം കണ്ടുപിടിക്കുക"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "നിര്‍ത്തലാക്കുക"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "EMT പിശക്"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "ഫ്ളോട്ടിങ്-പോയിന്‍റ് എക്സെപ്ഷന്‍"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "അവസാനിപ്പിക്കുക"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "ബസില്‍ പിശക്"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "സെഗ്മന്‍റേഷനില്‍ തെറ്റ്"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "സിസ്റ്റം കോളിലേക്ക് തെറ്റായ ആര്‍ഗ്യുമെന്‍റ്"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "പൊട്ടിയ പൈപ്പ്"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "അലാറം ക്ളോക്ക്"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "അവസാനിപ്പിക്കല്‍"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "സോക്കന്‍റില്‍ ഗുരുതരമായ അവസ്ഥ"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "നിര്‍ത്തുക"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "കീബോര്‍ഡ് നിര്‍ത്തുക"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "തുടരുക"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "ചൈള്‍ഡിന്‍റെ അവസ്ഥ മാറിയിരിക്കുന്നു"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "tty-ല്‍ നിന്നും പശ്ചാത്തലം വായിക്കുക"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "tty-ലേക്ക് പശ്ചാത്തലം എഴുതുക"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "I/O ഇപ്പോള്‍ സാധ്യമാണ്"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "CPU പരിമിധി കവിഞ്ഞു"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "ഫയലിന്‍റെ വലിപ്പ പരിമിധി കവിഞ്ഞു"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "വിര്‍ച്ച്വല്‍ അലാറം ക്ളോക്ക്"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "അലാറം ക്ളോക്ക് പ്രൊഫൈല്‍ ചെയ്യുന്നു"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "ജീലകത്തിന്‍റെ വലിപ്പത്തലുളള മാറ്റം"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "വിവരങ്ങള്‍ക്കായുളള അഭ്യര്‍ത്ഥന"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "യൂസര്‍ ഡിഫൈന്‍ഡ് സിഗ്നല്‍ 1"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "യൂസര്‍ ഡിഫൈന്‍ഡ് സിഗ്നല്‍ 2"
-
diff --git a/po/mn.po b/po/mn.po
deleted file mode 100644
index 05a55ea8..00000000
--- a/po/mn.po
+++ /dev/null
@@ -1,211 +0,0 @@
-# translation of mn.po to Mongolian
-# translation of libgtop.HEAD.po to Mongolian
-# translation of libgtop.libgtop-GNOME-2-0-port.de.po to Mongolian
-# This file is distributed under the same license as the PACKAGE package.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
-# Sanlig Badral <badral@chinggis.com>, 2003.
-# Sanlig Badral <Badral@openmn.org>, 2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: mn\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2004-01-05 21:47+0100\n"
-"Last-Translator: Sanlig Badral <Badral@openmn.org>\n"
-"Language-Team: Mongolian <openmn-core@lists.sf.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: KBabel 1.0.2\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d байт унших"
-msgstr[1] "%d байт унших"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "өгөгдлийн хэмжээг унших"
-
-#: lib/read_data.c:72
-#, fuzzy, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%d байт унших"
-msgstr[1] "%d байт унших"
-
-#: lib/write.c:52
-#, fuzzy, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d байт бичих"
-msgstr[1] "%d байт бичих"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Алдаа оношлогчийг идэвхижүүлэх"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "ОНОШИЛГОО"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Дэлгэрэнгүй гаралтыг нээх"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "ДЭЛГЭРЭНГҮЙ"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Дэвсгэр лүү чихэхгүй"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "ДАЙМОН АЛГА"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "inetd -р л дуудагдана"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Сонголт %s-д алдаа: %s.\n"
-"Та бүх сонголтын жигсаалтыг харахдаа »%s --help« гэж ажиллуулна уу. \n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Тавих"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Тасалдал"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Гарах"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Хүчингүй заавар"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Trace-Trap"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Болих"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "EMT-Алдаа"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Хөвдөг таслалтай онцлолт"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Алах"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Bus алдаа"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Сегментийн гажуудал"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Системийн дуудалтын хувьд хүчингүй аргумент"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Тасарсан шугам"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Сэрүүлэг"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Төгсгөх"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Чухал соккетийн төлөв"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Зогс"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Гар-зогсоох"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Үргэлжлүүлэх"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Хүү төлөв өөрчилөгдлөө"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Дэвсгэр tty -аас унших"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Дэвсгэр tty -дээр бичих"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "О/Г одоо боломжтой"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "CPU-хязгаараас халилаа"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Файлын хэмжээ хязгаараас халилаа"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Виртуал сэрүүлэг"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Яг таг сэрүүлэг"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Цонхны хэмжээ өөрчилөх"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Мэдээлийн хүсэлт"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Хэрэглэгчийн тодорхойлсон сигнал 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Хэрэглэгчийн тодорхойлсон сигнал 2"
diff --git a/po/ms.po b/po/ms.po
deleted file mode 100644
index 3f09fee6..00000000
--- a/po/ms.po
+++ /dev/null
@@ -1,205 +0,0 @@
-# [ Ruang untuk disewa ]
-# Copyright (C) 2002 Free Software Foundation, Inc.
-# Hasbullah Bin Pit (sebol)<sebol@ikhlas.com>, 2002.
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop (libgtop-GNOME-2-0-port)\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2003-11-11 03:36+0800\n"
-"Last-Translator: Hasbullah Bin Pit <sebol@ikhlas.com>\n"
-"Language-Team: Projek Gabai <gabai-penyumbang@list.sourceforge.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: lib/read.c:65
-#, fuzzy, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "baca saiz data"
-msgstr[1] "baca saiz data"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "baca saiz data"
-
-#: lib/read_data.c:72
-#, fuzzy, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "baca saiz data"
-msgstr[1] "baca saiz data"
-
-#: lib/write.c:52
-#, fuzzy, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "baca saiz data"
-msgstr[1] "baca saiz data"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Hidupkan pengnyahpepijatan"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "NYAHPEPIJAT"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Hidupkan output berjela"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "BERJELA"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Jangan sepit ke latarbelakang"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "TIADA-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Merujuk pada inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Ralat pada opsyen %s: %s.\n"
-"Laksanakan '%s --help' untuk melihat senarai penuh opsyen arahan baris yang "
-"ada.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Letak"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Gangguan"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Keluar"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Arahan terlarang"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Jerangkap Surih"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Batal"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "Ralat EMT"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Pengecualian Floating-point"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Bunuh"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Ralat Bas"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Hujah teruk ke panggilan sistem"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Paip pecah"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Jam loceng"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Penamatan"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Keadaan segera pada soket"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Henti"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Hentian papankekunci"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Teruskan"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Status anak berubah"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Bacaan latar belakang daripada tty"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Penulisan latar belakang daripada tty"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "I/O sekarang dibolehkan"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "CPU melebihi had"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Saiz fail melebihi had"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Jam loceng maya"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Memprofil jam loceng"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Penukaran saiz tetingkap"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Permintaan maklumat"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Isyarat dinyatakan pengguna 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Isyarat dinyatakan pengguna 2"
diff --git a/po/nb.po b/po/nb.po
deleted file mode 100644
index 6c592407..00000000
--- a/po/nb.po
+++ /dev/null
@@ -1,186 +0,0 @@
-# Norwegian translation for Libgtop (bokmål dialect)
-# Copyright (C) 1998-2004 Free Software Foundation, Inc.
-# Kjartan Maraas <kmaraas@gnome.org>, 1998-2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 2.5.1\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-06-23 11:52+0200\n"
-"PO-Revision-Date: 2007-06-23 11:52+0200\n"
-"Last-Translator: Kjartan Maraas <kmaraas@gnome.org>\n"
-"Language-Team: Norwegian <i18n-nb@lister.ping.uio.no>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8-bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "les %d byte"
-msgstr[1] "les %d bytes"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "les størrelse på data"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "leste %lu byte med data"
-msgstr[1] "leste %lu bytes med data"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "skrev %d byte"
-msgstr[1] "skrev %d bytes"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Slå på avlusing"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Slå på utfyllende utskrift"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Ikke forgren til bakgrunnen"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Kalt fra inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Kjør '%s --help' for å se en full liste av tilgjengelige kommandolinjeflagg.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Frakobling"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Avbrudd"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Avslutt"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Ugyldig instruksjon"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Spor felle"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Aborter"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT-feil"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Flyttallsunntak"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Drep"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Buss-feil"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Segmentoverskridelse"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Ugyldig argument til systemkall"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Brukket rør"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Alarmklokke"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Terminering"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Viktig tilstand på socket"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Stopp"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Tastaturstopp"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Fortsett"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Barnets status er endret"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Lesing fra tty i bakgrunnen"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Skriving til tty i bakgrunnen"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O nå mulig"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "CPU-grense oversteget"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Grense for filstørrelse overskredet"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Virtuell alarmklokke"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Profilerer alarmklokken"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Endring i vindusstørrelse"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Informasjonsforespørsel"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Brukerdefinert signal 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Brukerdefinert signal 2"
diff --git a/po/ne.po b/po/ne.po
deleted file mode 100644
index 97ccacf8..00000000
--- a/po/ne.po
+++ /dev/null
@@ -1,220 +0,0 @@
-# translation of libgtop.HEAD.ne.po to Nepali
-# translation of libgtop.gnome-2-10.ne.po to Nepali
-# translation of libgtop.gnome-2-10.po to Nepali
-# translation of libgtop.HEAD.po to Nepali
-# Nepali Translation Project.
-# This file is distributed under the same license as the libgtop package.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
-# Pawan Chitrakar <pawan@nplinux.org>, 2004.
-# Jaydeep Bhusal <zaydeep@hotmail.com>, 2005.
-# Bishnu Adhikari <bsn_adk@hotmail.com>, 2005.
-# Shiva Pokharel <pokharelshiva@hotmail.com>, 2005.
-# Mahesh subedi <submanesh@hotmail.com>, 2006.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD.ne\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-07-14 22:35+0200\n"
-"PO-Revision-Date: 2006-07-20 14:58+0545\n"
-"Last-Translator: Mahesh subedi <submanesh@hotmail.com>\n"
-"Language-Team: Nepali <info@mpp.org.np>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-Language: Nepali\n"
-"X-Poedit-Country: NEPAL\n"
-"X-Poedit-SourceCharset: utf-8\n"
-"X-Generator: KBabel 1.10.2\n"
-"Plural-Forms: nplurals=2;plural=(n!=1)\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d बाइट पढ्नुहोस्"
-msgstr[1] "%d बाइट्स पढ्नुहोस्"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "डेटा साइज पढ्नुहोस्"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "डेटाको %lu बाइट पढ्नुहोस्"
-msgstr[1] "डेटाको %lu बाइट्स पढ्नुहोस्"
-
-#: ../lib/write.c:53
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d बाइट लेख्यो"
-msgstr[1] "%d बाइट्स लेख्यो"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "डिबग सक्षम पार्नुहोस्"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEBUG"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "भर्बोज निर्गत सक्षम पार्नुहोस्"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "पृष्ठभूमिमा फोर्क नगर्नुहोस्"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "इनेट्डबाट आव्हान गरिएको"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"%s: %s विकल्पमा त्रुटि।\n"
-"उपलब्ध आदेश लाइन विकल्पहरूको एउटा पूर्ण सूची हेर्नका लागि '%s --मद्दत' चलाउनुहोस्।\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "ह्याङ अप"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "रोकावट"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "अन्त्य गर्नुहोस्"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "अवैध निर्देशन"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "पदचिन्ह ट्रयाप"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "परित्याग गर्नुहोस्"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "EMT त्रुटि"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "उत्प्लावन बिन्दु अपवाद"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "नष्ट गर्नुहोस्"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "बस त्रुटि"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "खण्डीकरण खण्डन"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "प्रणाली कलमा खराब तर्क"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "विच्छेद पाइप"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "सचेतक घडि"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "समाप्ति"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "सकेटमा आकस्मिक अवस्था"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "रोक्नुहोस्"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "कुञ्जिपाटी बन्द"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "जारी राख्नुहोस्"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "चाइल्ड वस्तुस्थिति परिवर्तन गरिएको छ"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "टिटिवाइ बाट पृष्ठभूमि पढ्नुहोस्"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "टिटिवाइ बाट पृष्ठभूमि लेख्नुहोस्"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "I/O अब सम्भव"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "CPU को सीमा नाघ्यो"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "फाइल साइजको सीमा नाघ्यो"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "अवास्तविक सचेतक घडी"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "सचेतक घडीको प्रोफाइल हुँदैछ"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "सञ्झ्याल साइज परिवर्तन"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "सूचना अनुरोध"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "प्रयोगकर्ता परिभषित सङ्केत १"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "प्रयोगकर्ता परिभषित सङ्केत २"
-
diff --git a/po/nl.po b/po/nl.po
deleted file mode 100644
index 4fa07ac3..00000000
--- a/po/nl.po
+++ /dev/null
@@ -1,202 +0,0 @@
-# Dutch translation of libgtop
-# Copyright (C) 1998,1999 Free Software Foundation, Inc.
-# Gert Dewit <Gert.Dewit@sos.be>
-# Jeroen van der Vegt <A.J.vanderVegt@ITS.TUDelft.nl>, 2003
-# Tino Meinen <a.t.meinen@chello.nl>, 2005
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop CVS\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-07-17 18:54+0200\n"
-"PO-Revision-Date: 2007-07-17 18:54+0200 \n"
-"Last-Translator: Wouter Bolsterlee <wbolster@gnome.org>\n"
-"Language-Team: Dutch <vertaling@vrijschrift.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d byte gelezen"
-msgstr[1] "%d bytes gelezen"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "grootte van de gelezen data"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu byte gelezen"
-msgstr[1] "%lu bytes gelezen"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d byte geschreven"
-msgstr[1] "%d bytes geschreven"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Debuggen inschakelen"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Extra uitvoer inschakelen"
-
-# niet naar achtergrond/niet naar achtergrond 'forken'
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Niet naar de achtergrond 'forken'"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Aangeroepen vanuit inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Start '%s --help' voor een lijst met opdrachtregelopties.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Ophangen"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Onderbreken"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Afsluiten"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Verboden instruktie"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Trace trap"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Afbreken"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT fout"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Floating-point uitzondering"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Vernietigen"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Busfout"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Segmentatiefout"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Verkeerd argument voor systeemaanroep"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Gebroken pipe"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Wekker"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Beëindiging"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Dringende situatie bij de socket"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Stoppen"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Keyboard stop"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Doorgaan"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "De status van de dochter is veranderd"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "In de achtergrond wordt tty uitgelezen"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "In de achtergrond wordt naar tty geschreven"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O is nu mogelijk"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Processor begrenzing overschreden"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Limiet bestandsomvang overschreden"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Virtuele wekker"
-
-# profileringswekker/profielwekker
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Profiling-wekker"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Wijziging venstergrootte"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Verzoek om informatie"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Door gebruiker gedefinieerd signaal 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Door gebruiker gedefinieerd signaal 2"
-
-#~ msgid "DEBUG"
-#~ msgstr "DEBUG"
-
-#~ msgid "VERBOSE"
-#~ msgstr "VERBOSE"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "NO-DEAMON"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/nn.po b/po/nn.po
deleted file mode 100644
index 9e25f00e..00000000
--- a/po/nn.po
+++ /dev/null
@@ -1,210 +0,0 @@
-# translation of nn.po to Norwegian Nynorsk
-# Norwegian (nynorsk) translation of libgtop.
-# Copyright (C) 2001 Roy-Magne Mo
-# Kjartan Maraas <kmaraas@gnome.org>, 2001.
-# Roy-Magne Mo <rmo@sunnmore.net>, 2001.
-# Åsmund Skjæveland <aasmunds@fys.uio.no>, 2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: nn\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2004-03-23 12:02+0100\n"
-"Last-Translator: Åsmund Skjæveland\n"
-"Language-Team: Norwegian Nynorsk <i18n-nn@lister.ping.uio.no>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.3.1\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "las %d byte"
-msgstr[1] "las %d byte"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "lesestorleik på data"
-
-#: lib/read_data.c:72
-#, fuzzy, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "las %d byte"
-msgstr[1] "las %d byte"
-
-#: lib/write.c:52
-#, fuzzy, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "skriv %d byte"
-msgstr[1] "skriv %d byte"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Skru på feilsøking"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "FEILSØK"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Skru på ordrike utdata"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "ORDRIK"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Ikkje fork av inn i bakgrunnen"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "UTAN-NISSE"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Starta frå inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Feil på valet «%s»: %s.\n"
-"Køyr «%s --help» for å sjå full liste over tilgjengelege kommandlinjeval.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Legg på"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Avbrot"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Avslutt"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Ulovleg instruksjon."
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Sporingsfelle"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Avbryt"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "EMT-feil"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Flyttaluttrykk"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Drep"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Bussfeil"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Segmenteringsovertramp"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Ugyldig argument til systemkall"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Brote røyr"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Alarmklokke"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Avlustting"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Hastesituasjon på sokkelen"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Stopp"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Tastaturstopp"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Fortset"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Status på born er endra"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Les frå tty i bakgrunnen"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Skriv til tty i bakgrunnen"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "I/O no mogleg"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "CPU-grense passert"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Filstorleikgrense passert"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Virtuel alarmklokke"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Profilerer alarmklokke"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Endring i vindaugsstorleik"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Informasjonsførespurnad"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Eigendefinert 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Eigendefinert 2"
diff --git a/po/oc.po b/po/oc.po
deleted file mode 100644
index 455bab4f..00000000
--- a/po/oc.po
+++ /dev/null
@@ -1,188 +0,0 @@
-# Occitan translation of libgtop.
-# Copyright (C) 1998-2004 Free Software Foundation, Inc.
-# This file is distributed under the GNU General Public License Version 2.
-#
-# Yannig MARCHEGAY (yannig@marchegay.org) - 2006-2007
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 2.9.91\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-08-21 12:14+0100\n"
-"PO-Revision-Date: 2007-08-21 00:51+0200\n"
-"Last-Translator: Yannig MARCHEGAY (Kokoyaya) <yannig@marchegay.org>\n"
-"Language-Team: Occitan (post 1500) <ubuntu-l10n-oci@lists.ubuntu.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] ""
-msgstr[1] ""
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr ""
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] ""
-msgstr[1] ""
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] ""
-msgstr[1] ""
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr ""
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Quitar"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Abandonar"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Tuar"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Arrestar"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Contunhar"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr ""
diff --git a/po/or.po b/po/or.po
deleted file mode 100644
index 29e24289..00000000
--- a/po/or.po
+++ /dev/null
@@ -1,210 +0,0 @@
-# Oriya translation of metacity.HEAD.pot.
-# Copyright (C) 2004, 2006, Free Software Foundation, Inc.
-# This file is distributed under the same license as the libgtop package.
-# Sony Mohanty <sonalika_04@sify.com>, 2004.
-# Jeeban <srujanik@sancharnet.in>, 2004.
-# Gora Mohanty <gora_mohanty@yahoo.co.in>, 2006.
-# $Id$
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD.or\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-03-22 00:12+0530\n"
-"PO-Revision-Date: 2006-03-22 00:13+0530\n"
-"Last-Translator: Gora Mohanty <gora_mohanty@yahoo.co.in>\n"
-"Language-Team: Oriya <oriya-group@lists.sarovar.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d ବାଇଟ ପଢ଼ନ୍ତୁ"
-msgstr[1] "%d ବାଇଟଗୁଡ଼ିକ ପଢ଼ନ୍ତୁ"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "ତଥ୍ଯ ଆକାର ପଢ଼ନ୍ତୁ"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu ବାଇଟ ପଢ଼ନ୍ତୁ"
-msgstr[1] "%lu ବାଇଟଗୁଡ଼ିକ ପଢ଼ନ୍ତୁ"
-
-#: ../lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d ବାଇଟ ଲେଖଗଲା"
-msgstr[1] "%d ବାଇଟଗୁଡ଼ିକ ଲେଖାଗଲା"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "ତ୍ରୁଟିମୁକ୍ତ କରିବା ପାଇଁ ସମର୍ଥ"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "ତୃଟିମୁକ୍ତ"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "ଦୃଷ୍ଟ ସୂଚନାଯୁକ୍ତ ନିର୍ଗମ କରିବା ପାଇଁ ସକ୍ଷମ"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "ଦୃଷ୍ଟ ସୂଚନାଯୁକ୍ତ"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "ପୃଷ୍ଠଭୂମିକୁ ଶାଖାଯୁକ୍ତ କରନ୍ତୁ ନାହିଁ"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "କାର୍ଯ୍ଯ ସହାୟକ ନାହିଁ"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "ଆଇନେଟଡିରୁ ଡକାଯାଇଛି"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "ଆଇନେଟଡି"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"%s ପସନ୍ଦରେ ତୃଟି: %s.\n"
-"ଉପଲବ୍ଧ ପୂରା ପାଠ୍ଯ ନିର୍ଦ୍ଦେଶ ପସନ୍ଦର ତାଲିକା ଦେଖିବା ପାଇଁ '%s --help' ଚଳାନ୍ତୁ.\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "ସଂଯୋଗ ଛିନ୍ନ କରନ୍ତୁ"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "ବ୍ଯାହତ କରନ୍ତୁ"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "ବିଦାୟ ନିଅନ୍ତୁ"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "ଅବୈଧ ଅନୁଦେଶ"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "ଅନୁସନ୍ଧାନ ଯନ୍ତା"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "ପରିତ୍ଯାଗ"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "ଇ.ଏମ.ଟି. ତ୍ରୁଟି"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "ଅସ୍ଥାୟୀ ବିନ୍ଦୁ ତ୍ରୁଟି"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "ସମାପନ"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "ପରିପଥ ତ୍ରୁଟି"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "ଖଣ୍ଡକରଣ ଉଲଂଘନ"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "ତନ୍ତ୍ର ଡାକରାକୁ ଅବୈଧ ସ୍ବତନ୍ତ୍ରଚର"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "ଭଙ୍ଗା ପାଇପ"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "ସତର୍କ ଘଡ଼ି"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "ସମାପ୍ତି"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "ସକେଟରେ ଅତ୍ଯାଶ୍ଯକ ଅବସ୍ଥା"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "ବନ୍ଦ"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "ଚାବିପଟି ବନ୍ଦ"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "ଚାଲୁ ରଖନ୍ତୁ"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "ନିର୍ଭରକ ଅବସ୍ଥିତି ବଦଳି ଯାଇଛି"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "ଟି.ଟି.ୱାଇ.ଠାରୁ ପୃଷ୍ଠଭୂମି ପଠନ"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "ଟି.ଟି.ୱାଇ.କୁ ପୃଷ୍ଠଭୂମି ଲିଖନ"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "ବର୍ତ୍ତମାନ ନିବେଶ/ନିର୍ଗମ ସମ୍ଭବ"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "କେନ୍ଦ୍ରୀୟ ସଂସାଧକ ସୀମା ପାର ହୋଇଯାଇଛି"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "ଫାଇଲ ଆକାର ସୀମା ପାର ହୋଇଯାଇଛି"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "ଆଭାସୀ ସତର୍କ ଘଡ଼ି"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "ସତର୍କ ଘଡ଼ିର ରୂପରେଖ ପ୍ରସ୍ତୁତି"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "ୱିଣ୍ଡୋ ଆକାର ବଦଳା"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "ସୂଚନା ଅନୁରୋଧ"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "ଚାଳକ ନିର୍ଦ୍ଦିଷ୍ଟ ସଙ୍କେତ ୧"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "ଚାଳକ ନିର୍ଦ୍ଦିଷ୍ଟ ସଙ୍କେତ ୨"
diff --git a/po/pa.po b/po/pa.po
deleted file mode 100644
index 2382f625..00000000
--- a/po/pa.po
+++ /dev/null
@@ -1,214 +0,0 @@
-# translation of libgtop.HEAD.po to Punjabi
-# Punjabi translation of PACKAGE.
-# Copyright (C) 2004 THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-#
-#
-# Amanpreet Singh Alam <amanlinux@netscape.net>, 2004.
-# Amanpreet Singh Alam <aalam@redhat.com>, 2004.
-# Amanpreet Singh Alam <amanpreetalam@yahoo.com>, 2005.
-# A S Alam <aalam@users.sf.net>, 2007.
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-01-02 03:06+0000\n"
-"PO-Revision-Date: 2007-02-25 18:41+0530\n"
-"Last-Translator: A S Alam <aalam@users.sf.net>\n"
-"Language-Team: Punjabi <punjabi-l10n@lists.sf.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d ਬਾਇਟ ਪੜ੍ਹੇ"
-msgstr[1] "%d ਬਾਈਟ ਪੜ੍ਹੇ"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "ਡਾਟਾ ਆਕਾਰ ਪੜ੍ਹੇ"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu ਡਾਟਾ ਬਾਈਟ ਪੜ੍ਹੇ"
-msgstr[1] "%lu ਡਾਟਾ ਬਾਈਟ ਪੜ੍ਹੇ"
-
-#: ../lib/write.c:53
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d ਬਾਈਟ ਲਿਖੇ"
-msgstr[1] "%d ਬਾਈਟ ਲਿਖੇ"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "ਡੀਬੱਗਇੰਗ ਚਾਲੂ ਕਰੋ"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "ਡੀਬੱਗ"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "ਜਾਣਕਾਰੀ ਆਉਟਪੁੱਟ ਯੋਗ"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "ਜਾਣਕਾਰੀ"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "ਬੈਕਗਰਾਊਂਡ 'ਚ ਫੋਰਕ"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "ਕੋਈ-ਡੇਮੋਨ ਨਹੀ"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "inetd ਤੋਂ ਸ਼ਾਮਿਲ ਹੈ"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"ਗਲਤੀ %s ਚੋਣ ਦੌਰਾਨ: %s.\n"
-"ਪੂਰੀ ਕਮਾਂਡ ਚੋਣ ਲਿਸਟ ਵੇਖਣ ਲਈ '%s --help' ਚਲਾਉ।\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "ਬੰਦ ਕਰੋ"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "ਰੁਕਾਵਟ"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "ਬਾਹਰ"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "ਗਲਤ ਹਦਾਇਤ"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "ਟਰੇਸ ਟਰੈਪ"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "ਅਧੂਰਾ ਛੱਡੋ"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "EMT ਗਲਤੀ"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "ਦਸ਼ਮਲਵ ਅਪਵਾਦ"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "ਖਤਮ"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "ਬਸ ਗਲਤੀ"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "ਸਿਗਮਿੰਟੇਸ਼ਨ ਉਲੰਘਣਾ"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "ਸਿਸਟਮ ਕਾਲ ਲਈ ਗਲਤ ਆਰਗੂਮਿੰਟ"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "ਟੁੱਟਿਆ ਪਾਇਪ"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "ਆਲਰਮ ਘੜੀ"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "ਸਮਾਪਤੀ"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "ਸਾਕਟ ਲਈ ਜਰੂਰੀ ਸ਼ਰਤ"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "ਰੋਕੋ"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "ਕੀ-ਬੋਰਡ ਰੁੱਕ ਗਿਆ ਹੈ"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "ਜਾਰੀ ਰਹੋ"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "ਚਲਾਇਡ ਹਾਲਤ ਤਬਦੀਲ ਹੋਈ"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "tty ਤੋਂ ਬੈਕਗਰਾਊਂਡ ਪੜ੍ਹੋ"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "tty ਲਈ ਬੈਕਗਰਾਊਂਡ ਲਿਖੋ"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "I/O ਹੁਣ ਸੰਭਵ"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "CPU ਸੀਮਾ ਟੱਪੀ"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "ਫਾਇਲ ਆਕਾਰ ਸੀਮਾ ਟੱਪੀ"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "ਵੁਰਚੁਅਲ ਅਲਾਰਮ ਘੜੀ"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "ਅਲਾਰਮ ਘੜੀ ਰਾਹੀਂ ਪ੍ਰੋਫਾਇਲਿੰਗ"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "ਝਰੋਖੇ ਅਕਾਰ ਬਦਲੋ"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "ਜਾਣਕਾਰੀ ਲਈ ਬੇਨਤੀ"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "ਉਪਭੋਗੀ ਪ੍ਰਭਾਸ਼ਿਤ ਸੰਕੇਤ 1"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "ਉਪਭੋਗੀ ਪ੍ਰਭਾਸ਼ਿਤ ਸੰਕੇਤ 2"
-
diff --git a/po/pl.po b/po/pl.po
deleted file mode 100644
index b20c1f73..00000000
--- a/po/pl.po
+++ /dev/null
@@ -1,199 +0,0 @@
-# Copyright (C) 2001-2005 Free Software Foundation, Inc.
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-09-17 21:16+0200\n"
-"PO-Revision-Date: 2002-07-05 19:13+0200\n"
-"Last-Translator: GNOME PL Team <translators@gnomepl.org>\n"
-"Language-Team: Polish <translation-team-pl@lists.sourceforge.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
-"|| n%100>=20) ? 1 : 2);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "odczyt %d bajtu"
-msgstr[1] "odczyt %d bajtów"
-msgstr[2] "odczyt %d bajtów"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "odczyt rozmiaru danych"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "odczytano jeden bajt danych"
-msgstr[1] "odczytano %lu bajty danych"
-msgstr[2] "odczytano %lu bajtów danych"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "zapisano jeden bajt"
-msgstr[1] "zapisano %d bajty"
-msgstr[2] "zapisano %d bajtów"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Uaktywnia śledzenie"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Uaktywnia informowanie o przebiegu"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Uruchamia program bez przechodzenia w tło"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Wywołanie przez inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Uruchom \"%s --help\" aby wyświetlić pełną listę dostępnych opcji.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Zawieszenie"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Przerwanie (Interrupt)"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Zakończenie"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Niedozwolona instrukcja"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Trace trap"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Przerwanie (Abort)"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Błąd EMT"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Wyjątek związany z liczbą zmiennoprzecinkową"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Usunięcie (Kill)"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Błąd szyny"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Naruszenie segmentacji"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Niepoprawny parametr wywołania systemowego"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Przerwany potok"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Budzik"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Zakończenie"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Pilny warunek związany z gniazdem"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Zatrzymanie (Stop)"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Zatrzymanie klawiatury"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Kontynuacja"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Zmiana statusu proc. potomnego"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Odczyt w tle z urządzenia tty"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Zapis w tle do urządzenia tty"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "Wejście/wyjście teraz dostępne"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Przekroczenie limitu CPU"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Przekroczenie limitu rozm. plików"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Wirtualny budzik"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Profilowanie budzika"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Zmiana rozmiaru okna"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Żądanie informacji"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "1. sygnał zdefiniowany przez użytkownika"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "2. sygnał zdefiniowany przez użytkownika"
-
-#~ msgid "DEBUG"
-#~ msgstr "ŚLEDZENIE"
-
-#~ msgid "VERBOSE"
-#~ msgstr "PRZEBIEG"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "NIE-DEMON"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/pt.po b/po/pt.po
deleted file mode 100644
index 9a06d462..00000000
--- a/po/pt.po
+++ /dev/null
@@ -1,201 +0,0 @@
-# libgtop's Portuguese Translation
-# Copyright © 2001, 2002, 2003, 2004, 2005, 2007 libgtop
-# Distributed under the same licence as the libgtop package
-# Duarte Loreto <happyguy_pt@hotmail.com>, 2001, 2002, 2003, 2004, 2005, 2007.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: 2.20\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-09-08 01:57+0100\n"
-"PO-Revision-Date: 2007-09-08 02:00+0000\n"
-"Last-Translator: Duarte Loreto <happyguy_pt@hotmail.com>\n"
-"Language-Team: Portuguese <gnome_pt@yahoogroups.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d byte lido"
-msgstr[1] "%d bytes lidos"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "tamanho dos dados lidos"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu byte lido"
-msgstr[1] "%lu bytes lidos"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d byte escrito"
-msgstr[1] "%d bytes escritos"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Activar depuração"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Activar resultados extensos"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Não efectuar fork em fundo"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Invocado pelo inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Execute '%s --help' para consultar uma lista completa de opções de linha de "
-"comando.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Pendurado"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Interrompido"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Sair"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Instrução ilegal"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Armadilha de trace"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Abortar"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Erro EMT"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Excepção de vírgula flutuante"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Matar"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Erro de bus"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Violação de segmentação"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Argumento inválido em chamada de sistema"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Canal interrompido"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Alarme"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Terminar"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Condição urgente no socket"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Parar"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Parar por teclado"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Continuar"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Alteração no estado do filho"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Leitura em fundo da tty"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Escrita em fundo para a tty"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O agora possível"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Limite de CPU excedido"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Limite de tamanho de ficheiro excedido"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Alarme virtual"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Alarme de optimização"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Alteração de tamanho de janela"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Pedido de informação"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Sinal 1 definido pelo utilizador"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Sinal 2 definido pelo utilizador"
-
-#~ msgid "DEBUG"
-#~ msgstr "DEPURAÇÃO"
-
-#~ msgid "VERBOSE"
-#~ msgstr "EXTENSO"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "NÃO-DAEMON"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/pt_BR.po b/po/pt_BR.po
deleted file mode 100644
index 10454f7f..00000000
--- a/po/pt_BR.po
+++ /dev/null
@@ -1,203 +0,0 @@
-# Brazilian Portuguese translation of libgtop.
-# Copyright (C) 2001-2005 Free Software Foundation, Inc.
-# This file is distributed under the same license as the libgtop package.
-# E. A. Tacão <tacao@conectiva.com.br>, 2001.
-# Evandro Fernandes Giovanini <evandrofg@ig.com.br>, 2004-2005.
-# Og Maciel <ogmaciel@gnome.org>, 2007.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-07-21 14:34-0300\n"
-"PO-Revision-Date: 2007-07-21 14:37-0300\n"
-"Last-Translator: Og Maciel <ogmaciel@gnome.org>\n"
-"Language-Team: Brazilian Portuguese <gnome-l10n-br@listas.cipsga.org.br>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d byte lido"
-msgstr[1] "%d bytes lidos"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "tamanho dos dados lidos"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu byte de dados lido"
-msgstr[1] "%lu bytes de dados lidos"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d byte gravado"
-msgstr[1] "%d bytes gravados"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Habilitar depuração"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Habilitar saída com mensagens detalhadas"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Não bifurcar para o segundo plano"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Acionado pelo inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Execute \"%s --help\" para ver uma lista completa das opções de linha de "
-"comando disponíveis.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Desligar"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Interromper"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Encerrar"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Instrução ilegal"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Rastrear interceptações"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Interromper"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Erro EMT"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Exceção de ponto flutuante"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Matar"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Erro do barramento"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Violação de segmentação"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Argumento inválido na chamada de sistema"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Conexão interrompida"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Despertador"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Terminação"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Condição urgente no soquete"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Parar"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Teclado parado"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Continuar"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Status do filho alterado"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Leitura de TTY em segundo plano"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Escrita para TTY em segundo plano"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "E/S possível agora"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Limite de CPU excedido"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Limite de tamenho de arquivo excedido"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Despertador virtual"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Personalizando despertador"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Alteração do tamanho da janela"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Requisição de informação"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Sinal 1 definido pelo usuário"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Sinal 2 definido pelo usuário"
-
-#~ msgid "DEBUG"
-#~ msgstr "DEBUG"
-
-#~ msgid "VERBOSE"
-#~ msgstr "VERBOSE"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "NO-DAEMON"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/ro.po b/po/ro.po
deleted file mode 100644
index ff57555d..00000000
--- a/po/ro.po
+++ /dev/null
@@ -1,202 +0,0 @@
-# Romanian translation for libgtop
-# Copyright (C) 2003 - 2007, Free Software Foundation, Inc.
-# Mişu Moldovan <dumol@gnome.ro>, 2003 - 2007.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-14 03:41+0100\n"
-"PO-Revision-Date: 2007-09-12 01:20+0300\n"
-"Last-Translator: Mişu Moldovan <dumol@gnome.ro>\n"
-"Language-Team: Romanian <gnomero-list@lists.sourceforge.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3;plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?"
-"2:1))\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "citeşte %d octet"
-msgstr[1] "citeşte %d octeţi"
-msgstr[2] "citeşte %d de octeţi"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "mărime date citire"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "citeşte %lu octet de date"
-msgstr[1] "citeşte %lu octeţi de date"
-msgstr[2] "citeşte %lu de octeţi de date"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "a scris %d octet"
-msgstr[1] "a scris %d octeţi"
-msgstr[2] "a scris %d de octeţi"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Activare depanare"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Mesaje de ieşire explicite"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Nu clona în fundal"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Pornit de inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Încercaţi „%s --help” pentru a vedea o listă completă a opţiunilor.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Terminare"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Întrerupere"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Ieşire"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Instrucţiune ilegală"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Punct de oprire întâlnit"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Renunţă"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Eroare EMT"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Excepţie în virgulă mobilă"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Omoară"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Eroare de bus"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Violare a segmentului"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Argument greşit în apelul de sistem"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Filtru nefuncţional"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Ceas de alarmă"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Terminare"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Condiţie de urgenţă în socket"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Stop"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Întrerupere de la tastatură"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Continuă"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Starea copilului s-a schimbat"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Citire în fundal de la tty"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Scriere în fundal către tty"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "Operaţiile I/O sunt acum posibile"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Limită depăşită CPU"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Limită depăşită mărime fişier"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Ceas de alarmă virtual"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Ceas de alarmă pentru „profiling”"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Schimbare de mărime a ferestrei"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Cerere de informaţie"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Semnal 1 definit de utilizator"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Semnal 2 definit de utilizator"
-
-#~ msgid "DEBUG"
-#~ msgstr "DEBUG"
-
-#~ msgid "VERBOSE"
-#~ msgstr "VERBOSE"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "NO-DAEMON"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/ru.po b/po/ru.po
deleted file mode 100644
index d69db594..00000000
--- a/po/ru.po
+++ /dev/null
@@ -1,195 +0,0 @@
-# Russian translation for libgtop
-#
-# Copyright (C) 1999, 2005 Free Software Foundation, Inc.
-# Valek Filippov <val@comptek.ru>, 1999.
-# Dmitry G. Mastrukov <dmitry@taurussoft.org>, 2004.
-# Leonid Kanter <leon@asplinux.ru>, 2005.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop trunk\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-09-05 19:11+0400\n"
-"PO-Revision-Date: 2007-09-05 15:01+0200\n"
-"Last-Translator: Nickolay V. Shmyrev <nshmyrev@yandex.ru>\n"
-"Language-Team: Russian <gnome-cyr@gnome.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
-"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "прочитан %d байт"
-msgstr[1] "прочитано %d байта"
-msgstr[2] "прочитано %d байтов"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "размер прочитанных данных"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "прочитан %lu байт данных"
-msgstr[1] "прочитано %lu байта данных"
-msgstr[2] "прочитано %lu байт данных"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "записан %d байт"
-msgstr[1] "записано %d байта"
-msgstr[2] "записано %d байт"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Включить отладку"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Включить подробный вывод"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Не разветвлять в фоновый режим"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Вызван из inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Используйте \"%s --help\", чтобы увидеть полный список допустимых параметров "
-"командной строки.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Разорвать"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Прервать"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Выйти"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Недопустимая инструкция"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Захват трассировки"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Прекратить"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Ошибка EMT"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Исключение плавающей точки"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Убить"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Ошибка шины"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Нарушение сегментации"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Неверный аргумент в системном вызове"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Нарушенный канал"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Таймер"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Завершение"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Требующие внимания условия сокета"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Остановить"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Останов клавиатуры"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Продолжить"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Состояние потомка было изменено"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Фоновое чтение из tty"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Фоновая запись в tty"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "Сейчас возможен ввод/вывод"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Превышен предел ЦПУ"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Превышен предел размера файла"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Виртуальный таймер"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Профилированный таймер"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Изменение размера окна"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Запрос информации"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Сигнал пользователя 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Сигнал пользователя 2"
diff --git a/po/rw.po b/po/rw.po
deleted file mode 100644
index 05a8a0b5..00000000
--- a/po/rw.po
+++ /dev/null
@@ -1,233 +0,0 @@
-# translation of libgtop to Kinyarwanda.
-# Copyright (C) 2005 Free Software Foundation, Inc.
-# This file is distributed under the same license as the libgtop package.
-# Steve Murphy <murf@e-tools.com>, 2005
-# Steve performed initial rough translation from compendium built from translations provided by the following translators:
-# Philibert Ndandali <ndandali@yahoo.fr>, 2005.
-# Viateur MUGENZI <muvia1@yahoo.fr>, 2005.
-# Noëlla Mupole <s24211045@tuks.co.za>, 2005.
-# Carole Karema <karemacarole@hotmail.com>, 2005.
-# JEAN BAPTISTE NGENDAHAYO <ngenda_denis@yahoo.co.uk>, 2005.
-# Augustin KIBERWA <akiberwa@yahoo.co.uk>, 2005.
-# Donatien NSENGIYUMVA <ndonatienuk@yahoo.co.uk>, 2005..
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 2.12\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2005-03-28 19:35-0700\n"
-"Last-Translator: Steve Murphy <murf@e-tools.com>\n"
-"Language-Team: Kinyarwanda <translation-team-rw@lists.sourceforge.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: lib/read.c:65
-#, fuzzy, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "Gusoma Bayite"
-
-#: lib/read_data.c:53
-#, fuzzy
-msgid "read data size"
-msgstr "Gusoma Ibyatanzwe Ingano"
-
-#: lib/read_data.c:72
-#, fuzzy, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "Gusoma Bayite Bya Ibyatanzwe"
-
-#: lib/write.c:52
-#, fuzzy, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "Bayite"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr ""
-
-# Debug menu items
-#: src/daemon/gnuserv.c:460
-#, fuzzy
-msgid "DEBUG"
-msgstr "Kosora amakosa"
-
-#: src/daemon/gnuserv.c:462
-#, fuzzy
-msgid "Enable verbose output"
-msgstr "Ibisohoka"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr ""
-
-#: src/daemon/gnuserv.c:464
-#, fuzzy
-msgid "Don't fork into background"
-msgstr "Mbuganyuma"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr ""
-
-#: src/daemon/gnuserv.c:466
-#, fuzzy
-msgid "Invoked from inetd"
-msgstr "Bivuye"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr ""
-
-#: src/daemon/gnuserv.c:500
-#, fuzzy, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr "ku Ihitamo Kuri a Urutonde Bya Bihari Komandi: Umurongo Amahitamo"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr ""
-
-# 3225
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Hagarikira aho"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Kuvamo"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Ntibyakunze"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-#, fuzzy
-msgid "EMT error"
-msgstr "Ikosa"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-#, fuzzy
-msgid "Floating-point exception"
-msgstr "Akadomo Irengayobora(-)"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-#, fuzzy
-msgid "Bus error"
-msgstr "Ikosa"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-#, fuzzy
-msgid "Bad argument to system call"
-msgstr "Kuri Sisitemu"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-#, fuzzy
-msgid "Urgent condition on socket"
-msgstr "Ibisabwa ku"
-
-# basctl/source\basicide\basidesh.src:RID_BASICIDE_OBJECTBAR.SID_BASICSTOP.text
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Guhagarara"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-#, fuzzy
-msgid "Keyboard stop"
-msgstr "Guhagarara"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Gukomeza"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-#, fuzzy
-msgid "Child status has changed"
-msgstr "Imimerere Byahinduwe"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-#, fuzzy
-msgid "Background read from tty"
-msgstr "Gusoma Bivuye"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-#, fuzzy
-msgid "Background write to tty"
-msgstr "Kuri"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-#, fuzzy
-msgid "I/O now possible"
-msgstr "NONEAHA"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-#, fuzzy
-msgid "File size limit exceeded"
-msgstr "Idosiye Ingano"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr ""
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-#, fuzzy
-msgid "Window size change"
-msgstr "Ingano Guhindura>>"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-#, fuzzy
-msgid "Information request"
-msgstr "Kubaza..."
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-#, fuzzy
-msgid "User defined signal 1"
-msgstr "1."
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-#, fuzzy
-msgid "User defined signal 2"
-msgstr "2."
diff --git a/po/sk.po b/po/sk.po
deleted file mode 100644
index 073a6fe5..00000000
--- a/po/sk.po
+++ /dev/null
@@ -1,212 +0,0 @@
-# libgtop sk.po
-# Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
-# Marcel Telka <marcel@telka.sk>, 2001, 2002, 2003, 2004.
-#
-# $Id$
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2004-12-29 10:21+0100\n"
-"Last-Translator: Marcel Telka <Marcel@telka.sk>\n"
-"Language-Team: Slovak <sk-i18n@lists.linux.sk>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural= (n==1) ? 1 : (n>=2 && n<=4) ? 2 : 0;\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "načítaných %d bajtov"
-msgstr[1] "načítaný %d bajt"
-msgstr[2] "načítané %d bajty"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "veľkosť načítaných dát"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "načítaných %lu bajtov dát"
-msgstr[1] "načítaný %lu bajt dát"
-msgstr[2] "načítané %lu bajty dát"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "zapísaných %d bajtov"
-msgstr[1] "zapísaný %d bajt"
-msgstr[2] "zapísané %d bajty"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Povoliť ladenie"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "LADENIE"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Povoliť detailný výpis"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "DETAILNE"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Nerozvetvuj sa do pozadia"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Vyvolaný cez inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Chyba vo voľbe %s: %s.\n"
-"Výpis všetkých dostupných volieb príkazového riadku získate spustením '%s --"
-"help'.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Zavesenie"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Prerušenie"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Ukončiť"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Neplatná inštrukcia"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Ladiaci bod"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Prerušiť"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "Chyba EMT"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Výnimka pri práci s pohyblivou rádovou čiarkou"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Zabiť"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Chyba na spoji"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Chyba segmentácie"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Nesprávny argument v systémvom volaní"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Prerušená rúra"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Budík"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Ukončenie"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Naliehavá situácia na zásuvke"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Zastaviť"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Prerušenie klávesnice"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Pokračovanie"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Stav potomka bol zmenený"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Čítanie z tty na pozadí"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Zápis do tty na pozadí"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "V/V je možné"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "Prekročený limit procesora"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Prekročený limit veľkosti súboru"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Virtuálny budík"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Nastavenie budíka"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Zmena veľkosti okna"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Požiadavka na informáciu"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Používateľom definovaný signál 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Používateľom definovaný signál 2"
diff --git a/po/sl.po b/po/sl.po
deleted file mode 100644
index 85637a39..00000000
--- a/po/sl.po
+++ /dev/null
@@ -1,246 +0,0 @@
-# Slovenian translation of libgtop
-# Copyright (C) 2000 Free Software Foundation, Inc.
-# Andraz Tori <andraz.tori1@guest.arnes.si>, 2000.
-# Matic Žgur <mr.zgur@gmail.com>, 2006.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-08-14 08:17+0200\n"
-"PO-Revision-Date: 2006-08-14 11:47+0100\n"
-"Last-Translator: Matic Žgur <mr.zgur@gmail.com>\n"
-"Language-Team: Slovenian <sl@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3\n"
-"X-Poedit-Language: Slovenian\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "prebran %d bajt"
-msgstr[1] "prebrana %d bajta"
-msgstr[2] "prebrani %d bajti"
-msgstr[3] "prebranih %d bajtov"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "prebrana velikost podatkov"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "prebran %lu bajt podatkov"
-msgstr[1] "prebrana %lu bajta podatkov"
-msgstr[2] "prebrani %lu bajti podatkov"
-msgstr[3] "prebranih %lu bajtov podatkov"
-
-#: ../lib/write.c:53
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "zapisan %d bajt"
-msgstr[1] "zapisana %d bajta"
-msgstr[2] "zapisani %d bajti"
-msgstr[3] "zapisanih %d bajtov"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Vključi razhroščevanje"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "RAZHROŠČUJ"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Vključi zgovoren izhod"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "ZGOVOREN"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Ne razveji se v ozadje"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NI-DEAMON"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Poklican iz programa inetd"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Napaka ob možnosti %s: %s.\n"
-"Poženite '%s --help', če želite videti popoln seznam možnosti ukazne vrstice.\n"
-
-#: ../sysdeps/osf1/siglist.c:29
-#: ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "Odloži"
-
-#: ../sysdeps/osf1/siglist.c:30
-#: ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "Prekinitev"
-
-#: ../sysdeps/osf1/siglist.c:31
-#: ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "Izhod"
-
-#: ../sysdeps/osf1/siglist.c:32
-#: ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "Neveljavn ukaz"
-
-#: ../sysdeps/osf1/siglist.c:33
-#: ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "Past sledenja"
-
-#: ../sysdeps/osf1/siglist.c:34
-#: ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "Prekini"
-
-#: ../sysdeps/osf1/siglist.c:35
-#: ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "Napaka EMT"
-
-#: ../sysdeps/osf1/siglist.c:36
-#: ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "Izjema plavajoče vejice"
-
-#: ../sysdeps/osf1/siglist.c:37
-#: ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "Ubij"
-
-#: ../sysdeps/osf1/siglist.c:38
-#: ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "Napaka vodila"
-
-#: ../sysdeps/osf1/siglist.c:39
-#: ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "Segmentacijska kršitev"
-
-#: ../sysdeps/osf1/siglist.c:40
-#: ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "Slab argument sistemskemu klicu"
-
-#: ../sysdeps/osf1/siglist.c:41
-#: ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "Pretrgana cev"
-
-#: ../sysdeps/osf1/siglist.c:42
-#: ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "Budilka"
-
-#: ../sysdeps/osf1/siglist.c:43
-#: ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "Zaključek"
-
-#: ../sysdeps/osf1/siglist.c:44
-#: ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "Nujno stanje na vtiču"
-
-#: ../sysdeps/osf1/siglist.c:45
-#: ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "Ustavi"
-
-#: ../sysdeps/osf1/siglist.c:46
-#: ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "Ustavitev s tipkovnice"
-
-#: ../sysdeps/osf1/siglist.c:47
-#: ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "Nadaljuj"
-
-#: ../sysdeps/osf1/siglist.c:48
-#: ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "Stanje otroka se je spremenilo"
-
-#: ../sysdeps/osf1/siglist.c:49
-#: ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "Branje s tty v ozadju"
-
-#: ../sysdeps/osf1/siglist.c:50
-#: ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "Pisanje na tty v ozadju"
-
-#: ../sysdeps/osf1/siglist.c:51
-#: ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "V/I sedaj možen"
-
-#: ../sysdeps/osf1/siglist.c:52
-#: ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "Prekoračena omejitev procesorja"
-
-#: ../sysdeps/osf1/siglist.c:53
-#: ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "Prekoračena omejitev dolžine datoteke"
-
-#: ../sysdeps/osf1/siglist.c:54
-#: ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "Navidezna budilka"
-
-#: ../sysdeps/osf1/siglist.c:55
-#: ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "Budilka profiliranja"
-
-#: ../sysdeps/osf1/siglist.c:56
-#: ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "Sprememba velikosti okna"
-
-#: ../sysdeps/osf1/siglist.c:57
-#: ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "Zahteva po podatkih"
-
-#: ../sysdeps/osf1/siglist.c:58
-#: ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "Uporabniško definiran signal 1"
-
-#: ../sysdeps/osf1/siglist.c:59
-#: ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "Uporabniško definiran signal 2"
-
diff --git a/po/sq.po b/po/sq.po
deleted file mode 100644
index f4e5be58..00000000
--- a/po/sq.po
+++ /dev/null
@@ -1,207 +0,0 @@
-# Përkthimi i mesazheve të libgtop në shqip
-# This file is distributed under the same license as the libgtop package.
-# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
-# Laurent Dhima <laurenti@alblinux.net>, 2003, 2004, 2005.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2005-02-14 13:23+0100\n"
-"Last-Translator: Laurent Dhima <laurenti@alblinux.net>\n"
-"Language-Team: Albanian <gnome-albanian-perkthyesit@lists.sourceforge.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "u lexua %d byte"
-msgstr[1] "u lexuan %d bytes"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "madhësia e të dhënave të lexuara"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "u lexua %lu byte me të dhëna"
-msgstr[1] "u lexuan %lu bytes me të dhëna"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "u shkrua %d byte"
-msgstr[1] "u shkruan %d bytes"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Aktivo proçesin e kontrollit"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "DEBUG"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Aktivo output e hollësishëm"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "VERBOSE"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Mos kryej fork në background"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Thërritur nga inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Gabim në opcionin %s: %s.\n"
-"Zbato '%s --help' për të shikuar listën e plotë të opcioneve të komandës.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Mbylle"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Ndërprit"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Dalja"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Instruktim ilegal"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Merr gjurmët"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Anullo"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "Gabim EMT"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Floating-point exception"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Vrit"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Gabim i bus"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Violim i segmentimit"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Argument i gabuar në thirrjen e sistemit"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Pipe e ndërprerë"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Alarmi"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Përfundimi"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Konditë urgjente në socket "
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Ndal"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Ndalim nga tastiera"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Vazhdo"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Gjendja e birit ka ndryshuar"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Lexim në sfond nga tty"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Shkrim në sfond tek tty"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "I/O tashmë e mundshme"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "Limiti i CPU është tejkaluar"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Limiti i madhësisë së file është tejkaluar"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Alarm virtual"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Duke profiluar orën e alarmit"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Ndryshimi i madhësisë së dritares"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Kërkesë informacioni"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Sinjal 1 i përcaktuar nga përdoruesi"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Sinjal 2 i përcaktuar nga përdoruesi"
diff --git a/po/sr.po b/po/sr.po
deleted file mode 100644
index 6b9a407b..00000000
--- a/po/sr.po
+++ /dev/null
@@ -1,205 +0,0 @@
-# Serbian translation of libgtop
-# Courtesy of Prevod.org team (http://prevod.org/) -- 2003, 2004, 2005.
-#
-# This file is distributed under the same license as the libgtop package.
-#
-# Maintainer: Бранко Ивановић <popeye@one.ekof.bg.ac.yu>
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-09-12 13:30+0200\n"
-"PO-Revision-Date: 2005-03-06 09:51+0100\n"
-"Last-Translator: Данило Шеган <danilo@gnome.org>\n"
-"Language-Team: Serbian (sr) <gnom@prevod.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
-"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "прочитан %d бајт"
-msgstr[1] "прочитана %d бајта"
-msgstr[2] "прочитано %d бајтова"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "величина прочитаних података"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "прочитан %lu бајт података"
-msgstr[1] "прочитана %lu бајта података"
-msgstr[2] "прочитано %lu бајтова података"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "уписан %d бајт"
-msgstr[1] "уписана %d бајта"
-msgstr[2] "уписано %d бајтова"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Укључи исправљање грешака"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Укључи детаљни приказ"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Не прелази на рад у позадини"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Покренуто из inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Покрени „%s --help“ за преглед постојећих командних опција.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Обустави"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Прекид"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Изађи"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Неисправна инструкција"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Иди трагом замке"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Одустани"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "ЕМТ грешка"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Изузетак са покретним зарезом"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Убиј"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Грешка у магистрали"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Погрешан приступ меморији (segv)"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Лош аргумент системског позива"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Покварен цевовод"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Будилник"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Окончање"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Критично стање утичнице"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Стани"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Заустави тастатуру"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Настави"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Стање детета се променило"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Позадинско читање са tty"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Позадинско писање на tty"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O сад омогућен"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Прекорачено CPU ограничење"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Прекорачено ограничење величине датотеке"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Виртуелни будилник"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Профилисање будилника"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Промена величине прозора"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Захтев зе информацијама"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Кориснички дефинисан сигнал 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Кориснички дефинисан сигнал 1"
-
-#~ msgid "DEBUG"
-#~ msgstr "ИСПРАВЉАЊЕ ГРЕШАКА"
-
-#~ msgid "VERBOSE"
-#~ msgstr "ДЕТАЉНО"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "БЕЗ-УСЛУГЕ"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/sr@Latn.po b/po/sr@Latn.po
deleted file mode 100644
index 72dae0a6..00000000
--- a/po/sr@Latn.po
+++ /dev/null
@@ -1,205 +0,0 @@
-# Serbian translation of libgtop
-# Courtesy of Prevod.org team (http://prevod.org/) -- 2003, 2004, 2005.
-#
-# This file is distributed under the same license as the libgtop package.
-#
-# Maintainer: Branko Ivanović <popeye@one.ekof.bg.ac.yu>
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-09-12 13:30+0200\n"
-"PO-Revision-Date: 2005-03-06 09:51+0100\n"
-"Last-Translator: Danilo Šegan <danilo@gnome.org>\n"
-"Language-Team: Serbian (sr) <gnom@prevod.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
-"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "pročitan %d bajt"
-msgstr[1] "pročitana %d bajta"
-msgstr[2] "pročitano %d bajtova"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "veličina pročitanih podataka"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "pročitan %lu bajt podataka"
-msgstr[1] "pročitana %lu bajta podataka"
-msgstr[2] "pročitano %lu bajtova podataka"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "upisan %d bajt"
-msgstr[1] "upisana %d bajta"
-msgstr[2] "upisano %d bajtova"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Uključi ispravljanje grešaka"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Uključi detaljni prikaz"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Ne prelazi na rad u pozadini"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Pokrenuto iz inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Pokreni „%s --help“ za pregled postojećih komandnih opcija.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Obustavi"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Prekid"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Izađi"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Neispravna instrukcija"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Idi tragom zamke"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Odustani"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT greška"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Izuzetak sa pokretnim zarezom"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Ubij"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Greška u magistrali"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Pogrešan pristup memoriji (segv)"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Loš argument sistemskog poziva"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Pokvaren cevovod"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Budilnik"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Okončanje"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Kritično stanje utičnice"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Stani"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Zaustavi tastaturu"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Nastavi"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Stanje deteta se promenilo"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Pozadinsko čitanje sa tty"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Pozadinsko pisanje na tty"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O sad omogućen"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Prekoračeno CPU ograničenje"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Prekoračeno ograničenje veličine datoteke"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Virtuelni budilnik"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Profilisanje budilnika"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Promena veličine prozora"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Zahtev ze informacijama"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Korisnički definisan signal 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Korisnički definisan signal 1"
-
-#~ msgid "DEBUG"
-#~ msgstr "ISPRAVLJANJE GREŠAKA"
-
-#~ msgid "VERBOSE"
-#~ msgstr "DETALJNO"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "BEZ-USLUGE"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/sv.po b/po/sv.po
deleted file mode 100644
index cf9e139b..00000000
--- a/po/sv.po
+++ /dev/null
@@ -1,500 +0,0 @@
-# Swedish messages for libgtop.
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
-# Daniel Nylander <po@danielnylander.se>, 2007.
-# Tomas Ögren <stric@ing.umu.se>, 1999.
-# Martin Norbäck <d95mback@dtek.chalmers.se>, 2000.
-# Christian Rose <menthos@menthos.com>, 2002, 2003, 2004.
-#
-# $Id: sv.po,v 1.28 2006/01/02 17:43:45 bdejean Exp $
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-27 11:57+0200\n"
-"PO-Revision-Date: 2007-05-27 11:44+0100\n"
-"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
-"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "läste %d byte"
-msgstr[1] "läste %d byte"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "läste datastorlek"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "läste %lu byte data"
-msgstr[1] "läste %lu byte data"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "skrev %d byte"
-msgstr[1] "skrev %d byte"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Aktivera felsökning"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Aktivera utförlig utskrift"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Grena inte i bakgrunden"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Startad från inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Kör \"%s --help\" för att se hela listan över tillgängliga "
-"kommandoradsflaggor.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Avringd"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Avbruten"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Lämnad"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Otillåten instruktion"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Spårningsfälla"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Avbruten (SIGABRT)"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Emulatorfälla"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Aritmetiskt fel"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Dödad"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Bussfel"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Segmenteringsfel"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Felaktigt argument till systemanrop"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Brutet rör"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Alarmklocka"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Avslutad"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Viktigt I/O-tillstånd"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Stoppad (signal)"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Stoppad"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Återupptagen"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Barnstatus ändrad"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Stoppad (terminalläsning)"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Stoppad (terminalskrivning)"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O möjligt"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Begränsning av CPU-tid överskriden"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Begränsning av filstorlek överskriden"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Alarmklocka - virtuell tid"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Profileringsklocka"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Ändrat fönster"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Informationsbegäran"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Användarsignal 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Användarsignal 2"
-
-#~ msgid "DEBUG"
-#~ msgstr "FELSÖK"
-
-#~ msgid "VERBOSE"
-#~ msgstr "UTFÖRLIG"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "INGEN-DEMON"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
-
-#~ msgid "Ticks (%ld per second):"
-#~ msgstr "Tick (%ld per sekund):"
-
-#~ msgid "Total"
-#~ msgstr "Totalt"
-
-#~ msgid "User"
-#~ msgstr "Användare"
-
-#~ msgid "Nice"
-#~ msgstr "Nice"
-
-#~ msgid "Sys"
-#~ msgstr "Sys"
-
-#~ msgid "Idle"
-#~ msgstr "Ledigt"
-
-#~ msgid ""
-#~ "CPU (0x%08lx): %12.0f %12.0f %12.0f %12.0f %12.0f\n"
-#~ "\n"
-#~ msgstr ""
-#~ "CPU (0x%08lx): %12.0f %12.0f %12.0f %12.0f %12.0f\n"
-#~ "\n"
-
-#~ msgid "CPU %3d (0x%08lx): %12lu %12lu %12lu %12lu %12lu\n"
-#~ msgstr "CPU %3d (0x%08lx): %12lu %12lu %12lu %12lu %12lu\n"
-
-#~ msgid "Percent:"
-#~ msgstr "Procent:"
-
-#~ msgid "Total (%)"
-#~ msgstr "Totalt (%)"
-
-#~ msgid "User (%)"
-#~ msgstr "Användare (%)"
-
-#~ msgid "Nice (%)"
-#~ msgstr "Nice (%)"
-
-#~ msgid "Sys (%)"
-#~ msgstr "Sys (%)"
-
-#~ msgid "Idle (%)"
-#~ msgstr "Ledig (%)"
-
-#~ msgid ""
-#~ "CPU (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
-#~ "\n"
-#~ msgstr ""
-#~ "CPU (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
-#~ "\n"
-
-#~ msgid "CPU %3d (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
-#~ msgstr "CPU %3d (0x%08lx): %12.3f %12.3f %12.3f %12.3f %12.3f\n"
-
-#~ msgid "Spin:"
-#~ msgstr "Spinn:"
-
-#~ msgid "read data %lu byte"
-#~ msgid_plural "read data %lu bytes"
-#~ msgstr[0] "läste data %lu byte"
-#~ msgstr[1] "läste data %lu byte"
-
-#~ msgid "write %d byte"
-#~ msgid_plural "write %d bytes"
-#~ msgstr[0] "skriv %d byte"
-#~ msgstr[1] "skriv %d byte"
-
-#~ msgid "Total CPU Time"
-#~ msgstr "Total processortid"
-
-#~ msgid "CPU Time in User Mode"
-#~ msgstr "Processortid i användarläge"
-
-#~ msgid "CPU Time in User Mode (nice)"
-#~ msgstr "Processortid i användarläge (nice)"
-
-#~ msgid "CPU Time in System Mode"
-#~ msgstr "Processortid i systemläge"
-
-#~ msgid "CPU Time in the Idle Task"
-#~ msgstr "Processortid i Idle Task"
-
-#~ msgid "Tick Frequency"
-#~ msgstr "Tickfrekvens"
-
-#~ msgid "SMP Total CPU Time"
-#~ msgstr "SMP total processortid"
-
-#~ msgid "SMP CPU Time in User Mode"
-#~ msgstr "SMP processortid i användarläge"
-
-#~ msgid "SMP CPU Time in User Mode (nice)"
-#~ msgstr "SMP processortid i användarläge (nice)"
-
-#~ msgid "SMP CPU Time in System Mode"
-#~ msgstr "SMP processortid i systemläge"
-
-#~ msgid "SMP CPU Time in the Idle Task"
-#~ msgstr "SMP processortid i Idle Task"
-
-#~ msgid "SMP CPU Flags"
-#~ msgstr "SMP-processorflaggor"
-
-#~ msgid "Number of clock ticks since system boot"
-#~ msgstr "Antal klocktick sedan systemstart"
-
-#~ msgid "Number of clock ticks the system spent in user mode"
-#~ msgstr "Antal klocktick systemet har använt i användarläge"
-
-#~ msgid "Number of clock ticks the system spent in user mode (nice)"
-#~ msgstr "Antal klocktick systemet har använt i användarläge (nice)"
-
-#~ msgid "Number of clock ticks the system spent in system mode"
-#~ msgstr "Antal klocktick systemet har använt i systemläge"
-
-#~ msgid "Number of clock ticks the system spent in the idle task"
-#~ msgstr "Antal klocktick systemet har använt i Idle Task"
-
-#~ msgid "Tick frequency (default is 100)"
-#~ msgstr "Tickfrekvens (standard är 100)"
-
-#~ msgid "Bit field indicating which CPU is currently running"
-#~ msgstr "Bitfält som indikerar vilken processor som för tillfället körs"
-
-#~ msgid "Total blocks"
-#~ msgstr "Totalt antal block"
-
-#~ msgid "Free blocks"
-#~ msgstr "Fria block"
-
-#~ msgid "Available blocks"
-#~ msgstr "Tillgängliga block"
-
-#~ msgid "Total file nodes"
-#~ msgstr "Totalt antal filnoder"
-
-#~ msgid "Free file nodes"
-#~ msgstr "Fria filnoder"
-
-#~ msgid "Block size"
-#~ msgstr "Blockstorlek"
-
-#~ msgid "Free blocks available to the superuser"
-#~ msgstr "Fria block tillgängliga för superanvändaren"
-
-#~ msgid "Free blocks available to non-superusers"
-#~ msgstr "Fria block tillgängliga för icke-superanvändare"
-
-#~ msgid "Load Average"
-#~ msgstr "Medellast"
-
-#~ msgid "Running Tasks"
-#~ msgstr "Körande program"
-
-#~ msgid "Number of Tasks"
-#~ msgstr "Antal program"
-
-#~ msgid "Last PID"
-#~ msgstr "Sista PID"
-
-#~ msgid ""
-#~ "Number of jobs running simultaneously averaged over 1, 5 and 15 minutes"
-#~ msgstr "Antal samtidigt körande jobb med medel över 1, 5 och 15 minuter"
-
-#~ msgid "Number of tasks currently running"
-#~ msgstr "Antal jobb som körs just nu"
-
-#~ msgid "Total number of tasks"
-#~ msgstr "Totalt antal jobb"
-
-#~ msgid "Total Memory"
-#~ msgstr "Totalt minne"
-
-#~ msgid "Used Memory"
-#~ msgstr "Använt minne"
-
-#~ msgid "Free Memory"
-#~ msgstr "Ledigt minne"
-
-#~ msgid "Shared Memory"
-#~ msgstr "Delat minne"
-
-#~ msgid "Buffers"
-#~ msgstr "Buffertar"
-
-#~ msgid "Cached"
-#~ msgstr "Cachat"
-
-#~ msgid "Locked"
-#~ msgstr "Låst"
-
-#~ msgid "Total physical memory in kB"
-#~ msgstr "Totalt fysiskt minne i kB"
-
-#~ msgid "Used memory size in kB"
-#~ msgstr "Använt minne i kB"
-
-#~ msgid "Free memory size in kB"
-#~ msgstr "Fritt minne i kB"
-
-#~ msgid "Shared memory size in kB"
-#~ msgstr "Delat minne i kB"
-
-#~ msgid "Size of buffers kB"
-#~ msgstr "Storleken på buffertar i kB"
-
-#~ msgid "Size of cached memory in kB"
-#~ msgstr "Storleken på cachat minne i kB"
-
-#~ msgid "Memory used from user processes in kB"
-#~ msgstr "Minne använt av användarprocesser i kB"
-
-#~ msgid "Memory in locked pages in kB"
-#~ msgstr "Minne i låsta sidor i kB"
-
-#~ msgid "Number of list elements"
-#~ msgstr "Antal listelement"
-
-#~ msgid "Total size of list"
-#~ msgstr "Totala storleken på listan"
-
-#~ msgid "Size of a single list element"
-#~ msgstr "Storleken på ett enda listelement"
-
-#~ msgid "Size in kilobytes of message pool"
-#~ msgstr "Storleken på meddelandepoolen i kilobyte"
-
-#~ msgid "Number of entries in message map"
-#~ msgstr "Antal poster i meddelandekartan"
-
-#~ msgid "Max size of message"
-#~ msgstr "Maxstorlek på meddelande"
-
-#~ msgid "Default max size of queue"
-#~ msgstr "Standard maxstorlek på kö"
-
-#~ msgid "Max queues system wide"
-#~ msgstr "Max köer i hela systemet"
-
-#~ msgid "Message segment size"
-#~ msgstr "Meddelandesegmentstorlek"
-
-#~ msgid "Number of system message headers"
-#~ msgstr "Antal systemmeddelandehuvuden"
-
-#~ msgid "Interface Flags"
-#~ msgstr "Gränssnittsflaggor"
-
-#~ msgid "MTU"
-#~ msgstr "MTU"
-
-#~ msgid "IPv4 Subnet"
-#~ msgstr "IPv4-subnät"
-
-#~ msgid "IPv4 Address"
-#~ msgstr "IPv4-adress"
-
-#~ msgid "Packets In"
-#~ msgstr "Inkommande paket"
-
-#~ msgid "Packets Out"
-#~ msgstr "Utgående paket"
-
-#~ msgid "Packets Total"
-#~ msgstr "Totalt paket"
-
-#~ msgid "Bytes In"
-#~ msgstr "Inkommande byte"
-
-#~ msgid "Bytes Out"
-#~ msgstr "Utgående byte"
-
-#~ msgid "Bytes Total"
-#~ msgstr "Totalt byte"
-
-#~ msgid "Errors In"
-#~ msgstr "Inkommande fel"
-
-#~ msgid "Errors Out"
-#~ msgstr "Utgående fel"
-
-#~ msgid "Errors Total"
-#~ msgstr "Totalt fel"
-
-#~ msgid "Collisions"
-#~ msgstr "Kollisioner"
-
-#~ msgid "IPv6 Address"
-#~ msgstr "IPv6-adress"
-
-#~ msgid "IPv6 Prefix"
-#~ msgstr "IPv6-prefix"
diff --git a/po/ta.po b/po/ta.po
deleted file mode 100644
index 1bc1a422..00000000
--- a/po/ta.po
+++ /dev/null
@@ -1,231 +0,0 @@
-# translation of ta.po to
-# Tamil translation of Tamil Libgtop 2.4.
-# Copyright (C) 2003, 2004,2007 Free Software Foundation, Inc.
-# Dinesh Nadarajah <n_dinesh@yahoo.com>, 2003.
-# Jayaradha N <jaya@pune.redhat.com>, 2004.
-# B.Senthil Kumar <senthilb@cdac.in>, 2007
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: ta\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-14 03:41+0100\n"
-"PO-Revision-Date: 2007-07-08 17:29+0530\n"
-"Last-Translator: Dr.T.Vasudevan <agnihot3@gmail.com>\n"
-"Language-Team: <en@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.11.4\n"
-"Plural-Forms: Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d பைட்கள் படி"
-msgstr[1] "%d பைட்கள் படி"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "படித்த தகவல் அளவு"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "தரவின் %lu பைட்டை வாசிக்கவும்"
-msgstr[1] "தரவின் %lu பைட்டுக்களை வாசிக்கவும்"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "எழுதிய %d பைட்"
-msgstr[1] "எழுதிய %d பைட்டுகள்"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "பிழை திருத்தலை செயல்படுத்து"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "வெர்போஸ் விளைவை செயல்படுத்து"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "பின்னனியை பிளக்காதே"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "inetd லிருந்து செயல்படுத்து"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Rus '%s--help' இயக்கி கட்டளைவரி தேர்வுகளை காணவும்.\n"
-
-#: ../sysdeps/osf1/siglist.c:27
-#: ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "தொங்கியது"
-
-#: ../sysdeps/osf1/siglist.c:28
-#: ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "தடை"
-
-#: ../sysdeps/osf1/siglist.c:29
-#: ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "வெளிச்செல்"
-
-#: ../sysdeps/osf1/siglist.c:30
-#: ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "தவறான செய்தி"
-
-#: ../sysdeps/osf1/siglist.c:31
-#: ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "தடம் காண்"
-
-#: ../sysdeps/osf1/siglist.c:32
-#: ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "தடைசெய்"
-
-#: ../sysdeps/osf1/siglist.c:33
-#: ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT பிழை"
-
-#: ../sysdeps/osf1/siglist.c:34
-#: ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "பின்ன பிழை"
-
-#: ../sysdeps/osf1/siglist.c:35
-#: ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "கொலை செய்"
-
-#: ../sysdeps/osf1/siglist.c:36
-#: ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "பஸ் பிழை"
-
-#: ../sysdeps/osf1/siglist.c:37
-#: ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "செக்மன்டேஷன் மீறல்"
-
-#: ../sysdeps/osf1/siglist.c:38
-#: ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "கணினி அழைப்புக்கு மோசமான அளவுரு"
-
-#: ../sysdeps/osf1/siglist.c:39
-#: ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "உடைந்த பாதை"
-
-#: ../sysdeps/osf1/siglist.c:40
-#: ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "அல்லாரம் கடிகாரம்"
-
-#: ../sysdeps/osf1/siglist.c:41
-#: ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "முடிவு"
-
-#: ../sysdeps/osf1/siglist.c:42
-#: ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "சாக்கெட்டின் அவசர நிலை"
-
-#: ../sysdeps/osf1/siglist.c:43
-#: ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "நிறுத்து"
-
-#: ../sysdeps/osf1/siglist.c:44
-#: ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "விசைப்பலகை நிறுத்தம்"
-
-#: ../sysdeps/osf1/siglist.c:45
-#: ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "தொடரவும்"
-
-#: ../sysdeps/osf1/siglist.c:46
-#: ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "சேய்நிலை மாற்றப்பட்டது"
-
-#: ../sysdeps/osf1/siglist.c:47
-#: ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "tty யின் பின்னியில் படி"
-
-#: ../sysdeps/osf1/siglist.c:48
-#: ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "tty யின் பின்னியில் எழுது"
-
-#: ../sysdeps/osf1/siglist.c:49
-#: ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "I/O இப்போது முடியும்"
-
-#: ../sysdeps/osf1/siglist.c:50
-#: ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "CPU எல்லை கடந்தது"
-
-#: ../sysdeps/osf1/siglist.c:51
-#: ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "முழு அளவு எல்லை கடந்தது"
-
-#: ../sysdeps/osf1/siglist.c:52
-#: ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "மெய்நிகர் எச்சரிக்கை கடிகாரம்"
-
-#: ../sysdeps/osf1/siglist.c:53
-#: ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "எச்சரிக்கை கடிகாத்தின் விவரம்"
-
-#: ../sysdeps/osf1/siglist.c:54
-#: ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "சாளர அளவு மாற்றம்"
-
-#: ../sysdeps/osf1/siglist.c:55
-#: ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "தகவல் கோரிக்கை"
-
-#: ../sysdeps/osf1/siglist.c:56
-#: ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "பயனீட்டாளர் குறித்த சங்கேதம் 1"
-
-#: ../sysdeps/osf1/siglist.c:57
-#: ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "பயனீட்டாளர் குறித்த சங்கேதம் 2"
-
-#~ msgid "DEBUG"
-#~ msgstr "DEBUG(டீபக்)"
-#~ msgid "VERBOSE"
-#~ msgstr "VERBOSE(வெற்போஸ்)"
-#~ msgid "NO-DAEMON"
-#~ msgstr "NO-DAEMON(நோ-டொமொன்)"
-#~ msgid "INETD"
-#~ msgstr "INETD(இனிட்டி)"
-
diff --git a/po/te.po b/po/te.po
deleted file mode 100644
index 8baad4b7..00000000
--- a/po/te.po
+++ /dev/null
@@ -1,207 +0,0 @@
-# Telugu translation of libgtop
-# This file is distributed under the same license as the libgtop package.
-# Copyright (C) Sree Ganesh <mrthottempudi@yahoo.com>, 2006.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop.HEAD\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-09-19 20:33+0530\n"
-"PO-Revision-Date: 2006-09-14 15:44+0530\n"
-"Last-Translator: Sree Ganesh <mrthottempudi@yahoo.com>\n"
-"Language-Team: Swecha <localisation@swecha.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n!=1);\n"
-"X-Generator: KBabel 1.9.1\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d బైట్ చదువు"
-msgstr[1] "%d బైట్ చదువు"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "సమాచార సైజును చదువు"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "సమాచారంయొక్క %lu బైట్ చదువు"
-msgstr[1] "సమాచారంయొక్క %lu బైట్ చదువు"
-
-#: ../lib/write.c:53
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d బైట్ రాయి"
-msgstr[1] "%d బైట్ రాయి"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "డిబగ్గింగ్ కుదరదు"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "డిబగ్"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "వెర్బోస్ ఉద్గాతం కుదరదు"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "వెర్బోసు"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "నేపధ్యంలోకి తిరగకండి"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "డిఎఇఎమ్ఒఎన్ లేదు"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "ఇన్ఎటిదడ్ నుండీ లే"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "ఐఎన్ఇటిడి"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"%s: %s.ఐచ్ఛికంలో దోషం\n"
-"అందుబాటులోఉన్న కమాండ్ లైన్ ఐచ్చికాల పూర్తిజాబితా చూడటానికి '%s --help' ఉపయోగించు.\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "పైకివేలాడతీయి"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "అడ్డుపడు"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "వదులు"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "చట్టవ్యతిరేక నిర్దేశాలు"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr ""
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "ఇఎంటి దోషం"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "చర-కేంద్ర మినహాయింపు"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "చంపు"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "బస్ దోషం"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "అంశీకరణ ఉల్లంఘన"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "కంప్యూటరు పిలుపుకు సరికాని వాదన"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "విరిగిన పైపు"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "అలారం గడియారం"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "ముగింపు"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "సాకెట్లో అత్యవసర స్థితి"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "ఆగు"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "కీబోర్డు ఆపు"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "కొనసాగించు"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "బాల్య స్థితి మార్చబడింది"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "టిటివైనుండీ నేపధ్యాన్ని చదువు"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "టిటివైకి నేపధ్యాన్ని రాయి"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "ఐ/ఒ ఇప్పుడు సాధ్యం"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "సిపియు అవధి మీరింది"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "ఫైలు పరిమాణం ఎక్కువైంది"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "సరైన అలారం గడియాయారం"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "ఆకృతీకరించిన అలారం గడియారం"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "విందో పరిమాణం మార్పు"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "సమాచారం కావాలి"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "వినియోగదారుని నిర్ధారనా చిహ్నం 1"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "వినియోగదారుని నిర్ధారనా చిహ్నం 2"
diff --git a/po/th.po b/po/th.po
deleted file mode 100644
index 50d9e5b0..00000000
--- a/po/th.po
+++ /dev/null
@@ -1,197 +0,0 @@
-# Thai translation of libgtop.
-# Copyright (C) 2005 Free Software Foundation
-# This file is distributed under the same license as the libgtop package.
-# Theppitak Karoonboonyanan <thep@linux.thai.net>, 2005-2007.
-#
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 2.11.1\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-18 17:22+0700\n"
-"PO-Revision-Date: 2007-05-18 17:23+0700\n"
-"Last-Translator: Theppitak Karoonboonyanan <thep@linux.thai.net>\n"
-"Language-Team: Thai <l10n@opentle.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "อ่าน %d ไบต์"
-
-#: lib/read_data.c:51
-msgid "read data size"
-msgstr "อ่านขนาดข้อมูล"
-
-#: lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "อ่านข้อมูล %lu ไบต์"
-
-#: lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "เขียน %d ไบต์"
-
-#: src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "เปิดใช้การดีบั๊ก"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "เปิดข้อความเอาต์พุตละเอียด"
-
-#: src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "ไม่ต้อง fork ไปทำงานเบื้องหลัง"
-
-#: src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "เรียกจาก inetd"
-
-#: src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "เรียก '%s --help' เพื่อดูรายการตัวเลือกบรรทัดคำสั่งทั้งหมดที่ใช้ได้\n"
-
-#: sysdeps/osf1/siglist.c:27 sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "ตัดการเชื่อมต่อ"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "ขัดจังหวะ"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "ออกทันที"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "รหัสคำสั่งผิดพลาด"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "หยุดเพื่อตรวจสอบ"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "เลิกทำงาน"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "ข้อผิดพลาด EMT"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "ความผิดพลาดเลขคณิตทศนิยม"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "ฆ่า"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "บัสผิดพลาด"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "การละเมิดพื้นที่หน่วยความจำ"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "การเรียกฟังก์ชันระบบผิดพลาด"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "ไปป์หลุด"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "นาฬิกาปลุก"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "จบการทำงาน"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "เงื่อนไขเร่งด่วนของซ็อกเก็ต"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "หยุด"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "หยุดด้วยแป้นพิมพ์"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "ทำงานต่อ"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "โพรเซสลูกเปลี่ยนสถานะ"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "โพรเซสเบื้องหลังอ่านเทอร์มินัล"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "โพรเซสเบื้องหลังเขียนเทอร์มินัล"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "ข้อมูลเข้า/ออกพร้อม"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "ทะลุขีดจำกัด CPU"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "ทะลุขีดจำกัดขนาดแฟ้ม"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "นาฬิกาปลุกเสมือน"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "นาฬิกาปลุกวัดประสิทธิภาพ"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "ขนาดหน้าต่างเทอร์มินัลเปลี่ยน"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "ร้องขอข้อมูล"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "สัญญาณผู้ใช้กำหนด 1"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "สัญญาณผู้ใช้กำหนด 2"
-
-#~ msgid "DEBUG"
-#~ msgstr "DEBUG"
-
-#~ msgid "VERBOSE"
-#~ msgstr "VERBOSE"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "NO-DAEMON"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/tr.po b/po/tr.po
deleted file mode 100644
index 73417411..00000000
--- a/po/tr.po
+++ /dev/null
@@ -1,208 +0,0 @@
-# translation of libgtop to Turkish
-# Copyright (C) 2004 Free Software Foundation, Inc.
-# Görkem Çetin <gorkem@gelecek.com.tr>, 2001.
-# Ömer Fadıl USTA <omer_fad@hotmail.com>,2002.
-# Baris Cicek <baris@teamforce.name.tr>, 2004.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2004-05-14 18:09+0300\n"
-"Last-Translator: Baris Cicek <baris@teamforce.name.tr>\n"
-"Language-Team: Turkish <gnome-turk@gnome.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "%d bayt oku"
-msgstr[1] "%d bayt oku"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "okunan veri miktarı"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "%lu bayt oku"
-msgstr[1] "%lu bayt oku"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "%d bayt yaz"
-msgstr[1] "%d bayt yaz"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Hata ayıklamayı etkinleştir"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "HATA AYIKLA"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Detaylı çıktıyı etkinleştir"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "DETAYLI"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Arkaplana çatallama"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "SERVİS-YOK"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Inetd'den çalıştırıldı"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"%s seçeneğinde hata: %s.\n"
-"Kullanılabilecek tüm seçenekleri görmek için '%s --help' yazın.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Takılma"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Kesme"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Çıkış"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Tanımsız yönerge"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Takip hatası"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "İptal"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "EMT hatası"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Kayar nokta (floating point) hatası"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Öldür"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Veriyolu hatası"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Bölümleme ihlali"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Sistem çağrısına hatalı argüman"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Kırık boru"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Alarm saati"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Sonlandırma"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Sokette acil durum"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Dur"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Klavyeden durdurma"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Devam"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Alt sürecin durumu değişti"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "tty'dan arkaplanda okuma"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "tty'a arkaplanda yazma"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "G/Ç mümkün"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "İşlemci sınırı aşıldı"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Dosya sınırı aşıldı"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Sanal alarm saati"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Alarm saati"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Pencere boyutu değişimi"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Bilgi talebi"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Kullanıcı tanımlı sinyal 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Kullanıcı tanımlı sinyal 2"
diff --git a/po/uk.po b/po/uk.po
deleted file mode 100644
index 33c36c7f..00000000
--- a/po/uk.po
+++ /dev/null
@@ -1,203 +0,0 @@
-# Copyright (C) 2000 Free Software Foundation, Inc.
-# Yuri Syrota <rasta@renome.rovno.ua>, 2000.
-# Maxim Dziumanenko <dziumanenko@gmail.com>, 2004-2007
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 1.1.3\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-09-12 16:15+0300\n"
-"PO-Revision-Date: 2007-09-12 11:35+0300\n"
-"Last-Translator: Maxim Dziumanenko <dziumanenko@gmail.com>\n"
-"Language-Team: Ukrainian <uk@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
-"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "зчитано %d байт"
-msgstr[1] "зчитано %d байти"
-msgstr[2] "зчитано %d байтів"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "розмір прочитаних даних"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "зчитано %lu байт даних"
-msgstr[1] "зчитано %lu байти даних"
-msgstr[2] "зчитано %lu байтів даних"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "записано %d байт даних"
-msgstr[1] "записано %d байти даних"
-msgstr[2] "записано %d байтів даних"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Увімкнути налагодження"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Увімкнути докладний вивід"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Не переходити у фоновий режим"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Викликаний з inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Запустіть '%s --help' щоб побачити повний список доступних параметрів.\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Розірвати"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Перервати"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Вихід"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Неправильна команда"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Захоплення трасування"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Припинити"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Помилка EMT"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Виключення операції з плаваючою крапкою"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Знищити"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Помилка шини"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Помилка сегментації"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Неправильний аргумент у системному виклику"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Розірвано канал"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Таймер"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Завершення"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Стан сокету, що вимагає уваги"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Зупинити"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Клавіатурний сигнал зупинки"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Продовжити"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Було змінено стан дочірнього процесу"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Фонове зчитування з TTY"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Фоновий запис у TTY"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "Ввід-вивід наразі можливий"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Перевищено обмеження ЦП"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Перевищено обмеження розміру файла"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Віртуальний таймер"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Сигнал таймера профілювання"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Зміна розмірів вікна"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Запит інформації"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Визначений користувачем сигнал 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Визначений користувачем сигнал 2"
-
-#~ msgid "DEBUG"
-#~ msgstr "НАЛАГОДЖЕННЯ"
-
-#~ msgid "VERBOSE"
-#~ msgstr "ДЕТАЛЬНО"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "БЕЗ-ДЕМОНУ"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/vi.po b/po/vi.po
deleted file mode 100644
index 329b8e31..00000000
--- a/po/vi.po
+++ /dev/null
@@ -1,228 +0,0 @@
-# Vietnamese translation for libgtop.
-# Copyright © 2007 Gnome i18n Project for Vietnamese.
-# Nguyễn Thái Ngọc Duy <pclouds@gmx.net>, 2002.
-# Clytie Siddall <clytie@riverland.net.au>, 2005-2007.
-#
-msgid ""
-""
-msgstr "Project-Id-Version: libgtop GNOME 2.20\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-14 03:41+0100\n"
-"PO-Revision-Date: 2007-06-27 17:37+09300\n"
-"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
-"Language-Team: Vietnamese <gnomevi-list@lists.sourceforge.net>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: LocFactoryEditor 1.6.4a5\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "đã đọc %d byte"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "đã đọc kích cỡ dữ liệu"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "đã đọc %lu byte dữ liệu"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "đã ghi %d byte"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "Bật khả năng gỡ lỗi"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "Bật khả năng xuất chi tiết"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "Không tạo tiến trình con vào nền"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "Được gọi từ inetd"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr "Chạy lệnh « %s --help » để xem danh sách các tùy chọn dòng lệnh sẵn sàng.\n"
-
-#: ../sysdeps/osf1/siglist.c:27
-#: ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "Treo máy"
-
-#: ../sysdeps/osf1/siglist.c:28
-#: ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "Ngắt"
-
-#: ../sysdeps/osf1/siglist.c:29
-#: ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "Thoát"
-
-#: ../sysdeps/osf1/siglist.c:30
-#: ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "Lệnh bị cấm"
-
-#: ../sysdeps/osf1/siglist.c:31
-#: ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "Bẫy theo vết"
-
-#: ../sysdeps/osf1/siglist.c:32
-#: ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "Hủy"
-
-#: ../sysdeps/osf1/siglist.c:33
-#: ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "Lỗi EMT"
-
-#: ../sysdeps/osf1/siglist.c:34
-#: ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "Ngoại lệ điểm phù động"
-
-#: ../sysdeps/osf1/siglist.c:35
-#: ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "Buộc chấm dứt"
-
-#: ../sysdeps/osf1/siglist.c:36
-#: ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "Lỗi mạch"
-
-#: ../sysdeps/osf1/siglist.c:37
-#: ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "Vi phạm phân đoạn"
-
-#: ../sysdeps/osf1/siglist.c:38
-#: ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "Đối số sai với cuộc gọi hệ thống"
-
-#: ../sysdeps/osf1/siglist.c:39
-#: ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "Ống dẫn bị ngắt"
-
-#: ../sysdeps/osf1/siglist.c:40
-#: ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "Đồng hồ báo động"
-
-#: ../sysdeps/osf1/siglist.c:41
-#: ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "Kết thúc"
-
-#: ../sysdeps/osf1/siglist.c:42
-#: ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "Hoàn cảnh khẩn trên ổ cắm"
-
-#: ../sysdeps/osf1/siglist.c:43
-#: ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "Dừng"
-
-#: ../sysdeps/osf1/siglist.c:44
-#: ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "Dừng bàn phím"
-
-#: ../sysdeps/osf1/siglist.c:45
-#: ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "Tiếp tục"
-
-#: ../sysdeps/osf1/siglist.c:46
-#: ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "Trạng thái tiến trình con đã thay đổi"
-
-#: ../sysdeps/osf1/siglist.c:47
-#: ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "Đọc từ tty (chế độ nền)"
-
-#: ../sysdeps/osf1/siglist.c:48
-#: ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "Ghi vào tty (chế độ nền)"
-
-#: ../sysdeps/osf1/siglist.c:49
-#: ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "giờ có thể dùng Vào/Ra"
-
-#: ../sysdeps/osf1/siglist.c:50
-#: ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "Vượt quá giới hạn CPU"
-
-#: ../sysdeps/osf1/siglist.c:51
-#: ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "Vượt quá giới hạn kích cỡ tập tin"
-
-#: ../sysdeps/osf1/siglist.c:52
-#: ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "Đồng hồ báo động ảo"
-
-#: ../sysdeps/osf1/siglist.c:53
-#: ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "Đồng hồ bảo động đo hiệu suất"
-
-#: ../sysdeps/osf1/siglist.c:54
-#: ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "Thay đổi kích cỡ cửa sổ"
-
-#: ../sysdeps/osf1/siglist.c:55
-#: ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "Yêu cầu thông tin"
-
-#: ../sysdeps/osf1/siglist.c:56
-#: ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "Tín hiệu do người dùng xác định 1"
-
-#: ../sysdeps/osf1/siglist.c:57
-#: ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "Tín hiệu do người dùng xác định 2"
-
-#~ msgid "DEBUG"
-#~ msgstr "GỠ LỖI"
-
-#~ msgid "VERBOSE"
-#~ msgstr "CHI TIẾT"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "KHÔNG TRÌNH NỀN"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/xh.po b/po/xh.po
deleted file mode 100644
index f8d17a34..00000000
--- a/po/xh.po
+++ /dev/null
@@ -1,209 +0,0 @@
-# Xhosa translation of libgtop
-# Copyright (C) 2005 Canonical Ltd.
-# This file is distributed under the same license as the libgtop package.
-# Translation by Canonical Ltd <translations@canonical.com> with thanks to
-# Translation World CC in South Africa, 2005.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-09-25 18:15+0200\n"
-"PO-Revision-Date: 2005-03-30 22:54+0200\n"
-"Last-Translator: Canonical Ltd <translations@canonical.com>\n"
-"Language-Team: Xhosa <xh-translate@ubuntu.com>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n!=1;\n"
-
-#: lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "funda %d ye byte"
-msgstr[1] "funda %d yee-byte"
-
-#: lib/read_data.c:53
-msgid "read data size"
-msgstr "funda ubungakanani bee-data"
-
-#: lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "funda %lu byte ye-data"
-msgstr[1] "funda %lu ii-byte ze-data"
-
-#: lib/write.c:52
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "ibhale %d ye byte"
-msgstr[1] "ibhale %d yee-byte"
-
-#: src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "Yenza ibe nako ukulungisa isiphene kwinkqubo"
-
-#: src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "LUNGISA ISIPHENE KWINKQUBO"
-
-#: src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "Yenza ukuba kubekho iziphumo ezingumlembelele"
-
-#: src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "UMLEMBELELE"
-
-#: src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "Musa ukujika-jikisa kokungasemva"
-
-#: src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "i-NO-DAEMON"
-
-#: src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "Ibizwe isuswa kwi inetd"
-
-#: src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "i-INETD"
-
-#: src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"Impazamo kokungakhethwa kuko i %s: %s.\n"
-"Phumeza i '%s --help' ukwenzela ukuba ubone uluhlu oluzeleyo lwezinto "
-"ekungakhethwa kuzo ezifumanekayo zomgca womyalelo.\n"
-
-#: sysdeps/osf1/siglist.c:28 sysdeps/sun4/siglist.c:28
-msgid "Hangup"
-msgstr "Beka umnxeba"
-
-#: sysdeps/osf1/siglist.c:29 sysdeps/sun4/siglist.c:29
-msgid "Interrupt"
-msgstr "Phazamisa"
-
-#: sysdeps/osf1/siglist.c:30 sysdeps/sun4/siglist.c:30
-msgid "Quit"
-msgstr "Phuma"
-
-#: sysdeps/osf1/siglist.c:31 sysdeps/sun4/siglist.c:31
-msgid "Illegal instruction"
-msgstr "Umyalelo ongekho semthethweni"
-
-#: sysdeps/osf1/siglist.c:32 sysdeps/sun4/siglist.c:32
-msgid "Trace trap"
-msgstr "Khuphela umjelo wenkqubo"
-
-#: sysdeps/osf1/siglist.c:33 sysdeps/sun4/siglist.c:33
-msgid "Abort"
-msgstr "Yeka"
-
-#: sysdeps/osf1/siglist.c:34 sysdeps/sun4/siglist.c:34
-msgid "EMT error"
-msgstr "Impazamo ye EMT"
-
-#: sysdeps/osf1/siglist.c:35 sysdeps/sun4/siglist.c:35
-msgid "Floating-point exception"
-msgstr "Incam-etshintsha-tshintshayo ekhethekileyo"
-
-#: sysdeps/osf1/siglist.c:36 sysdeps/sun4/siglist.c:36
-msgid "Kill"
-msgstr "Bulala"
-
-#: sysdeps/osf1/siglist.c:37 sysdeps/sun4/siglist.c:37
-msgid "Bus error"
-msgstr "Impazamo yebhasi"
-
-#: sysdeps/osf1/siglist.c:38 sysdeps/sun4/siglist.c:38
-msgid "Segmentation violation"
-msgstr "Ukwaphulwa kwenkqubo"
-
-#: sysdeps/osf1/siglist.c:39 sysdeps/sun4/siglist.c:39
-msgid "Bad argument to system call"
-msgstr "Isiphumezi-miyalelo esingalunganga kubizo lwenkqubo"
-
-#: sysdeps/osf1/siglist.c:40 sysdeps/sun4/siglist.c:40
-msgid "Broken pipe"
-msgstr "Umbhobho wothungelwano owophukileyo"
-
-#: sysdeps/osf1/siglist.c:41 sysdeps/sun4/siglist.c:41
-msgid "Alarm clock"
-msgstr "Iwotshi enkulu yokuvusa"
-
-#: sysdeps/osf1/siglist.c:42 sysdeps/sun4/siglist.c:42
-msgid "Termination"
-msgstr "Ukuphelisa"
-
-#: sysdeps/osf1/siglist.c:43 sysdeps/sun4/siglist.c:43
-msgid "Urgent condition on socket"
-msgstr "Imeko engxamisekileyo kwisokhethi"
-
-#: sysdeps/osf1/siglist.c:44 sysdeps/sun4/siglist.c:44
-msgid "Stop"
-msgstr "Yima"
-
-#: sysdeps/osf1/siglist.c:45 sysdeps/sun4/siglist.c:45
-msgid "Keyboard stop"
-msgstr "Ukuma kwe-keyboard"
-
-#: sysdeps/osf1/siglist.c:46 sysdeps/sun4/siglist.c:46
-msgid "Continue"
-msgstr "Qhubeka"
-
-#: sysdeps/osf1/siglist.c:47 sysdeps/sun4/siglist.c:47
-msgid "Child status has changed"
-msgstr "Ubume benkqubo engumntwana butshintshile"
-
-#: sysdeps/osf1/siglist.c:48 sysdeps/sun4/siglist.c:48
-msgid "Background read from tty"
-msgstr "Okungasemva kufundwe kwi-tty"
-
-#: sysdeps/osf1/siglist.c:49 sysdeps/sun4/siglist.c:49
-msgid "Background write to tty"
-msgstr "Ukukhuphela ulwazi lokungasemva kwi-tty"
-
-#: sysdeps/osf1/siglist.c:50 sysdeps/sun4/siglist.c:50
-msgid "I/O now possible"
-msgstr "i-I/O ingenzeka ngoku"
-
-#: sysdeps/osf1/siglist.c:51 sysdeps/sun4/siglist.c:51
-msgid "CPU limit exceeded"
-msgstr "Umda we CPU ugqithisiwe"
-
-#: sysdeps/osf1/siglist.c:52 sysdeps/sun4/siglist.c:52
-msgid "File size limit exceeded"
-msgstr "Umda wobungakanani befayili ugqithisiwe"
-
-#: sysdeps/osf1/siglist.c:53 sysdeps/sun4/siglist.c:53
-msgid "Virtual alarm clock"
-msgstr "Iwotshi enkulu yokuvusa eyelelanisiweyo"
-
-#: sysdeps/osf1/siglist.c:54 sysdeps/sun4/siglist.c:54
-msgid "Profiling alarm clock"
-msgstr "Iwotshi enkulu yokuvusa yenkangeleko"
-
-#: sysdeps/osf1/siglist.c:55 sysdeps/sun4/siglist.c:55
-msgid "Window size change"
-msgstr "Utshintsho lobungakanani befestile"
-
-#: sysdeps/osf1/siglist.c:56 sysdeps/sun4/siglist.c:56
-msgid "Information request"
-msgstr "Isicelo senkcazelo"
-
-#: sysdeps/osf1/siglist.c:57 sysdeps/sun4/siglist.c:57
-msgid "User defined signal 1"
-msgstr "Umqondiso ochazwa ngumsebenzi woku 1"
-
-#: sysdeps/osf1/siglist.c:58 sysdeps/sun4/siglist.c:58
-msgid "User defined signal 2"
-msgstr "Umqondiso ochazwa ngumsebenzi wesi 2"
diff --git a/po/zh_CN.po b/po/zh_CN.po
deleted file mode 100644
index 89e6b7fa..00000000
--- a/po/zh_CN.po
+++ /dev/null
@@ -1,197 +0,0 @@
-# translation of libgtop.po to simplified chinese.
-# Copyright (C) 2001,2003 Free Software Foundation, Inc.
-# Dillion Chen <dillon.chen@turbolinux.com.cn>, 2003.
-# Funda Wang <fundawang@linux.net.cn>, 2004
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-05-14 03:41+0100\n"
-"PO-Revision-Date: 2007-09-07 17:29+0800\n"
-"Last-Translator: Funda Wang <fundawang@linux.net.cn>\n"
-"Language-Team: zh_CN <i18n-translation@lists.linux.net.cn>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: ../lib/read.c:51
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "读取 %d 字节"
-
-#: ../lib/read_data.c:51
-msgid "read data size"
-msgstr "读取数据大小"
-
-#: ../lib/read_data.c:70
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "读取了 %lu 字节数据"
-
-#: ../lib/write.c:51
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "写入了 %d 字节"
-
-#: ../src/daemon/gnuserv.c:458
-msgid "Enable debugging"
-msgstr "允许调试"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable verbose output"
-msgstr "允许详细输出"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Don't fork into background"
-msgstr "不能在后台生成子进程"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Invoked from inetd"
-msgstr "从 inetd 调用"
-
-#: ../src/daemon/gnuserv.c:498
-#, c-format
-msgid "Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"运行“%s --help”可查看可用命令行选项的完整列表\n"
-
-#: ../sysdeps/osf1/siglist.c:27 ../sysdeps/sun4/siglist.c:27
-msgid "Hangup"
-msgstr "挂起"
-
-#: ../sysdeps/osf1/siglist.c:28 ../sysdeps/sun4/siglist.c:28
-msgid "Interrupt"
-msgstr "中断"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Quit"
-msgstr "退出"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Illegal instruction"
-msgstr "非法指令"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Trace trap"
-msgstr "跟踪陷阱"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Abort"
-msgstr "中止"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "EMT error"
-msgstr "EMT 错误"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Floating-point exception"
-msgstr "浮点意外"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "Kill"
-msgstr "杀死"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Bus error"
-msgstr "总线错误"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Segmentation violation"
-msgstr "进程段异常"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bad argument to system call"
-msgstr "系统调用参数错误"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Broken pipe"
-msgstr "损坏的通道"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Alarm clock"
-msgstr "警告时钟"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Termination"
-msgstr "终止"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Urgent condition on socket"
-msgstr "套接字紧急条件"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Stop"
-msgstr "停止"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Keyboard stop"
-msgstr "键盘停止"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Continue"
-msgstr "继续"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Child status has changed"
-msgstr "子状态变更"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Background read from tty"
-msgstr "后台从 tty 读取"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Background write to tty"
-msgstr "后台写到 tty"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "I/O now possible"
-msgstr "现可以 I/O"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "CPU limit exceeded"
-msgstr "达到 CPU 限制"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "File size limit exceeded"
-msgstr "达到文件大小限制"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "Virtual alarm clock"
-msgstr "虚拟警报时钟"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "Profiling alarm clock"
-msgstr "个性化警报时钟"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Window size change"
-msgstr "窗口大小更改"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Information request"
-msgstr "信息请求"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "User defined signal 1"
-msgstr "用户自定义信号 1"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "User defined signal 2"
-msgstr "用户自定义信号 2"
-
-#~ msgid "DEBUG"
-#~ msgstr "调试"
-
-#~ msgid "VERBOSE"
-#~ msgstr "详细"
-
-#~ msgid "NO-DAEMON"
-#~ msgstr "NO-DAEMON"
-
-#~ msgid "INETD"
-#~ msgstr "INETD"
diff --git a/po/zh_HK.po b/po/zh_HK.po
deleted file mode 100644
index 38e9e19d..00000000
--- a/po/zh_HK.po
+++ /dev/null
@@ -1,203 +0,0 @@
-# Chinese (Hong Kong) translation for libgtop.
-# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-# Abel Cheung <abel@oaka.org>, 2001-2003.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 2.9.92\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-06-26 23:04+0800\n"
-"PO-Revision-Date: 2006-06-26 23:06+0800\n"
-"Last-Translator: Abel Cheung <abel@oaka.org>\n"
-"Language-Team: Chinese (Hong Kong) <community@linuxhall.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "讀入 %d 位元組"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "讀入資料大小"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "讀入 %lu 位元組的資料"
-
-#: ../lib/write.c:53
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "寫入 %d 位元組"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "啟用偵錯功能"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "偵錯"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "顯示詳細的輸出訊息"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "詳細訊息"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "不要放置於背景執行"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "透過 inetd 執行"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"選項 %s 發生錯誤:%s。\n"
-"請執行‘%s --help’查看完整的指令列選項清單。\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "掛斷 (Hangup)"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "中斷 (Interrupt)"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "退出 (Quit)"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "不合法硬件指示"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "TRAP 硬件錯誤"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "不正常中止"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "EMT 硬件錯誤"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "浮點數運算出現例外情況"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "強行中止 (Kill)"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "匯流排錯誤"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "記憶體區段錯誤"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "系統函數參數錯誤"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "管線中斷"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "系統時鐘訊號"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "強行中止 (Term)"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "socket 緊急情況"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "暫停進程"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "鍵盤停止"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "繼續進程"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "副進程狀態已改變"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "背景進程從 tty 讀入資料"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "背景進程向 tty 輸出資料"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "可重新進行輸入/輸出"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "超過 CPU 限制"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "超過檔案大小限制"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "虛擬時鐘訊號"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "效能測試計時器週期結束"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "更改視窗尺寸"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "要求進程資訊"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "用戶自定訊號 1"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "用戶自定訊號 2"
diff --git a/po/zh_TW.po b/po/zh_TW.po
deleted file mode 100644
index 1d947881..00000000
--- a/po/zh_TW.po
+++ /dev/null
@@ -1,203 +0,0 @@
-# Chinese (Taiwan) translation for libgtop.
-# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
-# Abel Cheung <abel@oaka.org>, 2001-2003.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: libgtop 2.9.92\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-06-26 23:04+0800\n"
-"PO-Revision-Date: 2006-06-26 23:04+0800\n"
-"Last-Translator: Abel Cheung <abel@oaka.org>\n"
-"Language-Team: Chinese (Taiwan) <community@linuxhall.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: ../lib/read.c:65
-#, c-format
-msgid "read %d byte"
-msgid_plural "read %d bytes"
-msgstr[0] "讀入 %d 位元組"
-
-#: ../lib/read_data.c:53
-msgid "read data size"
-msgstr "讀入資料大小"
-
-#: ../lib/read_data.c:72
-#, c-format
-msgid "read %lu byte of data"
-msgid_plural "read %lu bytes of data"
-msgstr[0] "讀入 %lu 位元組的資料"
-
-#: ../lib/write.c:53
-#, c-format
-msgid "wrote %d byte"
-msgid_plural "wrote %d bytes"
-msgstr[0] "寫入 %d 位元組"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "Enable debugging"
-msgstr "啟用偵錯功能"
-
-#: ../src/daemon/gnuserv.c:460
-msgid "DEBUG"
-msgstr "偵錯"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "Enable verbose output"
-msgstr "顯示詳細的輸出訊息"
-
-#: ../src/daemon/gnuserv.c:462
-msgid "VERBOSE"
-msgstr "詳細訊息"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "Don't fork into background"
-msgstr "不要放置於背景執行"
-
-#: ../src/daemon/gnuserv.c:464
-msgid "NO-DAEMON"
-msgstr "NO-DAEMON"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "Invoked from inetd"
-msgstr "透過 inetd 執行"
-
-#: ../src/daemon/gnuserv.c:466
-msgid "INETD"
-msgstr "INETD"
-
-#: ../src/daemon/gnuserv.c:500
-#, c-format
-msgid ""
-"Error on option %s: %s.\n"
-"Run '%s --help' to see a full list of available command line options.\n"
-msgstr ""
-"選項 %s 發生錯誤:%s。\n"
-"請執行‘%s --help’查看完整的指令列選項清單。\n"
-
-#: ../sysdeps/osf1/siglist.c:29 ../sysdeps/sun4/siglist.c:29
-msgid "Hangup"
-msgstr "掛斷 (Hangup)"
-
-#: ../sysdeps/osf1/siglist.c:30 ../sysdeps/sun4/siglist.c:30
-msgid "Interrupt"
-msgstr "中斷 (Interrupt)"
-
-#: ../sysdeps/osf1/siglist.c:31 ../sysdeps/sun4/siglist.c:31
-msgid "Quit"
-msgstr "退出 (Quit)"
-
-#: ../sysdeps/osf1/siglist.c:32 ../sysdeps/sun4/siglist.c:32
-msgid "Illegal instruction"
-msgstr "不合法硬體指示"
-
-#: ../sysdeps/osf1/siglist.c:33 ../sysdeps/sun4/siglist.c:33
-msgid "Trace trap"
-msgstr "TRAP 硬體錯誤"
-
-#: ../sysdeps/osf1/siglist.c:34 ../sysdeps/sun4/siglist.c:34
-msgid "Abort"
-msgstr "不正常中止"
-
-#: ../sysdeps/osf1/siglist.c:35 ../sysdeps/sun4/siglist.c:35
-msgid "EMT error"
-msgstr "EMT 硬體錯誤"
-
-#: ../sysdeps/osf1/siglist.c:36 ../sysdeps/sun4/siglist.c:36
-msgid "Floating-point exception"
-msgstr "浮點數運算出現例外情況"
-
-#: ../sysdeps/osf1/siglist.c:37 ../sysdeps/sun4/siglist.c:37
-msgid "Kill"
-msgstr "強行中止 (Kill)"
-
-#: ../sysdeps/osf1/siglist.c:38 ../sysdeps/sun4/siglist.c:38
-msgid "Bus error"
-msgstr "匯流排錯誤"
-
-#: ../sysdeps/osf1/siglist.c:39 ../sysdeps/sun4/siglist.c:39
-msgid "Segmentation violation"
-msgstr "記憶體區段錯誤"
-
-#: ../sysdeps/osf1/siglist.c:40 ../sysdeps/sun4/siglist.c:40
-msgid "Bad argument to system call"
-msgstr "系統函式參數錯誤"
-
-#: ../sysdeps/osf1/siglist.c:41 ../sysdeps/sun4/siglist.c:41
-msgid "Broken pipe"
-msgstr "管線中斷"
-
-#: ../sysdeps/osf1/siglist.c:42 ../sysdeps/sun4/siglist.c:42
-msgid "Alarm clock"
-msgstr "系統時鐘訊號"
-
-#: ../sysdeps/osf1/siglist.c:43 ../sysdeps/sun4/siglist.c:43
-msgid "Termination"
-msgstr "強行中止 (Term)"
-
-#: ../sysdeps/osf1/siglist.c:44 ../sysdeps/sun4/siglist.c:44
-msgid "Urgent condition on socket"
-msgstr "socket 緊急情況"
-
-#: ../sysdeps/osf1/siglist.c:45 ../sysdeps/sun4/siglist.c:45
-msgid "Stop"
-msgstr "暫停進程"
-
-#: ../sysdeps/osf1/siglist.c:46 ../sysdeps/sun4/siglist.c:46
-msgid "Keyboard stop"
-msgstr "鍵盤停止"
-
-#: ../sysdeps/osf1/siglist.c:47 ../sysdeps/sun4/siglist.c:47
-msgid "Continue"
-msgstr "繼續進程"
-
-#: ../sysdeps/osf1/siglist.c:48 ../sysdeps/sun4/siglist.c:48
-msgid "Child status has changed"
-msgstr "副進程狀態已改變"
-
-#: ../sysdeps/osf1/siglist.c:49 ../sysdeps/sun4/siglist.c:49
-msgid "Background read from tty"
-msgstr "背景進程從 tty 讀入資料"
-
-#: ../sysdeps/osf1/siglist.c:50 ../sysdeps/sun4/siglist.c:50
-msgid "Background write to tty"
-msgstr "背景進程向 tty 輸出資料"
-
-#: ../sysdeps/osf1/siglist.c:51 ../sysdeps/sun4/siglist.c:51
-msgid "I/O now possible"
-msgstr "可重新進行輸入/輸出"
-
-#: ../sysdeps/osf1/siglist.c:52 ../sysdeps/sun4/siglist.c:52
-msgid "CPU limit exceeded"
-msgstr "超過 CPU 限制"
-
-#: ../sysdeps/osf1/siglist.c:53 ../sysdeps/sun4/siglist.c:53
-msgid "File size limit exceeded"
-msgstr "超過檔案大小限制"
-
-#: ../sysdeps/osf1/siglist.c:54 ../sysdeps/sun4/siglist.c:54
-msgid "Virtual alarm clock"
-msgstr "虛擬時鐘訊號"
-
-#: ../sysdeps/osf1/siglist.c:55 ../sysdeps/sun4/siglist.c:55
-msgid "Profiling alarm clock"
-msgstr "效能測試計時器週期結束"
-
-#: ../sysdeps/osf1/siglist.c:56 ../sysdeps/sun4/siglist.c:56
-msgid "Window size change"
-msgstr "更改視窗尺寸"
-
-#: ../sysdeps/osf1/siglist.c:57 ../sysdeps/sun4/siglist.c:57
-msgid "Information request"
-msgstr "要求進程資訊"
-
-#: ../sysdeps/osf1/siglist.c:58 ../sysdeps/sun4/siglist.c:58
-msgid "User defined signal 1"
-msgstr "用戶自定訊號 1"
-
-#: ../sysdeps/osf1/siglist.c:59 ../sysdeps/sun4/siglist.c:59
-msgid "User defined signal 2"
-msgstr "用戶自定訊號 2"
diff --git a/scripts/ChangeLog b/scripts/ChangeLog
deleted file mode 100644
index 271a7ec0..00000000
--- a/scripts/ChangeLog
+++ /dev/null
@@ -1,13 +0,0 @@
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * c_types.pl: s/u_int64_t/guint64/
-
-2000-01-02 Martin Baulig <martin@home-of-linux.org>
-
- * c_types.pl ($demarshal_funcs): New variable.
-
-1999-11-28 Martin Baulig <martin@home-of-linux.org>
-
- * c_types.pl: New file.
- This is included in `$(top_srcdir)/lib/lib.pl'.
-
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
deleted file mode 100644
index a991cb2b..00000000
--- a/scripts/Makefile.am
+++ /dev/null
@@ -1 +0,0 @@
-EXTRA_DIST = c_types.pl
diff --git a/scripts/c_types.pl b/scripts/c_types.pl
deleted file mode 100644
index d02a8e1f..00000000
--- a/scripts/c_types.pl
+++ /dev/null
@@ -1,71 +0,0 @@
-# Internal functions
-
-my $c_strlen_func = sub {
- local ($_) = @_;
-
- return "strlen ($_) + 1";
-};
-
-my $c_marshal_func = sub {
- my ($type, $param, $indent) = @_;
-
- my $code = '';
- $code .= sprintf ("%s_LIBGTOP_SEND_temp_len = strlen (%s)+1;\n",
- $indent, $param);
- $code .= sprintf ("%smemcpy (_LIBGTOP_SEND_ptr, %s, %s);\n",
- $indent, "&_LIBGTOP_SEND_temp_len", "sizeof (size_t)");
- $code .= sprintf ("%s_LIBGTOP_SEND_ptr += sizeof (size_t);\n", $indent);
- $code .= sprintf ("%smemcpy (_LIBGTOP_DATA_ptr, %s, %s);\n",
- $indent, $param, "strlen ($param)+1");
- $code .= sprintf ("%s_LIBGTOP_DATA_ptr += strlen ($param)+1;\n",
- $indent);
-
- $need_temp_len = 1;
-
- return $code;
-};
-
-my $c_demarshal_func = sub {
- my ($type, $param, $indent) = @_;
-
- my $code = '';
- $code .= sprintf ("%s_LIBGTOP_demarshal_%s = _LIBGTOP_DATA_ptr;\n",
- $indent, $param);
- $code .= sprintf ("%sif (_LIBGTOP_TEMP_len) --_LIBGTOP_TEMP_len;\n",
- $indent);
- $code .= sprintf ("%s*(_LIBGTOP_DATA_ptr + _LIBGTOP_TEMP_len) = 0;\n",
- $indent);
-
- $need_temp_len = 1;
-
- return $code;
-};
-
-
-
-# Typeinfo array fields:
-# ---------------------
-# * C type name
-# * Flag specifying whether we need to copy the parameter into temp storage
-#
-
-$typeinfo = {'long' => ['gint64', 0],
- 'ulong' => ['guint64', 0],
- 'pid_t' => ['pid_t', 0],
- 'int' => ['int', 0],
- 'retval' => ['int', 0],
- 'ushort' => ['unsigned short', 0],
- 'unsigned' => ['unsigned', 0],
- 'string' => ['const char *', 1],
- };
-
-$sizeof_funcs = {'string' => $c_strlen_func,
- };
-
-$marshal_funcs = {'string' => $c_marshal_func,
- };
-
-$demarshal_funcs = {'string' => $c_demarshal_func,
- };
-
-1;
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644
index 6378b667..00000000
--- a/src/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-if NEED_LIBGTOP
-daemon_SUBDIRS = daemon
-else
-daemon_SUBDIRS =
-endif
-
-SUBDIRS = $(daemon_SUBDIRS)
-
-DIST_SUBDIRS = daemon
-
diff --git a/src/daemon/ChangeLog b/src/daemon/ChangeLog
deleted file mode 100644
index d342febf..00000000
--- a/src/daemon/ChangeLog
+++ /dev/null
@@ -1,156 +0,0 @@
-2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
-
- * gnuserv.c: (syslog_io_message): s/strerror/g_strerror.
-
-2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
-
- * daemon.h:
- * gnuserv.c: (syslog_message), (syslog_io_message):
- * main.c: (handle_parent_connection):
- * slave.c: (handle_slave_connection), (handle_slave_command): Misc. cleanups.
-
-2004-09-19 Benoît Dejean <tazforever@dlfp.org>
-
- * gnuserv.c: (setup_table): 'screen' is only defined when AUTH_MAGIC_COOKIE
- is defined.
- Added missing initializers for popt options.
-
-2004-05-25 Benoît Dejean <tazforever@dlfp.org>
-
- * gnuserv.c: (permitted): Cast to size_t to remove warning.
-
-2004-03-04 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am:
- * gnuserv.c: link explicitely to popt and use libgtop-i18n.h
- instead of libgnome
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am:
- * daemon.h:
- * gnuserv.c: (main): fixed compilation
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * main.c: (handle_parent_connection):
- * slave.c: (handle_slave_connection):
- replace all the xmalloc crap by glib memory management functions
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: removed traces of guile, intllibs and libgnomesupport
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am:
- * gnuserv.c: remove guile and libgnome-support stuff
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: make it compile
-
-2003-05-11 Andrew Sobala <aes@gnome.org>
-
- * gnuserv.c: (permitted): fix buffer overflow vulnerability
-
-2001-02-14 Martin Baulig <baulig@suse.de>
-
- * Makefile.am (libgtop_server_LDADD): Removed @LIBSUPPORT@.
-
-1999-11-28 Martin Baulig <martin@home-of-linux.org>
-
- * gnuserv.c (setup_table): Don't dump core when the table of
- permitted host names contains a NULL pointer.
-
-1999-07-29 Martin Baulig <martin@home-of-linux.org>
-
- * Makefile.am: Link the `libgtop_daemon' and the `libgtop_server'
- statically if possible.
-
-1999-05-07 Martin Baulig <martin@home-of-linux.org>
-
- * server.c (main): There's some problem with uname () - some systems
- like Solaris or Digital Unix return a nonnegative value on success,
- some others like Linux return 0. Since all known systems seem to return
- a negative value on failure, we simply check whether the return value is
- not negative here.
-
-1999-02-19 Martin Baulig <martin@home-of-linux.org>
-
- * Makefile.am (LIBGTOP_COMPILE_SYSTEM): Hardcoded system name.
- (LIBGTOP_COMPILE_RELEASE): Hardcoded system release.
- (LIBGTOP_COMPILE_MACHINE): Hardcoded machine type.
-
- * src/daemon/Makefile.am (libgtop_server_SOURCES): Don't use
- `@INTLLIBS@' for the server.
-
- * server.c (main): Abort if not running on the system the server
- was compiled on.
-
-1999-02-10 Martin Baulig <martin@home-of-linux.org>
-
- * gnuserv.c (program_invocation_*_name): Declare this as `extern'
- if necessary.
-
-1998-12-17 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * gnuserv.c: Don't include <gnome-argp.h>.
- (program_invocation_name, program_invocation_short_name): Define
- this here.
-
-1998-12-09 Martin Baulig <martin@home-of-linux.org>
-
- Larger changes to the daemon:
-
- - Dropped all the unix domain socket stuff - we don't need it for
- connections on the local host, here we behave just like any normal
- application.
- - Added poptimization: use the --help parameter to get usage info
- - Made it a real daemon, fork into background and write to syslog.
- - It's now possible to invoke the daemon from inetd, you'll get
- GNU_SECURE authentication in this case.
- - Don't make this executable suid/sgid - if invoked as root it
- sets uid/gid to SERVER_UID/SERVER_GID as defined in server_config.h
- - Added missing features, so you can now really use this thing.
-
-1998-11-11 Martin Baulig <martin@home-of-linux.org>
-
- * gnuserv.c (main): Set `server->features' directly rather than
- calling glibtop_set_parameter_l () since this function no longer
- allows to modify the features.
-
- * gnuserv.c, main.c: Use LIBGTOP_ENABLE_DEBUG rather than DEBUG.
-
-1998-11-01 Marc Ewing <marc@tasmanian.redhat.com>
-
- * Makefile.am: Added $(GLIB_LIBS) to libs. Not sure
- how it ever built without it.
-
-1998-10-20 Martin Baulig <martin@home-of-linux.org>
-
- * Makefile.am: Added a notice that this file *requires*
- libtool 1.2. It may work with 1.1 as well, but that's untested.
-
-1998-10-11 Martin Baulig <martin@home-of-linux.org>
-
- * Makefile.am (install-exec-hook): Always run `libgtop_postinstall',
- it's `:' if there's nothing to do since the empty string is no
- valid shell syntax here.
-
-1998-10-01 Martin Baulig <martin@home-of-linux.org>
-
- * Makefile.am (install-exec-hook): Use `libgtop_postinstall'
- here to make the server suid root or sgid kmem if required.
-
-1998-08-25 Martin Baulig <martin@home-of-linux.org>
-
- * daemon.h (handle_parent_connection): Added prototype.
- * write.c, io.c: Added cast to `const void *' in calls to
- `write' and `send' to avoid compiler warnings.
- * gnuserv.c (handle_signal): Declared static.
- (main): Casting return value of `getuid' to `int' in
- debugging statement.
-
- * ChangeLog: New file.
-
diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am
deleted file mode 100644
index 4462bb6e..00000000
--- a/src/daemon/Makefile.am
+++ /dev/null
@@ -1,53 +0,0 @@
-## You need libtool 1.2 or newer for this Makefile.am to work.
-##
-## It _may_ work with an older version of libtool, but it also may fail.
-## So if you get any undefined symbols here, please make sure you really
-## have libtool 1.2 or better before reporting this as bug.
-##
-## You'll require libtool 1.2 for other parts of GNOME anyway.
-##
-## Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2.tar.gz
-## (or a newer version if it is available)
-##
-## Martin <martin@home-of-linux.org>
-##
-
-LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
-
-INCLUDES = $(LIBGTOP_CFLAGS) @INCLUDES@ -D_BSD \
- -DLIBGTOP_COMPILE_SYSTEM="\"`uname -s`\"" \
- -DLIBGTOP_COMPILE_RELEASE="\"`uname -r`\"" \
- -DLIBGTOP_COMPILE_VERSION="\"`uname -v`\"" \
- -DLIBGTOP_COMPILE_MACHINE="\"`uname -m`\""
-
-if NEED_LIBGTOP
-suid_sysdeps = $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps_suid-2.0.la
-suid_common = $(top_builddir)/sysdeps/common/libgtop_suid_common-2.0.la
-else
-suid_sysdeps =
-suid_common =
-endif
-
-bin_PROGRAMS = libgtop_daemon2 @server_programs@
-
-EXTRA_PROGRAMS = libgtop_server2
-
-libgtop_daemon2_SOURCES = gnuserv.c slave.c main.c io.c version.c \
- daemon.h server_config.h
-libgtop_daemon2_LDADD = $(top_builddir)/lib/libgtop-2.0.la \
- $(top_builddir)/sysdeps/common/libgtop_common-2.0.la \
- $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps-2.0.la \
- @sysdeps_suid_lib@ \
- $(suid_sysdeps) $(suid_common) \
- $(LIBGTOP_LIBS) \
- @libs_xauth@
-
-libgtop_server2_SOURCES = server.c slave.c io.c version.c daemon.h
-libgtop_server2_LDADD = $(GLIB_LIBS) $(top_builddir)/sysdeps/@sysdeps_dir@/libgtop_sysdeps_suid-2.0.la \
- $(top_builddir)/sysdeps/common/libgtop_suid_common-2.0.la
-
-EXTRA_DIST = server_config.h.in server_config.pl
-
-install-exec-hook:
- -@libgtop_postinstall@
-
diff --git a/src/daemon/daemon.h b/src/daemon/daemon.h
deleted file mode 100644
index 0700b2a2..00000000
--- a/src/daemon/daemon.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/* 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_DAEMON_H__
-#define __GLIBTOP_DAEMON_H__
-
-#include <glibtop.h>
-#include <glibtop/gnuserv.h>
-
-#include <glibtop/open.h>
-#include <glibtop/union.h>
-#include <glibtop/version.h>
-#include <glibtop/command.h>
-#include <glibtop/parameter.h>
-
-#include <fcntl.h>
-#include <sys/wait.h>
-#include <sys/socket.h>
-#include <syslog.h>
-
-G_BEGIN_DECLS
-
-/* Some don't have LOG_PERROR */
-#ifndef LOG_PERROR
-#define LOG_PERROR 0
-#endif
-
-#if defined(HAVE_GETDTABLESIZE)
-#define GET_MAX_FDS() getdtablesize()
-#else
-/* Fallthrough case - please add other #elif cases above
- for different OS's as necessary */
-#define GET_MAX_FDS() 256
-#endif
-
-#define _offset_union(p) ((char *) &resp->u.p - (char *) resp)
-#define _offset_data(p) _offset_union (data.p)
-
-#define MSG_BUFSZ sizeof (struct _glibtop_ipc_message)
-#define MSG_MSGSZ (MSG_BUFSZ - sizeof (long))
-
-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);
-
-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);
-
-void syslog_message (int priority, const char *format, ...) G_GNUC_PRINTF(2, 3);
-void syslog_io_message (int priority, const char *format, ...) G_GNUC_PRINTF(2, 3);
-
-extern gboolean enable_debug;
-extern gboolean verbose_output;
-
-G_END_DECLS
-
-#endif
diff --git a/src/daemon/gnuserv.c b/src/daemon/gnuserv.c
deleted file mode 100644
index 8243b871..00000000
--- a/src/daemon/gnuserv.c
+++ /dev/null
@@ -1,645 +0,0 @@
-/* -*-C-*-
- * Server code for handling requests from clients and forwarding them
- * on to the GNU Emacs process.
- *
- * This file is part of GNU Emacs.
- *
- * Copying is permitted under those conditions described by the GNU
- * General Public License.
- *
- * Copyright (C) 1989 Free Software Foundation, Inc.
- *
- * Author: Andy Norman (ange@hplb.hpl.hp.com), based on 'etc/server.c'
- * from the 18.52 GNU Emacs distribution.
- *
- * Please mail bugs and suggestions to the author at the above address.
- */
-
-/* HISTORY
- * 11-Nov-1990 bristor@simba
- * Added EOT stuff.
- */
-
-/*
- * This file incorporates new features added by Bob Weiner <weiner@mot.com>,
- * Darrell Kindred <dkindred@cmu.edu> and Arup Mukherjee <arup@cmu.edu>.
- * Please see the note at the end of the README file for details.
- *
- * (If gnuserv came bundled with your emacs, the README file is probably
- * ../etc/gnuserv.README relative to the directory containing this file)
- */
-
-#include <config.h>
-
-#include <glib/gi18n-lib.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-#include <glibtop/command.h>
-
-#include <glib/gstrfuncs.h>
-
-#include <glibtop/parameter.h>
-
-#include "server_config.h"
-
-#include <glibtop/gnuserv.h>
-
-#include <errno.h>
-
-#include "daemon.h"
-
-#ifdef AIX
-#include <sys/select.h>
-#endif
-
-#ifdef NEED_DECLARATION_PROGRAM_INVOCATION_NAME
-extern char *program_invocation_name, *program_invocation_short_name;
-#endif
-
-#ifndef HAVE_PROGRAM_INVOCATION_SHORT_NAME
-char *program_invocation_short_name;
-#endif
-
-#ifndef HAVE_PROGRAM_INVOCATION_NAME
-char *program_invocation_name;
-#endif
-
-
-#if !defined(INTERNET_DOMAIN_SOCKETS)
-#error "Internet Domain sockets are required"
-#endif
-
-#ifdef AUTH_MAGIC_COOKIE
-#include <X11/X.h>
-#include <X11/Xauth.h>
-
-static Xauth *server_xauth = NULL;
-
-#endif /* AUTH_MAGIC_COOKIE */
-
-gboolean enable_debug = FALSE;
-gboolean verbose_output = FALSE;
-static gboolean no_daemon = FALSE;
-static gboolean invoked_from_inetd = FALSE;
-static int changed_uid = 0;
-
-void
-syslog_message (int priority, const char *format, ...)
-{
- va_list ap;
- char buffer [BUFSIZ];
-
- va_start (ap, format);
- vsnprintf (buffer, BUFSIZ-1, format, ap);
- va_end (ap);
-
- syslog (priority, "%s", buffer);
-}
-
-void
-syslog_io_message (int priority, const char *format, ...)
-{
- va_list ap;
- char buffer [BUFSIZ];
- char buffer2 [BUFSIZ];
-
- va_start (ap, format);
- vsnprintf (buffer, BUFSIZ-1, format, ap);
- va_end (ap);
-
- snprintf (buffer2, BUFSIZ-1, "%s: %s", buffer, g_strerror (errno));
- syslog (priority, "%s", buffer2);
-}
-
-/*
- * timed_read - Read with timeout.
- */
-
-static int
-timed_read (int fd, char *buf, int max, int timeout, int one_line)
-{
- fd_set rmask;
- struct timeval tv; /* = {timeout, 0}; */
- char c = 0;
- int nbytes = 0;
- int r;
-
- tv.tv_sec = timeout;
- tv.tv_usec = 0;
-
- FD_ZERO (&rmask);
- FD_SET (fd, &rmask);
-
- do {
- r = select (fd + 1, &rmask, NULL, NULL, &tv);
-
- if (r > 0) {
- if (read (fd, &c, 1) == 1) {
- *buf++ = c;
- ++nbytes;
- } else {
- syslog_io_message (LOG_WARNING, "read error on socket");
- return -1;
- }
- } else if (r == 0) {
- syslog_io_message (LOG_WARNING, "read timed out");
- return -1;
- } else {
- syslog_io_message (LOG_WARNING, "error in select");
- return -1;
- }
- } while ((nbytes < max) && !(one_line && (c == '\n')));
-
- --buf;
- if (one_line && *buf == '\n') {
- *buf = 0;
- }
- return nbytes;
-}
-
-
-/*
- * permitted -- return whether a given host is allowed to connect to the server.
- */
-
-static int
-permitted (u_long host_addr, int fd)
-{
- int i;
-
- char auth_protocol[128];
- char buf[1024];
- int auth_data_len;
-
- /* Read auth protocol name */
-
- if (timed_read (fd, auth_protocol, AUTH_NAMESZ, AUTH_TIMEOUT, 1) <= 0)
- return FALSE;
-
- if (enable_debug)
- syslog_message (LOG_DEBUG,
- "Client sent authenticatin protocol '%s'.",
- auth_protocol);
-
- if (strcmp (auth_protocol, DEFAUTH_NAME) &&
- strcmp (auth_protocol, MCOOKIE_NAME)) {
- syslog_message (LOG_WARNING,
- "Invalid authentication protocol "
- "'%s' from client",
- auth_protocol);
- return FALSE;
- }
-
- if (!strcmp (auth_protocol, MCOOKIE_NAME)) {
- /*
- * doing magic cookie auth
- */
-
- if (timed_read (fd, buf, 10, AUTH_TIMEOUT, 1) <= 0)
- return FALSE;
-
- auth_data_len = atoi (buf);
-
- if (auth_data_len < 1 || (size_t)auth_data_len > sizeof(buf)) {
- syslog_message(LOG_WARNING, "Invalid data length supplied by client");
- return FALSE;
- }
-
- if (timed_read (fd, buf, auth_data_len, AUTH_TIMEOUT, 0) != auth_data_len)
- return FALSE;
-
-#ifdef AUTH_MAGIC_COOKIE
- if (!invoked_from_inetd && server_xauth && server_xauth->data &&
- !memcmp (buf, server_xauth->data, auth_data_len)) {
- return TRUE;
- }
-#else
- syslog_message (LOG_WARNING,
- "Client tried Xauth, but server is "
- "not compiled with Xauth");
-#endif
-
- /*
- * auth failed, but allow this to fall through to the
- * GNU_SECURE protocol....
- */
-
- if (verbose_output) {
- if (changed_uid || invoked_from_inetd)
- syslog_message (LOG_WARNING,
- "Xauth authentication not allowed, "
- "trying GNU_SECURE ...");
- else
- syslog_message (LOG_WARNING,
- "Xauth authentication failed, "
- "trying GNU_SECURE auth...");
- }
- }
-
- /* Other auth protocols go here, and should execute only if
- * the * auth_protocol name matches. */
-
- /* Now, try the old GNU_SECURE stuff... */
-
- if (enable_debug)
- syslog_message (LOG_DEBUG, "Doing GNU_SECURE auth ...");
-
- /* Now check the chain for that hash key */
- for (i = 0; i < HOST_TABLE_ENTRIES; i++) {
- if (enable_debug)
- syslog_message (LOG_DEBUG, "Trying %lx - %lx",
- host_addr, permitted_hosts [i]);
- if (permitted_hosts [i] == 0L)
- return (FALSE);
- if (host_addr == permitted_hosts [i])
- return (TRUE);
- }
-
- return (FALSE);
-}
-
-
-/*
- * setup_table -- initialise the table of hosts allowed to contact the server,
- * by reading from the file specified by the GNU_SECURE
- * environment variable
- * Put in the local machine, and, if a security file is specifed,
- * add each host that is named in the file.
- * Return the number of hosts added.
- */
-
-static int
-setup_table (void)
-{
- char hostname [HOSTNAMSZ];
-
-#ifdef AUTH_MAGIC_COOKIE
- char screen [BUFSIZ];
-#endif
-
- long host_addr;
- int i, hosts = 0;
-
- /* Make sure every entry is null */
- for (i = 0; i < HOST_TABLE_ENTRIES; i++)
- permitted_hosts [i] = 0;
-
- gethostname (hostname, HOSTNAMSZ);
-
- if ((host_addr = glibtop_internet_addr (hostname)) == -1) {
- syslog_io_message (LOG_ERR, "Can't resolve '%s'", hostname);
- exit (1);
- }
-
-#ifdef AUTH_MAGIC_COOKIE
-
- sprintf (screen, "%d", SERVER_PORT);
-
- server_xauth = XauGetAuthByAddr
- (FamilyInternet,
- sizeof (host_addr), (char *) &host_addr,
- strlen (screen), screen,
- strlen (MCOOKIE_X_NAME), MCOOKIE_X_NAME);
- hosts++;
-
-#endif /* AUTH_MAGIC_COOKIE */
-
- /* Resolv host names from permitted_host_names []. */
-
- for (i = 0; i < HOST_TABLE_ENTRIES; i++) {
- if (!permitted_host_names [i])
- continue;
- if (enable_debug)
- syslog_message (LOG_DEBUG, "Resolving %s ...",
- permitted_host_names [i]);
- permitted_hosts [i] =
- glibtop_internet_addr (permitted_host_names [i]);
- if ((long) permitted_hosts [i] == -1) {
- syslog_io_message (LOG_ERR, "Can't resolve '%s'",
- permitted_host_names [i]);
- exit (1);
- }
- }
-
- if (enable_debug)
- for (i = 0; i < HOST_TABLE_ENTRIES; i++)
- syslog_message (LOG_DEBUG, "Host %s - %lx",
- permitted_host_names [i],
- permitted_hosts [i]);
-
- hosts += HOST_TABLE_ENTRIES;
-
- return hosts;
-} /* setup_table */
-
-/*
- * internet_init -- initialize server, returning an internet socket that can
- * be listened on.
- */
-
-static int
-internet_init (void)
-{
- int ls; /* socket descriptor */
- struct sockaddr_in server; /* for local socket address */
-
- if (setup_table () == 0)
- return -1;
-
- /* clear out address structure */
- memset ((char *) &server, 0, sizeof (struct sockaddr_in));
-
- /* Set up address structure for the listen socket. */
- server.sin_family = AF_INET;
- server.sin_addr.s_addr = INADDR_ANY;
-
- /* We use a fixed port given in the config file. */
- server.sin_port = htons (SERVER_PORT);
-
- if (verbose_output)
- syslog_message (LOG_INFO, "Using port %u.", SERVER_PORT);
-
- /* Create the listen socket. */
- if ((ls = socket (AF_INET, SOCK_STREAM, 0)) == -1) {
- syslog_io_message (LOG_ERR, "unable to create socket");
- exit (1);
- }
-
- /* Bind the listen address to the socket. */
- if (bind (ls, (struct sockaddr *) &server,
- sizeof (struct sockaddr_in)) == -1) {
- syslog_io_message (LOG_ERR, "bind");
- exit (1);
- }
-
- /* Initiate the listen on the socket so remote users * can connect. */
- if (listen (ls, 20) == -1) {
- syslog_io_message (LOG_ERR, "listen");
- exit (1);
- }
-
- return (ls);
-} /* internet_init */
-
-
-/*
- * handle_internet_request -- accept a request from a client and send the
- * information to stdout (the gnu process).
- */
-
-static void
-handle_internet_request (int ls)
-{
- int s;
- size_t addrlen = sizeof (struct sockaddr_in);
- struct sockaddr_in peer; /* for peer socket address */
- pid_t pid;
-
- memset ((char *) &peer, 0, sizeof (struct sockaddr_in));
-
- if ((s = accept (ls, (struct sockaddr *) &peer, (void *) &addrlen)) == -1) {
- syslog_io_message (LOG_ERR, "accept");
- exit (1);
- }
-
- if (verbose_output)
- syslog_message (LOG_INFO, "Connection was made from %s port %u.",
- inet_ntoa (peer.sin_addr), ntohs (peer.sin_port));
-
- /* Check that access is allowed - if not return crud to the client */
- if (!permitted (peer.sin_addr.s_addr, s)) {
- close (s);
- syslog_message (LOG_CRIT, "Refused connection from %s.",
- inet_ntoa (peer.sin_addr));
- return;
- } /* if */
-
- if (verbose_output)
- syslog_message (LOG_INFO, "Accepted connection from %s port %u.",
- inet_ntoa (peer.sin_addr), ntohs (peer.sin_port));
-
- pid = fork ();
-
- if (pid == -1) {
- syslog_io_message (LOG_ERR, "fork failed");
- exit (1);
- }
-
- if (pid) {
- if (verbose_output)
- syslog_message (LOG_INFO, "Child pid is %d.", pid);
- return;
- }
-
- handle_parent_connection (s);
-
- close (s);
-
- if (verbose_output)
- syslog_message (LOG_INFO, "Closed connection to %s port %u.",
- inet_ntoa (peer.sin_addr), ntohs (peer.sin_port));
-
- _exit (0);
-} /* handle_internet_request */
-
-static void
-handle_signal (int sig)
-{
- if (sig == SIGCHLD)
- return;
-
- syslog_message (LOG_ERR, "Catched signal %d.\n", sig);
- exit (1);
-}
-
-static const GOptionEntry options [] = {
- { "debug", 'd', 0, G_OPTION_ARG_NONE, &enable_debug,
- N_("Enable debugging"), NULL },
- { "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose_output,
- N_("Enable verbose output"), NULL },
- { "no-daemon", 'f', 0, G_OPTION_ARG_NONE, &no_daemon,
- N_("Don't fork into background"), NULL },
- { "inetd", 'i', 0, G_OPTION_ARG_NONE, &invoked_from_inetd,
- N_("Invoked from inetd"), NULL },
- { NULL }
-};
-
-int
-main (int argc, char **argv)
-{
- const unsigned method = GLIBTOP_METHOD_PIPE;
- const unsigned long features = GLIBTOP_SYSDEPS_ALL;
- glibtop *server = glibtop_global_server;
- GOptionContext *goption_context;
- GError *error = NULL;
-
- int ils = -1; /* internet domain listen socket */
-
- /* On non-glibc systems, this is not set up for us. */
- if (!program_invocation_name) {
- char *arg;
-
- program_invocation_name = (char *) argv[0];
- arg = strrchr (argv[0], '/');
- program_invocation_short_name =
- arg ? (arg + 1) : program_invocation_name;
- }
-
- g_set_prgname (program_invocation_short_name);
- goption_context = g_option_context_new (NULL);
- g_option_context_add_main_entries (goption_context, options, NULL);
- g_option_context_parse (goption_context, &argc, &argv, &error);
- g_option_context_free (goption_context);
-
- if (error != NULL) {
- g_printerr ("%s\n", error->message);
- g_error_free (error);
- g_printerr (_("Run '%s --help' to see a full list of "
- "available command line options.\n"),
- program_invocation_name);
- exit(1);
- }
-
- if (enable_debug)
- verbose_output = 1;
-
- if (no_daemon) {
- openlog ("libgtop-daemon", LOG_PERROR | LOG_PID, LOG_LOCAL0);
- } else {
- openlog ("libgtop-daemon", LOG_PID, LOG_LOCAL0);
- }
-
- if (!no_daemon && !invoked_from_inetd) {
- pid_t pid = fork ();
-
- if (pid == -1) {
- syslog_io_message (LOG_ERR, "fork failed");
- exit (1);
- } else if (pid)
- exit (0);
-
- close (0);
-
- setsid ();
- }
-
- glibtop_init_r (&glibtop_global_server, 0, GLIBTOP_INIT_NO_INIT);
-
- signal (SIGCHLD, handle_signal);
-
- /* If we are root, completely switch to SERVER_UID and
- * SERVER_GID. Otherwise we completely drop any priviledges.
- */
-
- if (enable_debug)
- syslog_message (LOG_DEBUG, "Parent ID: (%d, %d) - (%d, %d)",
- getuid (), geteuid (), getgid (), getegid ());
-
- if (geteuid () == 0) {
- changed_uid = 1;
- if (setregid (SERVER_GID, SERVER_GID)) {
- syslog_io_message (LOG_ERR, "setregid (SERVER_GID)");
- exit (1);
- }
- if (setreuid (SERVER_UID, SERVER_UID)) {
- syslog_io_message (LOG_ERR, "setreuid (SERVER_UID)");
- exit (1);
- }
- } else {
- if (setreuid (geteuid (), geteuid ())) {
- syslog_io_message (LOG_ERR, "setreuid (euid)");
- exit (1);
- }
- }
-
- if (enable_debug)
- syslog_message (LOG_DEBUG, "Parent ID: (%d, %d) - (%d, %d)",
- getuid (), geteuid (), getgid (), getegid ());
-
- if (invoked_from_inetd) {
- size_t addrlen = sizeof (struct sockaddr_in);
- struct sockaddr_in peer;
-
- memset ((char *) &peer, 0, sizeof (struct sockaddr_in));
-
- if (getpeername (0, (struct sockaddr *) &peer, (void *) &addrlen)) {
- syslog_io_message (LOG_ERR, "getpeername");
- exit (1);
- }
-
- if (verbose_output)
- syslog_message (LOG_INFO, "Connection was made from %s port %u.",
- inet_ntoa (peer.sin_addr), ntohs (peer.sin_port));
-
- /* Check that access is allowed - if not return crud to the client */
- if (!permitted (peer.sin_addr.s_addr, 0)) {
- close (0);
- syslog_message (LOG_CRIT, "Refused connection from %s.",
- inet_ntoa (peer.sin_addr));
- exit (1);
- }
-
- handle_parent_connection (0);
- exit (0);
- }
-
- /* get a internet domain socket to listen on. */
- ils = internet_init ();
-
- if (ils <= 0) {
- syslog_message (LOG_ERR, "Unable to get internet domain socket.");
- exit (1);
- }
-
- glibtop_set_parameter_l (server, GLIBTOP_PARAM_METHOD,
- &method, sizeof (method));
-
- server->features = features;
-
- glibtop_init_r (&server, 0, 0);
-
- while (1) {
- fd_set rmask;
- int status, ret;
-
- while ((ret = wait3 (&status, WNOHANG, NULL)) != 0) {
- if ((ret == -1) && (errno == ECHILD))
- break;
-
- if ((ret == -1) && ((errno == EAGAIN)))
- continue;
- if (ret == 0) {
- syslog_io_message (LOG_WARNING, "wait3");
- continue;
- }
-
- if (verbose_output)
- syslog_message (LOG_INFO, "Child %d exited.", ret);
- }
-
- FD_ZERO (&rmask);
-
- /* Only the child accepts connections from standard
- * input made by its parent. */
-
- FD_SET (ils, &rmask);
-
- if (enable_debug)
- syslog_message (LOG_DEBUG,
- "Server ready and waiting for connections.");
-
- if (select (ils+1, &rmask, (fd_set *) NULL, (fd_set *) NULL,
- (struct timeval *) NULL) < 0) {
- if (errno == EINTR)
- continue;
- syslog_io_message (LOG_ERR, "select");
- exit (1);
- }
-
- if (FD_ISSET (ils, &rmask))
- handle_internet_request (ils);
- }
-
- return 0;
-}
diff --git a/src/daemon/io.c b/src/daemon/io.c
deleted file mode 100644
index e6b4aaf8..00000000
--- a/src/daemon/io.c
+++ /dev/null
@@ -1,98 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include "daemon.h"
-#include <glibtop/error.h>
-
-void
-do_output (int s, glibtop_response *resp, off_t offset,
- size_t data_size, const void *data)
-{
-#ifdef REAL_DEBUG
- fprintf (stderr, "Really writing %d bytes at offset %lu.\n",
- sizeof (glibtop_response), offset);
-#endif
-
- resp->offset = offset;
- resp->data_size = data_size;
-
- if (s == 0) {
- if (write (1, (const void *) resp, sizeof (glibtop_response)) < 0)
- glibtop_warn_io ("write");
- } else {
- if (send (s, (const void *) resp, sizeof (glibtop_response), 0) < 0)
- glibtop_warn_io ("send");
- }
-
- if (resp->data_size) {
-#ifdef REAL_DEBUG
- fprintf (stderr, "Writing %d bytes of data.\n", resp->data_size);
-#endif
-
- if (s == 0) {
- if (write (1, data, resp->data_size) < 0)
- glibtop_warn_io ("write");
- } else {
- if (send (s, data, resp->data_size, 0) , 0)
- glibtop_warn_io ("send");
- }
- }
-}
-
-int
-do_read (int s, void *ptr, size_t total_size)
-{
- int nread;
- char *tmp_ptr;
- size_t already_read = 0, remaining = total_size;
-
- while (already_read < total_size) {
- if (s)
- nread = recv (s, ptr, remaining, 0);
- else
- nread = read (0, ptr, remaining);
-
- if ((already_read == 0) && (nread == 0)) {
- glibtop_warn ("pid %d received eof.", getpid ());
- return 0;
- }
-
- if (nread <= 0) {
- glibtop_warn_io ("recv");
- return 0;
- }
-
- already_read += nread;
- remaining -= nread;
- /* (char *) ptr += nread; */
- tmp_ptr = ptr;
- tmp_ptr += nread;
- ptr = tmp_ptr;
-
-#ifdef REAL_DEBUG
- fprintf (stderr, "READ (%d): %d - %d - %d\n",
- nread, already_read, remaining, total_size);
-#endif
- }
-
- return already_read;
-}
diff --git a/src/daemon/main.c b/src/daemon/main.c
deleted file mode 100644
index 713adabc..00000000
--- a/src/daemon/main.c
+++ /dev/null
@@ -1,245 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include "daemon.h"
-
-#ifdef LIBGTOP_ENABLE_DEBUG
-#ifndef PARENT_DEBUG
-#define PARENT_DEBUG 1
-#endif
-#ifndef DEBUG
-#define DEBUG 1
-#endif
-#endif
-
-void
-handle_parent_connection (int s)
-{
- glibtop *server = glibtop_global_server;
- glibtop_response _resp, *resp = &_resp;
- glibtop_command _cmnd, *cmnd = &_cmnd;
- glibtop_mountentry *mount_list;
- char parameter [BUFSIZ];
- unsigned short device;
- gint64 *param_ptr;
- int all_fs;
- pid_t pid;
- void *ptr;
-
- glibtop_send_version (glibtop_global_server, s);
-
- if (verbose_output)
- syslog_message (LOG_INFO, "Parent features = %lu",
- glibtop_server_features);
-
- if (enable_debug)
- syslog_message (LOG_DEBUG, "SIZEOF: %u - %u - %u - %u - %u - %u",
- sizeof (glibtop_command), sizeof (glibtop_response),
- sizeof (glibtop_mountentry), sizeof (glibtop_union),
- sizeof (glibtop_sysdeps),
- sizeof (glibtop_response_union));
-
- while (do_read (s, cmnd, sizeof (glibtop_command))) {
- if (enable_debug)
- syslog_message (LOG_DEBUG,
- "Parent (%d) received command %llu from client.",
- getpid (), cmnd->command);
-
- if (cmnd->data_size >= BUFSIZ) {
- syslog_message (LOG_WARNING,
- "Client sent %llu bytes, but buffer is %lu",
- cmnd->data_size, (unsigned long)BUFSIZ);
- return;
- }
-
- memset (resp, 0, sizeof (glibtop_response));
-
- memset (parameter, 0, sizeof (parameter));
-
- if (cmnd->data_size) {
- if (enable_debug)
- syslog_message (LOG_DEBUG, "Client has %llu bytes of data.",
- cmnd->data_size);
-
- do_read (s, parameter, cmnd->data_size);
-
- } else if (cmnd->size) {
- memcpy (parameter, cmnd->parameter, cmnd->size);
- }
-
- switch (cmnd->command) {
- case GLIBTOP_CMND_QUIT:
- do_output (s, resp, 0, 0, NULL);
- return;
- case GLIBTOP_CMND_SYSDEPS:
- memcpy (&resp->u.sysdeps, &server->sysdeps,
- sizeof (glibtop_sysdeps));
- resp->u.sysdeps.features = GLIBTOP_SYSDEPS_ALL;
- do_output (s, resp, _offset_union (sysdeps), 0, NULL);
- break;
- case GLIBTOP_CMND_CPU:
- glibtop_get_cpu_l (server, &resp->u.data.cpu);
- do_output (s, resp, _offset_data (cpu), 0, NULL);
- break;
- case GLIBTOP_CMND_MEM:
- glibtop_get_mem_l (server, &resp->u.data.mem);
- do_output (s, resp, _offset_data (mem), 0, NULL);
- break;
- case GLIBTOP_CMND_SWAP:
- glibtop_get_swap_l (server, &resp->u.data.swap);
- do_output (s, resp, _offset_data (swap), 0, NULL);
- break;
- case GLIBTOP_CMND_UPTIME:
- glibtop_get_uptime_l (server, &resp->u.data.uptime);
- do_output (s, resp, _offset_data (uptime), 0, NULL);
- break;
- case GLIBTOP_CMND_LOADAVG:
- glibtop_get_loadavg_l (server, &resp->u.data.loadavg);
- do_output (s, resp, _offset_data (loadavg), 0, NULL);
- break;
- case GLIBTOP_CMND_SHM_LIMITS:
- glibtop_get_shm_limits_l
- (server, &resp->u.data.shm_limits);
- do_output (s, resp, _offset_data (shm_limits), 0, NULL);
- break;
- case GLIBTOP_CMND_MSG_LIMITS:
- glibtop_get_msg_limits_l
- (server, &resp->u.data.msg_limits);
- do_output (s, resp, _offset_data (msg_limits), 0, NULL);
- break;
- case GLIBTOP_CMND_SEM_LIMITS:
- glibtop_get_sem_limits_l
- (server, &resp->u.data.sem_limits);
- do_output (s, resp, _offset_data (sem_limits), 0, NULL);
- break;
- case GLIBTOP_CMND_PROCLIST:
- param_ptr = (gint64 *) parameter;
- ptr = glibtop_get_proclist_l (server,
- &resp->u.data.proclist,
- param_ptr [0],
- param_ptr [1]);
- do_output (s, resp, _offset_data (proclist),
- resp->u.data.proclist.total, ptr);
- g_free (ptr);
- break;
- case GLIBTOP_CMND_PROC_MAP:
- memcpy (&pid, parameter, sizeof (pid_t));
- ptr = glibtop_get_proc_map_l (server,
- &resp->u.data.proc_map,
- pid);
- do_output (s, resp, _offset_data (proc_map),
- resp->u.data.proc_map.total, ptr);
- g_free (ptr);
- break;
-
- case GLIBTOP_CMND_PROC_WD:
- /* FIXME */
- break;
-
- case GLIBTOP_CMND_NETLIST:
- /* FIXME */
- break;
-
- case GLIBTOP_CMND_PROC_ARGS:
- memcpy (&pid, parameter, sizeof (pid_t));
- ptr = glibtop_get_proc_args_l (server,
- &resp->u.data.proc_args,
- pid, 0);
- do_output (s, resp, _offset_data (proc_args),
- ptr ? resp->u.data.proc_args.size+1 : 0, ptr);
- g_free (ptr);
- break;
- case GLIBTOP_CMND_PROC_STATE:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_state_l
- (server, &resp->u.data.proc_state, pid);
- do_output (s, resp, _offset_data (proc_state), 0, NULL);
- break;
- case GLIBTOP_CMND_PROC_UID:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_uid_l
- (server, &resp->u.data.proc_uid, pid);
- do_output (s, resp, _offset_data (proc_uid), 0, NULL);
- break;
- case GLIBTOP_CMND_PROC_MEM:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_mem_l
- (server, &resp->u.data.proc_mem, pid);
- do_output (s, resp, _offset_data (proc_mem), 0, NULL);
- break;
- case GLIBTOP_CMND_PROC_TIME:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_time_l
- (server, &resp->u.data.proc_time, pid);
- do_output (s, resp, _offset_data (proc_time), 0, NULL);
- break;
- case GLIBTOP_CMND_PROC_SIGNAL:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_signal_l
- (server, &resp->u.data.proc_signal, pid);
- do_output (s, resp, _offset_data (proc_signal), 0, NULL);
- break;
- case GLIBTOP_CMND_PROC_KERNEL:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_kernel_l
- (server, &resp->u.data.proc_kernel, pid);
- do_output (s, resp, _offset_data (proc_kernel), 0, NULL);
- break;
- case GLIBTOP_CMND_PROC_SEGMENT:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_segment_l
- (server, &resp->u.data.proc_segment, pid);
- do_output (s, resp, _offset_data (proc_segment), 0, NULL);
- break;
- case GLIBTOP_CMND_MOUNTLIST:
- memcpy (&all_fs, parameter, sizeof (all_fs));
- mount_list = glibtop_get_mountlist_l
- (server, &resp->u.data.mountlist, all_fs);
- do_output (s, resp, _offset_data (mountlist),
- resp->u.data.mountlist.total, mount_list);
- g_free (mount_list);
- break;
- case GLIBTOP_CMND_FSUSAGE:
- glibtop_get_fsusage_l
- (server, &resp->u.data.fsusage, parameter);
- do_output (s, resp, _offset_data (fsusage),
- 0, NULL);
- break;
- case GLIBTOP_CMND_PPP:
- memcpy (&device, parameter, sizeof (device));
- glibtop_get_ppp_l
- (server, &resp->u.data.ppp, device);
- do_output (s, resp, _offset_data (ppp), 0, NULL);
- break;
- case GLIBTOP_CMND_NETLOAD:
- glibtop_get_netload_l
- (server, &resp->u.data.netload, parameter);
- do_output (s, resp, _offset_data (netload),
- 0, NULL);
- break;
- default:
- syslog_message (LOG_ERR, "Parent received unknown command %llu.",
- cmnd->command);
- break;
- }
- }
-}
diff --git a/src/daemon/server.c b/src/daemon/server.c
deleted file mode 100644
index 9af133c0..00000000
--- a/src/daemon/server.c
+++ /dev/null
@@ -1,111 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include "daemon.h"
-
-static glibtop _glibtop_global_server;
-glibtop *glibtop_global_server = &_glibtop_global_server;
-
-#include <glibtop.h>
-#include <glibtop/union.h>
-#include <glibtop/sysdeps.h>
-
-#include <sys/utsname.h>
-
-const unsigned long glibtop_server_features =
-GLIBTOP_SUID_CPU +
-GLIBTOP_SUID_MEM +
-GLIBTOP_SUID_SWAP +
-GLIBTOP_SUID_UPTIME +
-GLIBTOP_SUID_LOADAVG +
-GLIBTOP_SUID_SHM_LIMITS +
-GLIBTOP_SUID_MSG_LIMITS +
-GLIBTOP_SUID_SEM_LIMITS +
-GLIBTOP_SUID_PROCLIST +
-GLIBTOP_SUID_PROC_STATE +
-GLIBTOP_SUID_PROC_UID +
-GLIBTOP_SUID_PROC_MEM +
-GLIBTOP_SUID_PROC_TIME +
-GLIBTOP_SUID_PROC_SIGNAL +
-GLIBTOP_SUID_PROC_KERNEL +
-GLIBTOP_SUID_PROC_SEGMENT +
-GLIBTOP_SUID_PROC_ARGS +
-GLIBTOP_SUID_PROC_MAP +
-GLIBTOP_SUID_NETLOAD +
-GLIBTOP_SUID_NETLIST +
-GLIBTOP_SUID_PROC_WD +
-GLIBTOP_SUID_PPP;
-
-#include <fcntl.h>
-#include <locale.h>
-
-int
-main(int argc, char *argv[])
-{
- struct utsname uts;
- int uid, euid, gid, egid;
-
- /* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */
-
- uid = getuid (); euid = geteuid ();
- gid = getgid (); egid = getegid ();
-
- if (uname (&uts) < 0) _exit (1);
-
-#ifdef _AIX
- /*
- * [FIXME]: should be in sysdeps part ?
- */
-
- if ((strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) != 0) ||
- ((atol(uts.version) < atol(LIBGTOP_COMPILE_VERSION)) &&
- (atol(uts.release) < atol(LIBGTOP_COMPILE_RELEASE))) ) {
- fprintf (stderr, "Can only run on %s %s.%s and upper\n",
- LIBGTOP_COMPILE_SYSTEM,
- LIBGTOP_COMPILE_VERSION,
- LIBGTOP_COMPILE_RELEASE);
- _exit (1);
- }
-#else
- if (strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) ||
- strcmp (uts.release, LIBGTOP_COMPILE_RELEASE) ||
- strcmp (uts.machine, LIBGTOP_COMPILE_MACHINE)) {
- fprintf (stderr, "Can only run on %s %s %s\n",
- LIBGTOP_COMPILE_SYSTEM,
- LIBGTOP_COMPILE_RELEASE,
- LIBGTOP_COMPILE_MACHINE);
- _exit (1);
- }
-#endif
-
- glibtop_init_p (glibtop_global_server, 0, 0);
-
- if (setreuid (euid, uid)) _exit (1);
-
- if (setregid (egid, gid)) _exit (1);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- handle_slave_connection (0, 0);
-
- _exit (0);
-}
diff --git a/src/daemon/server_config.h b/src/daemon/server_config.h
deleted file mode 100644
index 595c5966..00000000
--- a/src/daemon/server_config.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#define SERVER_PORT 42800
-
-#define SERVER_UID 99
-#define SERVER_GID 99
-
-#define HOST_TABLE_ENTRIES 1
-
-const char *permitted_host_names [HOST_TABLE_ENTRIES] =
-{ NULL };
-
-unsigned long permitted_hosts [HOST_TABLE_ENTRIES];
diff --git a/src/daemon/server_config.h.in b/src/daemon/server_config.h.in
deleted file mode 100644
index f7884c8d..00000000
--- a/src/daemon/server_config.h.in
+++ /dev/null
@@ -1,44 +0,0 @@
-/* -*-c-*- */
-
-/* This is a sample config file.
- *
- * Copy this file to 'server_config.h' and edit it to fix your needs !
- *
- * You can also use the 'server_config.pl' script to create 'server_config.h'.
- *
- */
-
-#define SERVER_PORT 42800 /* Port the server should listen on. */
-
-/* NOTE: On RedHat 5.1 nobody is UID 99 and GID 99.
- *
- * The 'server_config.pl' script will use the real UID and GID of 'nobody'
- * on your system as default.
- *
- * NOTE: This only works if the server is started as root or SUID to root.
- */
-
-#define SERVER_UID 99 /* User ID the server should run as. */
-#define SERVER_GID 99 /* Group ID the server should run as. */
-
-#define HOST_TABLE_ENTRIES 1 /* Number of entries in the host table. */
-
-/* List of hosts that should be authorized to connect to the server.
- *
- * SECURITY WARNING:
- * Enabling access for a particular hosts means the ALL USERS on this host
- * will be allowed to connect to the server !
- *
- * If you want security, let this table empty and use the 'xauth' method
- * instead.
- *
- * Look at the manpage of gnuserv (1) as shipped with GNU Emacs for more
- * details about security. The server uses the same security mechanisms
- * like gnuserv from XEmacs 20.3.
- */
-
-const char *permitted_host_names [HOST_TABLE_ENTRIES] =
-{ NULL };
-
-unsigned long permitted_hosts [HOST_TABLE_ENTRIES];
-
diff --git a/src/daemon/server_config.pl b/src/daemon/server_config.pl
deleted file mode 100755
index 3e78ca8f..00000000
--- a/src/daemon/server_config.pl
+++ /dev/null
@@ -1,111 +0,0 @@
-#!/usr/bin/perl -w
-
-require 5.004;
-use strict;
-
-print "Enter port the server should listen on [42800]: ";
-
-my $port = <stdin>; chop $port;
-$port = 42800 unless $port =~ /^\d+$/;
-
-print "\nUser name or UID to run as [nobody]: ";
-
-my $user = <stdin>; chop $user; $user = 'nobody' if $user eq '';
-
-my ($login, $pass, $uid, $gid);
-
-unless ($user =~ /^\d+$/) {
- ($login, $pass, $uid, $gid) = getpwnam ($user) or
- die "User '$user' not in passwd file.";
-}
-
-my $g_default = (defined $gid) ? $gid : 'nogroup';
-
-print "Group name or GID to run as [$g_default]: ";
-
-my $group = <stdin>; chop $group; $group = $g_default if $group eq '';
-
-unless ($group =~ /^\d+$/) {
- $gid = getgrnam ($group) or
- die "Group '$group' not in group file.";
-}
-
-print "\nEnter list of hosts which should be authorized to";
-print "\nconnect to the server (terminate with a blank line):\n\n";
-
-print "SECURITY WARNING:\n";
-print " Enabling access for a particular hosts means the ALL USERS on this host will\n";
-print " be allowed to connect to the server !\n\n";
-
-print " If you want security, let this table empty and use the 'xauth' method instead.\n";
-print " Look at the manpage of gnuserv (1) as shipped with GNU Emacs for more details\n";
-print " about security. The server uses the same security mechanisms like gnuserv from\n";
-print " XEmacs 20.3\n\n";
-
-my @hosts = ();
-my @host_addrs = ();
-my @host_names = ();
-
-while (1) {
- print "Host: ";
-
- my $host = <stdin>; chop $host;
- last if $host eq '';
-
- my ($name,$aliases,$addrtype,$length,@addrs) = gethostbyname ($host) or
- die "gethostbyname (): Can't resolve '$host'";
-
- my ($a,$b,$c,$d) = unpack('C4',$addrs[0]);
-
- push @hosts, sprintf ("0x%02X%02X%02X%02X", $d, $c, $b, $a);
- push @host_addrs, sprintf ("%d.%d.%d.%d", $a, $b, $c, $d);
- push @host_names, $name;
-};
-
-print "\n";
-print "This is your config:\n";
-print "====================\n\n";
-
-printf qq[%-30s: %d\n\n], 'Port', $port;
-printf qq[%-30s: %d\n], 'UID', $uid;
-printf qq[%-30s: %d\n\n], 'GID', $gid;
-
-foreach (0..$#hosts) {
- printf qq[%-30s (%s - %s)\n], $host_names[$_], $hosts[$_], $host_addrs [$_];
-}
-
-print "\n";
-
-print "Accept? (yes/no) ";
-
-my $accept = <stdin>; chop $accept;
-
-exit unless $accept eq 'yes';
-
-print "\n";
-
-open CONFIG, "> server_config.h" or
- die "open (server_config.h): $!";
-select CONFIG;
-
-printf qq[\#define SERVER_PORT\t\t%d\n\n], $port;
-
-printf qq[\#define SERVER_UID\t\t%d\n], $uid;
-printf qq[\#define SERVER_GID\t\t%d\n\n], $gid;
-
-printf qq[\#define HOST_TABLE_ENTRIES\t%d\n\n], $#hosts + 1;
-
-foreach (@host_names) {
- $_ = qq["$_"];
-}
-
-printf qq[const char *permitted_host_names [HOST_TABLE_ENTRIES] = \n];
-printf qq[{ %s };\n\n], join (', ', @host_names);
-
-printf qq[unsigned long permitted_hosts [HOST_TABLE_ENTRIES];\n];
-
-close CONFIG;
-
-select STDOUT;
-
-print "Your config has successfully been written to 'server_config.h'.\n";
diff --git a/src/daemon/slave.c b/src/daemon/slave.c
deleted file mode 100644
index f60a6946..00000000
--- a/src/daemon/slave.c
+++ /dev/null
@@ -1,256 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include "daemon.h"
-#include <glibtop/error.h>
-
-void
-handle_slave_connection (int input, int output)
-{
- glibtop *server G_GNUC_UNUSED = glibtop_global_server;
- gint64 *param_ptr G_GNUC_UNUSED;
- const void *ptr G_GNUC_UNUSED;
-
- unsigned short max_len G_GNUC_UNUSED;
- pid_t pid G_GNUC_UNUSED;
-
- glibtop_response _resp, *resp = &_resp;
- glibtop_command _cmnd, *cmnd = &_cmnd;
- char parameter [BUFSIZ];
-
- glibtop_send_version (glibtop_global_server, output);
-
- while (do_read (input, cmnd, sizeof (glibtop_command))) {
-#ifdef SLAVE_DEBUG
- fprintf (stderr, "Slave %d received command "
- "%llu from client.\n", getpid (), cmnd->command);
-#endif
-
- if (cmnd->data_size >= BUFSIZ)
- glibtop_error ("Client sent %llu bytes, "
- "but buffer is %lu",
- cmnd->size, (unsigned long)BUFSIZ);
-
- memset (resp, 0, sizeof (glibtop_response));
-
- memset (parameter, 0, sizeof (parameter));
-
- if (cmnd->data_size) {
-#ifdef SLAVE_DEBUG
- fprintf (stderr, "Client has %llu bytes of data.\n",
- cmnd->data_size);
-#endif
-
- do_read (input, parameter, cmnd->data_size);
-
- } else if (cmnd->size) {
- memcpy (parameter, cmnd->parameter, cmnd->size);
- }
-
- switch (cmnd->command) {
- case GLIBTOP_CMND_QUIT:
- do_output (output, resp, 0, 0, NULL);
- return;
-#if GLIBTOP_SUID_PROCLIST
- case GLIBTOP_CMND_PROCLIST:
- param_ptr = (gint64 *) parameter;
- ptr = glibtop_get_proclist_p
- (server, &resp->u.data.proclist,
- param_ptr [0], param_ptr [1]);
- do_output (output, resp, _offset_data (proclist),
- resp->u.data.proclist.total, ptr);
- g_free (ptr);
- break;
-#endif
-#if GLIBTOP_SUID_PROC_ARGS
- case GLIBTOP_CMND_PROC_ARGS:
- memcpy (&pid, parameter, sizeof (pid_t));
- memcpy (&max_len, parameter + sizeof (pid_t),
- sizeof (max_len));
- ptr = glibtop_get_proc_args_p (server,
- &resp->u.data.proc_args,
- pid, max_len);
- do_output (output, resp, _offset_data (proc_args),
- ptr ? resp->u.data.proc_args.size+1 : 0,
- ptr);
- g_free (ptr);
- break;
-#endif
-#if GLIBTOP_SUID_PROC_MAP
- case GLIBTOP_CMND_PROC_MAP:
- memcpy (&pid, parameter, sizeof (pid_t));
- ptr = glibtop_get_proc_map_p (server,
- &resp->u.data.proc_map,
- pid);
- do_output (output, resp, _offset_data (proc_map),
- resp->u.data.proc_map.total, ptr);
- g_free (ptr);
- break;
-#endif
- default:
- handle_slave_command (cmnd, resp, parameter);
- do_output (output, resp, resp->offset, 0, NULL);
- break;
- }
- }
-}
-
-void
-handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
- const void *parameter)
-{
- glibtop *server = glibtop_global_server;
- unsigned device G_GNUC_UNUSED;
- pid_t pid G_GNUC_UNUSED;
-
- switch (cmnd->command) {
- case GLIBTOP_CMND_SYSDEPS:
- memcpy (&resp->u.sysdeps, &server->sysdeps,
- sizeof (glibtop_sysdeps));
- resp->u.sysdeps.features = glibtop_server_features;
- resp->u.sysdeps.flags = glibtop_server_features |
- (1L << GLIBTOP_SYSDEPS_FEATURES);
- resp->offset = _offset_union (sysdeps);
- break;
-#if GLIBTOP_SUID_CPU
- case GLIBTOP_CMND_CPU:
- glibtop_get_cpu_p (server, &resp->u.data.cpu);
- resp->offset = _offset_data (cpu);
- break;
-#endif
-#if GLIBTOP_SUID_MEM
- case GLIBTOP_CMND_MEM:
- glibtop_get_mem_p (server, &resp->u.data.mem);
- resp->offset = _offset_data (mem);
- break;
-#endif
-#if GLIBTOP_SUID_SWAP
- case GLIBTOP_CMND_SWAP:
- glibtop_get_swap_p (server, &resp->u.data.swap);
- resp->offset = _offset_data (swap);
- break;
-#endif
-#if GLIBTOP_SUID_UPTIME
- case GLIBTOP_CMND_UPTIME:
- glibtop_get_uptime_p (server, &resp->u.data.uptime);
- resp->offset = _offset_data (uptime);
- break;
-#endif
-#if GLIBTOP_SUID_LOADAVG
- case GLIBTOP_CMND_LOADAVG:
- glibtop_get_loadavg_p (server, &resp->u.data.loadavg);
- resp->offset = _offset_data (loadavg);
- break;
-#endif
-#if GLIBTOP_SUID_SHM_LIMITS
- case GLIBTOP_CMND_SHM_LIMITS:
- glibtop_get_shm_limits_p (server, &resp->u.data.shm_limits);
- resp->offset = _offset_data (shm_limits);
- break;
-#endif
-#if GLIBTOP_SUID_MSG_LIMITS
- case GLIBTOP_CMND_MSG_LIMITS:
- glibtop_get_msg_limits_p (server, &resp->u.data.msg_limits);
- resp->offset = _offset_data (msg_limits);
- break;
-#endif
-#if GLIBTOP_SUID_SEM_LIMITS
- case GLIBTOP_CMND_SEM_LIMITS:
- glibtop_get_sem_limits_p (server, &resp->u.data.sem_limits);
- resp->offset = _offset_data (sem_limits);
- break;
-#endif
-#if GLIBTOP_SUID_PROC_STATE
- case GLIBTOP_CMND_PROC_STATE:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_state_p
- (server, &resp->u.data.proc_state, pid);
- resp->offset = _offset_data (proc_state);
- break;
-#endif
-#if GLIBTOP_SUID_PROC_UID
- case GLIBTOP_CMND_PROC_UID:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_uid_p
- (server, &resp->u.data.proc_uid, pid);
- resp->offset = _offset_data (proc_uid);
- break;
-#endif
-#if GLIBTOP_SUID_PROC_MEM
- case GLIBTOP_CMND_PROC_MEM:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_mem_p
- (server, &resp->u.data.proc_mem, pid);
- resp->offset = _offset_data (proc_mem);
- break;
-#endif
-#if GLIBTOP_SUID_PROC_TIME
- case GLIBTOP_CMND_PROC_TIME:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_time_p
- (server, &resp->u.data.proc_time, pid);
- resp->offset = _offset_data (proc_time);
- break;
-#endif
-#if GLIBTOP_SUID_PROC_SIGNAL
- case GLIBTOP_CMND_PROC_SIGNAL:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_signal_p
- (server, &resp->u.data.proc_signal, pid);
- resp->offset = _offset_data (proc_signal);
- break;
-#endif
-#if GLIBTOP_SUID_PROC_KERNEL
- case GLIBTOP_CMND_PROC_KERNEL:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_kernel_p
- (server, &resp->u.data.proc_kernel, pid);
- resp->offset = _offset_data (proc_kernel);
- break;
-#endif
-#if GLIBTOP_SUID_PROC_SEGMENT
- case GLIBTOP_CMND_PROC_SEGMENT:
- memcpy (&pid, parameter, sizeof (pid_t));
- glibtop_get_proc_segment_p
- (server, &resp->u.data.proc_segment, pid);
- resp->offset = _offset_data (proc_segment);
- break;
-#endif
-#if GLIBTOP_SUID_NETLOAD
- case GLIBTOP_CMND_NETLOAD:
- glibtop_get_netload_p (server, &resp->u.data.netload, parameter);
- resp->offset = _offset_data (netload);
- break;
-#endif
-#if GLIBTOP_SUID_PPP
- case GLIBTOP_CMND_PPP:
- memcpy (&device, parameter, sizeof (unsigned short));
- glibtop_get_ppp_p (server, &resp->u.data.ppp, device);
- resp->offset = _offset_data (ppp);
- break;
-#endif
- default:
- glibtop_error ("Child received unknown command %llu",
- cmnd->command);
- break;
- }
-}
diff --git a/src/daemon/version.c b/src/daemon/version.c
deleted file mode 100644
index 3eb48404..00000000
--- a/src/daemon/version.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/version.h>
-#include <glibtop/union.h>
-#include <glibtop/command.h>
-
-
-void
-glibtop_send_version (glibtop *server, int fd)
-{
- char buffer [BUFSIZ];
- size_t size;
-
- sprintf (buffer, LIBGTOP_VERSION_STRING,
- LIBGTOP_VERSION, LIBGTOP_SERVER_VERSION,
- sizeof (glibtop_command),
- sizeof (glibtop_response),
- sizeof (glibtop_union),
- sizeof (glibtop_sysdeps));
-
- size = strlen (buffer) + 1;
-
-#ifdef DEBUG
- fprintf (stderr, "SERVER ID: |%s|\n", buffer);
-#endif
-
- if (fd == 0) {
- if (write (1, (const void *) &size, sizeof (size)) < 0)
- glibtop_warn_io_r (server, "write");
- } else {
- if (send (fd, (const void *) &size, sizeof (size), 0) < 0)
- glibtop_warn_io_r (server, "send");
- }
-
- if (fd == 0) {
- if (write (1, (const void *) buffer, size) < 0)
- glibtop_warn_io_r (server, "write");
- } else {
- if (send (fd, (const void *) buffer, size, 0) < 0)
- glibtop_warn_io_r (server, "send");
- }
-}
diff --git a/structures.def b/structures.def
deleted file mode 100644
index 0f2440f9..00000000
--- a/structures.def
+++ /dev/null
@@ -1,5 +0,0 @@
-glibtop_map_entry|ulong(flags,start,end,offset,perm,inode,device):string(filename)
-glibtop_open_file_entry|ulong(flags,fd,type,dest_port):string(filename,dest_host)
-glibtop_mountentry|ulong(dev):string(devname,mountdir,type)
-glibtop_sysdeps|ulong(features,pointer_size,cpu,mem,swap,uptime,loadavg,shm_limits,msg_limits,sem_limits,proclist,proc_state,proc_uid,proc_mem,proc_time,proc_signal,proc_kernel,proc_segment,proc_args,proc_map,mountlist,fsusage,interface_names,netlist,netload,ppp)
-
diff --git a/sysdeps/Makefile.am b/sysdeps/Makefile.am
deleted file mode 100644
index bcdca880..00000000
--- a/sysdeps/Makefile.am
+++ /dev/null
@@ -1,5 +0,0 @@
-
-SUBDIRS = common @sysdeps_dir@
-
-DIST_SUBDIRS = bsd common linux osf1 \
- stub stub_suid sun4 freebsd solaris aix
diff --git a/sysdeps/aix/ChangeLog b/sysdeps/aix/ChangeLog
deleted file mode 100644
index 18c6e7d0..00000000
--- a/sysdeps/aix/ChangeLog
+++ /dev/null
@@ -1,105 +0,0 @@
-2004-12-23 Benoît Dejean <tazforever@dlfp.org>
-
- * netlist.c:
- * Makefile.am: Added dummy glibtop_get_netlist.
-
-2004-10-22 Benoît Dejean <tazforever@dlfp.org>
-
- * procargs.c: (glibtop_get_proc_args_s):
- * prockernel.c: (glibtop_get_proc_kernel_s):
- * procmem.c: (glibtop_get_proc_mem_s):
- * procsegment.c: (glibtop_get_proc_segment_s):
- * procsignal.c: (glibtop_get_proc_signal_s):
- * procstate.c: (glibtop_get_proc_state_s):
- * proctime.c: (glibtop_get_proc_time_s):
- * procuid.c: (glibtop_get_proc_uid_s): No longer abort() is no such pid.
- buf.flags == 0ULL means that there no data could be retrieve at all.
- Closes #154876. Thanks to Christophe Belle.
-
-2004-10-04 Benoît Dejean <tazforever@dlfp.org>
-
- * procstate.c: (glibtop_get_proc_state_s): Fixed .state to follow
- LibGTop2 specification.
-
-2004-10-04 Benoît Dejean <tazforever@dlfp.org>
-
- * procmap.c: (glibtop_get_proc_map_s): Fixed glibtop_init_s call.
-
-2004-10-04 Benoît Dejean <tazforever@dlfp.org>
-
- * Makefile.am:
- * cpu.c: (glibtop_init_cpu_p), (glibtop_get_cpu_p):
- * glibtop_machine.h:
- * glibtop_server.h:
- * mem.c: (glibtop_get_mem_s):
- * netload.c: (glibtop_get_netload_p):
- * procargs.c: (glibtop_get_proc_args_s):
- * prockernel.c: (glibtop_get_proc_kernel_s):
- * proclist.c: (glibtop_get_proclist_s):
- * procmem.c: (glibtop_get_proc_mem_s):
- * procsegment.c: (glibtop_get_proc_segment_s):
- * procsignal.c: (glibtop_get_proc_signal_s):
- * procstate.c: (glibtop_get_proc_state_s):
- * proctime.c: (glibtop_get_proc_time_s):
- * procuid.c: (glibtop_get_proc_uid_s):
- * swap.c: (glibtop_get_swap_s):
- * sysinfo.c: (add_info), (init_sysinfo):
- * uptime.c: (glibtop_init_uptime_s), (glibtop_get_uptime_s):
-
- AIX support updated by Laurent Vivier <Laurent.Vivier@BULL.NET>.
-
- Fixed cpu/uptime/sysinfo.
- Added missing calls to glibtop_init_s.
-
-2004-06-13 Benoît Dejean <tazforever@dlfp.org>
-
- * sysinfo.c: Added missing const qualifier.
-
-2004-06-06 Benoît Dejean <tazforever@dlfp.org>
-
- * procargs.c: (glibtop_get_proc_args_s): Removed never executed if statements.
- * procstate.c: (glibtop_get_proc_state_s): Used g_strlcpy instead of
- strncpy.
-
-2004-05-25 Benoît Dejean <tazforever@dlfp.org>
-
- * uptime.c: (glibtop_get_uptime_p): Added boot_time.
-
-2004-03-09 Bastien Nocera <hadess@hadess.net>
-
- * procargs.c: (glibtop_get_proc_args_s): fix g_malloc usage on non-Linux
- platforms (patch by Benoît Dejean <bnet@ifrance.com>)
-
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * procsignal.c: (glibtop_get_proc_signal_s): s/u_int64_t/guint64/
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * glibtop_machine.h:
- * glibtop_server.h:
- * glibtop_suid.h:
- * procargs.c:
- * proclist.c:
- * procmap.c:
- * utils.c:
- * utils.h: fixed compilation
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * procargs.c: (glibtop_get_proc_args_s):
- * proclist.c: (glibtop_get_proclist_s):
- replace all the xmalloc crap by glib memory management functions
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * .cvsignore: added
-
-2002-09-24 Laurent Vivier <Laurent.Vivier@bull.net>
-
- * Create sysdeps/aix (from stub)
diff --git a/sysdeps/aix/Makefile.am b/sysdeps/aix/Makefile.am
deleted file mode 100644
index a135bdae..00000000
--- a/sysdeps/aix/Makefile.am
+++ /dev/null
@@ -1,24 +0,0 @@
-
-INCLUDES = @INCLUDES@
-
-noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
-
-libgtop_sysdeps_2_0_la_SOURCES = siglist.c nosuid.c mem.c swap.c uptime.c \
- procargs.c prockernel.c proclist.c procmap.c \
- procmem.c procsegment.c procsignal.c \
- proctime.c procuid.c procmem.c utils.c \
- procstate.c sysinfo.c netlist.c
-
-
-libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
-libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c cpu.c loadavg.c \
- msg_limits.c shm_limits.c sem_limits.c \
- netload.c ppp.c utils.c
-
-libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-libgtop_sysdeps_suid_2_0_la_LIBADD = $(top_builddir)/sysdeps/common/libgtop_suid_common-2.0.la $(GLIB_LIBS)
-
-libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h glibtop_suid.h
-
-libgtopincludedir = $(includedir)/libgtop-2.0
diff --git a/sysdeps/aix/close.c b/sysdeps/aix/close.c
deleted file mode 100644
index 03057967..00000000
--- a/sysdeps/aix/close.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/close.h>
-
-/* Closes pipe to gtop server. */
-
-void
-glibtop_close_s (glibtop *server)
-{ }
diff --git a/sysdeps/aix/cpu.c b/sysdeps/aix/cpu.c
deleted file mode 100644
index b67a90e3..00000000
--- a/sysdeps/aix/cpu.c
+++ /dev/null
@@ -1,135 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <stdlib.h>
-#include <sys/systemcfg.h>
-#include <sys/sysinfo.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/cpu.h>
-
-#include <utils.h>
-
-static const unsigned long _glibtop_sysdeps_cpu =
-(1L << GLIBTOP_CPU_TOTAL) + (1L << GLIBTOP_CPU_USER) +
-(1L << GLIBTOP_CPU_SYS) + (1L << GLIBTOP_CPU_IDLE) +
-(1L << GLIBTOP_CPU_NICE) + (1 << GLIBTOP_CPU_FREQUENCY) +
-(1L << GLIBTOP_XCPU_TOTAL) + (1L << GLIBTOP_XCPU_USER) +
-(1L << GLIBTOP_XCPU_SYS) + (1L << GLIBTOP_XCPU_IDLE) +
-(1L << GLIBTOP_XCPU_NICE);
-
-/* Init function. */
-
-void
-_glibtop_init_cpu_p (glibtop *server)
-{
- off_t result;
-
- server->ncpu = _system_configuration.ncpus;
- if (server->ncpu == 1)
- {
- server->ncpu = 0; /* means single-processor, see glibtop.h */
- }
-
- result = _glibtop_get_kmem_offset(server, "sysinfo");
- if (result == -1)
- {
- return;
- }
- server->machine.sysinfo_offset = result;
-
- result = _glibtop_get_kmem_offset(server, "cpuinfo");
- if (result == -1)
- {
- server->sysdeps.cpu = 0;
-
- return;
- }
- server->machine.cpuinfo_offset = result;
-
- server->machine.cpuinfo = (struct cpuinfo*)calloc(_system_configuration.ncpus, sizeof(struct cpuinfo));
-
- server->sysdeps.cpu = _glibtop_sysdeps_cpu;
-}
-
-/* Provides information about cpu usage. */
-
-void
-glibtop_get_cpu_p (glibtop *server, glibtop_cpu *buf)
-{
- int result;
- int cpu;
- struct sysinfo sysinfo;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_CPU), 0);
-
- memset (buf, 0, sizeof (glibtop_cpu));
-
- result = _glibtop_get_kmem_info(server, server->machine.sysinfo_offset,
- &sysinfo, sizeof(struct sysinfo));
- if (result <= 0)
- {
- glibtop_error_io_r (server, "Cannot read sysinfo");
- return;
- }
-
- buf->idle = sysinfo.cpu[CPU_IDLE];
- buf->user = sysinfo.cpu[CPU_USER];
- buf->sys = sysinfo.cpu[CPU_KERNEL];
- buf->nice = sysinfo.cpu[CPU_WAIT];
-
- buf->total = buf->idle + buf->user + buf->sys + buf->nice ;
-
- result = _glibtop_get_kmem_info(server, server->machine.cpuinfo_offset,
- server->machine.cpuinfo,
- _system_configuration.ncpus
- * sizeof(struct cpuinfo));
-
- if (result <= 0)
- {
- glibtop_error_io_r (server, "Cannot read cpuinfo");
- return;
- }
-
-
- for (cpu = 0; cpu < MIN(GLIBTOP_NCPU, _system_configuration.ncpus); cpu++)
- {
- buf->xcpu_idle[cpu] =
- server->machine.cpuinfo[cpu].cpu[CPU_IDLE];
- buf->xcpu_user[cpu] =
- server->machine.cpuinfo[cpu].cpu[CPU_USER];
- buf->xcpu_sys[cpu] =
- server->machine.cpuinfo[cpu].cpu[CPU_KERNEL];
- buf->xcpu_nice[cpu] =
- server->machine.cpuinfo[cpu].cpu[CPU_WAIT];
-
- buf->xcpu_total[cpu] = buf->xcpu_idle[cpu] +
- buf->xcpu_user[cpu] +
- buf->xcpu_sys[cpu] +
- buf->xcpu_nice[cpu];
- }
-
-
- buf->frequency = sysconf(_SC_CLK_TCK);
- buf->flags = _glibtop_sysdeps_cpu;
-}
diff --git a/sysdeps/aix/glibtop_machine.h b/sysdeps/aix/glibtop_machine.h
deleted file mode 100644
index bf9fb859..00000000
--- a/sysdeps/aix/glibtop_machine.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, March 1999.
-
- 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_MACHINE_H__
-#define __GLIBTOP_MACHINE_H__
-
-#include <procinfo.h>
-
-G_BEGIN_DECLS
-
-typedef struct _glibtop_machine glibtop_machine;
-
-struct _glibtop_machine
-{
- uid_t uid, euid;
- gid_t gid, egid;
-
- int kmem_fd;
-
- off_t cpuinfo_offset;
- off_t sysinfo_offset;
- off_t ifnet_offset;
- off_t loadavg_offset;
- off_t shminfo_offset;
- off_t seminfo_offset;
- off_t msginfo_offset;
-
- struct cpuinfo *cpuinfo;
- struct procsinfo last_pinfo;
-};
-
-G_END_DECLS
-
-#endif /* __GLIBTOP_MACHINE_H__ */
diff --git a/sysdeps/aix/glibtop_server.h b/sysdeps/aix/glibtop_server.h
deleted file mode 100644
index a9c93ea8..00000000
--- a/sysdeps/aix/glibtop_server.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* 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_SERVER_H__
-#define __GLIBTOP_SERVER_H__
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU)
-#define GLIBTOP_SUID_MEM 0
-#define GLIBTOP_SUID_SWAP 0
-#define GLIBTOP_SUID_UPTIME 0
-#define GLIBTOP_SUID_LOADAVG (1 << GLIBTOP_SYSDEPS_LOADAVG)
-#define GLIBTOP_SUID_SHM_LIMITS (1 << GLIBTOP_SYSDEPS_SHM_LIMITS)
-#define GLIBTOP_SUID_MSG_LIMITS (1 << GLIBTOP_SYSDEPS_MSG_LIMITS)
-#define GLIBTOP_SUID_SEM_LIMITS (1 << GLIBTOP_SYSDEPS_SEM_LIMITS)
-#define GLIBTOP_SUID_PROCLIST 0
-#define GLIBTOP_SUID_PROC_STATE 0
-#define GLIBTOP_SUID_PROC_UID 0
-#define GLIBTOP_SUID_PROC_MEM 0
-#define GLIBTOP_SUID_PROC_TIME 0
-#define GLIBTOP_SUID_PROC_SIGNAL 0
-#define GLIBTOP_SUID_PROC_KERNEL 0
-#define GLIBTOP_SUID_PROC_SEGMENT 0
-#define GLIBTOP_SUID_PROC_ARGS 0
-#define GLIBTOP_SUID_PROC_MAP 0
-#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
-#define GLIBTOP_SUID_NETLIST 0
-#define GLIBTOP_SUID_PPP 0
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/aix/glibtop_suid.h b/sysdeps/aix/glibtop_suid.h
deleted file mode 100644
index 69d7c7ea..00000000
--- a/sysdeps/aix/glibtop_suid.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/* 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_SUID_H__
-#define __GLIBTOP_SUID_H__
-
-G_BEGIN_DECLS
-
-#if _IN_LIBGTOP
-#include <sys/param.h>
-#endif
-
-static inline void glibtop_suid_enter (glibtop *server) {
- setegid (server->machine.egid);
-}
-
-static inline void glibtop_suid_leave (glibtop *server) {
- if (setegid (server->machine.gid))
- _exit (1);
-}
-
-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);
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/aix/loadavg.c b/sysdeps/aix/loadavg.c
deleted file mode 100644
index dbdeeea5..00000000
--- a/sysdeps/aix/loadavg.c
+++ /dev/null
@@ -1,77 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <nlist.h>
-#include <glibtop.h>
-#include <glibtop/loadavg.h>
-#include <glibtop/error.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_loadavg =
-(1 << GLIBTOP_LOADAVG_LOADAVG);
-
-/* Init function. */
-
-void
-_glibtop_init_loadavg_p (glibtop *server)
-{
- int result;
-
- result = _glibtop_get_kmem_offset(server, "avenrun");
- if (result == -1)
- {
- server->sysdeps.loadavg = 0;
- return;
- }
-
- server->machine.loadavg_offset = result;
-
- server->sysdeps.loadavg = _glibtop_sysdeps_loadavg;
-}
-
-/* Provides load averange. */
-
-void
-glibtop_get_loadavg_p (glibtop *server, glibtop_loadavg *buf)
-{
- int result;
- int loadavg[3];
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_LOADAVG), 0);
-
- memset (buf, 0, sizeof (glibtop_loadavg));
-
- result = _glibtop_get_kmem_info(server, server->machine.loadavg_offset,
- loadavg, sizeof(loadavg));
- if (result <= 0)
- {
- glibtop_error_io_r (server, "Cannot read loadavg");
- return;
- }
-
- buf->loadavg[0] = loadavg[0] / 65536.0;
- buf->loadavg[1] = loadavg[1] / 65536.0;
- buf->loadavg[2] = loadavg[2] / 65536.0;
-
- buf->flags = _glibtop_sysdeps_loadavg;
-}
diff --git a/sysdeps/aix/mem.c b/sysdeps/aix/mem.c
deleted file mode 100644
index 32057b9e..00000000
--- a/sysdeps/aix/mem.c
+++ /dev/null
@@ -1,77 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <unistd.h>
-#include <sys/vminfo.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/mem.h>
-
-static const unsigned long _glibtop_sysdeps_mem =
-(1 << GLIBTOP_MEM_TOTAL) + (1 << GLIBTOP_MEM_USED) +
-(1 << GLIBTOP_MEM_FREE) + (1 << GLIBTOP_MEM_LOCKED);
-
-/* Init function. */
-
-void
-_glibtop_init_mem_s (glibtop *server)
-{
- server->sysdeps.mem = _glibtop_sysdeps_mem;
-}
-
-/* Provides information about memory usage. */
-
-void
-glibtop_get_mem_s (glibtop *server, glibtop_mem *buf)
-{
- struct vminfo vminfo;
- int pagesize;
- int result;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_MEM), 0);
-
- memset (buf, 0, sizeof (glibtop_mem));
-
- pagesize = sysconf(_SC_PAGESIZE);
-
-#ifdef HAVE_VMGETINFO
- result = vmgetinfo((void*)&vminfo, VMINFO, sizeof(vminfo));
-#else
- result = _glibtop_vmgetinfo((void*)&vminfo, VMINFO, sizeof(vminfo));
-#endif
- if (result == -1)
- {
- glibtop_error_io_r (server, "Cannot read vminfo");
- return;
- }
-
-
- buf->total = vminfo.memsizepgs * pagesize;
- buf->used = (vminfo.numwseguse + vminfo.numpseguse +
- vminfo.numclseguse) * pagesize;
- buf->free = vminfo.numfrb * pagesize;
- buf->locked = (vminfo.numwsegpin + vminfo.numpsegpin +
- vminfo.numclsegpin) * pagesize;
-
- buf->flags = _glibtop_sysdeps_mem;
-}
diff --git a/sysdeps/aix/msg_limits.c b/sysdeps/aix/msg_limits.c
deleted file mode 100644
index 9704f911..00000000
--- a/sysdeps/aix/msg_limits.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <sys/msg.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/msg_limits.h>
-
-static const unsigned long _glibtop_sysdeps_msg_limits =
-(1 << GLIBTOP_IPC_MSGMAX) + (1 << GLIBTOP_IPC_MSGMNB) +
-(1 << GLIBTOP_IPC_MSGMNI) + (1 << GLIBTOP_IPC_MSGTQL);
-
-/* Init function. */
-
-void
-_glibtop_init_msg_limits_p (glibtop *server)
-{
- off_t result;
-
- result = _glibtop_get_kmem_offset(server, "msginfo");
- if (result <= 0)
- {
- server->sysdeps.sem_limits = 0;
- return;
- }
-
- server->machine.msginfo_offset = result;
-
- server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf)
-{
- int result;
- struct msginfo msginfo;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_MSG_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_msg_limits));
-
- result = _glibtop_get_kmem_info(server, server->machine.msginfo_offset,
- &msginfo, sizeof(msginfo));
-
- if (result <= 0)
- {
- glibtop_error_io_r (server, "Cannot read seminfo");
-
- return;
- }
-
- buf->msgmax = msginfo.msgmax;
- buf->msgmnb = msginfo.msgmnb;
- buf->msgmni = msginfo.msgmni;
- buf->msgtql = msginfo.msgmnm;
-
- buf->flags = _glibtop_sysdeps_msg_limits;
-}
diff --git a/sysdeps/aix/netlist.c b/sysdeps/aix/netlist.c
deleted file mode 100644
index fce76fd4..00000000
--- a/sysdeps/aix/netlist.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/* This file is part of LibGTop 2.0.
-
- 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/netlist.h>
-
-static const unsigned long _glibtop_sysdeps_netlist = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_netlist_s (glibtop *server)
-{
- server->sysdeps.netlist = _glibtop_sysdeps_netlist;
-}
-
-char**
-glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf)
-{
- memset (buf, 0, sizeof (glibtop_netlist));
-
- return NULL;
-}
diff --git a/sysdeps/aix/netload.c b/sysdeps/aix/netload.c
deleted file mode 100644
index a4e65581..00000000
--- a/sysdeps/aix/netload.c
+++ /dev/null
@@ -1,208 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <sys/socket.h>
-#include <net/if.h>
-#include <netinet/in.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/netload.h>
-
-#include "utils.h"
-
-static const unsigned long _glibtop_sysdeps_netload =
-(1 << GLIBTOP_NETLOAD_IF_FLAGS) + (1 << GLIBTOP_NETLOAD_MTU) +
-(1 << GLIBTOP_NETLOAD_SUBNET) + (1 << GLIBTOP_NETLOAD_ADDRESS) +
-(1 << GLIBTOP_NETLOAD_PACKETS_IN) + (1 << GLIBTOP_NETLOAD_PACKETS_OUT) +
-(1 << GLIBTOP_NETLOAD_PACKETS_TOTAL) + (1 << GLIBTOP_NETLOAD_BYTES_IN) +
-(1 << GLIBTOP_NETLOAD_BYTES_OUT) + (1 << GLIBTOP_NETLOAD_BYTES_TOTAL) +
-(1 << GLIBTOP_NETLOAD_ERRORS_IN) + (1 << GLIBTOP_NETLOAD_ERRORS_OUT) +
-(1 << GLIBTOP_NETLOAD_ERRORS_TOTAL) + (1 << GLIBTOP_NETLOAD_COLLISIONS);
-
-static void get_ifaddr(glibtop* server, struct ifaddr* next, long* addr, long* mask)
-{
- struct ifaddr ifaddr;
- struct sockaddr_in sockaddr;
-
- *addr = 0;
- *mask = 0;
-
- while (next)
- {
- /* get interface ifaddr structure */
-
- _glibtop_get_kmem_info(server, (off_t)next, &ifaddr, sizeof(ifaddr));
-
- /* get socket addr information */
-
- _glibtop_get_kmem_info( server, (off_t)ifaddr.ifa_addr
- , &sockaddr, sizeof(sockaddr));
-
- /* if valid family : UDP, TCP, ...*/
-
- if (sockaddr.sin_family == AF_INET)
- {
- *addr = sockaddr.sin_addr.s_addr;
-
- _glibtop_get_kmem_info( server, (off_t)ifaddr.ifa_netmask
- , &sockaddr, sizeof(sockaddr));
-
- *mask = sockaddr.sin_addr.s_addr;
-
- /* address found */
-
- return;
- }
-
- next = ifaddr.ifa_next;
- }
-}
-
-/* Init function. */
-
-void
-_glibtop_init_netload_p (glibtop *server)
-{
- off_t result;
- off_t addr;
-
- result = _glibtop_get_kmem_offset(server, "ifnet");
- if (result <= 0)
- {
- server->sysdeps.netload = 0;
- return;
- }
-
- result = _glibtop_get_kmem_info(server, result, &addr, sizeof(addr));
- if (result <= 0)
- {
- server->sysdeps.netload = 0;
- return;
- }
-
- server->machine.ifnet_offset = addr;
-
- server->sysdeps.netload = _glibtop_sysdeps_netload;
-}
-
-/* Provides network statistics. */
-
-void
-glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
- const char *interface)
-{
- int result;
- off_t offset;
- struct ifnet ifnet;
- long addr;
- long mask;
- char name[16];
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_UPTIME), 0);
-
- memset (buf, 0, sizeof (glibtop_netload));
-
- for ( offset = server->machine.ifnet_offset;
- offset != 0;
- offset = (off_t)ifnet.if_next
- )
- {
- result = _glibtop_get_kmem_info(server, offset,
- &ifnet, sizeof(ifnet));
- if (result <= 0)
- {
- glibtop_error_io_r (server, "Cannot read ifnet");
-
- return;
- }
-
- result = _glibtop_get_kmem_info(server, (off_t)ifnet.if_name,
- name, sizeof(name));
- if (result <= 0)
- {
- glibtop_error_io_r (server, "Cannot read if_name");
-
- return;
- }
-
- sprintf(name+strlen(name), "%d", ifnet.if_unit);
- if (strcmp(name, interface) != 0)
- {
- continue;
- }
-
- if (ifnet.if_flags & IFF_UP)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_UP);
- if (ifnet.if_flags & IFF_BROADCAST)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_BROADCAST);
- if (ifnet.if_flags & IFF_LOOPBACK)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_LOOPBACK);
- if (ifnet.if_flags & IFF_POINTOPOINT)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_POINTOPOINT);
- if (ifnet.if_flags & IFF_RUNNING)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_RUNNING);
- if (ifnet.if_flags & IFF_NOARP)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_NOARP);
- if (ifnet.if_flags & IFF_PROMISC)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_PROMISC);
- if (ifnet.if_flags & IFF_ALLMULTI)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_ALLMULTI);
- if (ifnet.if_flags & IFF_OACTIVE)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_OACTIVE);
- if (ifnet.if_flags & IFF_SIMPLEX)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_SIMPLEX);
- if (ifnet.if_flags & IFF_LINK0)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_LINK0);
- if (ifnet.if_flags & IFF_LINK1)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_LINK1);
- if (ifnet.if_flags & IFF_LINK2)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_LINK2);
- if (ifnet.if_flags & IFF_LINK2)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_LINK2);
- if (ifnet.if_flags & 0x80000)
- buf->if_flags |= (1 << GLIBTOP_IF_FLAGS_MULTICAST);
-
- buf->mtu = ifnet.if_mtu;
-
- get_ifaddr(server, ifnet.if_addrlist, &addr, &mask);
-
- buf->subnet = addr & mask;
- buf->address = addr;
-
- buf->packets_in = ifnet.if_ipackets;
- buf->packets_out = ifnet.if_opackets;
- buf->packets_total = buf->packets_in + buf->packets_out;
-
- buf->bytes_in = ifnet.if_ibytes;
- buf->bytes_out = ifnet.if_obytes;
- buf->bytes_total = buf->bytes_in + buf->bytes_out;
-
- buf->errors_in = ifnet.if_ierrors;
- buf->errors_out = ifnet.if_oerrors;
- buf->errors_total = ifnet.if_ierrors + ifnet.if_oerrors;
-
- buf->collisions = ifnet.if_collisions;
- }
-
- buf->flags = _glibtop_sysdeps_netload;
-}
diff --git a/sysdeps/aix/nosuid.c b/sysdeps/aix/nosuid.c
deleted file mode 100644
index de761fa1..00000000
--- a/sysdeps/aix/nosuid.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <sys/systemcfg.h>
-
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-
-void
-glibtop_open_s (glibtop *server,
- const char *program_name,
- const unsigned long features,
- const unsigned flags)
-{
- server->ncpu = _system_configuration.ncpus;
-
- if (server->ncpu == 1)
- {
- server->ncpu = 0; /* means single-processor, see glibtop.h */
- }
-}
-
-void
-glibtop_close_s (glibtop *server)
-{ }
diff --git a/sysdeps/aix/open.c b/sysdeps/aix/open.c
deleted file mode 100644
index 447bed03..00000000
--- a/sysdeps/aix/open.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/open.h>
-#include <glibtop/init_hooks.h>
-#include "glibtop_suid.h"
-
-/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
-void
-glibtop_init_p (glibtop *server, const unsigned long features,
- const unsigned flags)
-{
- const _glibtop_init_func_t *init_fkt;
-
- if (server == NULL)
- glibtop_error_r (NULL, "glibtop_init_p (server == NULL)");
-
- if ((server->flags & _GLIBTOP_INIT_STATE_SYSDEPS) == 0) {
- glibtop_open_p (server, "glibtop", features, flags);
-
- for (init_fkt = _glibtop_init_hook_p; *init_fkt; init_fkt++)
- (*init_fkt) (server);
- server->flags |= _GLIBTOP_INIT_STATE_SYSDEPS;
- }
-}
-
-/* Opens pipe to gtop server. Returns 0 on success and -1 on error. */
-
-void
-glibtop_open_p (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags)
-{
- /* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */
-
- server->machine.uid = getuid ();
- server->machine.euid = geteuid ();
- server->machine.gid = getgid ();
- server->machine.egid = getegid ();
-
- /* open kmem */
-
- server->machine.kmem_fd = open("/dev/kmem", O_RDONLY);
- if (server->machine.kmem_fd == -1)
- glibtop_error_io_r (server, "Cannot open /dev/kmem");
-
- /* Drop priviledges. */
-
- if (seteuid (server->machine.uid))
- _exit (1);
-
- if (setegid (server->machine.gid))
- _exit (1);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- server->name = program_name;
-}
diff --git a/sysdeps/aix/ppp.c b/sysdeps/aix/ppp.c
deleted file mode 100644
index d7b510ef..00000000
--- a/sysdeps/aix/ppp.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/ppp.h>
-
-static const unsigned long _glibtop_sysdeps_ppp = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_ppp_s (glibtop *server)
-{
- server->sysdeps.ppp = _glibtop_sysdeps_ppp;
-}
-
-/* Provides PPP/ISDN information. */
-
-void
-glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device)
-{
- memset (buf, 0, sizeof (glibtop_ppp));
-}
diff --git a/sysdeps/aix/procargs.c b/sysdeps/aix/procargs.c
deleted file mode 100644
index a79f26d2..00000000
--- a/sysdeps/aix/procargs.c
+++ /dev/null
@@ -1,113 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <procinfo.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procargs.h>
-
-#include "utils.h"
-
-static const unsigned long _glibtop_sysdeps_proc_args =
- (1 << GLIBTOP_PROC_ARGS_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_args_s (glibtop *server)
-{
- server->sysdeps.proc_args = _glibtop_sysdeps_proc_args;
-}
-
-/* Provides detailed information about a process. */
-
-static void _glibtop_remove_non_ascii(char* string)
-{
- for (;*string != 0;string++)
- {
- if (!isascii(*string))
- *string = '?';
- }
-}
-
-char *
-glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len)
-{
- struct procsinfo *pinfo;
- char *args_buffer;
- char* args = NULL;
- int size;
- int result;
- int len;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_PROC_ARGS), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_args));
-
- pinfo = _glibtop_get_procinfo(server, pid);
- if (pinfo == NULL) return NULL;
-
- size = max_len != 0 ? max_len : 4096;
- args_buffer = g_malloc (size);
-
- result = getargs(pinfo, sizeof(struct procsinfo), args_buffer, size);
- if (result == -1)
- {
- glibtop_error_io_r (server, "Cannot malloc getargs");
-
- g_free(args_buffer);
-
- return NULL;
- }
-
- /* look if empty string */
-
- if (args_buffer[0] == 0)
- {
- g_free(args_buffer);
-
- return NULL;
- }
-
- /* compute length of args and realloc */
-
- len = 0;
- while ((args_buffer[len] != 0) && (len < size))
- {
- _glibtop_remove_non_ascii(args_buffer + len);
-
- len += strlen(args_buffer + len) + 1;
- }
-
- args = g_malloc (len);
-
- memcpy(args, args_buffer, len);
- g_free(args_buffer);
-
- buf->size = len - 1;
-
- buf->flags = _glibtop_sysdeps_proc_args;
-
- return args;
-}
diff --git a/sysdeps/aix/prockernel.c b/sysdeps/aix/prockernel.c
deleted file mode 100644
index 61cb6ca8..00000000
--- a/sysdeps/aix/prockernel.c
+++ /dev/null
@@ -1,94 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <procinfo.h>
-#include <sys/proc.h>
-
-#include <glibtop.h>
-#include <glibtop/prockernel.h>
-#include <glibtop/error.h>
-
-#include "utils.h"
-
-static const unsigned long _glibtop_sysdeps_proc_kernel =
-(1 <<GLIBTOP_PROC_KERNEL_MIN_FLT) + (1 <<GLIBTOP_PROC_KERNEL_MAJ_FLT) +
-(1 <<GLIBTOP_PROC_KERNEL_CMIN_FLT) + (1 <<GLIBTOP_PROC_KERNEL_CMAJ_FLT) +
-(1 <<GLIBTOP_PROC_KERNEL_KSTK_ESP) + (1 <<GLIBTOP_PROC_KERNEL_KSTK_EIP) +
-(1 <<GLIBTOP_PROC_KERNEL_NWCHAN);
-
-
-
-/* Init function. */
-
-void
-_glibtop_init_proc_kernel_s (glibtop *server)
-{
- server->sysdeps.proc_kernel = _glibtop_sysdeps_proc_kernel;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf,
- pid_t pid)
-{
- struct thrdsinfo thinfo;
- struct procsinfo *pinfo;
- tid_t thid;
- int result;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_PROC_KERNEL), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_kernel));
-
- pinfo = _glibtop_get_procinfo(server, pid);
- if (pinfo == NULL) return;
-
- if (!(pinfo->pi_flags | SKPROC))
- {
- /* not a kernel process */
-
- return;
- }
-
- buf->min_flt = pinfo->pi_ru.ru_minflt;
- buf->maj_flt = pinfo->pi_ru.ru_majflt;
-
- buf->cmin_flt = pinfo->pi_cru.ru_minflt;
- buf->cmaj_flt = pinfo->pi_cru.ru_majflt;
-
- thid = 0;
- result = getthrds(pid, &thinfo, sizeof(thinfo), &thid, 1);
- if (result != 1)
- {
- glibtop_error_io_r(server, "Cannot read thrdsinfo");
-
- return;
- }
-
- buf->kstk_esp = thinfo.ti_ustk;
- buf->kstk_eip = thinfo.ti_code;
-
- buf->nwchan = thinfo.ti_wchan;
-
- buf->flags = _glibtop_sysdeps_proc_kernel;
-}
diff --git a/sysdeps/aix/proclist.c b/sysdeps/aix/proclist.c
deleted file mode 100644
index 6603b862..00000000
--- a/sysdeps/aix/proclist.c
+++ /dev/null
@@ -1,247 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <procinfo.h>
-
-#include <glibtop.h>
-#include <glibtop/proclist.h>
-
-static const unsigned long _glibtop_sysdeps_proclist =
-(1 << GLIBTOP_PROCLIST_NUMBER) + (1 << GLIBTOP_PROCLIST_TOTAL) +
-(1 << GLIBTOP_PROCLIST_SIZE);
-
-#define BLOCK_COUNT 256
-#define BLOCK_SIZE (BLOCK_COUNT * sizeof (unsigned int))
-
-/* Init function. */
-
-void
-_glibtop_init_proclist_s (glibtop *server)
-{
- server->sysdeps.proclist = _glibtop_sysdeps_proclist;
-}
-
-/* Fetch list of currently running processes.
- *
- * IMPORTANT NOTE:
- * On error, this function MUST return NULL and set buf->flags to zero !
- * On success, it returnes a pointer to a list of buf->number elements
- * each buf->size big. The total size is stored in buf->total. */
-
-unsigned *
-glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg)
-{
- struct procsinfo pinfo;
- int count, total;
- unsigned pids [BLOCK_COUNT], *pids_chain = NULL;
- int pids_size = 0, pids_offset = 0, new_size;
- pid_t current;
- int result;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_PROCLIST), 0);
-
- memset (buf, 0, sizeof (glibtop_proclist));
-
- for( count = total = 0, current = 0
- , result = getprocs(&pinfo, sizeof(pinfo), NULL, 0, &current, 1);
- result == 1;
- result = getprocs(&pinfo, sizeof(pinfo), NULL, 0, &current, 1))
- {
- if (which & GLIBTOP_EXCLUDE_IDLE)
- {
- if (pinfo.pi_state & SIDL)
- {
- /* exclude idle processes */
-
- continue;
- }
- }
-
- if (which & GLIBTOP_EXCLUDE_SYSTEM)
- {
- if (pinfo.pi_flags & SKPROC)
- {
- /* exclude Kernel processes */
-
- continue;
- }
- }
-
- if (which & GLIBTOP_EXCLUDE_NOTTY)
- {
- if (!pinfo.pi_ttyp)
- {
- /* exclude processes without tty */
-
- continue;
- }
- }
-
- switch(which & GLIBTOP_KERN_PROC_MASK)
- {
- case GLIBTOP_KERN_PROC_ALL:
-
- /* return information about all processes
- * so, let's go ahead
- */
-
- break;
-
- case GLIBTOP_KERN_PROC_PID:
-
- /* return information about all processes with
- * pid passed in arg
- */
-
- if (pinfo.pi_pid != arg)
- {
- continue;
- }
-
- break;
-
- case GLIBTOP_KERN_PROC_PGRP:
-
- /* return information about all processes in
- * process group passed in arg
- */
-
- if (pinfo.pi_pgrp != arg)
- {
- continue;
- }
-
- break;
-
- case GLIBTOP_KERN_PROC_SESSION:
-
- /* return information about all processes in
- * session passed in arg
- */
-
- if (pinfo.pi_sid != arg)
- {
- continue;
- }
-
- break;
-
- case GLIBTOP_KERN_PROC_TTY:
-
- /* return information about all processes with
- * tty device number passed in arg
- */
-
- if (pinfo.pi_ttyd != arg)
- {
- continue;
- }
-
- break;
-
- case GLIBTOP_KERN_PROC_UID:
-
- /* return information about all processes with
- * effective uid passed in arg
- */
-
- if (pinfo.pi_cred.cr_uid != arg)
- {
- continue;
- }
-
- break;
-
- case GLIBTOP_KERN_PROC_RUID:
-
- /* return information about all processes with
- * real uid passed in arg
- */
-
- if (pinfo.pi_cred.cr_ruid != arg)
- {
- continue;
- }
-
- break;
- }
-
- if (count >= BLOCK_COUNT)
- {
- /* The following call to g_realloc will be
- * equivalent to g_malloc () if `pids_chain' is
- * NULL. We just calculate the new size and copy `pids'
- * to the beginning of the newly allocated block. */
-
- new_size = pids_size + BLOCK_SIZE;
-
- pids_chain = g_realloc
- (pids_chain, new_size);
- memcpy (pids_chain + pids_offset, pids, BLOCK_SIZE);
-
- pids_size = new_size;
- pids_offset += BLOCK_COUNT;
- count = 0;
- }
-
- /* pids is now big enough to hold at least one single pid. */
-
- pids[count++] = pinfo.pi_pid;
-
- total++;
- }
-
- if (result == -1)
- {
- glibtop_error_io_r(server, "Cannot read procsinfo");
- }
-
- /* count is only zero if an error occured (one a running Linux system,
- * we have at least one single process). */
-
- if (!count) return NULL;
-
- /* The following call to g_realloc will be equivalent to
- * g_malloc if pids_chain is NULL. We just calculate the
- * new size and copy pids to the beginning of the newly allocated
- * block. */
-
- new_size = pids_size + count * sizeof (unsigned);
-
- pids_chain = g_realloc (pids_chain, new_size);
-
- memcpy (pids_chain + pids_offset, pids, count * sizeof (unsigned));
-
- pids_size = new_size;
-
- /* Since everything is ok now, we can set buf->flags, fill in the
- * remaining fields and return the `pids_chain'. */
-
- buf->size = sizeof(unsigned int);
- buf->number = total;
- buf->total = total * buf->size;
-
- buf->flags = _glibtop_sysdeps_proclist;
-
- return pids_chain;
-}
diff --git a/sysdeps/aix/procmap.c b/sysdeps/aix/procmap.c
deleted file mode 100644
index ba6ce89a..00000000
--- a/sysdeps/aix/procmap.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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.
-*/
-
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmap.h>
-
-static const unsigned long _glibtop_sysdeps_proc_map = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_map_s (glibtop *server)
-{
- server->sysdeps.proc_map = _glibtop_sysdeps_proc_map;
-}
-
-/* Provides detailed information about a process. */
-
-glibtop_map_entry *
-glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid)
-{
- glibtop_init_p (&server, (1L << GLIBTOP_SYSDEPS_PROC_MAP), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_map));
-
- return NULL;
-}
diff --git a/sysdeps/aix/procmem.c b/sysdeps/aix/procmem.c
deleted file mode 100644
index e2455809..00000000
--- a/sysdeps/aix/procmem.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <unistd.h>
-#include <sys/vminfo.h>
-#include <sys/resource.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmem.h>
-
-#include "utils.h"
-
-static const unsigned long _glibtop_sysdeps_proc_mem =
-(1 << GLIBTOP_PROC_MEM_SIZE) + (1 << GLIBTOP_PROC_MEM_VSIZE) +
-(1 << GLIBTOP_PROC_MEM_RESIDENT) + (1 << GLIBTOP_PROC_MEM_RSS) +
-(1 << GLIBTOP_PROC_MEM_RSS_RLIM);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_mem_s (glibtop *server)
-{
- server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf,
- pid_t pid)
-{
- struct procsinfo *pinfo;
- int pagesize;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_PROC_MEM), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_mem));
-
- pinfo = _glibtop_get_procinfo(server, pid);
- if (pinfo == NULL) return;
-
- pagesize = sysconf(_SC_PAGESIZE);
-
- buf->vsize = buf->size = pinfo->pi_size * pagesize;
- buf->resident = buf->rss = (pinfo->pi_drss + pinfo->pi_trss) * pagesize;
- buf->rss_rlim = pinfo->pi_rlimit[RLIMIT_RSS].rlim_cur;
-
- buf->flags = _glibtop_sysdeps_proc_mem;
-}
diff --git a/sysdeps/aix/procsegment.c b/sysdeps/aix/procsegment.c
deleted file mode 100644
index b5dd9a2a..00000000
--- a/sysdeps/aix/procsegment.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <unistd.h>
-#include <sys/vminfo.h>
-#include <sys/resource.h>
-
-#include <glibtop.h>
-#include <glibtop/procsegment.h>
-#include <glibtop/error.h>
-
-#include "utils.h"
-
-static const unsigned long _glibtop_sysdeps_proc_segment =
-(1 << GLIBTOP_PROC_SEGMENT_TEXT_RSS) + (1 << GLIBTOP_PROC_SEGMENT_SHLIB_RSS) +
-(1 << GLIBTOP_PROC_SEGMENT_DATA_RSS) + (1 << GLIBTOP_PROC_SEGMENT_STACK_RSS);
-
-
-/* Init function. */
-
-void
-_glibtop_init_proc_segment_s (glibtop *server)
-{
- server->sysdeps.proc_segment = _glibtop_sysdeps_proc_segment;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
- pid_t pid)
-{
- struct procsinfo *pinfo;
- int pagesize;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_PROC_SEGMENT), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_segment));
-
- pinfo = _glibtop_get_procinfo(server, pid);
- if (pinfo == NULL) return;
-
- pagesize = sysconf(_SC_PAGESIZE);
-
- buf->text_rss = pinfo->pi_trss * pagesize;
- buf->data_rss = pinfo->pi_drss * pagesize;
- buf->shlib_rss = pinfo->pi_ru.ru_ixrss * pagesize;
- buf->stack_rss = pinfo->pi_ru.ru_isrss * pagesize;
-
- buf->flags = _glibtop_sysdeps_proc_segment;
-}
diff --git a/sysdeps/aix/procsignal.c b/sysdeps/aix/procsignal.c
deleted file mode 100644
index 3c43a520..00000000
--- a/sysdeps/aix/procsignal.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/* Copyright (C)) +998-99 Martin Baulig
- This file is part of LibGTop) +.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, April) +998.
-
- 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) + 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) +30,
- Boston, MA) +2111-1307, USA.
-*/
-
-#include <config.h>
-#include <unistd.h>
-#include <sys/vminfo.h>
-#include <sys/resource.h>
-#include <sys/signal.h>
-
-#include <glibtop.h>
-#include <glibtop/procsignal.h>
-#include <glibtop/error.h>
-
-#include "utils.h"
-
-static const unsigned long _glibtop_sysdeps_proc_signal =
-(1 <<GLIBTOP_PROC_SIGNAL_SIGNAL) + (1 <<GLIBTOP_PROC_SIGNAL_BLOCKED) +
-(1 <<GLIBTOP_PROC_SIGNAL_SIGIGNORE) + (1 <<GLIBTOP_PROC_SIGNAL_SIGCATCH);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_signal_s (glibtop *server)
-{
- server->sysdeps.proc_signal = _glibtop_sysdeps_proc_signal;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_signal_s (glibtop *server, glibtop_proc_signal *buf,
- pid_t pid)
-{
- struct procsinfo *pinfo;
- int i;
- long bit;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_PROC_SIGNAL), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_signal));
-
- pinfo = _glibtop_get_procinfo(server, pid);
- if (pinfo == NULL) return;
-
- /* pending signals */
-
-#define NB_BITS (8 * sizeof(guint64))
-
- for (i = 0; (i < NSIG) && (i < 2 * NB_BITS); i++)
- {
- bit = 1 << (NB_BITS - 1 - (i % NB_BITS));
-
- if (sigismember(&pinfo->pi_sig, i))
- buf->signal[i / NB_BITS] |= bit;
-
- if (pinfo->pi_signal[i] == (long)SIG_HOLD)
- buf->blocked[i / NB_BITS] |= bit;
-
- if (pinfo->pi_signal[i] == (long)SIG_IGN)
- buf->sigignore[i / NB_BITS] |= bit;
-
- if (pinfo->pi_signal[i] == (long)SIG_CATCH)
- buf->sigcatch[i / NB_BITS] |= bit;
- }
-
- buf->flags = _glibtop_sysdeps_proc_signal;
-}
diff --git a/sysdeps/aix/procstate.c b/sysdeps/aix/procstate.c
deleted file mode 100644
index c98c7ca0..00000000
--- a/sysdeps/aix/procstate.c
+++ /dev/null
@@ -1,124 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <procinfo.h>
-#include <sys/thread.h>
-
-#include <glibtop.h>
-#include <glibtop/procstate.h>
-#include <glibtop/error.h>
-
-#include "utils.h"
-
-static const unsigned long _glibtop_sysdeps_proc_state =
-(1 << GLIBTOP_PROC_STATE_CMD) + (1 << GLIBTOP_PROC_STATE_STATE) +
-(1 << GLIBTOP_PROC_STATE_UID) + (1 << GLIBTOP_PROC_STATE_GID);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_state_s (glibtop *server)
-{
- server->sysdeps.proc_state = _glibtop_sysdeps_proc_state;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf,
- pid_t pid)
-{
- struct procsinfo *pinfo;
- struct thrdsinfo thinfo;
- tid_t thid;
- int result;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_PROC_STATE), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_state));
-
- pinfo = _glibtop_get_procinfo(server, pid);
- if (pinfo == NULL) return;
-
- if (pinfo->pi_pid == 0)
- {
- strcpy(buf->cmd, "swapper");
- }
-
- if (pinfo->pi_comm[0] == 0)
- {
- strcpy(buf->cmd, "<unknown>");
- }
- else
- {
- g_strlcpy(buf->cmd, pinfo->pi_comm, sizeof buf->cmd);
- }
-
- buf->uid = pinfo->pi_uid;
- buf->gid = pinfo->pi_cred.cr_gid;
-
- if (pinfo->pi_state == SZOMB)
- {
- buf->state = GLIBTOP_PROCESS_ZOMBIE;
- strcpy(buf->cmd, "<defunct>");
- }
- else
- {
- /* get state of first thread */
-
- thid = 0;
- result = getthrds(pid, &thinfo, sizeof(thinfo), &thid, 1);
- if (result != 1)
- {
- glibtop_error_io_r(server, "Cannot read threadinfo");
- }
-
- switch (thinfo.ti_state)
- {
- case TSIDL:
- /* FIXME */
- /* buf->state = GLIBTOP_PROCESS_UNINTERRUPTIBLE; */
- break;
- case TSRUN:
- buf->state = GLIBTOP_PROCESS_RUNNING;
- break;
- case TSSLEEP:
- buf->state = GLIBTOP_PROCESS_INTERRUPTIBLE;
- break;
- case TSZOMB:
- buf->state = GLIBTOP_PROCESS_ZOMBIE;
- strcpy(buf->cmd, "<defunct>");
- break;
- case TSSTOP:
- buf->state = GLIBTOP_PROCESS_STOPPED;
- break;
- case TSSWAP:
- buf->state = GLIBTOP_PROCESS_SWAPPING;
- break;
- default:
- buf->state = 0;
- break;
- }
- }
-
- buf->flags = _glibtop_sysdeps_proc_state;
-}
diff --git a/sysdeps/aix/proctime.c b/sysdeps/aix/proctime.c
deleted file mode 100644
index 10494745..00000000
--- a/sysdeps/aix/proctime.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <unistd.h>
-
-#include <glibtop.h>
-#include <glibtop/proctime.h>
-#include <glibtop/error.h>
-
-#include "utils.h"
-
-static const unsigned long _glibtop_sysdeps_proc_time =
-(1 << GLIBTOP_PROC_TIME_START_TIME) + (1 << GLIBTOP_PROC_TIME_RTIME) +
-(1 << GLIBTOP_PROC_TIME_UTIME) + (1 << GLIBTOP_PROC_TIME_STIME) +
-(1 << GLIBTOP_PROC_TIME_CUTIME) + (1 << GLIBTOP_PROC_TIME_CSTIME) +
-(1 << GLIBTOP_PROC_TIME_FREQUENCY);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_time_s (glibtop *server)
-{
- server->sysdeps.proc_time = _glibtop_sysdeps_proc_time;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf,
- pid_t pid)
-{
- struct procsinfo *pinfo;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_PROC_TIME), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_time));
-
- pinfo = _glibtop_get_procinfo(server, pid);
- if (pinfo == NULL) return;
-
- buf->start_time = pinfo->pi_start;
- buf->utime = pinfo->pi_ru.ru_utime.tv_sec + (double)pinfo->pi_ru.ru_utime.tv_usec/1000000.0;
- buf->stime = pinfo->pi_ru.ru_stime.tv_sec + (double)pinfo->pi_ru.ru_stime.tv_usec/1000000.0;
- buf->rtime = buf->utime + buf->stime;
- buf->cutime = pinfo->pi_cru.ru_utime.tv_sec + (double)pinfo->pi_cru.ru_utime.tv_usec/1000000.0;
- buf->cstime = pinfo->pi_cru.ru_stime.tv_sec + (double)pinfo->pi_cru.ru_stime.tv_usec/1000000.0;
- buf->frequency = sysconf(_SC_CLK_TCK);
-
- buf->flags = _glibtop_sysdeps_proc_time;
-}
diff --git a/sysdeps/aix/procuid.c b/sysdeps/aix/procuid.c
deleted file mode 100644
index 29546e4e..00000000
--- a/sysdeps/aix/procuid.c
+++ /dev/null
@@ -1,97 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <unistd.h>
-#include <sys/vminfo.h>
-#include <sys/resource.h>
-
-#include <glibtop.h>
-#include <glibtop/procuid.h>
-#include <glibtop/error.h>
-
-#include "utils.h"
-
-static const unsigned long _glibtop_sysdeps_proc_uid =
-(1 << GLIBTOP_PROC_UID_UID) + (1 << GLIBTOP_PROC_UID_EUID) +
-(1 << GLIBTOP_PROC_UID_GID) + (1 << GLIBTOP_PROC_UID_EGID) +
-(1 << GLIBTOP_PROC_UID_PID) + (1 << GLIBTOP_PROC_UID_PPID) +
-(1 << GLIBTOP_PROC_UID_PGRP) + (1 << GLIBTOP_PROC_UID_SESSION) +
-(1 << GLIBTOP_PROC_UID_TTY) + (1 << GLIBTOP_PROC_UID_PRIORITY) +
-(1 << GLIBTOP_PROC_UID_NICE);
-
-
-/* Init function. */
-
-void
-_glibtop_init_proc_uid_s (glibtop *server)
-{
- server->sysdeps.proc_uid = _glibtop_sysdeps_proc_uid;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_uid_s (glibtop *server, glibtop_proc_uid *buf,
- pid_t pid)
-{
- struct procsinfo *pinfo;
- struct thrdsinfo thinfo;
- tid_t thid;
- int result;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_PROC_UID), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_uid));
-
- pinfo = _glibtop_get_procinfo(server, pid);
- if (pinfo == NULL) return;
-
- buf->uid = pinfo->pi_cred.cr_ruid;
- buf->euid = pinfo->pi_cred.cr_uid;
- buf->gid = pinfo->pi_cred.cr_rgid;
- buf->egid = pinfo->pi_cred.cr_gid;
-
- buf->pid = pinfo->pi_pid;
- buf->ppid = pinfo->pi_ppid;
-
- buf->pgrp = pinfo->pi_pgrp;
- buf->session = pinfo->pi_sid;
-
- buf->tty = pinfo->pi_ttyd;
-
- buf->nice = pinfo->pi_nice;
-
- buf->flags = _glibtop_sysdeps_proc_uid;
-
- thid = 0;
- result = getthrds(pid, &thinfo, sizeof(thinfo), &thid, 1);
- if (result != 1)
- {
- buf->flags &= ~(1 << GLIBTOP_PROC_UID_PRIORITY);
-
- glibtop_error_io_r(server, "Cannot read thrdsinfo");
- }
-
- /* priority of first thread */
-
- buf->priority = thinfo.ti_pri;
-}
diff --git a/sysdeps/aix/sem_limits.c b/sysdeps/aix/sem_limits.c
deleted file mode 100644
index 118a3420..00000000
--- a/sysdeps/aix/sem_limits.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/sem_limits.h>
-#include <glibtop/error.h>
-
-#include "utils.h"
-
-static const unsigned long _glibtop_sysdeps_sem_limits =
-(1 << GLIBTOP_IPC_SEMMNI) + (1 << GLIBTOP_IPC_SEMMSL) +
-(1 << GLIBTOP_IPC_SEMOPM) + (1 << GLIBTOP_IPC_SEMUME) +
-(1 << GLIBTOP_IPC_SEMUSZ) + (1 << GLIBTOP_IPC_SEMVMX) +
-(1 << GLIBTOP_IPC_SEMAEM);
-
-/* Init function. */
-
-void
-_glibtop_init_sem_limits_p (glibtop *server)
-{
- off_t result;
-
- result = _glibtop_get_kmem_offset(server, "seminfo");
- if (result <= 0)
- {
- server->sysdeps.sem_limits = 0;
- return;
- }
-
- server->machine.seminfo_offset = result;
-
- server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits;
-}
-
-/* Provides information about sysv sem limits. */
-
-void
-glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf)
-{
- int result;
- struct seminfo seminfo;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_SEM_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_sem_limits));
-
- result = _glibtop_get_kmem_info(server, server->machine.seminfo_offset,
- &seminfo, sizeof(seminfo));
-
- if (result <= 0)
- {
- glibtop_error_io_r (server, "Cannot read seminfo");
-
- return;
- }
-
- buf->semmni = seminfo.semmni;
- buf->semmsl = seminfo.semmsl;
- buf->semopm = seminfo.semopm;
- buf->semume = seminfo.semume;
- buf->semusz = seminfo.semusz;
- buf->semvmx = seminfo.semvmx;
- buf->semaem = seminfo.semaem;
-
- buf->flags = _glibtop_sysdeps_sem_limits;
-}
diff --git a/sysdeps/aix/shm_limits.c b/sysdeps/aix/shm_limits.c
deleted file mode 100644
index 4815d08d..00000000
--- a/sysdeps/aix/shm_limits.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <sys/shm.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/shm_limits.h>
-
-static const unsigned long _glibtop_sysdeps_shm_limits =
-(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
-(1L << GLIBTOP_IPC_SHMMNI);
-
-/* Init function. */
-
-void
-_glibtop_init_shm_limits_p (glibtop *server)
-{
- int result;
-
- result = _glibtop_get_kmem_offset(server, "shminfo");
- if (result == -1)
- {
- server->sysdeps.shm_limits = 0;
- return;
- }
-
- server->machine.shminfo_offset = result;
-
- server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_shm_limits_p (glibtop *server, glibtop_shm_limits *buf)
-{
- int result;
- struct shminfo shminfo;
- int s;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_SHM_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_shm_limits));
-
- result = _glibtop_get_kmem_info(server, server->machine.shminfo_offset,
- &shminfo, sizeof(struct shminfo));
- if (result <= 0)
- {
- glibtop_error_io_r (server, "Cannot read shminfo");
- return;
- }
-
- buf->shmmax = shminfo.shmmax;
- buf->shmmin = shminfo.shmmin;
- buf->shmmni = shminfo.shmmni;
-
- buf->flags = _glibtop_sysdeps_shm_limits;
-}
diff --git a/sysdeps/aix/siglist.c b/sysdeps/aix/siglist.c
deleted file mode 100644
index 8076fe42..00000000
--- a/sysdeps/aix/siglist.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/signal.h>
-
-const glibtop_signame glibtop_sys_siglist [] =
-{ { 1, "SIGHUP", "Hangup" },
- { 2, "SIGINT", "Interrupt" },
- { 3, "SIGQUIT", "Quit" },
- { 4, "SIGILL", "Illegal Instruction" },
- { 5, "SIGTRAP", "Trace/Breakpoint Trap" },
- { 6, "SIGABRT", "Abort" },
- { 7, "SIGEMT", "Emulation Trap" },
- { 8, "SIGFPE", "Arithmetic Exception" },
- { 9, "SIGKILL", "Killed" },
- { 10, "SIGBUS", "Bus Error" },
- { 11, "SIGSEGV", "Segmentation Fault" },
- { 12, "SIGSYS", "Bad System Call" },
- { 13, "SIGPIPE", "Broken Pipe" },
- { 14, "SIGALRM", "Alarm Clock" },
- { 15, "SIGTERM", "Terminated" },
- { 16, "SIGURG", "Urgent Socket Condition" },
- { 17, "SIGSTOP", "Stop (signal)" },
- { 18, "SIGSTP", "Stop (user)" },
- { 19, "SIGCONT", "Continue" },
- { 20, "SIGCHLD", "Child Status Changed" },
- { 21, "SIGTTIN", "Stopped (tty input)" },
- { 22, "SIGTTOU", "Stopped (tty output)" },
- { 23, "SIGIO", "I/O completed" },
- { 24, "SIGXCPU", "Cpu Limit Exceeded" },
- { 25, "SIGXFSZ", "File Size Limit Exceeded" },
- { 27, "SIGMSG", "Message" },
- { 28, "SIGWINCH","Window Size Change" },
- { 29, "SIGPWR", "Power-Fail/Restart" },
- { 30, "SIGUSR1", "User Signal 1" },
- { 31, "SIGUSR2", "User Signal 2" },
- { 32, "SIGPROF", "Profiling Timer Expired" },
- { 33, "SIGDANGER","System Crash Imminent" },
- { 34, "SIGVTALRM","Virtual Timer Expired" },
- { 35, "SIGMIGRATE","Migrate Process" },
- { 36, "SIGPRE", "Programming Exception" },
- { 37, "SIGVIRT", "AIX Virtual Time Alarm" },
- { 38, "SIGALRM1", "m:n Condition Variables" },
- { 39, "SIGWAITING","Scheduling" },
- { 59, "SIGCPUFAIL","Predictive De-configuration of Processors" },
- { 60, "SIGKAP", "Keep Alive" },
- { 61, "SIGRETRACT","Monitor Mode Relinguish" },
- { 62, "SIGSOUND", "Sound Control Completed" },
- { 63, "SIGSAK", "Secure Attention Key" },
- { 0, NULL, NULL }
-};
diff --git a/sysdeps/aix/swap.c b/sysdeps/aix/swap.c
deleted file mode 100644
index f226a512..00000000
--- a/sysdeps/aix/swap.c
+++ /dev/null
@@ -1,129 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <sys/vminfo.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/swap.h>
-
-static const unsigned long _glibtop_sysdeps_swap =
-(1 << GLIBTOP_SWAP_TOTAL) + (1 << GLIBTOP_SWAP_USED) +
-(1 << GLIBTOP_SWAP_FREE) + (1 << GLIBTOP_SWAP_PAGEIN) +
-(1 << GLIBTOP_SWAP_PAGEOUT);
-
-#define FILENAME "/etc/swapspaces"
-
-/* Init function. */
-
-void
-_glibtop_init_swap_s (glibtop *server)
-{
- server->sysdeps.swap = _glibtop_sysdeps_swap;
-}
-
-/* Provides information about swap usage. */
-
-void
-glibtop_get_swap_s (glibtop *server, glibtop_swap *buf)
-{
- struct vminfo vminfo;
- struct pginfo pginfo;
- int pagesize;
- int result;
- FILE* fd;
- char device_name[128];
- int c;
- int comment = 0;
- int pos = 0;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_SWAP), 0);
-
- memset (buf, 0, sizeof (glibtop_swap));
-
- pagesize = sysconf(_SC_PAGESIZE);
-
- fd = fopen(FILENAME, "r");
- if (fd == NULL)
- {
- glibtop_error_io_r (server, "open (%s)", FILENAME);
- }
-
- buf->total = 0;
- buf->free = 0;
- while((c = getc(fd)) != EOF)
- {
- if (comment)
- {
- /* skip comments */
- if (c == '\n') comment = 0;
- continue;
- }
- switch(c)
- {
- case '*':
- comment = 1;
- break;
- case '\n':
- device_name[pos] = 0;
- pos = 0;
-
- if (strncmp("dev=", device_name, 4) == 0)
- {
- result = swapqry(device_name+4, &pginfo);
- if (result == -1)
- {
- glibtop_error_io_r (server, "Cannot read pginfo");
- break;
- }
-
- buf->total += pginfo.size * pagesize;
- buf->free += pginfo.free * pagesize;;
- }
- break;
- case ' ':
- case '\t':
- break;
- default:
- device_name[pos++] = c;
- break;
- }
- }
-
- buf->used = buf->total - buf->free;
- fclose(fd);
-#ifdef HAVE_VMGETINFO
- result = vmgetinfo((void*)&vminfo, VMINFO, sizeof(vminfo));
-#else
- result = _glibtop_vmgetinfo((void*)&vminfo, VMINFO, sizeof(vminfo));
-#endif
- if (result == -1)
- {
- glibtop_error_io_r (server, "Cannot read vminfo");
- return;
- }
-
- buf->pagein = vminfo.pageins;
- buf->pageout = vminfo.pageouts;
-
- buf->flags = _glibtop_sysdeps_swap;
-}
diff --git a/sysdeps/aix/sysinfo.c b/sysdeps/aix/sysinfo.c
deleted file mode 100644
index 64eade9a..00000000
--- a/sysdeps/aix/sysinfo.c
+++ /dev/null
@@ -1,198 +0,0 @@
-/* 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.
-*/
-
-#include <sys/systemcfg.h>
-
-#include <config.h>
-#include <glibtop/sysinfo.h>
-
-static const unsigned long _glibtop_sysdeps_sysinfo =
-(1L << GLIBTOP_SYSINFO_CPUINFO);
-
-static glibtop_sysinfo sysinfo;
-
-static void add_info(glibtop_entry* entry, char* label, char* attribute)
-{
- char* key;
- char* value;
-
- key = g_strdup(label);
- value = g_strdup(attribute);
-
- g_ptr_array_add(entry->labels, key);
- g_hash_table_insert(entry->values, key, value);
-}
-
-static void init_sysinfo(void)
-{
- int cpu;
- char buf[64];
-
- memset (&sysinfo, 0, sizeof (glibtop_sysinfo));
-
- sysinfo.ncpu = MIN(_system_configuration.ncpus, GLIBTOP_NCPU);
-
- for (cpu = 0; cpu < sysinfo.ncpu ; cpu++)
- {
- /* init cpu data structure */
-
- sysinfo.cpuinfo[cpu].labels = g_ptr_array_new();
- sysinfo.cpuinfo[cpu].values = g_hash_table_new (NULL, NULL);
-
- /* add properties */
-
- switch(_system_configuration.architecture)
- {
- case POWER_RS:
- add_info( &sysinfo.cpuinfo[cpu]
- , "architecture"
- , "Power Classic");
- break;
- case POWER_PC:
- add_info( &sysinfo.cpuinfo[cpu]
- , "architecture"
- , "Power PC");
- break;
- case IA64:
- add_info( &sysinfo.cpuinfo[cpu]
- , "architecture"
- , "Intel IA64");
- break;
- default:
- add_info( &sysinfo.cpuinfo[cpu]
- , "architecture"
- , "Unknown");
- break;
- }
-
- if ( (_system_configuration.architecture == POWER_RS) ||
- (_system_configuration.architecture == POWER_PC) )
- {
- switch(_system_configuration.implementation)
- {
- case POWER_RS1:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "RS1");
- break;
- case POWER_RSC:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "RSC");
- break;
- case POWER_RS2:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "RS2");
- break;
- case POWER_601:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "601");
- break;
- case POWER_603:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "603");
- break;
- case POWER_604:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "604");
- break;
- case POWER_620:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "620");
- break;
- case POWER_630:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "630");
- break;
- case POWER_A35:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "A35");
- break;
- case POWER_RS64II:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "RS64II");
- break;
- case POWER_RS64III:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "RS64III");
- break;
- }
- }
- else if (_system_configuration.architecture == IA64)
- {
- switch(_system_configuration.implementation)
- {
- case IA64_M1:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "IA64 M1");
- break;
- case IA64_M2:
- add_info( &sysinfo.cpuinfo[cpu]
- , "implementation"
- , "IA64 M2");
- break;
- }
- }
-
- sprintf(buf,"%d", _system_configuration.width);
- add_info( &sysinfo.cpuinfo[cpu], "width", buf);
-
- if (_system_configuration.cache_attrib & 1 )
- {
- /* L1 cache is present */
-
- sprintf(buf,"%d", _system_configuration.icache_size);
- add_info( &sysinfo.cpuinfo[cpu], "L1 instruction cache size", buf);
-
- sprintf(buf,"%d", _system_configuration.dcache_size);
- add_info( &sysinfo.cpuinfo[cpu], "L1 data cache size", buf);
- }
-
- sprintf(buf,"%d", _system_configuration.L2_cache_size);
- add_info( &sysinfo.cpuinfo[cpu], "L2 cache size", buf);
- }
-
- sysinfo.flags = _glibtop_sysdeps_sysinfo;
-}
-
-const glibtop_sysinfo *
-glibtop_get_sysinfo_s (glibtop *server)
-{
- static int first_time = 1;
-
- if (first_time)
- {
- init_sysinfo();
- first_time = 0;
- }
-
- return &sysinfo;
-}
diff --git a/sysdeps/aix/uptime.c b/sysdeps/aix/uptime.c
deleted file mode 100644
index a73260a5..00000000
--- a/sysdeps/aix/uptime.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <sys/times.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/uptime.h>
-
-#include <glibtop/cpu.h>
-
-#include <glibtop_suid.h>
-
-#include <time.h>
-
-static const unsigned long _glibtop_sysdeps_uptime =
-(1L << GLIBTOP_UPTIME_UPTIME) + (1L << GLIBTOP_UPTIME_BOOT_TIME);
-
-
-/* Init function. */
-
-void
-_glibtop_init_uptime_s (glibtop *server)
-{
- server->sysdeps.uptime = _glibtop_sysdeps_uptime;
-}
-
-/* Provides uptime and idle time. */
-
-void
-glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf)
-{
- time_t uptime;
- struct tms tbuf;
-
- glibtop_init_s (&server, (1L << GLIBTOP_SYSDEPS_UPTIME), 0);
-
- memset (buf, 0, sizeof (glibtop_uptime));
-
- buf->uptime = (double)times(&tbuf) / (double)sysconf(_SC_CLK_TCK);
- buf->boot_time = (guint64) time(NULL) - (guint64) buf->uptime;
- buf->flags = _glibtop_sysdeps_uptime;
-}
-
diff --git a/sysdeps/aix/utils.c b/sysdeps/aix/utils.c
deleted file mode 100644
index cfcf5dca..00000000
--- a/sysdeps/aix/utils.c
+++ /dev/null
@@ -1,139 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <nlist.h>
-
-#include <procinfo.h>
-#include <sys/proc.h>
-#include <sys/vminfo.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include "glibtop_suid.h"
-#include "utils.h"
-
-#ifndef HAVE_VMGETINFO
-#include <dlfcn.h>
-typedef int (*vmgetinfo_proto)(void *out, int command, int arg);
-#endif
-
-off_t
-_glibtop_get_kmem_offset(glibtop* server, char* kname)
-{
- int result;
- struct nlist kernelnames[] =
- { {NULL, 0, 0, 0, 0, 0},
- {NULL, 0, 0, 0, 0, 0},
- };
-
- kernelnames[0]._n._n_name = kname;
-
- glibtop_suid_enter(server);
-
- result = knlist(kernelnames, 1, sizeof(struct nlist));
-
- glibtop_suid_leave(server);
-
- if (result == -1)
- {
- return -1;
- }
-
- return kernelnames[0].n_value;
-}
-
-int
-_glibtop_get_kmem_info(glibtop* server, off_t offset, void* buf, size_t len)
-{
- int result;
-
- glibtop_suid_enter(server);
-
- lseek(server->machine.kmem_fd, offset, SEEK_SET);
-
- result = read(server->machine.kmem_fd, buf, len);
-
- glibtop_suid_leave(server);
-
- return result;
-}
-
-struct procsinfo*
-_glibtop_get_procinfo (glibtop *server, pid_t pid)
-{
- int result;
- pid_t current;
- static int first_time = 1;
-
- /* test if procsinfo already found */
-
- if ((server->machine.last_pinfo.pi_pid == pid) && (!first_time))
- {
- return &server->machine.last_pinfo;
- }
-
- /* seek procsinfo if given pid */
-
- first_time = 0;
- current = 0;
- while ((result = getprocs( &server->machine.last_pinfo
- , sizeof(struct procsinfo)
- , NULL, 0, &current, 1)) == 1)
- {
-
- if (pid == server->machine.last_pinfo.pi_pid)
- {
- return &server->machine.last_pinfo;
- }
- }
- return NULL;
-}
-
-#ifndef HAVE_VMGETINFO
-int
-_glibtop_vmgetinfo (void *out, int command, int arg)
-{
- void* handle;
-
- static vmgetinfo_proto kern_vmgetinfo = NULL;
-
- if (kern_vmgetinfo == NULL)
- {
- handle = dlopen("/unix", RTLD_NOW | RTLD_GLOBAL);
- if (handle == NULL)
- {
- return -1;
- }
-
- kern_vmgetinfo = dlsym( handle, "vmgetinfo");
-
- dlclose(handle);
-
- if (kern_vmgetinfo == NULL)
- {
- return -1;
- }
- }
-
- return kern_vmgetinfo(out, command, arg);
-}
-#endif
diff --git a/sysdeps/aix/utils.h b/sysdeps/aix/utils.h
deleted file mode 100644
index 3ce339a4..00000000
--- a/sysdeps/aix/utils.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, March 1999.
-
- 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 __UTILS_H__
-#define __UTILS_H__
-
-G_BEGIN_DECLS
-
-extern off_t
-_glibtop_get_kmem_offset(glibtop* server, char* kname);
-
-extern int
-_glibtop_get_kmem_info(glibtop* server, off_t offset, void* buf, size_t len);
-
-extern struct procsinfo*
-_glibtop_get_procinfo (glibtop *server, pid_t pid);
-
-#ifndef HAVE_VMGETINFO
-extern int
-_glibtop_vmgetinfo (void *out, int command, int arg);
-#endif
-
-G_END_DECLS
-
-#endif /* __UTILS_H__ */
diff --git a/sysdeps/bsd/AUTHORS b/sysdeps/bsd/AUTHORS
deleted file mode 100644
index 9da8aceb..00000000
--- a/sysdeps/bsd/AUTHORS
+++ /dev/null
@@ -1,2 +0,0 @@
-Martin Baulig (martin@home-of-linux.org)
-Josh Sled (jsled@scam.XCF.Berkeley.EDU)
diff --git a/sysdeps/bsd/ChangeLog b/sysdeps/bsd/ChangeLog
deleted file mode 100644
index abac6dbe..00000000
--- a/sysdeps/bsd/ChangeLog
+++ /dev/null
@@ -1,485 +0,0 @@
-2007-05-08 Benoît Dejean <benoit@placenet.org>
-
- * fsusage.c: (_glibtop_bsd_get_fsusage_read_write):
- * netload.c: (glibtop_get_netload_p):
-
- Fixed build on OpenBSD.
- Patch by Jasper Lievisse Adriaanse <jasper@nedbsd.nl>.
-
-2007-02-18 Benoît Dejean <benoit@placenet.org>
-
- * AUTHORS:
- * Makefile.am:
- * NOTES:
- * close.c: (glibtop_close_p):
- * cpu.c: (glibtop_init_cpu_p), (glibtop_get_cpu_p):
- * fsusage.c: (_glibtop_bsd_get_fsusage_read_write):
- * glibtop_machine.h:
- * glibtop_server.h:
- * glibtop_suid.h:
- * init.c: (glibtop_init_r):
- * loadavg.c: (glibtop_init_loadavg_p), (glibtop_get_loadavg_p):
- * mem.c: (glibtop_init_mem_p), (glibtop_get_mem_p):
- * msg_limits.c: (glibtop_init_msg_limits_p),
- (glibtop_get_msg_limits_p):
- * netlist.c: (glibtop_init_netlist_s), (glibtop_get_netlist_s):
- * netload.c: (glibtop_init_netload_p), (glibtop_get_netload_p):
- * nosuid.c: (glibtop_open_s), (glibtop_close_s):
- * open.c: (glibtop_init_p), (glibtop_open_p):
- * ppp.c: (glibtop_init_ppp_p), (glibtop_get_ppp_p):
- * procargs.c: (glibtop_init_proc_args_p),
- (glibtop_get_proc_args_p):
- * procdata.c: (glibtop_get_procdata_s):
- * prockernel.c: (glibtop_init_proc_kernel_p),
- (glibtop_get_proc_kernel_p):
- * proclist.c: (glibtop_init_proclist_p), (glibtop_get_proclist_p):
- * procmap.c: (glibtop_init_proc_map_p), (glibtop_get_proc_map_p):
- * procmem.c: (glibtop_init_proc_mem_p), (glibtop_get_proc_mem_p):
- * procopenfiles.c: (glibtop_init_proc_open_files_s),
- (glibtop_get_proc_open_files_s):
- * procsegment.c: (glibtop_init_proc_segment_p),
- (glibtop_get_proc_segment_p):
- * procsignal.c: (glibtop_init_proc_signal_p),
- (glibtop_get_proc_signal_p):
- * procstate.c: (glibtop_init_proc_state_p),
- (glibtop_get_proc_state_p):
- * proctime.c: (glibtop_init_proc_time_p):
- * procuid.c: (glibtop_init_proc_uid_p), (glibtop_get_proc_uid_p):
- * sem_limits.c: (glibtop_init_sem_limits_p),
- (glibtop_get_sem_limits_p):
- * shm_limits.c: (glibtop_init_shm_limits_p),
- (glibtop_get_shm_limits_p):
- * siglist.c:
- * swap.c: (glibtop_init_swap_p), (glibtop_get_swap_p):
- * sysinfo.c: (init_sysinfo), (glibtop_get_sysinfo_s):
- * uptime.c: (glibtop_init_uptime_p), (glibtop_get_uptime_p):
-
- Huge (k)FreeBSD update.
- (k)FreeBSD support is freebsd/
- Other BSD are in bsd/
-
- Patch by Joe Marcus Clarke <marcus@freebsd.org>
- Alexander Nedotsukov <bland@FreeBSD.org>
-
- Closes #407693.
-
-2007-01-31 Benoît Dejean <benoit@placenet.org>
-
- * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write):
- * netload.c: (glibtop_get_netload_p):
- * prockernel.c: (glibtop_get_proc_kernel_p):
- * procmap.c: (glibtop_get_proc_map_p):
- * proctime.c:
- * siglist.c:
- * /libgtop-sysdeps.m4:
-
- Various FreeBSD and kFreeBSD updates.
- Patch by Roy Marples <uberlord@gentoo.org>.
- Reviewed by Petr Salinger <Petr.Salinger@seznam.cz>.
- Closes #387200.
-
-2006-11-27 Benoît Dejean <benoit@placenet.org>
-
- * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write):
- * mem.c: (glibtop_get_mem_p):
- * prockernel.c: (glibtop_get_proc_kernel_p):
- * proclist.c: (glibtop_get_proclist_p):
- * procmap.c: (glibtop_get_proc_map_p):
- * procmem.c: (glibtop_get_proc_mem_p):
- * procsignal.c: (glibtop_get_proc_signal_p):
- * procstate.c: (glibtop_get_proc_state_p):
- * proctime.c:
- * procuid.c: (glibtop_get_proc_uid_p):
- * swap.c: (glibtop_init_swap_p), (glibtop_get_swap_p):
-
- Added kfreebsd support.
- Patch by Petr Salinger <Petr.Salinger@seznam.cz>.
-
-2006-04-09 Benoît Dejean <benoit@placenet.org>
-
- * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write):
-
- Fixed typo.
-
-2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
-
- * sysdeps/freebsd/fsusage.c:
-
- Use statvfs(2) if available instead of statfs(2). The latter was
- replaced by the former and is no longer available under, e.g. NetBSD.
-
- Fixes bug #337235.
-
-2006-04-04 Benoît Dejean <benoit@placenet.org>
-
- * sysinfo.c: (init_sysinfo):
-
- Store only strings in values' values. g_strdup these strings.
- Even if values is never destroyed, set key_destroy_func to NULL.
-
- Leave description to NULL.
-
-2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
-
- * sysdeps/freebsd/Makefile.am:
- * sysdeps/freebsd/sysinfo.c:
-
- Bring back to life (from the 1.x versions) the sysinfo.c file for
- the freebsd sysdeps. The new file comes from the FreeBSD ports
- repository and has some minor style changes by me. This is required
- to get the glibtop_get_sysinfo_s function used by the sysdeps common
- code.
-
- Fixes bug #337251.
-
-2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
-
- * sysdeps/freebsd/proctime.c:
-
- Remove obsolete and non-functional code that breaks the build under
- NetBSD. It was guarded by a conditional but could not compile
- anyway because it referred to an undefined variable.
-
- Fixes bug #337234.
-
-2005-02-28 Benoît Dejean <TazForEver@dlfp.org>
-
- * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write): Forgot to add
- this file :)
-
-2005-02-28 Benoît Dejean <TazForEver@dlfp.org>
-
- * Makefile.am:
- * cpu.c: (glibtop_get_cpu_p):
- * netlist.c: (glibtop_get_netlist_s):
- * netload.c: (glibtop_get_netload_p):
- * procmem.c: (glibtop_get_proc_mem_p):
-
- Fix a bug in netlist where glibtop_netlist.number was never initialized to 0
- (this resulted in a NULL pointer dereference in the network load feature
- of the multiload applet)
-
- * Add support for getting interface flags and packet counts even on interfaces
- without IP addresses (needed for the network load feature of the multiload applet)
-
- * Restore per-process limits in the !FreeBSD or __FreeBSD_version < 500013
- case
-
- * Add CPU interrupt time as IOWAIT to get support for the cpu load feature of
- the multiload applet.
-
- Patch from marcus@freebsd.org (Joe Marcus Clarke).
- Closes #168704.
-
-2005-02-23 Benoît Dejean <TazForEver@dlfp.org>
-
- * Makefile.am:
- * netlist.c: (glibtop_get_netlist_s):
- * procmap.c: (glibtop_get_proc_map_p):
- * procmem.c: (glibtop_get_proc_mem_p):
- * procopenfiles.c: (glibtop_init_proc_open_files_s),
- (glibtop_get_proc_open_files_s):
- * proctime.c:
-
- Add support for FreeBSD 6-CURRENT.
- Use the more portable getrlimit to obtain process memory limits.
- Correctly determine process time.
- Stub out the procopenfiles() function (this is not yet implemented, however).
- Fix a nasty infinite loop and memory leak due to a forgot pointer increment.
-
- Patch from marcus@freebsd.org (Joe Marcus Clarke).
- Closes #168232.
-
-2004-12-05 Benoît Dejean <tazforever@dlfp.org>
-
- * Makefile.am:
- * netlist.c: (glibtop_init_netlist_s), (glibtop_get_netlist_s):
- Added glibtop_get_netlist. Patch from marcus@freebsd.org (Joe Marcus Clarke).
-
-2004-08-28 Benoît Dejean <tazforever@dlfp.org>
-
- * mem.c: (glibtop_get_mem_p):
- * ppp.c:
- * swap.c: (glibtop_init_swap_p), (glibtop_get_swap_p):
- * uptime.c: (glibtop_get_uptime_p): Merge a bunch of trivial OpenBSD
- patchs. To *BSD maintainers : please report bugs ! don't be selfish, share
- your patchs.
-
-2004-08-22 Benoît Dejean <tazforever@dlfp.org>
-
- * procstate.c:
- * uptime.c: (glibtop_get_uptime_p): Merged Marcus' patches.
-
-2004-07-15 Benoît Dejean <tazforever@dlfp.org>
-
- * procstate.c: (glibtop_get_proc_state_p): Fixed copy/paste error
- while setting buf->state.
-
-2004-06-07 Benoît Dejean <tazforever@dlfp.org>
-
- * netload.c: (glibtop_get_netload_p):
- * procstate.c: (glibtop_get_proc_state_p):
- * prockernel.c: (glibtop_get_proc_kernel_p): s/strncpy/g_strlcpy/.
-
- * procargs.c: (glibtop_get_proc_args_p):
- * procmap.c: (glibtop_get_proc_map_p): Cleaned.
-
-
-2004-05-26 Benoît Dejean <tazforever@dlfp.org>
-
- * procdata.c: (glibtop_get_procdata_s): Removed Linux related code.
-
-2004-04-07 Bastien Nocera <hadess@hadess.net>
-
- * prockernel.c: (glibtop_get_proc_kernel_p): patch for NetBSD/AMD64
- support (Julio M. Merino Vidal <jmmv@menta.net>)
-
-2004-03-09 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am:
- * cpu.c: (glibtop_init_cpu_p), (glibtop_get_cpu_p):
- * glibtop_machine.h:
- * mem.c:
- * netload.c: (glibtop_get_netload_p):
- * prockernel.c: (glibtop_get_proc_kernel_p):
- * proclist.c: (glibtop_get_proclist_p):
- * procmap.c: (glibtop_get_proc_map_p):
- * procmem.c: (glibtop_get_proc_mem_p):
- * procsignal.c: (glibtop_get_proc_signal_p):
- * procstate.c: (glibtop_get_proc_state_p):
- * proctime.c:
- * procuid.c: (glibtop_get_proc_uid_p):
- * uptime.c: (glibtop_get_uptime_p): implement NetBSD support, and
- some build problems on FreeBSD (Closes: #135674)
-
-2004-03-09 Bastien Nocera <hadess@hadess.net>
-
- * procargs.c: (glibtop_get_proc_args_p):
- * procmap.c: (glibtop_get_proc_map_p):
- * swap.c: (glibtop_get_swap_p): fix g_malloc usage on non-Linux
- platforms (patch by Benoît Dejean <bnet@ifrance.com>)
-
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * mem.c: (glibtop_get_mem_p):
- * prockernel.c: (glibtop_get_proc_kernel_p):
- * procmem.c: (glibtop_get_proc_mem_p):
- * proctime.c: (glibtop_get_proc_time_p): s/u_int64_t/guint64/
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * swap.c: (glibtop_get_swap_p): fix swap sizes in FreeBSD,
- patch by edwin@mavetju.org
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * glibtop_machine.h:
- * glibtop_server.h:
- * glibtop_suid.h:
- * open.c:
- * procargs.c:
- * proclist.c:
- * procmap.c:
- * swap.c: fixed compilation
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * procargs.c: (glibtop_get_proc_args_p):
- * proclist.c: (glibtop_get_proclist_p):
- * procmap.c: (glibtop_get_proc_map_p):
- * swap.c: (glibtop_get_swap_p): replace all the xmalloc crap by glib
- memory management functions
-
-2001-10-17 Abel Cheung <maddog@linux.org.hk>
-
- * Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
-
-2001-02-27 Martin Baulig <baulig@suse.de>
-
- * netload.c: Comment out the `subnet' field on BSDI; this should
- make it compile. Bug #13345.
-
- * shm_limits.c, msg_limits.c, sem_limits.c: Applied a patch
- from Rolf Grossmann (grossman@securitas.net) for FreeBSD 4.2.
- Fixes #51334.
-
-2001-02-14 Martin Baulig <baulig@suse.de>
-
- * proctime.c (glibtop_get_proc_time_p): Make things work on
- OpenBSD 2.6; this is basically the same than on NetBSD.
-
-2000-02-13 Martin Baulig <martin@home-of-linux.org>
-
- * *.c: kvm_nlist () returns -1 on error, but a positive return value
- does not necessarily mean failure. Fixes #3302 which was reported by
- Matthias Scheler some time ago.
-
-1999-10-16 Martin Baulig <martin@home-of-linux.org>
-
- Applied all patches from the FreeBSD 3.3 ports collection.
-
- * swap.c: Only #include <rlist.h> for __FreeBSD_version < 400005.
-
- * prockernel.c: Make it compile on FreeBSD / alpha.
-
- * procsignal.c: Some fixes for FreeBSD-current.
-
-1999-10-16 Martin Baulig <martin@home-of-linux.org>
-
- * procstate.c (glibtop_get_proc_state_p): Don't use the
- `GLIBTOP_PROCESS_*' constants for process states for
- LibGTop 1.0.x.
-
-1999-07-29 Martin Baulig <martin@home-of-linux.org>
-
- * proctime.c (glibtop_get_proc_time_p): Fix bug reported by
- Takis Psarogiannakopoulos: `start_time' are seconds since the
- epoch as it is stated in the manual.
-
-Tue Jun 15 16:04:10 1999 Timur Bakeyev <mc@bat.ru>
-
- * procuid.c: A fix to a ommitted case, when nor NetBSD, nor
- LibGTop >= 1.1.0. This should be investigated closely to cover
- more cases....
-
-1999-05-26 Martin Baulig <martin@home-of-linux.org>
-
- More NetBSD 1.4 fixes.
-
- * mem.c, procmap.c, procmem.c: Make this work with the new UVM code.
-
- [FIXME: This following most likely works on all BSD systems, but
- this needs to be tested; I made it conditional to NetBSD 1.4 at
- the moment. Please extend the conditionals to any other systems
- where this works ...]
-
- * procstate.c: Added `ruid' and `rgid' for LibGTop >= 1.1.0.
- * procuid.c: Added `ngroups' and `groups' for LibGTop >= 1.1.0.
-
-1999-05-25 Martin Baulig <martin@home-of-linux.org>
-
- * ppp.c: Make this work on NetBSD.
-
-Thu Apr 8 23:47:29 1999 Timur Bakeyev <timur@gnu.org>
-
- * cpu.c, mem.c, netload.c, procargs.c, procstate.c, proctime.c,
- sem_limits.c, shm_limits.c, swap.c: Added initial port for BSD/OS
- (aka BSDI) 2.x and 3.x. 4.x should also(?) work.
-
- Still, this port require more close look and extended check.
-
-1999-03-19 Martin Baulig <martin@home-of-linux.org>
-
- Added basic support for BSDI. It compiles without problems on
- BSDI 2.1 and 3.1, but it is *untested* - I'm neither root on
- the machine nor have I access to /dev/kmem, so I don't know
- whether it will work.
-
- You need to give configure the `--enable-hacker-mode' parameter
- to use the code.
-
- If someone can verify whether it actually works, please let me
- know.
-
-1999-03-18 Martin Baulig <martin@home-of-linux.org>
-
- * ppp.c: Don't use `sppp.pp_phase' if we don't HAVE_I4B_ACCT.
- This is an ugly hack until someone tells me which versions have
- this field and which not.
-
-1999-02-25 Martin Baulig <martin@home-of-linux.org>
-
- * prockernel.c, proctime.c: Applied patch Stanislav Grozev for
- OpenBSD: only include <osreldate.h> for FreeBSD.
-
-1999-02-24 Martin Baulig <martin@home-of-linux.org>
-
- * swap.c: Applied another patch from Jeremy Lea to
- make it work with FreeBSD-current.
-
-1999-02-21 Martin Baulig <martin@home-of-linux.org>
-
- * procmap.c, procmem.c: Applied patch from Jeremy Lea.
-
- * prockernel.c, proctime.c: Applied patch from the FreeBSD 2.2.8
- ports collection.
-
- * procsignal.c: Applied patch from the NetBSD-current ports
- collection.
-
-1998-12-06 Martin Baulig <martin@home-of-linux.org>
-
- * Make it work with OpenBSD 2.4.
-
-1998-12-05 Martin Baulig <martin@home-of-linux.org>
-
- * Make it work with NetBSD 1.3.2.
-
-1998-11-17 Martin Baulig <martin@home-of-linux.org>
-
- * Make it work with FreeBSD 3.0.
-
-1998-11-11 Martin Baulig <martin@home-of-linux.org>
-
- * *.c: It does not work to get information about the swapper task
- on FreeBSD 2.2.6, so we simple return if pid == 0.
-
-1998-10-31 Martin Baulig <martin@home-of-linux.org>
-
- * *.c: Use glibtop_warn_io_r () instead of glibtop_error_io_r ().
-
- * proctime.c, prockernel.c, procargs.c: Don't call kvm_uread () if
- the /proc filesystem is not mounted.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * netload.c: New file to get network load.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * procargs.c: New file to get command line arguments.
-
-1998-10-25 Martin Baulig <martin@home-of-linux.org>
-
- * ppp.c: New file to get PPP/ISDN statistics. Currently this only
- get ISDN statistics if you have the I4B package.
-
- To get the number of bytes transferred in/out you need to read the
- file `misc/i4b_acct.txt' in the LibGTop source directory to see
- how to enable this.
-
-1998-10-03 Martin Baulig <martin@home-of-linux.org>
-
- * procstate.c (glibtop_get_procstate_s): Use correct values for
- the `state' field.
-
- * proclist.c (glibtop_get_proclist_p): Honor the GLIBTOP_EXCLUDE_IDLE
- and GLIBTOP_EXCLUDE_SYSTEM flags of the `which' parameter.
-
-1998-08-24 Martin Baulig <martin@home-of-linux.org>
-
- * *.c (glibtop_init_p): Using correct `(1 << GLIBTOP_SYSDPES_*)'.
- * cpu.c, mem.c: Removed `const' from sysctl () constants to keep
- compiler happy.
-
- * procmem.c: Added missing call to `glibtop_init_p'.
-
- * prockernel.c: Casting `nwchan' to `unsigned long' since this
- normally has the same size than a pointer. Well, is there a
- FreeBSD for 64bit architectures ?
-
-1998-08-08 Martin Baulig <martin@home-of-linux.org>
-
- * swap.c: Added swap usage based upton the source code
- of `pinfo'.
-
-1998-08-07 Martin Baulig <martin@home-of-linux.org>
-
- * *: Imported FreeBSD port of libgtop from Josh Sled.
-
- * ChangeLog: New file.
diff --git a/sysdeps/bsd/Makefile.am b/sysdeps/bsd/Makefile.am
deleted file mode 100644
index 9ec00a3c..00000000
--- a/sysdeps/bsd/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-
-INCLUDES = @INCLUDES@
-
-noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
-
-libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c sysinfo.c
-
-libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
-libgtop_sysdeps_suid_2_0_la_LIBADD = $(KVM_LIBS)
-libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
- uptime.c loadavg.c shm_limits.c msg_limits.c \
- sem_limits.c proclist.c procstate.c procuid.c \
- proctime.c procmem.c procsignal.c prockernel.c \
- procsegment.c procargs.c procmap.c netlist.c \
- netload.c ppp.c procopenfiles.c fsusage.c
-
-libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
-libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h \
- glibtop_suid.h
-
-libgtopincludedir = $(includedir)/libgtop-2.0
diff --git a/sysdeps/bsd/NOTES b/sysdeps/bsd/NOTES
deleted file mode 100644
index 82bbbc4b..00000000
--- a/sysdeps/bsd/NOTES
+++ /dev/null
@@ -1,10 +0,0 @@
-sysctl (3)
-/usr/include/sys/vmmeter.h : VM stats
-kvm (3)
-
-CPU stats: /usr/include/sys/dkstat.h
-cp_time_offset = kvm_nlist(...)["_cp_time"].n_value;
-
-"systemwide main memory usage structure"
-sysctl(...)
-
diff --git a/sysdeps/bsd/close.c b/sysdeps/bsd/close.c
deleted file mode 100644
index a8ea4d57..00000000
--- a/sysdeps/bsd/close.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/close.h>
-
-/* Closes pipe to gtop server. */
-
-void
-glibtop_close_p (glibtop *server)
-{ }
diff --git a/sysdeps/bsd/cpu.c b/sysdeps/bsd/cpu.c
deleted file mode 100644
index 8a7f2f78..00000000
--- a/sysdeps/bsd/cpu.c
+++ /dev/null
@@ -1,142 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/cpu.h>
-
-#include <glibtop_suid.h>
-
-#ifdef __NetBSD__
-#include <sys/sched.h>
-#endif
-
-static const unsigned long _glibtop_sysdeps_cpu =
-(1L << GLIBTOP_CPU_TOTAL) + (1L << GLIBTOP_CPU_USER) +
-(1L << GLIBTOP_CPU_NICE) + (1L << GLIBTOP_CPU_SYS) +
-(1L << GLIBTOP_CPU_IDLE) + (1L << GLIBTOP_CPU_FREQUENCY) +
-(1L << GLIBTOP_CPU_IOWAIT);
-
-#ifndef KERN_CP_TIME
-/* nlist structure for kernel access */
-static struct nlist nlst [] = {
-#ifdef __bsdi__
- { "_cpustats" },
-#else
- { "_cp_time" },
-#endif
- { 0 }
-};
-#endif
-
-/* MIB array for sysctl */
-static int mib_length=2;
-static int mib [] = { CTL_KERN, KERN_CLOCKRATE };
-#ifdef KERN_CP_TIME
-static int mib2 [] = { CTL_KERN, KERN_CP_TIME };
-#endif
-
-/* Init function. */
-
-void
-_glibtop_init_cpu_p (glibtop *server)
-{
-#ifndef KERN_CP_TIME
- if (kvm_nlist (server->machine.kd, nlst) < 0) {
- glibtop_warn_io_r (server, "kvm_nlist (cpu)");
- return;
- }
-#endif
-
- /* Set this only if kvm_nlist () succeeded. */
- server->sysdeps.cpu = _glibtop_sysdeps_cpu;
-}
-
-/* Provides information about cpu usage. */
-
-void
-glibtop_get_cpu_p (glibtop *server, glibtop_cpu *buf)
-{
-#ifdef KERN_CP_TIME
- guint64 cpts [CPUSTATES];
-#else
- long cpts [CPUSTATES];
-#endif
- /* sysctl vars*/
- struct clockinfo ci;
- size_t length;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_CPU), 0);
-
- memset (buf, 0, sizeof (glibtop_cpu));
-
- /* If this fails, the nlist may not be valid. */
- if (server->sysdeps.cpu == 0)
- return;
-
-#ifdef KERN_CP_TIME
- length = sizeof (cpts);
- if (sysctl (mib2, mib_length, cpts, &length, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl");
- return;
- }
-#else
- if (kvm_read (server->machine.kd, nlst [0].n_value,
- &cpts, sizeof (cpts)) != sizeof (cpts)) {
- glibtop_warn_io_r (server, "kvm_read (cp_time)");
- return;
- }
-#endif
-
- /* Get the clockrate data */
- length = sizeof (struct clockinfo);
- if (sysctl (mib, mib_length, &ci, &length, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl");
- return;
- }
-
- /* set user time */
- buf->user = cpts [CP_USER];
- /* set nice time */
- buf->nice = cpts [CP_NICE];
- /* set sys time */
- buf->sys = cpts [CP_SYS];
- /* set idle time */
- buf->idle = cpts [CP_IDLE];
- /* set iowait (really just interrupt) time */
- buf->iowait = cpts [CP_INTR];
-
- /* set frequency */
- /*
- FIXME -- is hz, tick, profhz or stathz wanted?
- buf->frequency = sysctl("kern.clockrate", ...);
-
- struct clockinfo
- */
- buf->frequency = ci.hz;
- /* set total */
- buf->total = cpts [CP_USER] + cpts [CP_NICE]
- + cpts [CP_SYS] + cpts [CP_IDLE];
-
- /* Set the flags last. */
- buf->flags = _glibtop_sysdeps_cpu;
-}
diff --git a/sysdeps/bsd/fsusage.c b/sysdeps/bsd/fsusage.c
deleted file mode 100644
index 78f6b432..00000000
--- a/sysdeps/bsd/fsusage.c
+++ /dev/null
@@ -1,61 +0,0 @@
-#include <config.h>
-
-/* Although FreeBSD ships with statvfs it seems incomplete, so prefer statfs */
-#if defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
-#undef HAVE_SYS_STATVFS_H
-#undef STAT_STATVFS
-#endif
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/fsusage.h>
-
-#include <glibtop_suid.h>
-
-#include <glib.h>
-
-#include <unistd.h>
-#include <sys/param.h>
-#if defined (HAVE_SYS_STATVFS_H)
-#include <sys/statvfs.h>
-#else
-#include <sys/mount.h>
-#endif
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
-void
-_glibtop_bsd_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path);
-
-void
-_glibtop_bsd_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path)
-{
- int result;
-#if defined (STAT_STATVFS)
- struct statvfs sfs;
-#else
- struct statfs sfs;
-#endif
-
-#if defined (STAT_STATVFS)
- result = statvfs (path, &sfs);
-#else
- result = statfs (path, &sfs);
-#endif
-
- if (result == -1) {
- return;
- }
-
-#if !defined(__OpenBSD__)
- buf->read = sfs.f_syncreads + sfs.f_asyncreads;
-#endif
- buf->write = sfs.f_syncwrites + sfs.f_asyncwrites;
- buf->flags |= (1 << GLIBTOP_FSUSAGE_READ) | (1 << GLIBTOP_FSUSAGE_WRITE);
-}
diff --git a/sysdeps/bsd/glibtop_machine.h b/sysdeps/bsd/glibtop_machine.h
deleted file mode 100644
index 223f3d32..00000000
--- a/sysdeps/bsd/glibtop_machine.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/* 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_MACHINE_H__
-#define __GLIBTOP_MACHINE_H__
-
-#include <sys/param.h>
-#include <nlist.h>
-#include <kvm.h>
-#include <sys/dkstat.h>
-#include <time.h>
-#include <sys/user.h>
-#include <sys/types.h>
-#include <sys/sysctl.h>
-
-#include <fcntl.h>
-
-#ifdef __FreeBSD__
-#include <osreldate.h>
-#endif
-
-#ifdef __NetBSD__
-#include <sys/proc.h>
-
-#ifndef SRUN
-#define SRUN SACTIVE
-#endif
-#endif
-
-G_BEGIN_DECLS
-
-typedef struct _glibtop_machine glibtop_machine;
-
-struct _glibtop_machine
-{
- uid_t uid, euid;
- gid_t gid, egid;
-
- /* The kernel descriptor, used by kvm_* calls. We keep and re-use
- * it rather than re-getting it for almost all function
- * invocations. */
- kvm_t *kd;
-};
-
-G_END_DECLS
-
-#endif /* __GLIBTOP_MACHINE_H__ */
diff --git a/sysdeps/bsd/glibtop_server.h b/sysdeps/bsd/glibtop_server.h
deleted file mode 100644
index 8a7a5028..00000000
--- a/sysdeps/bsd/glibtop_server.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* 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_SERVER_H__
-#define __GLIBTOP_SERVER_H__
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU)
-#define GLIBTOP_SUID_MEM (1 << GLIBTOP_SYSDEPS_MEM)
-#define GLIBTOP_SUID_SWAP (1 << GLIBTOP_SYSDEPS_SWAP)
-#define GLIBTOP_SUID_UPTIME (1 << GLIBTOP_SYSDEPS_UPTIME)
-#define GLIBTOP_SUID_LOADAVG (1 << GLIBTOP_SYSDEPS_LOADAVG)
-#define GLIBTOP_SUID_SHM_LIMITS (1 << GLIBTOP_SYSDEPS_SHM_LIMITS)
-#define GLIBTOP_SUID_MSG_LIMITS (1 << GLIBTOP_SYSDEPS_MSG_LIMITS)
-#define GLIBTOP_SUID_SEM_LIMITS (1 << GLIBTOP_SYSDEPS_SEM_LIMITS)
-#define GLIBTOP_SUID_PROCLIST (1 << GLIBTOP_SYSDEPS_PROCLIST)
-#define GLIBTOP_SUID_PROC_STATE (1 << GLIBTOP_SYSDEPS_PROC_STATE)
-#define GLIBTOP_SUID_PROC_UID (1 << GLIBTOP_SYSDEPS_PROC_UID)
-#define GLIBTOP_SUID_PROC_MEM (1 << GLIBTOP_SYSDEPS_PROC_MEM)
-#define GLIBTOP_SUID_PROC_TIME (1 << GLIBTOP_SYSDEPS_PROC_TIME)
-#define GLIBTOP_SUID_PROC_SIGNAL (1 << GLIBTOP_SYSDEPS_PROC_SIGNAL)
-#define GLIBTOP_SUID_PROC_KERNEL (1 << GLIBTOP_SYSDEPS_PROC_KERNEL)
-#define GLIBTOP_SUID_PROC_SEGMENT (1 << GLIBTOP_SYSDEPS_PROC_SEGMENT)
-#define GLIBTOP_SUID_PROC_ARGS (1 << GLIBTOP_SYSDEPS_PROC_ARGS)
-#define GLIBTOP_SUID_PROC_MAP (1 << GLIBTOP_SYSDEPS_PROC_MAP)
-#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
-#define GLIBTOP_SUID_NETLIST 0
-#define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP)
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/bsd/glibtop_suid.h b/sysdeps/bsd/glibtop_suid.h
deleted file mode 100644
index 01a38b91..00000000
--- a/sysdeps/bsd/glibtop_suid.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* 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_SUID_H__
-#define __GLIBTOP_SUID_H__
-
-G_BEGIN_DECLS
-
-#if _IN_LIBGTOP
-#include <sys/param.h>
-#endif
-
-#define KI_PROC(ki) (&(ki))->kp_proc)
-#define KI_EPROC(ki) (&(ki))->kp_eproc)
-
-#define FORCEUREAD 1
-#define UREADOK(ki) (FORCEUREAD || (KI_PROC(ki)->p_flag & P_INMEM))
-
-static inline void glibtop_suid_enter (glibtop *server) {
- setregid (server->machine.gid, server->machine.egid);
-};
-
-static inline void glibtop_suid_leave (glibtop *server) {
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-};
-
-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);
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/bsd/init.c b/sysdeps/bsd/init.c
deleted file mode 100644
index 87cdca1a..00000000
--- a/sysdeps/bsd/init.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-
-static glibtop _glibtop_global_server;
-glibtop *glibtop_global_server = NULL;
-
-glibtop *
-glibtop_init_r (glibtop **server,
- const unsigned long features,
- const unsigned flags)
-{
- if (*server != NULL)
- return *server;
-
- if (glibtop_global_server == NULL) {
- glibtop_global_server = &_glibtop_global_server;
- glibtop_open (glibtop_global_server, "glibtop",
- features, flags);
- }
-
- return *server = glibtop_global_server;
-}
diff --git a/sysdeps/bsd/loadavg.c b/sysdeps/bsd/loadavg.c
deleted file mode 100644
index 6bee9344..00000000
--- a/sysdeps/bsd/loadavg.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/loadavg.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_loadavg =
-(1L << GLIBTOP_LOADAVG_LOADAVG);
-
-/* Init function. */
-
-void
-_glibtop_init_loadavg_p (glibtop *server)
-{
- server->sysdeps.loadavg = _glibtop_sysdeps_loadavg;
-}
-
-/* Provides load averange. */
-
-void
-glibtop_get_loadavg_p (glibtop *server, glibtop_loadavg *buf)
-{
- double ldavg[3];
- int i;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_LOADAVG), 0);
-
- memset (buf, 0, sizeof (glibtop_loadavg));
-
- getloadavg (ldavg, 3);
-
- /* fill in the struct */
- buf->flags = _glibtop_sysdeps_loadavg;
- for (i = 0; i < 3; i++) {
- buf->loadavg [i] = ldavg [i];
- } /* end for */
-}
diff --git a/sysdeps/bsd/mem.c b/sysdeps/bsd/mem.c
deleted file mode 100644
index 3043c407..00000000
--- a/sysdeps/bsd/mem.c
+++ /dev/null
@@ -1,222 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/mem.h>
-
-#include <glibtop_suid.h>
-
-#include <sys/sysctl.h>
-#include <sys/vmmeter.h>
-#if defined(__NetBSD__) && (__NetBSD_Version__ < 105020000)
-#include <vm/vm_param.h>
-#endif
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
-#include <uvm/uvm_extern.h>
-#endif
-
-static const unsigned long _glibtop_sysdeps_mem =
-(1L << GLIBTOP_MEM_TOTAL) + (1L << GLIBTOP_MEM_USED) +
-(1L << GLIBTOP_MEM_FREE) +
-(1L << GLIBTOP_MEM_SHARED) +
-(1L << GLIBTOP_MEM_BUFFER) +
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-(1L << GLIBTOP_MEM_CACHED) +
-#endif
-(1L << GLIBTOP_MEM_USER) + (1L << GLIBTOP_MEM_LOCKED);
-
-#ifndef LOG1024
-#define LOG1024 10
-#endif
-
-/* these are for getting the memory statistics */
-static int pageshift; /* log base 2 of the pagesize */
-
-/* define pagetok in terms of pageshift */
-#define pagetok(size) ((size) << pageshift)
-
-/* nlist structure for kernel access */
-static struct nlist nlst [] = {
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
- { "_bufpages" },
- { 0 }
-#else
-#if defined(__bsdi__)
- { "_bufcachemem" },
-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
- { "_bufspace" },
-#else
- { "_bufpages" },
-#endif
- { "_cnt" },
- { 0 }
-#endif
-};
-
-/* MIB array for sysctl */
-#ifdef __bsdi__
-static int mib [] = { CTL_VM, VM_TOTAL };
-#else
-static int mib [] = { CTL_VM, VM_METER };
-#endif
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
-static int mib_uvmexp [] = { CTL_VM, VM_UVMEXP };
-#endif
-
-/* Init function. */
-
-void
-_glibtop_init_mem_p (glibtop *server)
-{
- register int pagesize;
-
- if (kvm_nlist (server->machine.kd, nlst) < 0) {
- glibtop_warn_io_r (server, "kvm_nlist (mem)");
- return;
- }
-
- /* get the page size with "getpagesize" and calculate pageshift
- * from it */
- pagesize = getpagesize ();
- pageshift = 0;
- while (pagesize > 1) {
- pageshift++;
- pagesize >>= 1;
- }
-
- /* we only need the amount of log(2)1024 for our conversion */
- pageshift -= LOG1024;
-
- server->sysdeps.mem = _glibtop_sysdeps_mem;
-}
-
-void
-glibtop_get_mem_p (glibtop *server, glibtop_mem *buf)
-{
- struct vmtotal vmt;
- size_t length_vmt;
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
- struct uvmexp uvmexp;
- size_t length_uvmexp;
-#else
- struct vmmeter vmm;
-#endif
- u_int v_used_count;
- u_int v_total_count;
- u_int v_free_count;
- int bufspace;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_MEM), 0);
-
- memset (buf, 0, sizeof (glibtop_mem));
-
- if (server->sysdeps.mem == 0)
- return;
-
- /* [FIXME: On FreeBSD 2.2.6, sysctl () returns an incorrect
- * value for `vmt.vm'. We use some code from Unix top
- * here.] */
-
- /* Get the data from sysctl */
- length_vmt = sizeof (vmt);
- if (sysctl (mib, 2, &vmt, &length_vmt, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (vmt)");
- return;
- }
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
- length_uvmexp = sizeof (uvmexp);
- if (sysctl (mib_uvmexp, 2, &uvmexp, &length_uvmexp, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (uvmexp)");
- return;
- }
-#else
- /* Get the data from kvm_* */
- if (kvm_read (server->machine.kd, nlst[1].n_value,
- &vmm, sizeof (vmm)) != sizeof (vmm)) {
- glibtop_warn_io_r (server, "kvm_read (cnt)");
- return;
- }
-#endif
-
- if (kvm_read (server->machine.kd, nlst[0].n_value,
- &bufspace, sizeof (bufspace)) != sizeof (bufspace)) {
- glibtop_warn_io_r (server, "kvm_read (bufspace)");
- return;
- }
-
- /* convert memory stats to Kbytes */
-
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
- v_total_count = vmm.v_page_count;
-#else
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
- v_total_count = uvmexp.reserve_kernel +
- uvmexp.reserve_pagedaemon +
- uvmexp.free + uvmexp.wired + uvmexp.active +
- uvmexp.inactive;
-#else
- v_total_count = vmm.v_kernel_pages +
- vmm.v_free_count + vmm.v_wire_count +
- vmm.v_active_count + vmm.v_inactive_count;
-#endif
-#endif
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
- v_used_count = uvmexp.active + uvmexp.inactive;
- v_free_count = uvmexp.free;
-#else
- v_used_count = vmm.v_active_count + vmm.v_inactive_count;
- v_free_count = vmm.v_free_count;
-#endif
-
- buf->total = (guint64) pagetok (v_total_count) << LOG1024;
- buf->used = (guint64) pagetok (v_used_count) << LOG1024;
- buf->free = (guint64) pagetok (v_free_count) << LOG1024;
-
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
- buf->cached = (guint64) pagetok (vmm.v_cache_count) << LOG1024;
-#endif
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
- buf->locked = (guint64) pagetok (uvmexp.wired) << LOG1024;
-#else
- buf->locked = (guint64) pagetok (vmm.v_wire_count) << LOG1024;
-#endif
-
- buf->shared = (guint64) pagetok (vmt.t_rmshr) << LOG1024;
-
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
- buf->buffer = (guint64) bufspace;
-#else
- buf->buffer = (guint64) pagetok (bufspace) << LOG1024;
-#endif
-
- /* user */
- buf->user = buf->total - buf->free - buf->shared - buf->buffer;
-
- /* Set the values to return */
- buf->flags = _glibtop_sysdeps_mem;
-}
diff --git a/sysdeps/bsd/msg_limits.c b/sysdeps/bsd/msg_limits.c
deleted file mode 100644
index 8999f7ba..00000000
--- a/sysdeps/bsd/msg_limits.c
+++ /dev/null
@@ -1,114 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, August 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/msg_limits.h>
-
-#include <glibtop_suid.h>
-
-#if (defined __bsdi__) && (_BSDI_VERSION < 199700)
-/* Older versions of BSDI don't seem to have this. */
-
-void
-_glibtop_init_msg_limits_p (glibtop *server)
-{ }
-
-void
-glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf)
-{
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_MSG_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_msg_limits));
-}
-
-#else
-
-/* Define the appropriate macro (if any) to get declaration of `struct
- * msginfo'. Needed on, at least, FreeBSD. */
-#if defined (STRUCT_MSGINFO_NEEDS_KERNEL)
-#define KERNEL 1
-#elif defined (STRUCT_MSGINFO_NEEDS__KERNEL)
-#define _KERNEL 1
-#endif
-
-#include <sys/ipc.h>
-#include <sys/msg.h>
-
-static const unsigned long _glibtop_sysdeps_msg_limits =
-(1L << GLIBTOP_IPC_MSGMAX) + (1L << GLIBTOP_IPC_MSGMNI) +
-(1L << GLIBTOP_IPC_MSGMNB) + (1L << GLIBTOP_IPC_MSGTQL) +
-(1L << GLIBTOP_IPC_MSGSSZ);
-
-/* The values in this structure never change at runtime, so we only
- * read it once during initialization. We have to use the name `_msginfo'
- * since `msginfo' is already declared external in <sys/msg.h>. */
-static struct msginfo _msginfo;
-
-/* nlist structure for kernel access */
-static struct nlist nlst [] = {
- { "_msginfo" },
- { 0 }
-};
-
-/* Init function. */
-
-void
-_glibtop_init_msg_limits_p (glibtop *server)
-{
- if (kvm_nlist (server->machine.kd, nlst) < 0) {
- glibtop_warn_io_r (server, "kvm_nlist (msg_limits)");
- return;
- }
-
- if (kvm_read (server->machine.kd, nlst [0].n_value,
- &_msginfo, sizeof (_msginfo)) != sizeof (_msginfo)) {
- glibtop_warn_io_r (server, "kvm_read (msginfo)");
- return;
- }
-
- server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf)
-{
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_MSG_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_msg_limits));
-
- if (server->sysdeps.msg_limits == 0)
- return;
-
- buf->msgmax = _msginfo.msgmax;
- buf->msgmni = _msginfo.msgmni;
- buf->msgmnb = _msginfo.msgmnb;
- buf->msgtql = _msginfo.msgtql;
- buf->msgssz = _msginfo.msgtql;
-
- buf->flags = _glibtop_sysdeps_msg_limits;
-}
-
-#endif /* either a newer BSDI or no BSDI at all. */
-
diff --git a/sysdeps/bsd/netlist.c b/sysdeps/bsd/netlist.c
deleted file mode 100644
index ab329803..00000000
--- a/sysdeps/bsd/netlist.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- This file is part of LibGTop 2.0.
-
- 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.
-*/
-
-#include <config.h>
-#include <glibtop/netlist.h>
-#include <glibtop/error.h>
-
-#include <net/if.h>
-
-
-static const unsigned long _glibtop_sysdeps_netlist = (1 << GLIBTOP_NETLIST_NUMBER);
-
-/* Init function. */
-
-void
-_glibtop_init_netlist_s (glibtop *server)
-{
- server->sysdeps.netlist = _glibtop_sysdeps_netlist;
-}
-
-
-char**
-glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf)
-{
- struct if_nameindex *ifstart, *ifs;
- GPtrArray *devices;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_NETLIST, 0);
-
- memset (buf, 0, sizeof (glibtop_netlist));
-
- ifs = ifstart = if_nameindex();
-
- devices = g_ptr_array_new();
-
- while(ifs && ifs->if_name) {
- g_ptr_array_add(devices, g_strdup(ifs->if_name));
- buf->number++;
- ifs++;
- }
-
- if_freenameindex(ifstart);
-
- buf->flags = _glibtop_sysdeps_netlist;
-
- g_ptr_array_add(devices, NULL);
-
- return (char **) g_ptr_array_free(devices, FALSE);
-}
-
diff --git a/sysdeps/bsd/netload.c b/sysdeps/bsd/netload.c
deleted file mode 100644
index a16bdd0b..00000000
--- a/sysdeps/bsd/netload.c
+++ /dev/null
@@ -1,244 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/netload.h>
-
-#include <glibtop_suid.h>
-
-#include <string.h>
-
-#include <net/if.h>
-#include <net/if_dl.h>
-#include <net/if_types.h>
-
-#ifdef HAVE_NET_IF_VAR_H
-#include <net/if_var.h>
-#endif
-
-#include <netinet/in.h>
-#include <netinet/in_var.h>
-
-static const unsigned long _glibtop_sysdeps_netload =
-(1L << GLIBTOP_NETLOAD_IF_FLAGS) +
-(1L << GLIBTOP_NETLOAD_PACKETS_IN) +
-(1L << GLIBTOP_NETLOAD_PACKETS_OUT) +
-(1L << GLIBTOP_NETLOAD_PACKETS_TOTAL) +
-(1L << GLIBTOP_NETLOAD_BYTES_IN) +
-(1L << GLIBTOP_NETLOAD_BYTES_OUT) +
-(1L << GLIBTOP_NETLOAD_BYTES_TOTAL) +
-(1L << GLIBTOP_NETLOAD_ERRORS_IN) +
-(1L << GLIBTOP_NETLOAD_ERRORS_OUT) +
-(1L << GLIBTOP_NETLOAD_ERRORS_TOTAL) +
-(1L << GLIBTOP_NETLOAD_COLLISIONS);
-
-static const unsigned _glibtop_sysdeps_netload_data =
-(1L << GLIBTOP_NETLOAD_ADDRESS) +
-#if !defined(__bsdi__)
-(1L << GLIBTOP_NETLOAD_SUBNET) +
-#endif
-(1L << GLIBTOP_NETLOAD_MTU);
-
-/* nlist structure for kernel access */
-static struct nlist nlst [] = {
- { "_ifnet" },
- { 0 }
-};
-
-/* Init function. */
-
-void
-_glibtop_init_netload_p (glibtop *server)
-{
- server->sysdeps.netload = _glibtop_sysdeps_netload;
-
- if (kvm_nlist (server->machine.kd, nlst) < 0)
- glibtop_error_io_r (server, "kvm_nlist");
-}
-
-/* Provides Network statistics. */
-
-void
-glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
- const char *interface)
-{
- struct ifnet ifnet;
- u_long ifnetaddr, ifnetfound;
- struct sockaddr *sa = NULL;
-#if (defined(__FreeBSD__) && (__FreeBSD_version < 501113)) || defined(__bsdi__)
- char tname [16];
-#endif
- char name [32];
-
- union {
- struct ifaddr ifa;
- struct in_ifaddr in;
- } ifaddr;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_NETLOAD), 0);
-
- memset (buf, 0, sizeof (glibtop_netload));
-
- if (kvm_read (server->machine.kd, nlst [0].n_value,
- &ifnetaddr, sizeof (ifnetaddr)) != sizeof (ifnetaddr))
- glibtop_error_io_r (server, "kvm_read (ifnet)");
-
- while (ifnetaddr) {
- struct sockaddr_in *sin;
- register char *cp;
- u_long ifaddraddr;
-
- {
- ifnetfound = ifnetaddr;
-
- if (kvm_read (server->machine.kd, ifnetaddr, &ifnet,
- sizeof (ifnet)) != sizeof (ifnet))
- glibtop_error_io_r (server, "kvm_read (ifnetaddr)");
-
-#if (defined(__FreeBSD__) && (__FreeBSD_version < 501113)) || defined(__bsdi__)
- if (kvm_read (server->machine.kd, (u_long) ifnet.if_name,
- tname, 16) != 16)
- glibtop_error_io_r (server, "kvm_read (if_name)");
- tname[15] = '\0';
- snprintf (name, 32, "%s%d", tname, ifnet.if_unit);
-#else
- g_strlcpy (name, ifnet.if_xname, sizeof(name));
-#endif
-#if defined(__FreeBSD__) && (__FreeBSD_version >= 300000)
- ifnetaddr = (u_long) ifnet.if_link.tqe_next;
-#elif defined(__FreeBSD__) || defined(__bsdi__)
- ifnetaddr = (u_long) ifnet.if_next;
-#else
- ifnetaddr = (u_long) ifnet.if_list.tqe_next;
-#endif
-
- if (strcmp (name, interface) != 0)
- continue;
-
-#if defined(__FreeBSD__) && (__FreeBSD_version >= 300000)
- ifaddraddr = (u_long) ifnet.if_addrhead.tqh_first;
-#elif defined(__FreeBSD__) || defined(__bsdi__)
- ifaddraddr = (u_long) ifnet.if_addrlist;
-#else
- ifaddraddr = (u_long) ifnet.if_addrlist.tqh_first;
-#endif
- }
- if (ifnet.if_flags & IFF_UP)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_UP);
- if (ifnet.if_flags & IFF_BROADCAST)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_BROADCAST);
- if (ifnet.if_flags & IFF_DEBUG)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_DEBUG);
- if (ifnet.if_flags & IFF_LOOPBACK)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_LOOPBACK);
- if (ifnet.if_flags & IFF_POINTOPOINT)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_POINTOPOINT);
-#ifdef IFF_DRV_RUNNING
- if (ifnet.if_drv_flags & IFF_DRV_RUNNING)
-#else
- if (ifnet.if_flags & IFF_RUNNING)
-#endif
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_RUNNING);
- if (ifnet.if_flags & IFF_NOARP)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_NOARP);
- if (ifnet.if_flags & IFF_PROMISC)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_PROMISC);
- if (ifnet.if_flags & IFF_ALLMULTI)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_ALLMULTI);
-#ifdef IFF_DRV_OACTIVE
- if (ifnet.if_drv_flags & IFF_DRV_OACTIVE)
-#else
- if (ifnet.if_flags & IFF_OACTIVE)
-#endif
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_OACTIVE);
- if (ifnet.if_flags & IFF_SIMPLEX)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_SIMPLEX);
- if (ifnet.if_flags & IFF_LINK0)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_LINK0);
- if (ifnet.if_flags & IFF_LINK1)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_LINK1);
- if (ifnet.if_flags & IFF_LINK2)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_LINK2);
-#ifdef __FreeBSD__
- if (ifnet.if_flags & IFF_ALTPHYS)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_ALTPHYS);
-#endif
- if (ifnet.if_flags & IFF_MULTICAST)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_MULTICAST);
-
- buf->packets_in = ifnet.if_ipackets;
- buf->packets_out = ifnet.if_opackets;
- buf->packets_total = buf->packets_in + buf->packets_out;
-
- buf->bytes_in = ifnet.if_ibytes;
- buf->bytes_out = ifnet.if_obytes;
- buf->bytes_total = buf->bytes_in + buf->bytes_out;
-
- buf->errors_in = ifnet.if_ierrors;
- buf->errors_out = ifnet.if_oerrors;
- buf->errors_total = buf->errors_in + buf->errors_out;
-
- buf->collisions = ifnet.if_collisions;
- buf->flags = _glibtop_sysdeps_netload;
-
- while (ifaddraddr) {
- if ((kvm_read (server->machine.kd, ifaddraddr, &ifaddr,
- sizeof (ifaddr)) != sizeof (ifaddr)))
- glibtop_error_io_r (server, "kvm_read (ifaddraddr)");
-
-#define CP(x) ((char *)(x))
- cp = (CP(ifaddr.ifa.ifa_addr) - CP(ifaddraddr)) +
- CP(&ifaddr);
- sa = (struct sockaddr *)cp;
-
- if (sa->sa_family == AF_LINK) {
- struct sockaddr_dl *dl = (struct sockaddr_dl *) sa;
-
- memcpy (buf->hwaddress, LLADDR (dl), sizeof (buf->hwaddress));
- buf->flags |= GLIBTOP_NETLOAD_HWADDRESS;
- } else if (sa->sa_family == AF_INET) {
- sin = (struct sockaddr_in *)sa;
-#if !defined(__bsdi__)
- /* Commenting out to "fix" #13345. */
- buf->subnet = htonl (ifaddr.in.ia_subnet);
-#endif
- buf->address = sin->sin_addr.s_addr;
- buf->mtu = ifnet.if_mtu;
-
- buf->flags |= _glibtop_sysdeps_netload_data;
- } else if (sa->sa_family == AF_INET6) {
- struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sa;
-
- memcpy (buf->address6, &sin6->sin6_addr, sizeof (buf->address6));
- buf->flags |= GLIBTOP_NETLOAD_ADDRESS6;
- }
- /* FIXME prefix6, scope6 */
-#if defined (__OpenBSD__)
- ifaddraddr = (u_long) ifaddr.ifa.ifa_list.tqe_next;
-#else
- ifaddraddr = (u_long) ifaddr.ifa.ifa_link.tqe_next;
-#endif
- }
- return;
- }
-}
diff --git a/sysdeps/bsd/nosuid.c b/sysdeps/bsd/nosuid.c
deleted file mode 100644
index b43eaca5..00000000
--- a/sysdeps/bsd/nosuid.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-
-void
-glibtop_open_s (glibtop *server,
- const char *program_name,
- const unsigned long features,
- const unsigned flags)
-{ }
-
-void
-glibtop_close_s (glibtop *server)
-{ }
diff --git a/sysdeps/bsd/open.c b/sysdeps/bsd/open.c
deleted file mode 100644
index 52255ab5..00000000
--- a/sysdeps/bsd/open.c
+++ /dev/null
@@ -1,94 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/init_hooks.h>
-
-/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
-void
-glibtop_init_p (glibtop *server, const unsigned long features,
- const unsigned flags)
-{
- const _glibtop_init_func_t *init_fkt;
-
- if (server == NULL)
- glibtop_error_r (NULL, "glibtop_init_p (server == NULL)");
-
- /* Do the initialization, but only if not already initialized. */
-
- if ((server->flags & _GLIBTOP_INIT_STATE_SYSDEPS) == 0) {
- glibtop_open_p (server, "glibtop", features, flags);
-
- for (init_fkt = _glibtop_init_hook_p; *init_fkt; init_fkt++)
- (*init_fkt) (server);
-
- server->flags |= _GLIBTOP_INIT_STATE_SYSDEPS;
- }
-}
-
-void
-glibtop_open_p (glibtop *server, const char *program_name,
- const unsigned long features,
- const unsigned flags)
-{
-#ifdef DEBUG
- fprintf (stderr, "DEBUG (%d): glibtop_open_p ()\n", getpid ());
-#endif
-
- /* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */
-
- server->machine.uid = getuid ();
- server->machine.euid = geteuid ();
- server->machine.gid = getgid ();
- server->machine.egid = getegid ();
-
-#ifdef __FreeBSD__
- server->os_version_code = __FreeBSD_version;
-#endif
-
- /* Setup machine-specific data */
- server->machine.kd = kvm_open (NULL, NULL, NULL, O_RDONLY, "kvm_open");
-
- if (server->machine.kd == NULL)
- glibtop_error_io_r (server, "kvm_open");
-
- /* Drop priviledges. */
-
- if (setreuid (server->machine.euid, server->machine.uid))
- _exit (1);
-
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- /* Our effective uid is now those of the user invoking the server,
- * so we do no longer have any priviledges. */
-
- /* NOTE: On FreeBSD, we do not need to be suid root, we just need to
- * be sgid kmem.
- *
- * The server will only use setegid() to get back it's priviledges,
- * so it will fail if it is suid root and not sgid kmem. */
-}
diff --git a/sysdeps/bsd/ppp.c b/sysdeps/bsd/ppp.c
deleted file mode 100644
index 3d9f646e..00000000
--- a/sysdeps/bsd/ppp.c
+++ /dev/null
@@ -1,143 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/ppp.h>
-
-#include <glibtop_suid.h>
-
-#ifdef HAVE_I4B
-
-#include <net/if.h>
-#include <net/if_types.h>
-
-#ifdef HAVE_NET_IF_VAR_H
-#include <net/if_var.h>
-#endif
-
-#include <net/netisr.h>
-#include <net/route.h>
-
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
-#include <net/if_sppp.h>
-#else
-#include <i4b/sppp/if_sppp.h>
-#endif
-
-/* Read `misc/i4b_acct.txt' for details ... */
-#ifdef HAVE_I4B_ACCT
-#include <machine/i4b_acct.h>
-#endif
-
-static const unsigned long _glibtop_sysdeps_ppp =
-(1L << GLIBTOP_PPP_STATE);
-
-#ifdef HAVE_I4B_ACCT
-static const unsigned long _glibtop_sysdeps_ppp_acct =
-(1L << GLIBTOP_PPP_BYTES_IN) + (1L << GLIBTOP_PPP_BYTES_OUT);
-#endif
-
-#endif /* HAVE_I4B */
-
-/* nlist structure for kernel access */
-static struct nlist nlst [] = {
-#ifdef HAVE_I4B
- { "_i4bisppp_softc" },
-#endif
- { 0 }
-};
-
-/* Init function. */
-
-void
-_glibtop_init_ppp_p (glibtop *server)
-{
-#ifdef HAVE_I4B
-#ifdef HAVE_I4B_ACCT
- server->sysdeps.ppp = _glibtop_sysdeps_ppp |
- _glibtop_sysdeps_ppp_acct;
-#else
- server->sysdeps.ppp = _glibtop_sysdeps_ppp;
-#endif
-#endif /* HAVE_I4B */
-
- if (kvm_nlist (server->machine.kd, nlst) < 0)
- glibtop_error_io_r (server, "kvm_nlist");
-}
-
-/* Provides information about ppp usage. */
-
-void
-glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device)
-{
-#ifdef HAVE_I4B
-#ifdef HAVE_I4B_ACCT
- struct i4bisppp_softc data;
-#else
- struct sppp data;
-#endif
- int phase;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PPP), 0);
-
- memset (buf, 0, sizeof (glibtop_ppp));
-
- if (kvm_read (server->machine.kd, nlst [0].n_value,
- &data, sizeof (data)) != sizeof (data))
- glibtop_error_io_r (server, "kvm_read (i4bisppp_softc)");
-
-#ifdef HAVE_I4B_ACCT
- phase = data.sc_if_un.scu_sp.pp_phase;
-#else
- /* FIXME: Which FreeBSD version have this field and
- * which not. */
-#if 0
- phase = data.pp_phase;
-#endif
-#endif
-
- switch (phase) {
-#ifdef HAVE_I4B_ACCT
- case PHASE_DEAD:
- case PHASE_TERMINATE:
- buf->state = GLIBTOP_PPP_STATE_HANGUP;
- break;
- case PHASE_ESTABLISH:
- case PHASE_NETWORK:
- buf->state = GLIBTOP_PPP_STATE_ONLINE;
- break;
-#endif
- default:
- buf->state = GLIBTOP_PPP_STATE_UNKNOWN;
- break;
- }
-
- buf->flags = _glibtop_sysdeps_ppp;
-
-#ifdef HAVE_I4B_ACCT
- buf->bytes_in = data.sc_inb;
- buf->bytes_out = data.sc_outb;
- buf->flags |= _glibtop_sysdeps_ppp_acct;
-#endif
-#endif /* HAVE_I4B */
-}
diff --git a/sysdeps/bsd/procargs.c b/sysdeps/bsd/procargs.c
deleted file mode 100644
index 52242ef2..00000000
--- a/sysdeps/bsd/procargs.c
+++ /dev/null
@@ -1,108 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procargs.h>
-
-#include <glibtop_suid.h>
-
-#include <kvm.h>
-#include <sys/param.h>
-#include <sys/proc.h>
-
-static const unsigned long _glibtop_sysdeps_proc_args =
-(1L << GLIBTOP_PROC_ARGS_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_args_p (glibtop *server)
-{
- server->sysdeps.proc_args = _glibtop_sysdeps_proc_args;
-}
-
-/* Provides detailed information about a process. */
-
-char *
-glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len)
-{
- struct kinfo_proc *pinfo;
- char *retval, **args, **ptr;
- size_t size = 0, pos = 0;
- int count;
-
-#ifndef __bsdi__
- char filename [BUFSIZ];
- struct stat statb;
-#endif
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_ARGS), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_args));
-
- /* swapper, init, pagedaemon, vmdaemon, update - this doen't work. */
- if (pid < 5) return NULL;
-
-#ifndef __bsdi__
- sprintf (filename, "/proc/%d/mem", pid);
- if (stat (filename, &statb)) return NULL;
-#endif
-
- glibtop_suid_enter (server);
-
- /* Get the process data */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count < 1)) {
- glibtop_suid_leave (server);
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return NULL;
- }
-
- args = kvm_getargv (server->machine.kd, pinfo, max_len);
- if (args == NULL) {
- glibtop_suid_leave (server);
- glibtop_warn_io_r (server, "kvm_getargv (%d)", pid);
- return NULL;
- }
-
- glibtop_suid_leave (server);
-
- for (ptr = args; *ptr; ptr++)
- size += strlen (*ptr)+1;
-
- size += 2;
- retval = g_malloc0 (size);
-
- for (ptr = args; *ptr; ptr++) {
- const size_t len = strlen (*ptr)+1;
- memcpy (retval+pos, *ptr, len);
- pos += len;
- }
-
- buf->size = pos ? pos-1 : 0;
-
- buf->flags = _glibtop_sysdeps_proc_args;
-
- return retval;
-}
diff --git a/sysdeps/bsd/procdata.c b/sysdeps/bsd/procdata.c
deleted file mode 100644
index 5e17baa4..00000000
--- a/sysdeps/bsd/procdata.c
+++ /dev/null
@@ -1,168 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop/procdata.h>
-
-#include <sys/stat.h>
-
-
-#define BIT_SHIFT(x) (1L << (x % 64))
-
-static const unsigned long _glibtop_sysdeps_procdata_0 =
-BIT_SHIFT(GLIBTOP_PROCDATA_CMD) +
-BIT_SHIFT(GLIBTOP_PROCDATA_STATE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_UID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_PID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_PPID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_PGRP) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SESSION) +
-BIT_SHIFT(GLIBTOP_PROCDATA_TTY) +
-BIT_SHIFT(GLIBTOP_PROCDATA_TPGID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_PRIORITY) +
-BIT_SHIFT(GLIBTOP_PROCDATA_NICE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SIGNAL) +
-BIT_SHIFT(GLIBTOP_PROCDATA_BLOCKED) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SIGIGNORE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SIGCATCH) +
-BIT_SHIFT(GLIBTOP_PROCDATA_START_TIME) +
-BIT_SHIFT(GLIBTOP_PROCDATA_UTIME) +
-BIT_SHIFT(GLIBTOP_PROCDATA_STIME) +
-BIT_SHIFT(GLIBTOP_PROCDATA_CUTIME) +
-BIT_SHIFT(GLIBTOP_PROCDATA_CSTIME) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SIZE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_RESIDENT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SHARE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_TRS) +
-BIT_SHIFT(GLIBTOP_PROCDATA_LRS) +
-BIT_SHIFT(GLIBTOP_PROCDATA_DRS) +
-BIT_SHIFT(GLIBTOP_PROCDATA_DT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_VSIZE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_RSS) +
-BIT_SHIFT(GLIBTOP_PROCDATA_RSS_RLIM) +
-BIT_SHIFT(GLIBTOP_PROCDATA_TIMEOUT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_IT_REAL_VALUE);
-
-static const unsigned long _glibtop_sysdeps_procdata_1 =
-BIT_SHIFT(GLIBTOP_PROCDATA_K_FLAGS) +
-BIT_SHIFT(GLIBTOP_PROCDATA_MIN_FLT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_MAJ_FLT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_CMIN_FLT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_CMAJ_FLT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_START_CODE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_END_CODE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_START_STACK) +
-BIT_SHIFT(GLIBTOP_PROCDATA_KSTK_ESP) +
-BIT_SHIFT(GLIBTOP_PROCDATA_KSTK_EIP) +
-BIT_SHIFT(GLIBTOP_PROCDATA_WCHAN);
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_procdata_s (glibtop *server, glibtop_procdata *buf, pid_t pid)
-{
- char input [BUFSIZ], *tmp;
- struct stat statb;
- int nread;
- FILE *f;
-
- glibtop_init_r (&server, 0, 0);
-
- memset (buf, 0, sizeof (glibtop_procdata));
-
- if (pid == 0) {
- /* Client is only interested in the flags. */
- buf->flags [0] = _glibtop_sysdeps_procdata_0;
- buf->flags [1] = _glibtop_sysdeps_procdata_1;
- return;
- }
-
-
- sprintf (input, "/proc/%d/stat", pid);
-
- if (stat (input, &statb)) return;
-
- buf->uid = statb.st_uid;
-
- f = fopen (input, "r");
- if (!f) return;
-
- nread = fread (input, 1, BUFSIZ, f);
-
- if (nread < 0) {
- fclose (f);
- return;
- }
-
- input [nread] = 0;
-
- /* This is from guile-utils/gtop/proc/readproc.c */
-
- /* split into "PID (cmd" and "<rest>" */
- tmp = strrchr (input, ')');
- *tmp = '\0'; /* replace trailing ')' with NUL */
- /* parse these two strings separately, skipping the leading "(". */
- memset (buf->cmd, 0, sizeof (buf->cmd));
- sscanf (input, "%d (%39c", &buf->pid, buf->cmd);
- sscanf(tmp + 2, /* skip space after ')' too */
- "%c %d %d %d %d %d %lu %lu %lu %lu %lu "
- "%ld %ld %ld %ld %d %d %lu %lu %ld %lu "
- "%lu %lu %lu %lu %lu %lu %lu %d %d %d %d %lu",
- &buf->state, &buf->ppid, &buf->pgrp, &buf->session,
- &buf->tty, &buf->tpgid, &buf->k_flags, &buf->min_flt,
- &buf->cmin_flt, &buf->maj_flt, &buf->cmaj_flt,
- &buf->utime, &buf->stime, &buf->cutime, &buf->cstime,
- &buf->priority, &buf->nice, &buf->timeout,
- &buf->it_real_value, &buf->start_time, &buf->vsize,
- &buf->rss, &buf->rss_rlim, &buf->start_code,
- &buf->end_code, &buf->start_stack, &buf->kstk_esp,
- &buf->kstk_eip, &buf->signal, &buf->blocked,
- &buf->sigignore, &buf->sigcatch, &buf->wchan);
-
- if (buf->tty == 0)
- /* the old notty val, update elsewhere bef. moving to 0 */
- buf->tty = -1;
-
- fclose (f);
-
- sprintf (input, "/proc/%d/statm", pid);
-
- f = fopen (input, "r");
- if (!f) return;
-
- nread = fread (input, 1, BUFSIZ, f);
-
- if (nread < 0) {
- fclose (f);
- return;
- }
-
- input [nread] = 0;
-
- sscanf (input, "%ld %ld %ld %ld %ld %ld %ld",
- &buf->size, &buf->resident, &buf->share,
- &buf->trs, &buf->lrs, &buf->drs, &buf->dt);
-
- fclose (f);
-
- buf->flags [0] = _glibtop_sysdeps_procdata_0;
- buf->flags [1] = _glibtop_sysdeps_procdata_1;
-}
diff --git a/sysdeps/bsd/prockernel.c b/sysdeps/bsd/prockernel.c
deleted file mode 100644
index 2bdfae5f..00000000
--- a/sysdeps/bsd/prockernel.c
+++ /dev/null
@@ -1,270 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/prockernel.h>
-
-#include <glibtop_suid.h>
-
-#include <kvm.h>
-#include <sys/param.h>
-#include <sys/sysctl.h>
-#include <sys/proc.h>
-#if (!defined __OpenBSD__) && (!defined __bsdi__)
-#include <sys/user.h>
-#endif
-#if !defined(__bsdi__) && !(defined(__FreeBSD__) && defined(__alpha__)) && \
- !defined(__NetBSD__)
-#include <machine/pcb.h>
-#endif
-
-#include <unistd.h>
-#include <fcntl.h>
-
-#ifdef __FreeBSD__
-#include <osreldate.h>
-#endif
-
-#ifdef __NetBSD__
-#include <machine/vmparam.h>
-#include <machine/pmap.h>
-#ifdef __arm32__
-#define KERNBASE KERNEL_BASE
-#endif
-#endif
-
-#ifdef __NetBSD__
-#include <machine/vmparam.h>
-#include <machine/pmap.h>
-#ifdef __arm32__
-#define KERNBASE KERNEL_BASE
-#endif
-#endif
-
-
-static const unsigned long _glibtop_sysdeps_proc_kernel_pstats =
-(1L << GLIBTOP_PROC_KERNEL_MIN_FLT) +
-(1L << GLIBTOP_PROC_KERNEL_MAJ_FLT) +
-(1L << GLIBTOP_PROC_KERNEL_CMIN_FLT) +
-(1L << GLIBTOP_PROC_KERNEL_CMAJ_FLT);
-
-static const unsigned long _glibtop_sysdeps_proc_kernel_pcb =
-(1L << GLIBTOP_PROC_KERNEL_KSTK_EIP) +
-(1L << GLIBTOP_PROC_KERNEL_KSTK_ESP);
-
-static const unsigned long _glibtop_sysdeps_proc_kernel_wchan =
-(1L << GLIBTOP_PROC_KERNEL_NWCHAN) +
-(1L << GLIBTOP_PROC_KERNEL_WCHAN);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_kernel_p (glibtop *server)
-{
- server->sysdeps.proc_kernel = _glibtop_sysdeps_proc_kernel_pstats |
- _glibtop_sysdeps_proc_kernel_pcb |
- _glibtop_sysdeps_proc_kernel_wchan;
-}
-
-void
-glibtop_get_proc_kernel_p (glibtop *server,
- glibtop_proc_kernel *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
-#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__))
- struct user *u_addr = (struct user *)USRSTACK;
- struct pstats pstats;
- struct pcb pcb;
-#endif
- int count;
-
- char filename [BUFSIZ];
- struct stat statb;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_KERNEL), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_kernel));
-
- if (server->sysdeps.proc_time == 0)
- return;
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- /* Get the process information */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count != 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return;
- }
-
-#if (defined(__FreeBSD__) && (__FreeBSD_version >= 500013)) || defined(__FreeBSD_kernel__)
-
-#define PROC_WCHAN ki_wchan
-#define PROC_WMESG ki_wmesg
-#define PROC_WMESG ki_wmesg
-
-#else
-
-#define PROC_WCHAN kp_proc.p_wchan
-#define PROC_WMESG kp_proc.p_wmesg
-#define PROC_WMESG kp_eproc.e_wmesg
-
-#endif
-
-#if !defined(__NetBSD__) || !defined(SACTIVE)
- buf->nwchan = (unsigned long) pinfo [0].PROC_WCHAN &~ KERNBASE;
-
- buf->flags |= (1L << GLIBTOP_PROC_KERNEL_NWCHAN);
-
- if (pinfo [0].PROC_WCHAN && pinfo [0].PROC_WMESG) {
- g_strlcpy (buf->wchan, pinfo [0].PROC_WMESG,
- sizeof buf->wchan);
- buf->flags |= (1L << GLIBTOP_PROC_KERNEL_WCHAN);
- } else {
- buf->wchan [0] = 0;
- }
-#endif
-
-#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__))
-
- /* Taken from `saveuser ()' in `/usr/src/bin/ps/ps.c'. */
-
- /* [FIXME]: /usr/include/sys/user.h tells me that the user area
- * may or may not be at the same kernel address in all
- * processes, but I don't see any way to get that address.
- * Since `ps' simply uses its own address, I think it's
- * safe to do this here, too. */
-
- /* NOTE: You need to mount the /proc filesystem to make
- * `kvm_uread' work. */
-
- sprintf (filename, "/proc/%d/mem", (int) pid);
- if (stat (filename, &statb)) return;
-
- glibtop_suid_enter (server);
-
-#if !defined(__NetBSD__) || !defined(SACTIVE)
-#ifdef __NetBSD__
- /* On NetBSD, there is no kvm_uread(), and kvm_read() always reads
- * from kernel memory. */
-
- if (kvm_read (server->machine.kd,
-#else
-
- if ((pinfo [0].kp_proc.p_flag & P_INMEM) &&
- kvm_uread (server->machine.kd, &(pinfo [0]).kp_proc,
-#endif
- (unsigned long) &u_addr->u_stats,
- (char *) &pstats, sizeof (pstats)) == sizeof (pstats))
- {
- /*
- * The u-area might be swapped out, and we can't get
- * at it because we have a crashdump and no swap.
- * If it's here fill in these fields, otherwise, just
- * leave them 0.
- */
-
- buf->min_flt = (guint64) pstats.p_ru.ru_minflt;
- buf->maj_flt = (guint64) pstats.p_ru.ru_majflt;
- buf->cmin_flt = (guint64) pstats.p_cru.ru_minflt;
- buf->cmaj_flt = (guint64) pstats.p_cru.ru_majflt;
-
- buf->flags |= _glibtop_sysdeps_proc_kernel_pstats;
- }
-
-#ifdef __NetBSD__
- if (kvm_read (server->machine.kd,
-#else
- if ((pinfo [0].kp_proc.p_flag & P_INMEM) &&
- kvm_uread (server->machine.kd, &(pinfo [0]).kp_proc,
-#endif
- (unsigned long) &u_addr->u_pcb,
- (char *) &pcb, sizeof (pcb)) == sizeof (pcb))
- {
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-#ifndef __alpha__
-#if (__FreeBSD_version >= 300003) || defined(__FreeBSD_kernel__)
- buf->kstk_esp = (guint64) pcb.pcb_esp;
- buf->kstk_eip = (guint64) pcb.pcb_eip;
-#else
- buf->kstk_esp = (guint64) pcb.pcb_ksp;
- buf->kstk_eip = (guint64) pcb.pcb_pc;
-#endif
-#else
- /*xxx FreeBSD/Alpha? */
-#endif
-#else
-#ifdef __i386__
- buf->kstk_esp = (guint64) pcb.pcb_tss.tss_esp0;
-#ifdef __bsdi__
- buf->kstk_eip = (guint64) pcb.pcb_tss.tss_eip;
-#else
- buf->kstk_eip = (guint64) pcb.pcb_tss.__tss_eip;
-#endif
-#else
-#if defined(__NetBSD__)
-#if defined(__m68k__)
- buf->kstk_esp = (guint64) pcb.pcb_usp;
- buf->kstk_eip = (guint64) 0;
-#elif defined(__x86_64__)
- buf->kstk_esp = (guint64) pcb.pcb_usersp;
- buf->kstk_eip = (guint64) 0;
-#elif (defined(__arm32__) || defined(__powerpc__))
- buf->kstk_esp = (guint64) pcb.pcb_sp;
- buf->kstk_eip = (guint64) 0;
-#elif defined(__mipsel__)
- buf->kstk_esp = (guint64) pcb.pcb_context[8];
- buf->kstk_eip = (guint64) 0;
-#elif defined(__sparc__)
- buf->kstk_esp = (guint64) pcb.pcb_sp;
- buf->kstk_eip = (guint64) pcb.pcb_pc;
-#elif defined(__alpha__)
- buf->kstk_esp = (guint64) pcb.pcb_context[9];
- buf->kstk_eip = (guint64) pcb.pcb_context[8];
-#else
- /* provide some defaults for other platforms */
- buf->kstk_esp = (guint64) 0;
- buf->kstk_eip = (guint64) 0;
-#endif /* ${MACHINE_ARCH} */
-#endif /* __NetBSD__ */
- buf->flags |= _glibtop_sysdeps_proc_kernel_pcb;
-#endif
-#endif
- }
-#endif
-
- /* Taken from `wchan ()' in `/usr/src/bin/ps/print.c'. */
-
- glibtop_suid_leave (server);
-
-#else
- /* XXX: the code here was, quite frankly, junk, and almost
- * certainly wrong - remove it all, leave these fields
- * unpopulated, and give up until such time as the right
- * code is produced for both FreeBSD 4.x and 5.x
- */
- return;
-#endif /* __FreeBSD__ */
-}
diff --git a/sysdeps/bsd/proclist.c b/sysdeps/bsd/proclist.c
deleted file mode 100644
index 7b7f13e8..00000000
--- a/sysdeps/bsd/proclist.c
+++ /dev/null
@@ -1,113 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/proclist.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proclist =
-(1L << GLIBTOP_PROCLIST_TOTAL) + (1L << GLIBTOP_PROCLIST_NUMBER) +
-(1L << GLIBTOP_PROCLIST_SIZE);
-
-/* Fetch list of currently running processes.
- * The interface of this function is a little bit different from the others:
- * buf->flags is only set if the call succeeded, in this case pids_chain,
- * a list of the pids of all currently running processes is returned,
- * buf->number is the number of elements of this list and buf->size is
- * the size of one single element (sizeof (unsigned)). The total size is
- * stored in buf->total.
- *
- * The calling function has to free the memory to which a pointer is returned.
- *
- * IMPORTANT NOTE:
- * On error, this function MUST return NULL and set buf->flags to zero !
- * On success, it returnes a pointer to a list of buf->number elements
- * each buf->size big. The total size is stored in buf->total.
- * The calling function has to free the memory to which a pointer is returned.
- *
- * On error, NULL is returned and buf->flags is zero. */
-
-/* Init function. */
-
-void
-_glibtop_init_proclist_p (glibtop *server)
-{
- server->sysdeps.proclist = _glibtop_sysdeps_proclist;
-}
-
-unsigned *
-glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
- gint64 real_which, gint64 arg)
-{
- struct kinfo_proc *pinfo;
- unsigned *pids = NULL;
- int which, count;
- int i,j;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROCLIST), 0);
-
- memset (buf, 0, sizeof (glibtop_proclist));
-
- which = (int)(real_which & GLIBTOP_KERN_PROC_MASK);
-
- /* Get the process data */
- pinfo = kvm_getprocs (server->machine.kd, which, arg, &count);
- if ((pinfo == NULL) || (count < 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (proclist)");
- return NULL;
- }
- count--;
-
- /* Allocate count objects in the pids_chain array
- * Same as malloc is pids is NULL, which it is. */
- pids = g_realloc (pids, count * sizeof (unsigned));
- /* Copy the pids over to this chain */
- for (i=j=0; i < count; i++) {
-#if (defined(__FreeBSD__) && (__FreeBSD_version >= 500013)) || defined(__FreeBSD_kernel__)
-#define PROC_STAT ki_stat
-#define PROC_RUID ki_ruid
-#define PROC_PID ki_pid
-
-#else
-#define PROC_STAT kp_proc.p_stat
-#define PROC_RUID kp_eproc.e_pcred.p_ruid
-#define PROC_PID kp_proc.p_pid
-
-#endif
-
- if ((real_which & GLIBTOP_EXCLUDE_IDLE) &&
- (pinfo[i].PROC_STAT != SRUN))
- continue;
- else if ((real_which & GLIBTOP_EXCLUDE_SYSTEM) &&
- (pinfo[i].PROC_RUID == 0))
- continue;
- pids [j++] = (unsigned) pinfo[i].PROC_PID;
- } /* end for */
- /* Set the fields in buf */
- buf->number = j;
- buf->size = sizeof (unsigned);
- buf->total = j * sizeof (unsigned);
- buf->flags = _glibtop_sysdeps_proclist;
- return pids;
-}
diff --git a/sysdeps/bsd/procmap.c b/sysdeps/bsd/procmap.c
deleted file mode 100644
index 96691a98..00000000
--- a/sysdeps/bsd/procmap.c
+++ /dev/null
@@ -1,311 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmap.h>
-
-#include <glibtop_suid.h>
-
-#include <kvm.h>
-#include <sys/param.h>
-#include <sys/proc.h>
-#include <sys/resource.h>
-#if defined(__NetBSD__) && (__NetBSD_Version__ < 105020000)
-#include <vm/vm_object.h>
-#include <vm/vm_prot.h>
-#include <vm/vm_map.h>
-#elif defined(__NetBSD__) && (__NetBSD_Version__ >= 105020000)
-#include <uvm/uvm_extern.h>
-#else
-#include <vm/vm_object.h>
-#include <vm/vm_map.h>
-#if (__FreeBSD_version >= 400011) || defined(__FreeBSD_kernel__)
-#include <vm/vm.h>
-#else
-#include <vm/vm_prot.h>
-#endif
-#endif
-
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-#define _KVM_VNODE
-#endif
-#include <sys/vnode.h>
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-#undef _KVM_VNODE
-#endif
-#include <sys/mount.h>
-#include <ufs/ufs/quota.h>
-#include <ufs/ufs/inode.h>
-
-#include <sys/ucred.h>
-#if (!defined __OpenBSD__) && (!defined __bsdi__)
-#include <sys/user.h>
-#endif
-#include <sys/sysctl.h>
-#if !defined(__NetBSD__) || (__NetBSD_Version__ < 105020000)
-#include <vm/vm.h>
-#endif
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
-/* Fixme ... */
-#undef _KERNEL
-#define _UVM_UVM_AMAP_I_H_ 1
-#define _UVM_UVM_MAP_I_H_ 1
-#include <uvm/uvm.h>
-#endif
-
-static const unsigned long _glibtop_sysdeps_proc_map =
-(1L << GLIBTOP_PROC_MAP_TOTAL) + (1L << GLIBTOP_PROC_MAP_NUMBER) +
-(1L << GLIBTOP_PROC_MAP_SIZE);
-
-static const unsigned long _glibtop_sysdeps_map_entry =
-(1L << GLIBTOP_MAP_ENTRY_START) + (1L << GLIBTOP_MAP_ENTRY_END) +
-(1L << GLIBTOP_MAP_ENTRY_OFFSET) + (1L << GLIBTOP_MAP_ENTRY_PERM) +
-(1L << GLIBTOP_MAP_ENTRY_INODE) + (1L << GLIBTOP_MAP_ENTRY_DEVICE);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_map_p (glibtop *server)
-{
- server->sysdeps.proc_map = _glibtop_sysdeps_proc_map;
-}
-
-/* Provides detailed information about a process. */
-
-glibtop_map_entry *
-glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- struct vm_map_entry entry, *first;
- struct vmspace vmspace;
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
- struct vnode vnode;
- struct inode inode;
-#else
- struct vm_object object;
-#endif
- GArray *maps = g_array_sized_new(FALSE, FALSE,
- sizeof(glibtop_map_entry),
- 100);
-#if (defined __FreeBSD__) || defined(__FreeBSD_kernel__)
- struct vnode vnode;
-#if (__FreeBSD_version < 500039) && !defined(__FreeBSD_kernel__)
- struct inode inode;
-#endif
-#endif
- int count, i = 0;
- int update = 0;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_MAP), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_map));
-
- /* It does not work for the swapper task. */
- if (pid == 0) return (glibtop_map_entry*) g_array_free(maps, TRUE);
-
- glibtop_suid_enter (server);
-
- /* Get the process data */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count < 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return (glibtop_map_entry*) g_array_free(maps, TRUE);
- }
-
- /* Now we get the memory maps. */
-
- if (kvm_read (server->machine.kd,
-#if (defined(__FreeBSD__) && (__FreeBSD_version >= 500013)) || defined(__FreeBSD_kernel__)
- (unsigned long) pinfo [0].ki_vmspace,
-#else
- (unsigned long) pinfo [0].kp_proc.p_vmspace,
-#endif
- (char *) &vmspace, sizeof (vmspace)) != sizeof (vmspace))
- glibtop_error_io_r (server, "kvm_read (vmspace)");
-
- first = vmspace.vm_map.header.next;
-
- if (kvm_read (server->machine.kd,
- (unsigned long) vmspace.vm_map.header.next,
- (char *) &entry, sizeof (entry)) != sizeof (entry))
- glibtop_error_io_r (server, "kvm_read (entry)");
-
- /* Allocate space. */
-
- buf->number = vmspace.vm_map.nentries;
- buf->size = sizeof (glibtop_map_entry);
-
- buf->total = buf->number * buf->size;
-
- buf->flags = _glibtop_sysdeps_proc_map;
-
- /* Walk through the `vm_map_entry' list ... */
-
- /* I tested this a few times with `mmap'; as soon as you write
- * to the mmap'ed area, the object type changes from OBJT_VNODE
- * to OBJT_DEFAULT so if seems this really works. */
-
- do {
- glibtop_map_entry *mentry;
- unsigned long inum, dev;
- guint len;
-
- if (update) {
- if (kvm_read (server->machine.kd,
- (unsigned long) entry.next,
- &entry, sizeof (entry)) != sizeof (entry))
- glibtop_error_io_r (server, "kvm_read (entry)");
- } else {
- update = 1;
- }
-
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-#if (__FreeBSD__ >= 4) || defined(__FreeBSD_kernel__)
- if (entry.eflags & (MAP_ENTRY_IS_SUB_MAP))
- continue;
-#else
- if (entry.eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP))
- continue;
-#endif
-#else
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
- if (UVM_ET_ISSUBMAP (&entry))
- continue;
-#else
- if (entry.is_a_map || entry.is_sub_map)
- continue;
-#endif
-#endif
-
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
- if (!entry.object.uvm_obj)
- continue;
-
- /* We're only interested in vnodes */
-
- if (kvm_read (server->machine.kd,
- (unsigned long) entry.object.uvm_obj,
- &vnode, sizeof (vnode)) != sizeof (vnode)) {
- glibtop_warn_io_r (server, "kvm_read (vnode)");
- return (glibtop_map_entry*) g_array_free(maps, TRUE);
- }
-#else
- if (!entry.object.vm_object)
- continue;
-
- /* We're only interested in `vm_object's */
-
- if (kvm_read (server->machine.kd,
- (unsigned long) entry.object.vm_object,
- &object, sizeof (object)) != sizeof (object))
- glibtop_error_io_r (server, "kvm_read (object)");
-#endif
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
-#if defined(UVM_VNODE_VALID)
- if (!vnode.v_uvm.u_flags & UVM_VNODE_VALID)
- continue;
-#endif
- if ((vnode.v_type != VREG) || (vnode.v_tag != VT_UFS) ||
- !vnode.v_data) continue;
-
- if (kvm_read (server->machine.kd,
- (unsigned long) vnode.v_data,
- &inode, sizeof (inode)) != sizeof (inode))
- glibtop_error_io_r (server, "kvm_read (inode)");
-
- inum = inode.i_number;
- dev = inode.i_dev;
-#endif
-
-
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
- /* If the object is of type vnode, add its size */
-
- if (object.type != OBJT_VNODE)
- continue;
-
- if (!object.handle)
- continue;
-
- if (kvm_read (server->machine.kd,
- (unsigned long) object.handle,
- &vnode, sizeof (vnode)) != sizeof (vnode))
- glibtop_error_io_r (server, "kvm_read (vnode)");
-
-#if (defined(__FreeBSD__) && (__FreeBSD_version >= 500039)) || defined(__FreeBSD_kernel__)
- switch (vnode.v_type) {
- case VREG:
-#if (__FreeBSD_version < 600006) && !defined(__FreeBSD_kernel__)
- inum = vnode.v_cachedid;
- dev = vnode.v_cachedfs;
-#endif
- default:
- continue;
- }
-#else
- if ((vnode.v_type != VREG) || (vnode.v_tag != VT_UFS) ||
- !vnode.v_data) continue;
-
- if (kvm_read (server->machine.kd,
- (unsigned long) vnode.v_data,
- &inode, sizeof (inode)) != sizeof (inode))
- glibtop_error_io_r (server, "kvm_read (inode)");
-
- inum = inode.i_number;
- dev = inode.i_dev;
-#endif
-#endif
- len = maps->len;
- g_array_set_size(maps, len + 1);
- mentry = &g_array_index(maps, glibtop_map_entry, len);
-
- mentry->flags = _glibtop_sysdeps_map_entry;
-
- mentry->start = (guint64) entry.start;
- mentry->end = (guint64) entry.end;
- mentry->offset = (guint64) entry.offset;
- mentry->device = (guint64) dev;
- mentry->inode = (guint64) inum;
-
- mentry->perm = (guint64) 0;
-
- if (entry.protection & VM_PROT_READ)
- mentry->perm |= GLIBTOP_MAP_PERM_READ;
- if (entry.protection & VM_PROT_WRITE)
- mentry->perm |= GLIBTOP_MAP_PERM_WRITE;
- if (entry.protection & VM_PROT_EXECUTE)
- mentry->perm |= GLIBTOP_MAP_PERM_EXECUTE;
- } while (entry.next != first);
-
- buf->flags = _glibtop_sysdeps_proc_map;
-
- buf->number = maps->len;
- buf->size = sizeof (glibtop_map_entry);
- buf->total = buf->number * buf->size;
-
- return (glibtop_map_entry*) g_array_free(maps, FALSE);
-}
diff --git a/sysdeps/bsd/procmem.c b/sysdeps/bsd/procmem.c
deleted file mode 100644
index a7649d4e..00000000
--- a/sysdeps/bsd/procmem.c
+++ /dev/null
@@ -1,293 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmem.h>
-
-#include <glibtop_suid.h>
-
-#include <kvm.h>
-#include <sys/param.h>
-#include <sys/proc.h>
-#include <sys/resource.h>
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 105020000)
-#include <uvm/uvm_extern.h>
-#else
-#include <vm/vm_object.h>
-#include <vm/vm_map.h>
-#endif
-
-#include <sys/vnode.h>
-#include <ufs/ufs/quota.h>
-#include <ufs/ufs/inode.h>
-
-#include <sys/ucred.h>
-#if (!defined __OpenBSD__) && (!defined __bsdi__)
-#include <sys/user.h>
-#endif
-#include <sys/sysctl.h>
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 105020000)
-#include <uvm/uvm.h>
-#else
-#include <vm/vm.h>
-#endif
-
-#if defined(__NetBSD__) && \
- (__NetBSD_Version__ >= 104000000) && (__NetBSD_Version__ < 105020000)
-/* Fixme ... */
-#undef _KERNEL
-#define _UVM_UVM_AMAP_I_H_ 1
-#define _UVM_UVM_MAP_I_H_ 1
-#include <uvm/uvm.h>
-#endif
-
-static const unsigned long _glibtop_sysdeps_proc_mem =
-(1L << GLIBTOP_PROC_MEM_SIZE) +
-(1L << GLIBTOP_PROC_MEM_VSIZE) +
-(1L << GLIBTOP_PROC_MEM_RESIDENT) +
-(1L << GLIBTOP_PROC_MEM_RSS) +
-(1L << GLIBTOP_PROC_MEM_RSS_RLIM);
-
-static const unsigned long _glibtop_sysdeps_proc_mem_share =
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
-(1L << GLIBTOP_PROC_MEM_SHARE);
-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-(1L << GLIBTOP_PROC_MEM_SHARE);
-#else
-0;
-#endif
-
-#ifndef LOG1024
-#define LOG1024 10
-#endif
-
-/* these are for getting the memory statistics */
-static int pageshift; /* log base 2 of the pagesize */
-
-/* define pagetok in terms of pageshift */
-#define pagetok(size) ((size) << pageshift)
-
-/* Init function. */
-
-void
-_glibtop_init_proc_mem_p (glibtop *server)
-{
- register int pagesize;
-
- /* get the page size with "getpagesize" and calculate pageshift
- * from it */
- pagesize = getpagesize ();
- pageshift = 0;
- while (pagesize > 1) {
- pageshift++;
- pagesize >>= 1;
- }
-
- /* we only need the amount of log(2)1024 for our conversion */
- pageshift -= LOG1024;
-
- server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem |
- _glibtop_sysdeps_proc_mem_share;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- struct vm_map_entry entry, *first;
- struct vmspace *vms, vmspace;
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
- struct vnode vnode;
-#else
- struct vm_object object;
-#endif
-#if (!defined(__FreeBSD__) || (__FreeBSD_version < 500013)) && !defined(__FreeBSD_kernel__)
- struct plimit plimit;
-#endif
- int count;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_MEM), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_mem));
-
- if (server->sysdeps.proc_mem == 0)
- return;
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- /* Get the process data */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count < 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return;
- }
-#if (defined(__FreeBSD__) && (__FreeBSD_version >= 500013)) || defined(__FreeBSD_kernel__)
-
-#define PROC_VMSPACE ki_vmspace
-
- buf->rss_rlim = pinfo [0].ki_rssize;
-
- buf->vsize = buf->size = (guint64) pagetok
- (pinfo [0].ki_tsize + pinfo [0].ki_dsize + pinfo[0].ki_ssize)
- << LOG1024;
- buf->resident = buf->rss = (guint64) pagetok
- (pinfo [0].ki_rssize) << LOG1024;
-
-#else
-
-#define PROC_VMSPACE kp_proc.p_vmspace
-
- if (kvm_read (server->machine.kd,
- (unsigned long) pinfo [0].PROC_VMSPACE,
- (char *) &plimit, sizeof (plimit)) != sizeof (plimit)) {
- glibtop_warn_io_r (server, "kvm_read (plimit)");
- return;
- }
-
- buf->rss_rlim = (guint64)
- (plimit.pl_rlimit [RLIMIT_RSS].rlim_cur);
-
- vms = &pinfo [0].kp_eproc.e_vm;
-
- buf->vsize = buf->size = (guint64) pagetok
- (vms->vm_tsize + vms->vm_dsize + vms->vm_ssize) << LOG1024;
-
- buf->resident = buf->rss = (guint64) pagetok
- (vms->vm_rssize) << LOG1024;
-#endif
-
- /* Now we get the shared memory. */
-
- if (kvm_read (server->machine.kd,
- (unsigned long) pinfo [0].PROC_VMSPACE,
- (char *) &vmspace, sizeof (vmspace)) != sizeof (vmspace)) {
- glibtop_warn_io_r (server, "kvm_read (vmspace)");
- return;
- }
-
- first = vmspace.vm_map.header.next;
-
- if (kvm_read (server->machine.kd,
- (unsigned long) vmspace.vm_map.header.next,
- (char *) &entry, sizeof (entry)) != sizeof (entry)) {
- glibtop_warn_io_r (server, "kvm_read (entry)");
- return;
- }
-
- /* Walk through the `vm_map_entry' list ... */
-
- /* I tested this a few times with `mmap'; as soon as you write
- * to the mmap'ed area, the object type changes from OBJT_VNODE
- * to OBJT_DEFAULT so if seems this really works. */
-
- while (entry.next != first) {
- if (kvm_read (server->machine.kd,
- (unsigned long) entry.next,
- &entry, sizeof (entry)) != sizeof (entry)) {
- glibtop_warn_io_r (server, "kvm_read (entry)");
- return;
- }
-
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-#if (__FreeBSD__ >= 4) || defined(__FreeBSD_kernel__)
- if (entry.eflags & (MAP_ENTRY_IS_SUB_MAP))
- continue;
-#else
- if (entry.eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP))
- continue;
-#endif
-#else
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
- if (UVM_ET_ISSUBMAP (&entry))
- continue;
-#else
- if (entry.is_a_map || entry.is_sub_map)
- continue;
-#endif
-#endif
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
- if (!entry.object.uvm_obj)
- continue;
-
- /* We're only interested in vnodes */
-
- if (kvm_read (server->machine.kd,
- (unsigned long) entry.object.uvm_obj,
- &vnode, sizeof (vnode)) != sizeof (vnode)) {
- glibtop_warn_io_r (server, "kvm_read (vnode)");
- return;
- }
-#else
- if (!entry.object.vm_object)
- continue;
-
- /* We're only interested in `vm_object's */
-
- if (kvm_read (server->machine.kd,
- (unsigned long) entry.object.vm_object,
- &object, sizeof (object)) != sizeof (object)) {
- glibtop_warn_io_r (server, "kvm_read (object)");
- return;
- }
-#endif
- /* If the object is of type vnode, add its size */
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
-#if defined(UVM_VNODE_VALID)
- if (!vnode.v_uvm.u_flags & UVM_VNODE_VALID)
- continue;
-#endif
- if ((vnode.v_type != VREG) || (vnode.v_tag != VT_UFS) ||
- !vnode.v_data) continue;
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 105250000)
- /* Reference count must be at least two. */
- if (vnode.v_usecount <= 1)
- continue;
-
- buf->share += pagetok (vnode.v_uobj.uo_npages) << LOG1024;
-#else
-
- /* Reference count must be at least two. */
- if (vnode.v_uvm.u_obj.uo_refs <= 1)
- continue;
-
- buf->share += pagetok (vnode.v_uvm.u_obj.uo_npages) << LOG1024;
-#endif /* __NetBSD_Version__ >= 105250000 */
-#endif
-
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
- if (object.type != OBJT_VNODE)
- continue;
-
- buf->share += object.un_pager.vnp.vnp_size;
-#endif
- }
-
- buf->flags = _glibtop_sysdeps_proc_mem |
- _glibtop_sysdeps_proc_mem_share;
-}
diff --git a/sysdeps/bsd/procopenfiles.c b/sysdeps/bsd/procopenfiles.c
deleted file mode 100644
index 1f163bbc..00000000
--- a/sysdeps/bsd/procopenfiles.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- Copyright (C) 2004 Nicol�s Lichtmaier
- This file is part of LibGTop 1.0.
-
- Modified by Nicol�s Lichtmaier to give a process open files.
-
- 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procopenfiles.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_open_files =
-(1L << GLIBTOP_PROC_OPEN_FILES_NUMBER)|
-(1L << GLIBTOP_PROC_OPEN_FILES_TOTAL)|
-(1L << GLIBTOP_PROC_OPEN_FILES_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_open_files_s (glibtop *server)
-{
- server->sysdeps.proc_open_files = _glibtop_sysdeps_proc_open_files;
-}
-
-
-/* XXX Unimplemented on FreeBSD */
-glibtop_open_files_entry *
-glibtop_get_proc_open_files_s (glibtop *server, glibtop_proc_open_files *buf, pid_t pid)
-{
- return NULL;
-}
diff --git a/sysdeps/bsd/procsegment.c b/sysdeps/bsd/procsegment.c
deleted file mode 100644
index 2a629c17..00000000
--- a/sysdeps/bsd/procsegment.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procsegment.h>
-
-#include <glibtop_suid.h>
-
-#include <kvm.h>
-#include <sys/param.h>
-#include <sys/sysctl.h>
-
-static const unsigned long _glibtop_sysdeps_proc_segment = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_segment_p (glibtop *server)
-{
- server->sysdeps.proc_segment = _glibtop_sysdeps_proc_segment;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_segment_p (glibtop *server,
- glibtop_proc_segment *buf,
- pid_t pid)
-{
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_SEGMENT), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_segment));
-
-#if 0
- /* Get the process info from the kernel */
- kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, count);
- if (*count != 1) {
- return; /* the zeroed-out buffer indicating no data */
- }
-
- /* trs: text resident set size
- pinfo[0]->kp_eproc.e_xrssize;
- */
- /* buf->trs = pinfo[0]->kp_eproc.e_xrssize; */
- /* lrs: shared-lib resident set size
- ? */
- /* drs: data resident set size
- pinfo[0]->kp_eproc.e_vm.vm_map.vm_dsize;
- */
- /* dt: dirty pages
- */
- /* start_code: address of beginning of code segment
-
- */
- /* end_code: address of end of code segment
- */
- /* start_stack: address of the bottom of stack segment
- */
-#endif
-}
-
diff --git a/sysdeps/bsd/procsignal.c b/sysdeps/bsd/procsignal.c
deleted file mode 100644
index a3474353..00000000
--- a/sysdeps/bsd/procsignal.c
+++ /dev/null
@@ -1,136 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procsignal.h>
-
-#include <glibtop_suid.h>
-
-#include <sys/param.h>
-
-#ifdef __FreeBSD__
-#include <osreldate.h>
-#endif
-
-static const unsigned long _glibtop_sysdeps_proc_signal =
-(1L << GLIBTOP_PROC_SIGNAL_SIGNAL) +
-(1L << GLIBTOP_PROC_SIGNAL_BLOCKED) +
-(1L << GLIBTOP_PROC_SIGNAL_SIGIGNORE) +
-(1L << GLIBTOP_PROC_SIGNAL_SIGCATCH);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_signal_p (glibtop *server)
-{
- server->sysdeps.proc_signal = _glibtop_sysdeps_proc_signal;
-}
-
-void
-glibtop_get_proc_signal_p (glibtop *server,
- glibtop_proc_signal *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- int count = 0;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_SIGNAL), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_signal));
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- /* Get the process information */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count != 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return;
- }
-
-#if (defined(__FreeBSD__) && (__FreeBSD_version >= 500013)) || defined(__FreeBSD_kernel__)
-
-#define PROC_SIGLIST ki_siglist
-#define PROC_SIGMASK ki_sigmask
-#define PROC_SIGIGNORE ki_sigignore
-#define PROC_SIGCATCH ki_sigcatch
-
-#else
-
-#define PROC_SIGLIST kp_proc.p_siglist
-#define PROC_SIGMASK kp_proc.p_sigmask
-#define PROC_SIGIGNORE kp_proc.p_sigignore
-#define PROC_SIGCATCH kp_proc.p_sigcatch
-
-#endif
-
- /* signal: mask of pending signals.
- * pinfo [0].kp_proc.p_siglist
- */
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 105150000)
- buf->signal [0] = pinfo [0].kp_proc.p_sigctx.ps_siglist.__bits[0];
-#elif (defined(__NetBSD__) && (NSIG > 32)) || \
- (defined(__FreeBSD__) && (__FreeBSD_version >= 400011) || defined(__FreeBSD_kernel__))
- buf->signal [0] = pinfo [0].PROC_SIGLIST.__bits[0];
-#else
- buf->signal [0] = pinfo [0].kp_proc.p_siglist;
-#endif
-
- /* blocked: mask of blocked signals.
- * pinfo [0].kp_proc.p_sigmask
- */
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 105150000)
- buf->blocked [0] = pinfo [0].kp_proc.p_sigctx.ps_sigmask.__bits[0];
-#elif (defined(__NetBSD__) && (NSIG > 32)) || \
- (defined(__FreeBSD__) && (__FreeBSD_version >= 400011) || defined(__FreeBSD_kernel__))
- buf->blocked [0] = pinfo [0].PROC_SIGMASK.__bits[0];
-#else
- buf->blocked [0] = pinfo [0].kp_proc.p_sigmask;
-#endif
-
- /* sigignore: mask of ignored signals.
- * pinfo [0].kp_proc.p_sigignore
- */
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 105150000)
- buf->sigignore [0] = pinfo [0].kp_proc.p_sigctx.ps_sigignore.__bits[0];
-#elif (defined(__NetBSD__) && (NSIG > 32)) || \
- (defined(__FreeBSD__) && (__FreeBSD_version >= 400011) || defined(__FreeBSD_kernel__))
- buf->sigignore [0] = pinfo [0].PROC_SIGIGNORE.__bits[0];
-#else
- buf->sigignore [0] = pinfo [0].kp_proc.p_sigignore;
-#endif
-
- /* sigcatch: mask of caught signals.
- * pinfo [0].kp_proc.p_sigcatch
- */
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 105150000)
- buf->sigcatch [0] = pinfo [0].kp_proc.p_sigctx.ps_sigcatch.__bits[0];
-#elif (defined(__NetBSD__) && (NSIG > 32)) || \
- (defined(__FreeBSD__) && (__FreeBSD_version >= 400011) || defined(__FreeBSD_kernel__))
- buf->sigcatch [0] = pinfo [0].PROC_SIGCATCH.__bits[0];
-#else
- buf->sigcatch [0] = pinfo [0].kp_proc.p_sigcatch;
-#endif
-
- buf->flags = _glibtop_sysdeps_proc_signal;
-}
diff --git a/sysdeps/bsd/procstate.c b/sysdeps/bsd/procstate.c
deleted file mode 100644
index 96f39edc..00000000
--- a/sysdeps/bsd/procstate.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procstate.h>
-
-#include <glibtop_suid.h>
-
-#if !defined(__OpenBSD__)
-/* && (!defined __bsdi__) */
-#include <sys/user.h>
-#endif
-
-static const unsigned long _glibtop_sysdeps_proc_state =
-(1L << GLIBTOP_PROC_STATE_CMD) + (1L << GLIBTOP_PROC_STATE_UID) +
-(1L << GLIBTOP_PROC_STATE_GID);
-
-static const unsigned long _glibtop_sysdeps_proc_state_new =
-0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_state_p (glibtop *server)
-{
- server->sysdeps.proc_state = _glibtop_sysdeps_proc_state |
- _glibtop_sysdeps_proc_state_new;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_state_p (glibtop *server,
- glibtop_proc_state *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- int count = 0;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_STATE), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_state));
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- /* Get the process information */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count != 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return;
- }
-
-#if (defined(__FreeBSD__) && (__FreeBSD_version >= 500013)) || defined(__FreeBSD_kernel__)
-#define PROC_COMM ki_comm
-#define PROC_SVUID ki_svuid
-#define PROC_SVGID ki_svgid
-#define PROC_RUID ki_ruid
-#define PROC_RGID ki_rgid
-#define PROC_STAT ki_stat
-
-#else
-#define PROC_COMM kp_proc.p_comm
-#define PROC_SVUID kp_eproc.e_pcred.p_svuid
-#define PROC_SVGID kp_eproc.e_pcred.p_svgid
-#define PROC_RUID kp_eproc.e_pcred.p_ruid
-#define PROC_RGID kp_eproc.e_pcred.p_rgid
-#define PROC_STAT kp_proc.p_stat
-
-#endif
-
- g_strlcpy (buf->cmd, pinfo [0].PROC_COMM, sizeof buf->cmd);
-
- buf->uid = pinfo [0].PROC_SVUID;
- buf->gid = pinfo [0].PROC_SVGID;
-
- /* Set the flags for the data we're about to return*/
- buf->flags = _glibtop_sysdeps_proc_state |
- _glibtop_sysdeps_proc_state_new;
-
-#if LIBGTOP_VERSION_CODE >= 1001000
- switch (pinfo [0].PROC_STAT) {
- case SIDL:
- buf->state = 0;
- break;
- case SRUN:
- buf->state = GLIBTOP_PROCESS_RUNNING;
- break;
-#ifdef SSLEEP
- case SSLEEP:
- buf->state = GLIBTOP_PROCESS_INTERRUPTIBLE;
- break;
-#endif
- case SSTOP:
- buf->state = GLIBTOP_PROCESS_STOPPED;
- break;
- case SZOMB:
- buf->state = GLIBTOP_PROCESS_ZOMBIE;
- break;
- default:
- return;
- }
-#else
- switch (pinfo [0].PROC_STAT) {
- case SIDL:
- buf->state = 'D';
- break;
- case SRUN:
- buf->state = 'R';
- break;
-#ifdef SSLEEP
- case SSLEEP:
- buf->state = 'S';
- break;
-#endif
- case SSTOP:
- buf->state = 'T';
- break;
- case SZOMB:
- buf->state = 'Z';
- break;
- default:
- return;
- }
-#endif
-
- buf->flags |= (1L << GLIBTOP_PROC_STATE_STATE);
-}
diff --git a/sysdeps/bsd/proctime.c b/sysdeps/bsd/proctime.c
deleted file mode 100644
index ccaf016f..00000000
--- a/sysdeps/bsd/proctime.c
+++ /dev/null
@@ -1,252 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/proctime.h>
-
-#include <glibtop_suid.h>
-
-#ifdef __FreeBSD__
-#include <osreldate.h>
-#endif
-
-static const unsigned long _glibtop_sysdeps_proc_time =
-(1L << GLIBTOP_PROC_TIME_RTIME) + (1L << GLIBTOP_PROC_TIME_FREQUENCY);
-
-static const unsigned long _glibtop_sysdeps_proc_time_user =
-(1L << GLIBTOP_PROC_TIME_UTIME) + (1L << GLIBTOP_PROC_TIME_STIME) +
-(1L << GLIBTOP_PROC_TIME_CUTIME) + (1L << GLIBTOP_PROC_TIME_CSTIME) +
-(1L << GLIBTOP_PROC_TIME_START_TIME);
-
-#define tv2sec(tv) (((guint64) tv.tv_sec * 1000000) + (guint64) tv.tv_usec)
-
-/* Init function. */
-
-void
-_glibtop_init_proc_time_p (glibtop *server)
-{
- server->sysdeps.proc_time = _glibtop_sysdeps_proc_time |
- _glibtop_sysdeps_proc_time_user;
-}
-
-/* Taken from /usr/src/sys/kern/kern_resource.c */
-
-/*
- * Transform the running time and tick information in proc p into user,
- * system, and interrupt time usage.
- */
-
-#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__))
-
-static void
-calcru(p, up, sp, ip)
- struct proc *p;
- struct timeval *up;
- struct timeval *sp;
- struct timeval *ip;
-{
- quad_t totusec;
- u_quad_t u, st, ut, it, tot;
- long sec, usec;
- struct timeval tv;
-
- st = p->p_sticks;
- ut = p->p_uticks;
- it = p->p_iticks;
-
- tot = st + ut + it;
- if (tot == 0) {
- st = 1;
- tot = 1;
- }
-
- sec = p->p_rtime.tv_sec;
- usec = p->p_rtime.tv_usec;
-
- totusec = (quad_t)sec * 1000000 + usec;
-
- if (totusec < 0) {
- /* XXX no %qd in kernel. Truncate. */
- fprintf (stderr, "calcru: negative time: %ld usec\n",
- (long)totusec);
- totusec = 0;
- }
-
-
- u = totusec;
- st = (u * st) / tot;
- sp->tv_sec = st / 1000000;
- sp->tv_usec = st % 1000000;
- ut = (u * ut) / tot;
- up->tv_sec = ut / 1000000;
- up->tv_usec = ut % 1000000;
- if (ip != NULL) {
- it = (u * it) / tot;
- ip->tv_sec = it / 1000000;
- ip->tv_usec = it % 1000000;
- }
-}
-#endif /* !__FreeBSD__ */
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
-#if (defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)) || (defined(OpenBSD) && (OpenBSD >= 199912))
- register struct rusage *rup;
-#else
- struct user *u_addr = (struct user *)USRSTACK;
-#endif
- struct pstats pstats;
- int count;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_TIME), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_time));
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
-#if (defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000))
- if (server->sysdeps.proc_time == 0)
- return;
-#endif
-
- /* Get the process information */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count != 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return;
- }
-
-#if (defined(__FreeBSD__) && (__FreeBSD_version >= 500013)) || defined(__FreeBSD_kernel__)
- buf->rtime = pinfo [0].ki_runtime;
-#elif (defined __FreeBSD__) && (__FreeBSD_version <= 500013)
- buf->rtime = pinfo [0].kp_proc.p_runtime;
-#else
- buf->rtime = tv2sec (pinfo [0].kp_proc.p_rtime);
-#endif
-
- buf->frequency = 1000000;
- buf->flags = _glibtop_sysdeps_proc_time;
-
-#if (defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)) || (defined(OpenBSD) && (OpenBSD >= 199912))
- glibtop_suid_enter (server);
-
- if (kvm_read (server->machine.kd,
- (unsigned long) pinfo [0].kp_proc.p_stats,
- &pstats, sizeof (pstats)) != sizeof (pstats)) {
- glibtop_warn_io_r (server, "kvm_read (pstats)");
- return;
- }
-
- glibtop_suid_leave (server);
-
- rup = &pstats.p_ru;
- calcru(&(pinfo [0]).kp_proc,
- &rup->ru_utime, &rup->ru_stime, NULL);
-
- buf->utime = tv2sec (pstats.p_ru.ru_utime);
- buf->stime = tv2sec (pstats.p_ru.ru_stime);
-
- buf->cutime = tv2sec (pstats.p_cru.ru_utime);
- buf->cstime = tv2sec (pstats.p_cru.ru_stime);
-
- buf->start_time = (guint64) pstats.p_start.tv_sec;
-
- buf->flags |= _glibtop_sysdeps_proc_time_user;
-#else
-#if (defined(__FreeBSD__) && (__FreeBSD_version >= 500013)) || defined(__FreeBSD_kernel__)
-#if (__FreeBSD_version >= 500016) || defined(__FreeBSD_kernel__)
- if ((pinfo [0].ki_flag & PS_INMEM)) {
-#else
- if ((pinfo [0].ki_flag & P_INMEM)) {
-#endif
- buf->utime = pinfo [0].ki_runtime;
- buf->stime = tv2sec (pinfo [0].ki_rusage.ru_stime);
- buf->cutime = tv2sec (pinfo [0].ki_childtime);
-#if (__FreeBSD_version >= 600000) || (__FreeBSD_kernel_version >= 600000)
- buf->cstime = tv2sec (pinfo [0].ki_rusage_ch.ru_stime);
-#else
- buf->cstime = 0;
-#endif
- buf->start_time = tv2sec (pinfo [0].ki_start);
- buf->flags = _glibtop_sysdeps_proc_time_user;
- }
-
- glibtop_suid_enter (server);
-
-#elif (__FreeBSD_version <= 500013)
-
- if ((pinfo [0].kp_proc.p_flag & P_INMEM) &&
- kvm_uread (server->machine.kd, &(pinfo [0]).kp_proc,
- (unsigned long) &u_addr->u_stats,
- (char *) &pstats, sizeof (pstats)) == sizeof (pstats))
- {
-
- buf->utime = tv2sec (pinfo[0].kp_eproc.e_stats.p_ru.ru_utime);
- buf->stime = tv2sec (pinfo[0].kp_eproc.e_stats.p_ru.ru_stime);
- buf->cutime = tv2sec (pinfo[0].kp_eproc.e_stats.p_cru.ru_utime);
- buf->cstime = tv2sec (pinfo[0].kp_eproc.e_stats.p_cru.ru_stime);
- buf->start_time = tv2sec (pinfo[0].kp_eproc.e_stats.p_start);
- buf->flags = _glibtop_sysdeps_proc_time_user;
- glibtop_suid_leave (server);
- }
-#else
-
- if ((pinfo [0].kp_proc.p_flag & P_INMEM) &&
- kvm_uread (server->machine.kd, &(pinfo [0]).kp_proc,
- (unsigned long) &u_addr->u_stats,
- (char *) &pstats, sizeof (pstats)) == sizeof (pstats))
- {
- /* This is taken form the kernel source code of
- * FreeBSD 2.2.6. */
-
- /* Well, we just do the same getrusage () does ... */
-
- register struct rusage *rup;
-
- glibtop_suid_leave (server);
-
- rup = &pstats.p_ru;
- calcru(&(pinfo [0]).kp_proc,
- &rup->ru_utime, &rup->ru_stime, NULL);
-
- buf->utime = tv2sec (pstats.p_ru.ru_utime);
- buf->stime = tv2sec (pstats.p_ru.ru_stime);
-
- buf->cutime = tv2sec (pstats.p_cru.ru_utime);
- buf->cstime = tv2sec (pstats.p_cru.ru_stime);
-
- buf->start_time = tv2sec (pstats.p_start);
-
- buf->flags = _glibtop_sysdeps_proc_time_user;
- }
-#endif
- glibtop_suid_leave (server);
-#endif
-}
-
diff --git a/sysdeps/bsd/procuid.c b/sysdeps/bsd/procuid.c
deleted file mode 100644
index e2bb0e24..00000000
--- a/sysdeps/bsd/procuid.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procuid.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_uid =
-(1L << GLIBTOP_PROC_UID_UID) + (1L << GLIBTOP_PROC_UID_EUID) +
-(1L << GLIBTOP_PROC_UID_EGID) + (1L << GLIBTOP_PROC_UID_PID) +
-(1L << GLIBTOP_PROC_UID_PPID) + (1L << GLIBTOP_PROC_UID_PGRP) +
-(1L << GLIBTOP_PROC_UID_TPGID) + (1L << GLIBTOP_PROC_UID_PRIORITY) +
-(1L << GLIBTOP_PROC_UID_NICE);
-
-static const unsigned long _glibtop_sysdeps_proc_uid_groups =
-0L;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_uid_p (glibtop *server)
-{
- server->sysdeps.proc_uid = _glibtop_sysdeps_proc_uid |
- _glibtop_sysdeps_proc_uid_groups;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_uid_p (glibtop *server, glibtop_proc_uid *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- int count = 0;
-
-#if LIBGTOP_VERSION_CODE >= 1001000
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
- struct ucred ucred;
- void *ucred_ptr;
-#endif
-#endif
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_UID), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_uid));
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- /* Get the process information */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count != 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return;
- }
-
-#if (defined(__FreeBSD__) && (__FreeBSD_version >= 500013)) || defined(__FreeBSD_kernel__)
-
-#define PROC_RUID ki_ruid
-#define PROC_SVUID ki_svuid
-#define PROC_RGID ki_rgid
-#define PROC_SVGID ki_svgid
-#define PROC_PPID ki_ppid
-#define PROC_PGID ki_pgid
-#define PROC_TPGID ki_tpgid
-#define PROC_NICE ki_nice
-#define PROC_PRIORITY ki_pri.pri_user
-#else
-
-#define PROC_RUID kp_eproc.e_pcred.p_ruid
-#define PROC_SVUID kp_eproc.e_pcred.p_svuid
-#define PROC_RGID kp_eproc.e_pcred.p_rgid
-#define PROC_SVGID kp_eproc.e_pcred.p_svgid
-#define PROC_PPID kp_eproc.e_ppid
-#define PROC_PGID kp_eproc.e_pgid
-#define PROC_TPGID kp_eproc.e_tpgid
-#define PROC_NICE kp_proc.p_nice
-#define PROC_PRIORITY kp_proc.p_priority
-
-#endif
-
- buf->uid = pinfo [0].PROC_RUID;
- buf->euid = pinfo [0].PROC_SVUID;
- buf->gid = pinfo [0].PROC_RGID;
- buf->egid = pinfo [0].PROC_SVGID;
-
- buf->ppid = pinfo [0].PROC_PPID;
- buf->pgrp = pinfo [0].PROC_PGID;
- buf->tpgid = pinfo [0].PROC_TPGID;
-
- buf->nice = pinfo [0].PROC_NICE;
-#if defined(__NetBSD__) && defined(SACTIVE)
- buf->priority = 0;
-#else
- buf->priority = pinfo [0].PROC_PRIORITY;
-#endif
-
- /* Set the flags for the data we're about to return*/
- buf->flags = _glibtop_sysdeps_proc_uid;
-
- /* Use LibGTop conditionals here so we can more easily merge this
- * code into the LIBGTOP_STABLE_1_0 branch. */
-#if 0
- /* This probably also works with other versions, but not yet
- * tested. Please remove the conditional if this is true. */
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)
- ucred_ptr = (void *) pinfo [0].kp_eproc.e_pcred.pc_ucred;
-
- if (ucred_ptr) {
- if (kvm_read (server->machine.kd, (unsigned long) ucred_ptr,
- &ucred, sizeof (ucred)) != sizeof (ucred)) {
- glibtop_warn_io_r (server, "kvm_read (ucred)");
- } else {
- int count = (ucred.cr_ngroups < GLIBTOP_MAX_GROUPS) ?
- ucred.cr_ngroups : GLIBTOP_MAX_GROUPS;
- int i;
-
- for (i = 0; i < count; i++)
- buf->groups [i] = ucred.cr_groups [i];
- buf->ngroups = count;
-
- buf->flags |= _glibtop_sysdeps_proc_uid_groups;
- }
- }
-#endif
-#endif
-}
diff --git a/sysdeps/bsd/sem_limits.c b/sysdeps/bsd/sem_limits.c
deleted file mode 100644
index 43b30f72..00000000
--- a/sysdeps/bsd/sem_limits.c
+++ /dev/null
@@ -1,119 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, August 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/sem_limits.h>
-
-#include <glibtop_suid.h>
-
-#if defined(__bsdi__) && (_BSDI_VERSION < 199700)
-/* Older versions of BSDI don't seem to have this. */
-
-void
-_glibtop_init_sem_limits_p (glibtop *server)
-{ }
-
-void
-glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf)
-{
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_SEM_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_sem_limits));
-}
-
-#else
-
-/* #define KERNEL to get declaration of `struct seminfo'. */
-
-#if (defined(__FreeBSD__) && (__FreeBSD_version < 410000)) || defined(__bsdi__)
-#define KERNEL 1
-#else
-#define _KERNEL 1
-#endif
-
-#include <sys/ipc.h>
-#include <sys/sem.h>
-
-static unsigned long _glibtop_sysdeps_sem_limits =
-(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
-(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
-(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
-(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
-(1L << GLIBTOP_IPC_SEMVMX) + (1L << GLIBTOP_IPC_SEMAEM);
-
-/* The values in this structure never change at runtime, so we only
- * read it once during initialization. We have to use the name `_seminfo'
- * since `seminfo' is already declared external in <sys/sem.h>. */
-static struct seminfo _seminfo;
-
-/* nlist structure for kernel access */
-static struct nlist nlst [] = {
- { "_seminfo" },
- { 0 }
-};
-
-/* Init function. */
-
-void
-_glibtop_init_sem_limits_p (glibtop *server)
-{
- if (kvm_nlist (server->machine.kd, nlst) < 0) {
- glibtop_warn_io_r (server, "kvm_nlist (sem_limits)");
- return;
- }
-
- if (kvm_read (server->machine.kd, nlst [0].n_value,
- &_seminfo, sizeof (_seminfo)) != sizeof (_seminfo)) {
- glibtop_warn_io_r (server, "kvm_read (seminfo)");
- return;
- }
-
- server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits;
-}
-
-/* Provides information about sysv sem limits. */
-
-void
-glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf)
-{
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_SEM_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_sem_limits));
-
- if (server->sysdeps.sem_limits == 0)
- return;
-
- buf->semmap = _seminfo.semmap;
- buf->semmni = _seminfo.semmni;
- buf->semmns = _seminfo.semmns;
- buf->semmnu = _seminfo.semmnu;
- buf->semmsl = _seminfo.semmsl;
- buf->semopm = _seminfo.semopm;
- buf->semvmx = _seminfo.semvmx;
- buf->semaem = _seminfo.semaem;
-
- buf->flags = _glibtop_sysdeps_sem_limits;
-}
-
-#endif /* either a newer BSDI or no BSDI at all. */
-
diff --git a/sysdeps/bsd/shm_limits.c b/sysdeps/bsd/shm_limits.c
deleted file mode 100644
index dbe4d90c..00000000
--- a/sysdeps/bsd/shm_limits.c
+++ /dev/null
@@ -1,114 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, August 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/shm_limits.h>
-
-#include <glibtop_suid.h>
-
-#if defined(__bsdi__) && (_BSDI_VERSION < 199700)
-/* Older versions of BSDI don't seem to have this. */
-
-void
-_glibtop_init_shm_limits_p (glibtop *server)
-{ }
-
-void
-glibtop_get_shm_limits_p (glibtop *server, glibtop_shm_limits *buf)
-{
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_SHM_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_shm_limits));
-}
-
-#else
-
-/* #define KERNEL to get declaration of `struct shminfo'. */
-
-#if (defined(__FreeBSD__) && (__FreeBSD_version < 410000)) || defined(__bsdi__)
-#define KERNEL 1
-#else
-#define _KERNEL 1
-#endif
-
-#include <sys/ipc.h>
-#include <sys/shm.h>
-
-static unsigned long _glibtop_sysdeps_shm_limits =
-(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
-(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG) +
-(1L << GLIBTOP_IPC_SHMALL);
-
-/* The values in this structure never change at runtime, so we only
- * read it once during initialization. We have to use the name `_shminfo'
- * since `shminfo' is already declared external in <sys/shm.h>. */
-static struct shminfo _shminfo;
-
-/* nlist structure for kernel access */
-static struct nlist nlst [] = {
- { "_shminfo" },
- { 0 }
-};
-
-/* Init function. */
-
-void
-_glibtop_init_shm_limits_p (glibtop *server)
-{
- if (kvm_nlist (server->machine.kd, nlst) < 0) {
- glibtop_warn_io_r (server, "kvm_nlist (shm_limits)");
- return;
- }
-
- if (kvm_read (server->machine.kd, nlst [0].n_value,
- &_shminfo, sizeof (_shminfo)) != sizeof (_shminfo)) {
- glibtop_warn_io_r (server, "kvm_read (shminfo)");
- return;
- }
-
- server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_shm_limits_p (glibtop *server, glibtop_shm_limits *buf)
-{
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_SHM_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_shm_limits));
-
- if (server->sysdeps.shm_limits == 0)
- return;
-
- buf->shmmax = _shminfo.shmmax;
- buf->shmmin = _shminfo.shmmin;
- buf->shmmni = _shminfo.shmmni;
- buf->shmseg = _shminfo.shmseg;
- buf->shmall = _shminfo.shmall;
-
- buf->flags = _glibtop_sysdeps_shm_limits;
-}
-
-#endif /* either a newer BSDI or no BSDI at all. */
-
diff --git a/sysdeps/bsd/siglist.c b/sysdeps/bsd/siglist.c
deleted file mode 100644
index c90c242c..00000000
--- a/sysdeps/bsd/siglist.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/signal.h>
-
-const glibtop_signame glibtop_sys_siglist [] =
-{ { 1, "SIGHUP", "Hangup" },
- { 2, "SIGINT", "Interrupt" },
- { 3, "SIGQUIT", "Quit" },
- { 4, "SIGILL", "Illegal Instruction" },
- { 5, "SIGTRAP", "Trace/Breakpoint Trap" },
- { 6, "SIGABRT", "Abort" },
- { 7, "SIGEMT", "Emulation Trap" },
- { 8, "SIGFPE", "Arithmetic Exception" },
- { 9, "SIGKILL", "Killed" },
- { 10, "SIGBUS", "Bus Error" },
- { 11, "SIGSEGV", "Segmentation Fault" },
- { 12, "SIGSYS", "Bad System Call" },
- { 13, "SIGPIPE", "Broken Pipe" },
- { 14, "SIGALRM", "Alarm Clock" },
- { 15, "SIGTERM", "Terminated" },
- { 16, "SIGURG", "Urgent Condition Present On Socket" },
- { 17, "SIGSTOP", "Stop (cannot be caught or ignored)" },
- { 18, "SIGTSTP", "Stop Signal Generated From Keyboard" },
- { 19, "SIGCONT", "Continue After Stop" },
- { 20, "SIGCHLD", "Child Status Has Changed" },
- { 21, "SIGTTIN", "Background Read Attempted From Control Terminal" },
- { 22, "SIGTTOU", "Background Write Attempted To Control Terminal" },
- { 23, "SIGIO", "I/O Is Possible On A Descriptor" },
- { 24, "SIGXCPU", "CPU Time Limit Exceeded" },
- { 25, "SIGXFSZ", "File Size Limit Exceeded" },
- { 26, "SIGVTALRM","Virtual Time Alarm" },
- { 27, "SIGPROF", "Profiling Timer Alarm" },
- { 28, "SIGWINCH","Window Size Change" },
- { 29, "SIGINFO", "Status Request From Keyboard" },
- { 30, "SIGUSR1", "User Defined Signal 1" },
- { 31, "SIGUSR2", "User Defined Signal 2" },
- { 32, "SIGTHR", "Thread Interrupt" },
- { 0, NULL, NULL }
-};
diff --git a/sysdeps/bsd/swap.c b/sysdeps/bsd/swap.c
deleted file mode 100644
index 0ac9cd3d..00000000
--- a/sysdeps/bsd/swap.c
+++ /dev/null
@@ -1,423 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/swap.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_swap =
-(1L << GLIBTOP_SWAP_TOTAL) + (1L << GLIBTOP_SWAP_USED) +
-(1L << GLIBTOP_SWAP_FREE) + (1L << GLIBTOP_SWAP_PAGEIN) +
-(1L << GLIBTOP_SWAP_PAGEOUT);
-
-#if defined(__FreeBSD__) || defined(__bsdi__) || defined(__FreeBSD_kernel__)
-
-#include <sys/conf.h>
-#ifdef __bsdi__
-#include <vm/swap_pager.h>
-#else
-#if (__FreeBSD_version < 400005) && !defined(__FreeBSD_kernel__)
-#include <sys/rlist.h>
-#endif
-#endif
-#include <sys/vmmeter.h>
-
-/* nlist structure for kernel access */
-
-#if defined(__bsdi__)
-static struct nlist nlst [] = {
- { "_swapstats" }, /* general swap info */
- { 0 }
-};
-#elif __FreeBSD__ < 4
-static struct nlist nlst [] = {
-#define VM_SWAPLIST 0
- { "_swaplist" },/* list of free swap areas */
-#define VM_SWDEVT 1
- { "_swdevt" }, /* list of swap devices and sizes */
-#define VM_NSWAP 2
- { "_nswap" }, /* size of largest swap device */
-#define VM_NSWDEV 3
- { "_nswdev" }, /* number of swap devices */
-#define VM_DMMAX 4
- { "_dmmax" }, /* maximum size of a swap block */
- { 0 }
-};
-#endif
-
-#elif defined(__NetBSD__) || defined(__OpenBSD__)
-
-#if (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
-#include <uvm/uvm_extern.h>
-#include <sys/swap.h>
-#else
-#include <vm/vm_swap.h>
-#endif
-
-#endif
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
-static int mib_uvmexp [] = { CTL_VM, VM_UVMEXP };
-#else
-/* nlist structure for kernel access */
-static struct nlist nlst2 [] = {
- { "_cnt" },
- { 0 }
-};
-#endif
-
-/* Init function. */
-
-void
-_glibtop_init_swap_p (glibtop *server)
-{
-#if defined(__FreeBSD__) || defined(__bsdi__) || defined(__FreeBSD_kernel__)
-#if __FreeBSD__ < 4 || defined(__bsdi__)
- if (kvm_nlist (server->machine.kd, nlst) < 0) {
- glibtop_warn_io_r (server, "kvm_nlist (swap)");
- return;
- }
-#else
- struct kvm_swap dummy;
-
- if (kvm_getswapinfo (server->machine.kd, &dummy, 1, 0) != 0) {
- glibtop_warn_io_r (server, "kvm_swap (swap)");
- return;
- }
-#endif
-#endif
-
-#if !(defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)) && !defined(__OpenBSD__)
- if (kvm_nlist (server->machine.kd, nlst2) < 0) {
- glibtop_warn_io_r (server, "kvm_nlist (cnt)");
- return;
- }
-#endif
-
- server->sysdeps.swap = _glibtop_sysdeps_swap;
-}
-
-/* Provides information about swap usage. */
-
-/*
- * This function is based on a program called swapinfo written
- * by Kevin Lahey <kml@rokkaku.atl.ga.us>.
- */
-
-void
-glibtop_get_swap_p (glibtop *server, glibtop_swap *buf)
-{
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-
-# if (__FreeBSD__ < 4) && !defined(__FreeBSD_kernel__)
- char *header;
- int hlen, nswdev, dmmax;
- int div, nfree, npfree;
- struct swdevt *sw;
- long blocksize, *perdev;
- struct rlist head;
- struct rlisthdr swaplist;
- struct rlist *swapptr;
- size_t sw_size;
- u_long ptr;
-# else
- int nswdev;
- struct kvm_swap kvmsw[16];
-# endif
-
-#elif defined(__bsdi__)
- struct swapstats swap;
-#elif defined(__NetBSD__) || defined(__OpenBSD__)
- struct swapent *swaplist;
-#endif
-
- int nswap, i;
- int avail = 0, inuse = 0;
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
- struct uvmexp uvmexp;
- size_t length_uvmexp;
-#else
- /* To get `pagein' and `pageout'. */
- struct vmmeter vmm;
-#endif
- static int swappgsin = -1;
- static int swappgsout = -1;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_SWAP), 0);
-
- memset (buf, 0, sizeof (glibtop_swap));
-
- if (server->sysdeps.swap == 0)
- return;
-
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
- length_uvmexp = sizeof (uvmexp);
- if (sysctl (mib_uvmexp, 2, &uvmexp, &length_uvmexp, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (uvmexp)");
- return;
- }
-#else
- /* This is used to get the `pagein' and `pageout' members. */
-
- if (kvm_read (server->machine.kd, nlst2[0].n_value,
- &vmm, sizeof (vmm)) != sizeof (vmm)) {
- glibtop_warn_io_r (server, "kvm_read (cnt)");
- return;
- }
-#endif
-
- if (swappgsin < 0) {
- buf->pagein = 0;
- buf->pageout = 0;
- } else {
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
- buf->pagein = vmm.v_swappgsin - swappgsin;
- buf->pageout = vmm.v_swappgsout - swappgsout;
-#else
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
- buf->pagein = uvmexp.swapins - swappgsin;
- buf->pageout = uvmexp.swapouts - swappgsout;
-#else
- buf->pagein = vmm.v_swpin - swappgsin;
- buf->pageout = vmm.v_swpout - swappgsout;
-#endif
-#endif
- }
-
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
- swappgsin = vmm.v_swappgsin;
- swappgsout = vmm.v_swappgsout;
-#else
-#if defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000) || defined(__OpenBSD__)
- swappgsin = uvmexp.swapins;
- swappgsout = uvmexp.swapouts;
-#else
- swappgsin = vmm.v_swpin;
- swappgsout = vmm.v_swpout;
-#endif
-#endif
-
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
-
-#if (__FreeBSD__ < 4) && !defined(__FreeBSD_kernel__)
-
- /* Size of largest swap device. */
-
- if (kvm_read (server->machine.kd, nlst[VM_NSWAP].n_value,
- &nswap, sizeof (nswap)) != sizeof (nswap)) {
- glibtop_warn_io_r (server, "kvm_read (nswap)");
- return;
- }
-
- /* Number of swap devices. */
-
- if (kvm_read (server->machine.kd, nlst[VM_NSWDEV].n_value,
- &nswdev, sizeof (nswdev)) != sizeof (nswdev)) {
- glibtop_warn_io_r (server, "kvm_read (nswdev)");
- return;
- }
-
- /* Maximum size of a swap block. */
-
- if (kvm_read (server->machine.kd, nlst[VM_DMMAX].n_value,
- &dmmax, sizeof (dmmax)) != sizeof (dmmax)) {
- glibtop_warn_io_r (server, "kvm_read (dmmax)");
- return;
- }
-
- /* List of free swap areas. */
-
- if (kvm_read (server->machine.kd, nlst[VM_SWAPLIST].n_value,
- &swaplist, sizeof (swaplist)) != sizeof (swaplist)) {
- glibtop_warn_io_r (server, "kvm_read (swaplist)");
- return;
- }
-
- /* Kernel offset of list of swap devices and sizes. */
-
- if (kvm_read (server->machine.kd, nlst[VM_SWDEVT].n_value,
- &ptr, sizeof (ptr)) != sizeof (ptr)) {
- glibtop_warn_io_r (server, "kvm_read (swdevt)");
- return;
- }
-
- /* List of swap devices and sizes. */
-
- sw_size = nswdev * sizeof (*sw);
- sw = g_malloc (sw_size);
-
- if (kvm_read (server->machine.kd, ptr, sw, sw_size) != (ssize_t)sw_size) {
- glibtop_warn_io_r (server, "kvm_read (*swdevt)");
- return;
- }
-
- perdev = g_malloc (nswdev * sizeof (*perdev));
-
- /* Count up swap space. */
-
- nfree = 0;
- memset (perdev, 0, nswdev * sizeof(*perdev));
-
- swapptr = swaplist.rlh_list;
-
- while (swapptr) {
- int top, bottom, next_block;
-
- if (kvm_read (server->machine.kd, (int) swapptr, &head,
- sizeof (struct rlist)) != sizeof (struct rlist)) {
- glibtop_warn_io_r (server, "kvm_read (swapptr)");
- return;
- }
-
- top = head.rl_end;
- bottom = head.rl_start;
-
- nfree += top - bottom + 1;
-
- /*
- * Swap space is split up among the configured disks.
- *
- * For interleaved swap devices, the first dmmax blocks
- * of swap space some from the first disk, the next dmmax
- * blocks from the next, and so on up to nswap blocks.
- *
- * The list of free space joins adjacent free blocks,
- * ignoring device boundries. If we want to keep track
- * of this information per device, we'll just have to
- * extract it ourselves.
- */
- while (top / dmmax != bottom / dmmax) {
- next_block = ((bottom + dmmax) / dmmax);
- perdev[(bottom / dmmax) % nswdev] +=
- next_block * dmmax - bottom;
- bottom = next_block * dmmax;
- }
- perdev[(bottom / dmmax) % nswdev] +=
- top - bottom + 1;
-
- swapptr = head.rl_next;
- }
-
- header = getbsize (&hlen, &blocksize);
-
- div = blocksize / 512;
- avail = npfree = 0;
- for (i = 0; i < nswdev; i++) {
- int xsize, xfree;
-
- /*
- * Don't report statistics for partitions which have not
- * yet been activated via swapon(8).
- */
- if (!(sw[i].sw_flags & SW_FREED))
- continue;
-
- /* The first dmmax is never allocated to avoid trashing of
- * disklabels
- */
- xsize = sw[i].sw_nblks - dmmax;
- xfree = perdev[i];
- inuse = xsize - xfree;
- npfree++;
- avail += xsize;
- }
-
- /*
- * If only one partition has been set up via swapon(8), we don't
- * need to bother with totals.
- */
- inuse = avail - nfree;
-
- g_free (sw);
- g_free (perdev);
-
- buf->flags = _glibtop_sysdeps_swap;
-
- buf->used = inuse;
- buf->free = avail;
-
- buf->total = inuse + avail;
-
-#else
-
- nswdev = kvm_getswapinfo(server->machine.kd, kvmsw, 16, 0);
-
- buf->flags = _glibtop_sysdeps_swap;
-
- buf->used = kvmsw[nswdev].ksw_used * getpagesize();
- buf->total = kvmsw[nswdev].ksw_total * getpagesize();
-
- buf->free = buf->total - buf->used;
-
-#endif
-
-#elif defined(__bsdi__)
-
- /* General info about swap devices. */
-
- if (kvm_read (server->machine.kd, nlst[0].n_value,
- &swap, sizeof (swap)) != sizeof (swap)) {
- glibtop_warn_io_r (server, "kvm_read (swap)");
- return;
- }
-
- buf->flags = _glibtop_sysdeps_swap;
-
- buf->used = swap.swap_total - swap.swap_free;
- buf->free = swap.swap_free;
-
- buf->total = swap.swap_total;
-
-#elif defined(__NetBSD__) || defined(__OpenBSD__)
-
- nswap = swapctl (SWAP_NSWAP, NULL, 0);
- if (nswap < 0) {
- glibtop_warn_io_r (server, "swapctl (SWAP_NSWAP)");
- return;
- }
-
- swaplist = g_malloc (nswap * sizeof (struct swapent));
-
- if (swapctl (SWAP_STATS, swaplist, nswap) != nswap) {
- glibtop_warn_io_r (server, "swapctl (SWAP_STATS)");
- g_free (swaplist);
- return;
- }
-
- for (i = 0; i < nswap; i++) {
- avail += swaplist[i].se_nblks;
- inuse += swaplist[i].se_inuse;
- }
-
- g_free (swaplist);
-
- buf->flags = _glibtop_sysdeps_swap;
-
- buf->used = inuse;
- buf->free = avail;
-
- buf->total = inuse + avail;
-#endif
-}
diff --git a/sysdeps/bsd/sysinfo.c b/sysdeps/bsd/sysinfo.c
deleted file mode 100644
index 10cbd6f3..00000000
--- a/sysdeps/bsd/sysinfo.c
+++ /dev/null
@@ -1,91 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/sysctl.h>
-#include <glibtop/error.h>
-#include <glibtop/cpu.h>
-#include <glibtop/sysinfo.h>
-
-static const unsigned long _glibtop_sysdeps_sysinfo =
-(1L << GLIBTOP_SYSINFO_CPUINFO);
-
-static glibtop_sysinfo sysinfo = { .flags = 0 };
-
-static void
-init_sysinfo (glibtop *server)
-{
- char *model;
- guint64 ncpus = 1;
- int mhz = 0;
- size_t len;
-
- if (G_LIKELY (sysinfo.flags))
- return;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);
-
- len = sizeof (ncpus);
- sysctlbyname ("hw.ncpu", &ncpus, &len, NULL, 0);
- len = 0;
- sysctlbyname ("hw.model", NULL, &len, NULL, 0);
- model = g_malloc (len);
- sysctlbyname ("hw.model", model, &len, NULL, 0);
- len = sizeof (mhz);
- sysctlbyname ("hw.clockrate", &mhz, &len, NULL, 0);
-
- for (sysinfo.ncpu = 0;
- sysinfo.ncpu < GLIBTOP_NCPU && sysinfo.ncpu < ncpus;
- sysinfo.ncpu++) {
- glibtop_entry * const cpuinfo = &sysinfo.cpuinfo[sysinfo.ncpu];
-
- cpuinfo->labels = g_ptr_array_new ();
-
- cpuinfo->values = g_hash_table_new_full(g_str_hash,
- g_str_equal,
- NULL, g_free);
-
- g_ptr_array_add (cpuinfo->labels, "processor");
- g_hash_table_insert (cpuinfo->values, "processor",
- g_strdup_printf("%u", (guint)sysinfo.ncpu));
-
- g_ptr_array_add (cpuinfo->labels, "vendor_id");
- g_hash_table_insert (cpuinfo->values, "vendor_id",
- g_strdup(model));
-
- g_ptr_array_add (cpuinfo->labels, "cpu MHz");
- g_hash_table_insert (cpuinfo->values, "cpu MHz",
- g_strdup_printf("%d", mhz));
- }
-
- g_free (model);
-
- sysinfo.flags = _glibtop_sysdeps_sysinfo;
-}
-
-const glibtop_sysinfo *
-glibtop_get_sysinfo_s (glibtop *server)
-{
- init_sysinfo (server);
- return &sysinfo;
-}
diff --git a/sysdeps/bsd/uptime.c b/sysdeps/bsd/uptime.c
deleted file mode 100644
index f17b5ea9..00000000
--- a/sysdeps/bsd/uptime.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/uptime.h>
-
-#include <glibtop/cpu.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_uptime =
-(1L << GLIBTOP_UPTIME_UPTIME) + (1L << GLIBTOP_UPTIME_IDLETIME);
-
-static const unsigned long _required_cpu_flags =
-(1L << GLIBTOP_CPU_TOTAL) + (1L << GLIBTOP_CPU_IDLE) +
-(1L << GLIBTOP_CPU_FREQUENCY);
-
-/* Init function. */
-
-void
-_glibtop_init_uptime_p (glibtop *server)
-{
- server->sysdeps.uptime = _glibtop_sysdeps_uptime;
-}
-
-/* Provides uptime and idle time. */
-
-void
-glibtop_get_uptime_p (glibtop *server, glibtop_uptime *buf)
-{
-#if defined(__NetBSD__) || defined(__OpenBSD__)
- time_t now;
- time_t uptime;
- int mib[2];
- struct timeval boottime;
- size_t size;
-
- mib[0] = CTL_KERN;
- mib[1] = KERN_BOOTTIME;
- size = sizeof(boottime);
- if (sysctl(mib, 2, &boottime, &size, NULL, 0) != -1 &&
- boottime.tv_sec != 0) {
- time(&now);
- buf->uptime = now - boottime.tv_sec;
- /* XXX: don't know a useful value to put here. */
- buf->idletime = 0;
- buf->flags = _glibtop_sysdeps_uptime;
- }
-#else
- glibtop_cpu cpu;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_UPTIME), 0);
-
- memset (buf, 0, sizeof (glibtop_uptime));
-
- /* We simply calculate it from the CPU usage. */
-
- glibtop_get_cpu_p (server, &cpu);
-
- /* Make sure all required fields are present. */
-
- if ((cpu.flags & _required_cpu_flags) != _required_cpu_flags)
- return;
-
- /* Calculate values. */
-
- buf->uptime = (double) cpu.total / (double) cpu.frequency;
- buf->idletime = (double) cpu.idle / (double) cpu.frequency;
-
- buf->flags = _glibtop_sysdeps_uptime;
-#endif
-}
diff --git a/sysdeps/common/ChangeLog b/sysdeps/common/ChangeLog
deleted file mode 100644
index f22d9b6b..00000000
--- a/sysdeps/common/ChangeLog
+++ /dev/null
@@ -1,253 +0,0 @@
-2007-05-19 Benoît Dejean <benoit@placenet.org>
-
- * default.c:
-
- Fixed returned type.
-
-2007-03-16 Benoît Dejean <benoit@placenet.org>
-
- * mountlist.c: (ignore_mount_entry):
-
- Ignore securityfs and fusectl.
- Patch by Fryderyk Dziarmagowski <freetz@gmx.net>
- Closes #418718.
-
-2007-02-10 Benoît Dejean <benoit@placenet.org>
-
- * fsusage.c: (glibtop_get_fsusage_s):
-
- Make sure avail <= free.
- Closes #406280.
-
-2007-01-31 Benoît Dejean <benoit@placenet.org>
-
- * mountlist.c: (ignore_mount_entry):
-
- Fixed order.
- Added objfs and ctfs.
- Closes #400557.
-
-2006-09-21 Benoît Dejean <benoit@placenet.org>
-
- * mountlist.c: (ignore_mount_entry):
-
- Added nfsd to the exclude list.
-
-2006-06-24 Benoît Dejean <benoit@placenet.org>
-
- * mountlist.c: (read_filesystem_list):
-
- Ensure file is closed.
-
- (glibtop_get_mountlist_s):
-
- Fixed .flags.
-
- Patch by hua.zhang@sun.com.
- Closes #345812.
-
-2006-04-09 Benoît Dejean <benoit@placenet.org>
-
- * Makefile.am: Fixed trivial warning.
-
-2006-02-21 Benoît Dejean <benoit@placenet.org>
-
- * mountlist.c: (ignore_mount_entry): Also ignores linprocfs, mfs
- and devfs.
- Closes #331856.
- Patch by Andreas Kohn <andreas.kohn@gmail.com>
-
-2005-04-26 Jörgen Scheibengruber <mfcn@gmx.de>
-
- * mountlist.c: (ignore_mount_entry): Added tmpfs to ignore list.
-
-2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
-
- * error.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
- * error_suid.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
- s/strerror/g_strerror/g.
-
-2005-03-11 Benoît Dejean <TazForEver@dlfp.org>
-
- * mountlist.c: (ignore_mount_entry): Added mqueue to ignore list.
-
-2005-02-28 Benoît Dejean <TazForEver@dlfp.org>
-
- * fsusage.c: * Add support for file system read and write counting
- (needed for the disk load feature of the multiload applet).
-
-2005-02-23 Benoît Dejean <TazForEver@dlfp.org>
-
- * fsusage.c: (glibtop_get_fsusage_s): Correct file system size calculations.
- Patch from marcus@freebsd.org (Joe Marcus Clarke).
- Closes #168232.
-
-2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
-
- * fsusage.c: (_glibtop_get_fsusage_read_write): Fixed G_GNUC attribute usage.
- Replaced macro by inline function.
-
-2005-01-18 Benoît Dejean <TazForEver@dlfp.org>
-
- * mountlist.c: (ignore_mount_entry): Re-worked with bsearch.
-
-2004-12-09 Benoît Dejean <tazforever@dlfp.org>
-
- * mountlist.c: (ignore_mount_entry): Ignores "unkown" file system type.
-
-2004-09-24 Benoît Dejean <tazforever@dlfp.org>
-
- * fsusage.c: (glibtop_get_fsusage_s): Fixed .block_size on Solaris.
-
-2004-09-24 Benoît Dejean <tazforever@dlfp.org>
-
- * Makefile.am:
- * mountlist.c:
- * mountlist.h: Removed mountlist.h.
-
-2004-09-23 Benoît Dejean <tazforever@dlfp.org>
-
- * mountlist.c: (ignore_mount_entry): Added openpromfs.
-
-2004-09-22 Benoît Dejean <tazforever@dlfp.org>
-
- * fsusage.c: (glibtop_get_fsusage_s): Linux: Sanitize. Removed calls
- to obfuscated PROPAGATE_ALL_ONES(x) which seems to return unpredictable
- values on some arch (e.g sparc).
- Closes #153141.
-
-2004-09-22 Benoît Dejean <tazforever@dlfp.org>
-
- * mountlist.c: (ignore_mount_entry): Added mntfs to ignore list.
-
-2004-09-21 Benoît Dejean <tazforever@dlfp.org>
-
- * fsusage.c: (_glibtop_get_fsusage_read_write),
- (glibtop_get_fsusage_s):
- * mountlist.c: (glibtop_get_mountlist_s): Back to previous version.
-
-2004-09-19 Benoît Dejean <tazforever@dlfp.org>
-
- * fsusage.c: (_glibtop_get_fsusage_read_write) : Added new flag.
- (_glibtop_get_fsusage_read_write): Changed prototype. Returns TRUE on
- success, then _glibtop_get_fsusage_read_write is set.
-
- Added comment to locate Linux code.
-
- * mountlist.c: (read_filesystem_list): Dropped unused need_fs_type parameter.
- This is now default.
- Fixed possible leak.
-
- (ignore_mount_entry): Added "usbfs" to ignored FS.
-
- (glibtop_get_mountlist_s): Updated.
-
-2004-08-22 Benoît Dejean <tazforever@dlfp.org>
-
- * mountlist.c: (read_filesystem_list): Merged FreeBSD Marcus' patch.
-
-2004-07-17 Benoît Dejean <tazforever@dlfp.org>
-
- * fsusage.c: (glibtop_get_fsusage_s): Started implementation of read, write.
- Code should be splitted into arch specific files.
-
- * mountlist.c: (glibtop_get_mountlist_s): glibify. Used GArray.
-
-2004-07-07 Benoît Dejean <tazforever@dlfp.org>
-
- * Makefile.am:
- * procargs.c: (split_args0), (glibtop_get_proc_argv_l),
- (glibtop_get_proc_argv_p), (glibtop_get_proc_argv_s): Added file to
- repository. Provides glibtop_get_proc_argv*() for system dependant
- glibtop_get_proc_args*().
-
-2004-06-18 Benoît Dejean <tazforever@dlfp.org>
-
- * error.c: (print_server_name), (glibtop_error_r),
- (glibtop_warn_r), (glibtop_error_io_r), (glibtop_warn_io_r),
- (glibtop_error), (glibtop_warn), (glibtop_error_io),
- (glibtop_warn_io): These functions are now globally defined.
-
-2004-06-12 Benoît Dejean <tazforever@dlfp.org>
-
- * Makefile.am:
- * fsusage-frontend.c:
- * fsusage.h: Removed files.
-
- * fsusage.c: (glibtop_get_fsusage_s), (statfs): Merged and cleaned.
-
-2004-06-12 Benoît Dejean <tazforever@dlfp.org>
-
- * mountlist.c: (xatoi) Removed, replaced by ISO strtoull.
- (fstype_to_string): Cleaned.
- (read_filesystem_list) : Changed prototype. Cleaned and secured.
- Replaced broken free by g_free.
- (ignore_mount_entry): Added.
- (glibtop_get_mountlist_s): Cleaned. Better allocation algorithm.
- @all_fs has now a real meaning, see the documentation.
-
-2004-06-06 Benoît Dejean <tazforever@dlfp.org>
-
- * gnuslib.c: (connect_to_internet_server): Cleaned.
- * mountlist.c: (glibtop_get_mountlist_s): Replaced multiple strcpy/cat by
- g_strdup_printf. Replaced strncpy by g_strlcpy.
-
-2004-03-15 Bastien Nocera <hadess@hadess.net>
-
- * fsusage.c:
- * fsusage.h: remove use of uintmax_t
-
-2004-03-09 Bastien Nocera <hadess@hadess.net>
-
- * fsusage.c: fix build (we don't have "full-read.h" here)
-
-2003-12-27 Ole Laursen <olau@hardworking.dk>
-
- * README.fsusage: Added a few words about the code from GNU
- Coreutils.
-
- * fsusage.c, fsusage.h: Resynced from GNU Coreutils 5.0.
-
- * fsusage-frontend.c: Moved the frontend from fsusage.c to here.
-
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am:
- * fsusage.h: install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
- Include glib.h for the definition of guint64
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * inodedb.c: (glibtop_inodedb_close_s): fix compilation, thanks Jeff
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * ChangeLog:
- * backend.c: (_open_common):
- * fsusage.c:
- * fsusage.h:
- * inodedb.c: (glibtop_inodedb_lookup_s): s/u_int64_t/guint64/
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * inodedb.c:
- * mountlist.c: (glibtop_get_mountlist_s): fixed compilation
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am:
- * inodedb.c: (glibtop_inodedb_open_s), (glibtop_inodedb_close_s):
- * mountlist.c: (glibtop_get_mountlist_s):
- * xmalloc.c:
- * xmalloc_suid.c: replace all the xmalloc crap by glib memory
- management functions
-
-2000-01-20 Martin Baulig <martin@home-of-linux.org>
-
- * fsusage.c (adjust_blocks): Use `guint64' arguments and
- return value to avoid long int overflows on machines with large
- disks.
-
- * fsusage.h (struct fs_usage): Use `guint64' here as well.
-
diff --git a/sysdeps/common/Makefile.am b/sysdeps/common/Makefile.am
deleted file mode 100644
index 447e6d38..00000000
--- a/sysdeps/common/Makefile.am
+++ /dev/null
@@ -1,18 +0,0 @@
-
-INCLUDES = @INCLUDES@
-
-noinst_LTLIBRARIES = libgtop_common-2.0.la libgtop_suid_common-2.0.la
-
-libgtop_common_2_0_la_SOURCES = error.c gnuslib.c \
- fsusage.c \
- mountlist.c \
- procargs.c \
- default.c
-
-# libgtop_common_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-libgtop_common_2_0_la_LIBADD = $(LIBGTOP_EXTRA_LIBS)
-
-libgtop_suid_common_2_0_la_SOURCES = error.c sysdeps_suid.c
-
-# libgtop_suid_common_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
diff --git a/sysdeps/common/README.fsusage b/sysdeps/common/README.fsusage
deleted file mode 100644
index 9c2edf0d..00000000
--- a/sysdeps/common/README.fsusage
+++ /dev/null
@@ -1,9 +0,0 @@
-The files fsusage.c and fsusage.h have been stolen from the GNU
-Coreutils package (version 5.0) and are the actual implementation of
-the fsusage function.
-
-The only changes that have been made to these files is that some code
-for SVR2 has been ripped out since it depended on some more code (SVR3
-was released in 1986 and introduced shared libraries), and the
-functions have been prefixed with glibtop_private to avoid name
-clashes with user code.
diff --git a/sysdeps/common/default.c b/sysdeps/common/default.c
deleted file mode 100644
index ae66c01f..00000000
--- a/sysdeps/common/default.c
+++ /dev/null
@@ -1,370 +0,0 @@
-#include <config.h>
-
-#include <glibtop.h>
-#include <glibtop/sysinfo.h>
-#include <glibtop/union.h>
-
-
-/**
- * glibtop_close:
- *
- * Close the connection to the server.
- */
-void
-glibtop_close(void)
-{
- glibtop_close_r(glibtop_global_server);
-}
-
-/**
- * SECTION:glibtop
- * @short_description: Server initilization
- * @stability: Stable
- *
- * You do not need to worry about the #glibtop * server structure if
- * you don't need - the library exports a #glibtop_global_server
- * which you can use everywhere a #glibtop * is expected.
- *
- * Most of the library and all of the sysdeps function also have an alias
- * (which is the function name without the <suffix>_l</suffix>,
- * <suffix>_s</suffix> or <suffix>_r</suffix> suffix) which don't
- * take a #glibtop * as argument but uses the #glibtop_global_server
- * instead.
- */
-
-/**
- * glibtop_init:
- *
- * Server initialization.
- *
- * Returns: A #glibtop reference.
- */
-glibtop*
-glibtop_init(void)
-{
- return glibtop_init_r(&glibtop_global_server, 0, 0);
-}
-
-
-/**
- * glibtop_get_cpu:
- * @buf: A location to return the CPU usage.
- *
- * Get the CPU usage.
- *
- * All CPU units are measured in <type>jiffies</type> which are normally
- * 1/100th of a second (in which case <type>frequency</type> equals 100),
- * but can also be in any other unit. To get seconds, divide them by
- * <type>frequency</type>.
- */
-void
-glibtop_get_cpu(glibtop_cpu *buf)
-{
- glibtop_get_cpu_l(glibtop_global_server, buf);
-}
-
-
-/**
- * glibtop_get_fsusage:
- * @buf: A location to return the file system usage.
- * @mount_dir: mount dir where to get the information of usage.
- *
- * Get the file system usage for an specific @mount_dir.
- */
-void
-glibtop_get_fsusage(glibtop_fsusage *buf, const char *mount_dir)
-{
- glibtop_get_fsusage_l(glibtop_global_server, buf, mount_dir);
-}
-
-
-/**
- * glibtop_get_uptime:
- * @buf: A location to return the system uptime
- *
- * When porting LibGTop to a new system, you only need to implement
- * #uptime and #idletime if there's a faster or better way to obtain them
- * as using function(glibtop_cpu) for it. Look at
- * <filename>sysdeps/freebsd/uptime.c</filename> for an
- * example on how to obtain them using function(glibtop_cpu).
- */
-void
-glibtop_get_uptime(glibtop_uptime *buf)
-{
- glibtop_get_uptime_l(glibtop_global_server, buf);
-}
-
-
-/**
- * glibtop_sysinfo:
- *
- * Returns: The system information through a #glibtop_sysinfo structure.
- */
-const glibtop_sysinfo *
-glibtop_get_sysinfo(void)
-{
- return glibtop_get_sysinfo_s(glibtop_global_server);
-}
-
-
-/**
- * glibtop_get_swap:
- * @buf: A location to return a #glibtop_swap.
- *
- * Get the swap usage.
- */
-void
-glibtop_get_swap(glibtop_swap *buf)
-{
- glibtop_get_swap_l(glibtop_global_server, buf);
-}
-
-
-/**
- * glibtop_get_proc_uid:
- * @buf: A location to return a #glibtop_proc_uid
- * @pid: Process id to get the user and tty information
- *
- * Get the process user id and tty information.
- */
-void
-glibtop_get_proc_uid(glibtop_proc_uid *buf, pid_t pid)
-{
- glibtop_get_proc_uid_l(glibtop_global_server, buf, pid);
-}
-
-
-/**
- * glibtop_get_proc_time:
- * @buf:
- * @pid: Process id to get the user and tty information
- *
- * Please note that under Linux, #start_time value may be strange.
- * Linux kernel defines <type>INITIAL_JIFFIES</type> which implies a time
- * shift. Because <type>INITIAL_JIFFIES</type> is not user-space defined,
- * we cannot use it to compute accurate @code{start_time}. On Linux2.6,
- * <type>INITIAL_JIFFIES</type> is 300 so <type>start_time</type> is
- * always 3s different from real start time of the given process. You
- * may also get shift results if your system clock is not synchronised
- * with your hardware clock. See <command>man hwclock</command>.
- */
-void
-glibtop_get_proc_time(glibtop_proc_time *buf, pid_t pid)
-{
- glibtop_get_proc_time_l(glibtop_global_server, buf, pid);
-}
-
-
-void
-glibtop_get_proc_state(glibtop_proc_state *buf, pid_t pid)
-{
- glibtop_get_proc_state_l(glibtop_global_server, buf, pid);
-}
-
-
-void
-glibtop_get_proc_signal(glibtop_proc_signal *buf, pid_t pid)
-{
- glibtop_get_proc_signal_l(glibtop_global_server, buf, pid);
-}
-
-
-void
-glibtop_get_proc_segment(glibtop_proc_segment *buf, pid_t pid)
-{
- glibtop_get_proc_segment_l(glibtop_global_server, buf, pid);
-}
-
-
-glibtop_open_files_entry *
-glibtop_get_proc_open_files(glibtop_proc_open_files *buf, pid_t pid)
-{
- return glibtop_get_proc_open_files_l(glibtop_global_server, buf, pid);
-}
-
-
-void
-glibtop_get_proc_mem(glibtop_proc_mem *buf, pid_t pid)
-{
- glibtop_get_proc_mem_l(glibtop_global_server, buf, pid);
-}
-
-
-glibtop_map_entry *
-glibtop_get_proc_map(glibtop_proc_map *buf, pid_t pid)
-{
- return glibtop_get_proc_map_l(glibtop_global_server, buf, pid);
-}
-
-
-char *
-glibtop_get_proc_args(glibtop_proc_args *buf, pid_t pid, unsigned max_len)
-{
- return glibtop_get_proc_args_l(glibtop_global_server, buf, pid, max_len);
-}
-
-
-char **
-glibtop_get_proc_argv(glibtop_proc_args *buf, pid_t pid, unsigned max_len)
-{
- return glibtop_get_proc_argv_l(glibtop_global_server, buf, pid, max_len);
-}
-
-
-pid_t*
-glibtop_get_proclist(glibtop_proclist *buf, gint64 which, gint64 arg)
-{
- return glibtop_get_proclist_l(glibtop_global_server, buf, which, arg);
-}
-
-
-void
-glibtop_get_proc_kernel(glibtop_proc_kernel *buf, pid_t pid)
-{
- glibtop_get_proc_kernel_l(glibtop_global_server, buf, pid);
-}
-
-
-/**
- * SECTION:ppp
- * @short_description: PPP Usage.
- * @see_also: #libgtop-netload, #libgtop-netlist
- * @stability: Stable
- *
- * Management of a PPP device.
- */
-
-/**
- * glibtop_get_ppp:
- * @buf: A location to return the PPP usage
- * @short device: The device to ask information
- *
- * Get the PPP usage.
- */
-void
-glibtop_get_ppp(glibtop_ppp *buf, unsigned short device)
-{
- glibtop_get_ppp_l(glibtop_global_server, buf, device);
-}
-
-/**
- * SECTION:netlist
- * @short_description: Network Devices List.
- * @see_also: #libgtop-netload
- * @stability: Stable
- *
- * The application class handles ...
- */
-
-/**
- * glibtop_get_nelist:
- * @buf:
- *
- * Get the list of network devices.
- *
- * Returns: A list of network devices.
- */
-char**
-glibtop_get_netlist(glibtop_netlist *buf)
-{
- return glibtop_get_netlist_l(glibtop_global_server, buf);
-}
-
-/**
- * SECTION:netload
- * @short_description: Network Load.
- * @see_also: #libtop-netlist
- * @stability: Stable
- *
- * The application class handles ...
- */
-
-
-/**
- * glibtop_get_netload:
- * @buf: The variable where the results will be assigned.
- * @interface: The name of the network interface.
- *
- * Recolects network statistics for @interface
- * (which is the same than in <application>ifconfig</application>).
- * The values are returned into @buf.
- */
-void
-glibtop_get_netload(glibtop_netload *buf, const char *interface)
-{
- glibtop_get_netload_l(glibtop_global_server, buf, interface);
-}
-
-
-glibtop_mountentry *
-glibtop_get_mountlist(glibtop_mountlist *buf, int all_fs)
-{
- return glibtop_get_mountlist_l(glibtop_global_server, buf, all_fs);
-}
-
-
-/**
- * glibtop_get_mem:
- * @buf: Buffer where the output will be given.
- *
- * Get the memory usage. Unless explicitly stated otherwise, all memory
- * units are in bytes.
- */
-void
-glibtop_get_mem(glibtop_mem *buf)
-{
- glibtop_get_mem_l(glibtop_global_server, buf);
-}
-
-
-void
-glibtop_get_loadavg(glibtop_loadavg *buf)
-{
- glibtop_get_loadavg_l(glibtop_global_server, buf);
-}
-
-
-void
-glibtop_get_msg_limits(glibtop_msg_limits *buf)
-{
- glibtop_get_msg_limits_l(glibtop_global_server, buf);
-}
-
-
-void
-glibtop_get_sem_limits(glibtop_sem_limits *buf)
-{
- glibtop_get_sem_limits_l(glibtop_global_server, buf);
-}
-
-
-void
-glibtop_get_shm_limits(glibtop_shm_limits *buf)
-{
- glibtop_get_shm_limits_l(glibtop_global_server, buf);
-}
-
-
-void
-glibtop_get_sysdeps(glibtop_sysdeps *buf)
-{
- glibtop_get_sysdeps_r(glibtop_global_server, buf);
-}
-
-
-/**
- * glibtop_get_proc_wd:
- * @buf:
- * @pid: Process id to get the user and tty information
- *
- * Get the root directory and the working directories
- *
- * Returns: A NULL-terminated list of working directories.
- */
-char**
-glibtop_get_proc_wd(glibtop_proc_wd *buf, pid_t pid)
-{
- return glibtop_get_proc_wd_l(glibtop_global_server, buf, pid);
-}
-
-
diff --git a/sysdeps/common/error.c b/sysdeps/common/error.c
deleted file mode 100644
index a8f9d011..00000000
--- a/sysdeps/common/error.c
+++ /dev/null
@@ -1,170 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-
-#include <glib/gstrfuncs.h>
-#include <errno.h>
-
-#include <glibtop/error.h>
-
-#define DEFAULT_NAME "LibGTop-Server"
-
-/* Prints error message and exits. */
-
-static void
-print_server_name (const glibtop *server)
-{
- fprintf (stderr, "%s: ", server && server->name
- ? server->name
- : DEFAULT_NAME);
-}
-
-void
-glibtop_error_vr (glibtop *server, const char *format, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fputc('\n', stderr);
-
-#ifdef LIBGTOP_ENABLE_DEBUG
- abort ();
-#else
- exit (1);
-#endif
-}
-
-void
-glibtop_error_io_vr (glibtop *server, const char *format, int error, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fprintf (stderr, ": %s\n", g_strerror (error));
-
-#ifdef LIBGTOP_ENABLE_DEBUG
- abort ();
-#else
- exit (1);
-#endif
-}
-
-void
-glibtop_warn_vr (glibtop *server, const char *format, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fputc('\n', stderr);
-
-#ifdef LIBGTOP_FATAL_WARNINGS
- abort ();
-#endif
-}
-
-void
-glibtop_warn_io_vr (glibtop *server, const char *format, int error, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fprintf (stderr, ": %s\n", g_strerror (error));
-
-#ifdef LIBGTOP_FATAL_WARNINGS
- abort ();
-#endif
-}
-
-
-void
-glibtop_error_r (glibtop *server, const char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_error_vr (server, format, args);
- va_end (args);
-}
-
-
-void
-glibtop_warn_r (glibtop *server, const char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_warn_vr (server, format, args);
- va_end (args);
-}
-
-void
-glibtop_error_io_r (glibtop *server, const char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_error_io_vr (server, format, errno, args);
- va_end (args);
-}
-
-void
-glibtop_warn_io_r (glibtop *server, const char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_warn_io_vr (server, format, errno, args);
- va_end (args);
-}
-
-
-void
-glibtop_error (const char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_error_vr (glibtop_global_server, format, args);
- va_end (args);
-}
-
-void
-glibtop_warn (const char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_warn_vr (glibtop_global_server, format, args);
- va_end (args);
-}
-
-void
-glibtop_error_io (const char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_error_io_vr (glibtop_global_server, format, errno, args);
- va_end (args);
-}
-
-void
-glibtop_warn_io (const char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_warn_io_vr (glibtop_global_server, format, errno, args);
- va_end (args);
-}
diff --git a/sysdeps/common/error_suid.c b/sysdeps/common/error_suid.c
deleted file mode 100644
index 8e4603ba..00000000
--- a/sysdeps/common/error_suid.c
+++ /dev/null
@@ -1,173 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
-
-/* 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.
-*/
-
-#include <config.h>
-
-#include <glib/gstrfuncs.h>
-#include <errno.h>
-
-#include <glibtop/error.h>
-
-#define DEFAULT_NAME "LibGTop-Server"
-
-/* Prints error message and exits. */
-
-static void
-print_server_name (glibtop_server *server)
-{
- fprintf (stderr, "%s: ", server ?
- (server->name ? server->name : DEFAULT_NAME)
- : DEFAULT_NAME);
-}
-
-void
-glibtop_error_vr (glibtop_server *server, char *format, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fprintf (stderr, "\n");
-
-#ifdef LIBGTOP_ENABLE_DEBUG
- abort ();
-#else
- exit (1);
-#endif
-}
-
-void
-glibtop_error_io_vr (glibtop_server *server, char *format, int error, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fprintf (stderr, ": %s\n", g_strerror (error));
-
-#ifdef LIBGTOP_ENABLE_DEBUG
- abort ();
-#else
- exit (1);
-#endif
-}
-
-void
-glibtop_warn_vr (glibtop_server *server, char *format, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fprintf (stderr, "\n");
-
-#ifdef LIBGTOP_FATAL_WARNINGS
- abort ();
-#endif
-}
-
-void
-glibtop_warn_io_vr (glibtop_server *server, char *format, int error, va_list args)
-{
- print_server_name (server);
- vfprintf (stderr, format, args);
- fprintf (stderr, ": %s\n", g_strerror (error));
-
-#ifdef LIBGTOP_FATAL_WARNINGS
- abort ();
-#endif
-}
-
-void
-glibtop_error_r (glibtop_server *server, char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_error_vr (server, format, args);
- va_end (args);
-}
-
-void
-glibtop_warn_r (glibtop_server *server, char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_warn_vr (server, format, args);
- va_end (args);
-}
-
-void
-glibtop_error_io_r (glibtop_server *server, char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_error_io_vr (server, format, errno, args);
- va_end (args);
-}
-
-void
-glibtop_warn_io_r (glibtop_server *server, char *format, ...)
-{
- va_list args;
-
- va_start (args, format);
- glibtop_warn_io_vr (server, format, errno, args);
- va_end (args);
-}
-
-#ifndef __GNUC__
-
-static void
-glibtop_error (char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_error_vr (glibtop_global_server, format, args);
- va_end (args);
-}
-
-static void
-glibtop_warn (char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_warn_vr (glibtop_global_server, format, args);
- va_end (args);
-}
-
-static void
-glibtop_error_io (char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_error_io_vr (glibtop_global_server, format, errno, args);
- va_end (args);
-}
-
-static void
-glibtop_warn_io (char *format, ...)
-{
- va_list args;
- va_start (args, format);
- glibtop_warn_io_vr (glibtop_global_server, format, errno, args);
- va_end (args);
-}
-
-#endif /* no __GNUC__ */
diff --git a/sysdeps/common/fsusage.c b/sysdeps/common/fsusage.c
deleted file mode 100644
index 1936da87..00000000
--- a/sysdeps/common/fsusage.c
+++ /dev/null
@@ -1,326 +0,0 @@
-/* fsusage.c -- return space usage of mounted filesystems
- Copyright (C) 1991, 1992, 1996, 1998, 1999, 2002, 2003 Free Software
- Foundation, Inc.
-
- This program 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, or (at your option)
- any later version.
-
- This program 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 this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <glibtop.h>
-#include <glibtop/fsusage.h>
-
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#ifdef HAVE_LIMITS_H
-# include <limits.h>
-#endif
-#ifndef CHAR_BIT
-# define CHAR_BIT 8
-#endif
-
-#ifdef HAVE_SYS_PARAM_H
-# include <sys/param.h>
-#endif
-
-#ifdef HAVE_SYS_MOUNT_H
-# include <sys/mount.h>
-#endif
-
-#ifdef HAVE_SYS_VFS_H
-# include <sys/vfs.h>
-#endif
-
-#ifdef HAVE_SYS_FS_S5PARAM_H /* Fujitsu UXP/V */
-# include <sys/fs/s5param.h>
-#endif
-
-#if defined HAVE_SYS_FILSYS_H && !defined _CRAY
-# include <sys/filsys.h> /* SVR2 */
-#endif
-
-#ifdef HAVE_FCNTL_H
-# include <fcntl.h>
-#endif
-
-#ifdef HAVE_SYS_STATFS_H
-# include <sys/statfs.h>
-#endif
-
-#ifdef HAVE_DUSTAT_H /* AIX PS/2 */
-# include <sys/dustat.h>
-#endif
-
-#ifdef HAVE_SYS_STATVFS_H /* SVR4 */
-# include <sys/statvfs.h>
-int statvfs (const char *path, struct statvfs *buf);
-#endif
-
-/* Many space usage primitives use all 1 bits to denote a value that is
- not applicable or unknown. Propagate this information by returning
- a guint64 value that is all 1 bits if X is all 1 bits, even if X
- is unsigned and narrower than guint64. */
-#define PROPAGATE_ALL_ONES(x) \
- ((sizeof (x) < sizeof (guint64) \
- && (~ (x) == (sizeof (x) < sizeof (int) \
- ? - (1 << (sizeof (x) * CHAR_BIT)) \
- : 0))) \
- ? G_MAXUINT64 : (x))
-
-/* Extract the top bit of X as an guint64 value. */
-#define EXTRACT_TOP_BIT(x) ((x) \
- & ((guint64) 1 << (sizeof (x) * CHAR_BIT - 1)))
-
-/* If a value is negative, many space usage primitives store it into an
- integer variable by assignment, even if the variable's type is unsigned.
- So, if a space usage variable X's top bit is set, convert X to the
- guint64 value V such that (- (guint64) V) is the negative of
- the original value. If X's top bit is clear, just yield X.
- Use PROPAGATE_TOP_BIT if the original value might be negative;
- otherwise, use PROPAGATE_ALL_ONES. */
-#define PROPAGATE_TOP_BIT(x) ((x) | ~ (EXTRACT_TOP_BIT (x) - 1))
-
-/* Fill in the fields of FSP with information about space usage for
- the filesystem on which PATH resides.
- DISK is the device on which PATH is mounted, for space-getting
- methods that need to know it.
- Return 0 if successful, -1 if not. When returning -1, ensure that
- ERRNO is either a system error value, or zero if DISK is NULL
- on a system that requires a non-NULL value. */
-
-
-static const unsigned long _glibtop_sysdeps_fsusage =
-(1L << GLIBTOP_FSUSAGE_BLOCKS) + (1L << GLIBTOP_FSUSAGE_BFREE)
-+ (1L << GLIBTOP_FSUSAGE_BAVAIL) + (1L << GLIBTOP_FSUSAGE_FILES)
-+ (1L << GLIBTOP_FSUSAGE_FFREE) + (1L << GLIBTOP_FSUSAGE_BLOCK_SIZE);
-
-
-/*
- * _glibtop_get_fsusage_read_write
- * New function to retrieve total read and write
- *
- * Each arch should have its own function()
- * and the proper #define. This is more readable than one single
- * function full of #something where everything is mixed.
- * These functions are private.
- *
- * void _glibtop_<arch>_get_fsusage_read_write(glibtop*server,
- * glibtop_fsusage *buf,
- * const char *path);
- *
- * TODO: split this file properly, is possible
- */
-
-#ifdef linux
-void
-_glibtop_linux_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path);
-
-static inline void
-_glibtop_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path)
-{
- _glibtop_linux_get_fsusage_read_write(server, buf, path);
-}
-
-
-#elif defined(__FreeBSD__)
-void
-_glibtop_freebsd_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path);
-
-#define _glibtop_get_fsusage_read_write(S, B, P) \
- _glibtop_freebsd_get_fsusage_read_write(S, B, P)
-
-#else /* default fallback */
-#warning glibtop_get_fsusage .read .write are not implemented.
-static inline void
-_glibtop_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path)
-{
- /* NOOP */
-}
-#endif /* default fallback */
-
-/* end _glibtop_get_fsusage_read_write */
-
-
-
-void
-glibtop_get_fsusage_s (glibtop *server, glibtop_fsusage *buf,
- const char *path)
-{
-#if defined STAT_STATFS3_OSF1
- struct statfs fsd;
-#elif defined STAT_STATFS2_FS_DATA /* Ultrix */
- struct fs_data fsd;
-#elif defined STAT_STATFS2_BSIZE /* 4.3BSD, SunOS 4, HP-UX, AIX */
- struct statfs fsd;
-#elif defined STAT_STATVFS /* SVR4 */
- struct statvfs fsd;
-#elif defined STAT_STATFS2_FSIZE /* 4.4BSD */
- struct statfs fsd;
-#elif defined STAT_STATFS4 /* SVR3, Dynix, Irix, AIX */
- struct stafs fsd;
-#endif
-
- glibtop_init_r (&server, 0, 0);
-
- memset (buf, 0, sizeof (glibtop_fsusage));
-
-#ifdef STAT_STATFS3_OSF1
-
- if (statfs (path, &fsd, sizeof (struct statfs)) != 0)
- return;
-
- buf->block_size = PROPAGATE_ALL_ONES (fsd.f_fsize);
-
-#endif /* STAT_STATFS3_OSF1 */
-
-#ifdef STAT_STATFS2_FS_DATA /* Ultrix */
-
- if (statfs (path, &fsd) != 1)
- return;
-
- buf->block_size = 1024;
- buf->blocks = PROPAGATE_ALL_ONES (fsd.fd_req.btot);
- buf->bfree = PROPAGATE_ALL_ONES (fsd.fd_req.bfree);
- buf->bavail = PROPAGATE_TOP_BIT (fsd.fd_req.bfreen);
- /* buf->bavail_top_bit_set = EXTRACT_TOP_BIT (fsd.fd_req.bfreen) != 0; */
- buf->files = PROPAGATE_ALL_ONES (fsd.fd_req.gtot);
- buf->ffree = PROPAGATE_ALL_ONES (fsd.fd_req.gfree);
-
-#endif /* STAT_STATFS2_FS_DATA */
-
-#ifdef STAT_STATFS2_BSIZE /* 4.3BSD, SunOS 4, HP-UX, AIX */
-
- if (statfs (path, &fsd) < 0)
- return;
-
- buf->block_size = PROPAGATE_ALL_ONES (fsd.f_bsize);
-
-# ifdef STATFS_TRUNCATES_BLOCK_COUNTS
-
- /* In SunOS 4.1.2, 4.1.3, and 4.1.3_U1, the block counts in the
- struct statfs are truncated to 2GB. These conditions detect that
- truncation, presumably without botching the 4.1.1 case, in which
- the values are not truncated. The correct counts are stored in
- undocumented spare fields. */
- if (fsd.f_blocks == 0x7fffffff / fsd.f_bsize && fsd.f_spare[0] > 0)
- {
- fsd.f_blocks = fsd.f_spare[0];
- fsd.f_bfree = fsd.f_spare[1];
- fsd.f_bavail = fsd.f_spare[2];
- }
-# endif /* STATFS_TRUNCATES_BLOCK_COUNTS */
-
-#endif /* STAT_STATFS2_BSIZE */
-
-#ifdef STAT_STATFS2_FSIZE /* 4.4BSD */
-
- if (statfs (path, &fsd) < 0)
- return;
-
- buf->block_size = PROPAGATE_ALL_ONES (fsd.f_fsize);
-
-#endif /* STAT_STATFS2_FSIZE */
-
-#ifdef STAT_STATFS4 /* SVR3, Dynix, Irix, AIX */
-
-# if !_AIX && !defined _SEQUENT_ && !defined DOLPHIN
-# define f_bavail f_bfree
-# endif
-
- if (statfs (path, &fsd, sizeof fsd, 0) < 0)
- return;
-
- /* Empirically, the block counts on most SVR3 and SVR3-derived
- systems seem to always be in terms of 512-byte blocks,
- no matter what value f_bsize has. */
-# if _AIX || defined _CRAY
- buf->block_size = PROPAGATE_ALL_ONES (fsd.f_bsize);
-# else
- buf->block_size = 512;
-# endif
-
-#endif /* STAT_STATFS4 */
-
-#ifdef STAT_STATVFS /* SVR4 */
- /* Linux, Solaris */
-
- if (statvfs (path, &fsd) < 0)
- return;
-
-#if (defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)) \
- || defined(__FreeBSD__)
- /* Solaris but not SunOS and FreeBSD */
- buf->block_size = fsd.f_frsize;
-#else
- /* else, including Linux */
- buf->block_size = fsd.f_bsize;
-#endif
-
-#endif /* STAT_STATVFS */
-
-#if !defined STAT_STATFS2_FS_DATA && !defined STAT_READ_FILSYS
- /* !Ultrix && !SVR2 */
- /* Linux */
-
- buf->blocks = fsd.f_blocks;
- buf->bfree = fsd.f_bfree;
- buf->bavail = (fsd.f_bavail > fsd.f_bfree) ? 0 : fsd.f_bavail;
- buf->files = fsd.f_files;
- buf->ffree = fsd.f_ffree;
-
-#endif /* not STAT_STATFS2_FS_DATA && not STAT_READ_FILSYS */
-
- buf->flags = _glibtop_sysdeps_fsusage;
-
- /* setting additional flags is delegated */
- _glibtop_get_fsusage_read_write(server, buf, path);
-}
-
-#if defined _AIX && defined _I386
-/* AIX PS/2 does not supply statfs. */
-
-static int
-statfs (const char *path, struct statfs *fsb)
-{
- struct stat stats;
- struct dustat fsd;
-
- if (stat (path, &stats))
- return -1;
- if (dustat (stats.st_dev, 0, &fsd, sizeof (fsd)))
- return -1;
- fsb->f_type = 0;
- fsb->f_bsize = fsd.du_bsize;
- fsb->f_blocks = fsd.du_fsize - fsd.du_isize;
- fsb->f_bfree = fsd.du_tfree;
- fsb->f_bavail = fsd.du_tfree;
- fsb->f_files = (fsd.du_isize - 2) * fsd.du_inopb;
- fsb->f_ffree = fsd.du_tinode;
- fsb->f_fsid.val[0] = fsd.du_site;
- fsb->f_fsid.val[1] = fsd.du_pckno;
- return 0;
-}
-
-#endif /* _AIX && _I386 */
diff --git a/sysdeps/common/gnuslib.c b/sysdeps/common/gnuslib.c
deleted file mode 100644
index 79295485..00000000
--- a/sysdeps/common/gnuslib.c
+++ /dev/null
@@ -1,373 +0,0 @@
-/* -*-C-*-
- * Common library code for the GNU Emacs server and client.
- *
- * This file is part of GNU Emacs.
- *
- * Copying is permitted under those conditions described by the GNU
- * General Public License.
- *
- * Copyright (C) 1989 Free Software Foundation, Inc.
- *
- * Author: Andy Norman (ange@hplb.hpl.hp.com), based on
- * 'etc/server.c' and 'etc/emacsclient.c' from the 18.52 GNU
- * Emacs distribution.
- *
- * Please mail bugs and suggestions to the author at the above address.
- */
-
-/* HISTORY
- * 11-Nov-1990 bristor@simba
- * Added EOT stuff.
- */
-
-/*
- * This file incorporates new features added by Bob Weiner <weiner@mot.com>,
- * Darrell Kindred <dkindred@cmu.edu> and Arup Mukherjee <arup@cmu.edu>.
- * Please see the note at the end of the README file for details.
- *
- * (If gnuserv came bundled with your emacs, the README file is probably
- * ../etc/gnuserv.README relative to the directory containing this file)
- */
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/gnuserv.h>
-
-#include <fcntl.h>
-
-#ifdef UNIX_DOMAIN_SOCKETS
-static int connect_to_unix_server (void);
-#endif
-
-#ifdef INTERNET_DOMAIN_SOCKETS
-static int connect_to_internet_server (const char *serverhost, u_short port);
-#endif
-
-/* On some systems, e.g. DGUX, inet_addr returns a 'struct in_addr'. */
-#ifdef HAVE_BROKEN_INET_ADDR
-#define IN_ADDR struct in_addr
-#define NUMERIC_ADDR_ERROR (numeric_addr.s_addr == 0xffffffff)
-#else
-#if (LONGBITS > 32)
-#define IN_ADDR unsigned int
-#else
-#define IN_ADDR unsigned long
-#endif
-#define NUMERIC_ADDR_ERROR (numeric_addr == (IN_ADDR) 0xffffffff)
-#endif
-
-#include <arpa/inet.h>
-
-int
-glibtop_make_connection (const char *hostarg, int portarg, int *s)
-{
-#ifdef INTERNET_DOMAIN_SOCKETS
- char *ptr;
-
- if (hostarg == NULL)
- hostarg = getenv ("LIBGTOP_HOST");
- if (portarg == 0 && (ptr = getenv ("LIBGTOP_PORT")) != NULL)
- portarg = atoi (ptr);
-#endif
-
- if (hostarg != NULL) {
- /* hostname was given explicitly, via cmd line arg or
- * LIBGTOP_HOST, * so obey it. */
-#ifdef UNIX_DOMAIN_SOCKETS
- if (!strcmp (hostarg, "unix")) {
- *s = connect_to_unix_server ();
- return (int) CONN_UNIX;
- }
-#endif /* UNIX_DOMAIN_SOCKETS */
-#ifdef INTERNET_DOMAIN_SOCKETS
- *s = connect_to_internet_server (hostarg, portarg);
- return (int) CONN_INTERNET;
-#endif
- } else {
- /* no hostname given. Use unix-domain/sysv-ipc, or *
- * internet-domain connection to local host if they're not
- * available. */
-#if defined(UNIX_DOMAIN_SOCKETS)
- *s = connect_to_unix_server ();
- return (int) CONN_UNIX;
-#elif defined(INTERNET_DOMAIN_SOCKETS)
- {
- char localhost[HOSTNAMSZ];
-
- gethostname (localhost, HOSTNAMSZ); /* use this
- * host by
- * default */
- *s = connect_to_internet_server (localhost, portarg);
- return (int) CONN_INTERNET;
- }
-#endif /* IPC type */
- }
-}
-
-#if defined(INTERNET_DOMAIN_SOCKETS) || defined(UNIX_DOMAIN_SOCKETS)
-/*
- * send_string -- send string to socket.
- */
-#if 0
-static void
-send_string (s, msg)
- int s;
- const char *msg;
-{
-#if 0
- if (send (s, msg, strlen (msg), 0) < 0) {
- perror (progname);
- fprintf (stderr, "%s: unable to send\n", progname);
- exit (1);
- }; /* if */
-#else
- int len, left = strlen (msg);
-
- while (left > 0) {
- if ((len = write (s, msg, min2 (left, GSERV_BUFSZ))) < 0) {
- /* XEmacs addition: robertl@arnet.com */
- if (errno == EPIPE) {
- return;
- }
- perror (progname);
- fprintf (stderr, "%s: unable to send\n", progname);
- exit (1);
- }; /* if */
- left -= len;
- msg += len;
- }; /* while */
-#endif
-} /* send_string */
-
-/*
- * read_line -- read a \n terminated line from a socket
- */
-static int
-read_line (int s, char *dest)
-{
- int length;
- int offset = 0;
- char buffer[GSERV_BUFSZ + 1];
-
- while ((length = read (s, buffer + offset, 1) > 0) && buffer[offset] != '\n'
- && buffer[offset] != EOT_CHR) {
- offset += length;
- if (offset >= GSERV_BUFSZ)
- break;
- }
- buffer[offset] = '\0';
- strcpy (dest, buffer);
- return 1;
-} /* read_line */
-#endif
-#endif /* INTERNET_DOMAIN_SOCKETS || UNIX_DOMAIN_SOCKETS */
-
-
-#ifdef UNIX_DOMAIN_SOCKETS
-/*
- * connect_to_unix_server -- establish connection with server process via a unix-
- * domain socket. Returns socket descriptor for server
- * if successful.
- */
-static int
-connect_to_unix_server (void)
-{
- int s; /* connected socket descriptor */
- struct sockaddr_un server; /* for unix connections */
-
- if ((s = socket (AF_UNIX, SOCK_STREAM, 0)) < 0)
- glibtop_error_io ("unable to create socket");
-
- server.sun_family = AF_UNIX;
-#ifdef HIDE_UNIX_SOCKET
- sprintf (server.sun_path, "/tmp/lgtddir%d/lgtd", (int) geteuid ());
-#else /* HIDE_UNIX_SOCKET */
- sprintf (server.sun_path, "/tmp/lgtd%d", (int) geteuid ());
-#endif /* HIDE_UNIX_SOCKET */
- if (connect (s, (struct sockaddr *)&server, strlen (server.sun_path) + 2) < 0)
- glibtop_error_io ("unable to connect to local");
-
- return (s);
-
-} /* connect_to_unix_server */
-#endif /* UNIX_DOMAIN_SOCKETS */
-
-
-#ifdef INTERNET_DOMAIN_SOCKETS
-/*
- * internet_addr -- return the internet addr of the hostname or
- * internet address passed. Return -1 on error.
- */
-long
-glibtop_internet_addr (const char *host)
-{
- struct hostent *hp; /* pointer to host info for remote host */
- IN_ADDR numeric_addr; /* host address */
-
- numeric_addr = inet_addr (host);
- if (!NUMERIC_ADDR_ERROR)
- return numeric_addr;
- else if ((hp = gethostbyname (host)) != NULL)
- return ((struct in_addr *) (hp->h_addr))->s_addr;
- else {
- glibtop_warn_io ("gethostbyname (%s)", host);
- return -1;
- }
-
-} /* glibtop_internet_addr */
-
-#ifdef AUTH_MAGIC_COOKIE
-#include <X11/X.h>
-#include <X11/Xauth.h>
-
-static Xauth *server_xauth = NULL;
-
-#endif
-
-/*
- * connect_to_internet_server -- establish connection with server process via
- * an internet domain socket. Returns socket
- * descriptor for server if successful.
- */
-static int
-connect_to_internet_server (const char *serverhost, u_short port)
-{
- int s; /* connected socket descriptor */
- struct servent *sp; /* pointer to service information */
- struct sockaddr_in peeraddr_in; /* for peer socket address */
- char buf[512]; /* temporary buffer */
-
- /* clear out address structures */
- memset (&peeraddr_in, 0, sizeof (struct sockaddr_in));
-
- /* Set up the peer address to which we will connect. */
- peeraddr_in.sin_family = AF_INET;
-
- /* look up the server host's internet address */
- peeraddr_in.sin_addr.s_addr = glibtop_internet_addr (serverhost);
- if ((long) peeraddr_in.sin_addr.s_addr == -1)
- glibtop_error ("unable to find %s in /etc/hosts or from YP", serverhost);
-
- if (port == 0) {
- if ((sp = getservbyname ("gtopd", "tcp")) == NULL)
- peeraddr_in.sin_port = htons (DEFAULT_PORT + getuid ());
- else
- peeraddr_in.sin_port = sp->s_port;
- }
- /* if */
- else
- peeraddr_in.sin_port = htons (port);
-
- /* Create the socket. */
- if ((s = socket (AF_INET, SOCK_STREAM, 0)) == -1)
- glibtop_error_io ("unable to create socket");
-
- /* Try to connect to the remote server at the address * which was
- * just built into peeraddr. */
- if (connect (s, (struct sockaddr *) &peeraddr_in,
- sizeof (struct sockaddr_in)) == -1)
- glibtop_error_io ("unable to connect to remote");
-
-#ifdef AUTH_MAGIC_COOKIE
-
- /* send credentials using MIT-MAGIC-COOKIE-1 protocol */
-
- sprintf (buf, "%d", port);
-
- server_xauth =
- XauGetAuthByAddr (FamilyInternet,
- sizeof (peeraddr_in.sin_addr.s_addr),
- (char *) &peeraddr_in.sin_addr.s_addr,
- strlen (buf), buf,
- strlen (MCOOKIE_X_NAME), MCOOKIE_X_NAME);
-
- if (server_xauth && server_xauth->data) {
- sprintf (buf, "%s\n%d\n", MCOOKIE_NAME, server_xauth->data_length);
- write (s, buf, strlen (buf));
- write (s, server_xauth->data, server_xauth->data_length);
-
- return (s);
- }
-#endif /* AUTH_MAGIC_COOKIE */
-
- sprintf (buf, "%s\n", DEFAUTH_NAME);
- write (s, buf, strlen (buf));
-
- return (s);
-
-} /* connect_to_internet_server */
-#endif /* INTERNET_DOMAIN_SOCKETS */
-
-
-#if defined(INTERNET_DOMAIN_SOCKETS) || defined(UNIX_DOMAIN_SOCKETS)
-/*
- * disconnect_from_server -- inform the server that sending has finished, and wait for
- * its reply.
- */
-#if 0
-static void
-disconnect_from_server (s, echo)
- int s;
- int echo;
-{
-#if 0
- char buffer[REPLYSIZ + 1];
-
-#else
- char buffer[GSERV_BUFSZ + 1];
-
-#endif
- int add_newline = 1;
- int length;
-
- send_string (s, EOT_STR); /* make sure server gets string */
-
-#if !defined (linux) && !defined (_SCO_DS)
- /*
- * shutdown is completely hozed under linux. If s is a unix domain socket,
- * you'll get EOPNOTSUPP back from it. If s is an internet socket, you get
- * a broken pipe when you try to read a bit later. The latter
- * problem is fixed for linux versions >= 1.1.46, but the problem
- * with unix sockets persists. Sigh.
- */
-
- if (shutdown (s, 1) == -1) {
- perror (progname);
- fprintf (stderr, "%s: unable to shutdown socket\n", progname);
- exit (1);
- }; /* if */
-#endif
-
-#if 0
- while ((length = recv (s, buffer, REPLYSIZ, 0)) > 0) {
- buffer[length] = '\0';
- if (echo)
- fputs (buffer, stdout);
- add_newline = (buffer[length - 1] != '\n');
- }; /* while */
-#else
- while ((length = read (s, buffer, GSERV_BUFSZ)) > 0 ||
- (length == -1 && errno == EINTR)) {
- if (length) {
- buffer[length] = '\0';
- if (echo) {
- fputs (buffer, stdout);
- add_newline = (buffer[length - 1] != '\n');
- }; /* if */
- }; /* if */
- }; /* while */
-#endif
-
- if (echo && add_newline)
- putchar ('\n');
-
- if (length < 0) {
- perror (progname);
- fprintf (stderr, "%s: unable to read the reply from the server\n", progname);
- exit (1);
- }; /* if */
-
-} /* disconnect_from_server */
-#endif
-#endif /* INTERNET_DOMAIN_SOCKETS || UNIX_DOMAIN_SOCKETS */
diff --git a/sysdeps/common/mountlist.c b/sysdeps/common/mountlist.c
deleted file mode 100644
index a2dade12..00000000
--- a/sysdeps/common/mountlist.c
+++ /dev/null
@@ -1,622 +0,0 @@
-/* mountlist.c -- return a list of mounted filesystems
- Copyright (C) 1991, 1992 Free Software Foundation, Inc.
-
- This program 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, or (at your option)
- any later version.
-
- This program 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 this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <glib.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-
-#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
-#include <string.h>
-#else
-#include <strings.h>
-#endif
-
-#include <glibtop.h>
-#include <glibtop/mountlist.h>
-
-/* A mount table entry. */
-struct mount_entry
-{
- char *me_devname; /* Device node pathname, including "/dev/". */
- char *me_mountdir; /* Mount point directory pathname. */
- char *me_type; /* "nfs", "4.2", etc. */
- dev_t me_dev; /* Device number of me_mountdir. */
- struct mount_entry *me_next;
-};
-
-
-static struct mount_entry *read_filesystem_list (void);
-
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-
-#if defined (MOUNTED_GETFSSTAT) /* __alpha running OSF_1 */
-# include <sys/mount.h>
-# include <sys/fs_types.h>
-#endif /* MOUNTED_GETFSSTAT */
-
-#ifdef MOUNTED_GETMNTENT1 /* 4.3BSD, SunOS, HP-UX, Dynix, Irix. */
-#include <mntent.h>
-#if !defined(MOUNTED)
-# if defined(MNT_MNTTAB) /* HP-UX. */
-# define MOUNTED MNT_MNTTAB
-# endif
-# if defined(MNTTABNAME) /* Dynix. */
-# define MOUNTED MNTTABNAME
-# endif
-#endif
-#endif
-
-#ifdef MOUNTED_GETMNTINFO /* 4.4BSD. */
-#include <sys/mount.h>
-#endif
-
-#ifdef MOUNTED_GETMNT /* Ultrix. */
-#include <sys/mount.h>
-#include <sys/fs_types.h>
-#endif
-
-#ifdef MOUNTED_FREAD /* SVR2. */
-#include <mnttab.h>
-#endif
-
-#ifdef MOUNTED_FREAD_FSTYP /* SVR3. */
-#include <mnttab.h>
-#include <sys/fstyp.h>
-#include <sys/statfs.h>
-#endif
-
-#ifdef MOUNTED_LISTMNTENT
-#include <mntent.h>
-#endif
-
-#ifdef MOUNTED_GETMNTENT2 /* SVR4. */
-#include <sys/mnttab.h>
-#endif
-
-#ifdef MOUNTED_VMOUNT /* AIX. */
-#include <fshelp.h>
-#include <sys/vfs.h>
-#endif
-
-#ifdef DOLPHIN
-/* So special that it's not worth putting this in autoconf. */
-#undef MOUNTED_FREAD_FSTYP
-#define MOUNTED_GETMNTTBL
-#endif
-
-
-#if defined (MOUNTED_GETMNTINFO) && !defined (__NetBSD__) && !defined (__OpenBSD__) && !defined(__FreeBSD__)
-static const char *
-fstype_to_string (short t)
-{
- switch (t)
- {
-#ifdef MOUNT_PC
- case MOUNT_PC:
- return "pc";
-#endif
-#ifdef MOUNT_MFS
- case MOUNT_MFS:
- return "mfs";
-#endif
-#ifdef MOUNT_LO
- case MOUNT_LO:
- return "lo";
-#endif
-#ifdef MOUNT_TFS
- case MOUNT_TFS:
- return "tfs";
-#endif
-#ifdef MOUNT_TMP
- case MOUNT_TMP:
- return "tmp";
-#endif
-#ifdef MOUNT_UFS
- case MOUNT_UFS:
- return "ufs" ;
-#endif
-#ifdef MOUNT_NFS
- case MOUNT_NFS:
- return "nfs" ;
-#endif
-#ifdef MOUNT_MSDOS
- case MOUNT_MSDOS:
- return "msdos" ;
-#endif
-#ifdef MOUNT_LFS
- case MOUNT_LFS:
- return "lfs" ;
-#endif
-#ifdef MOUNT_LOFS
- case MOUNT_LOFS:
- return "lofs" ;
-#endif
-#ifdef MOUNT_FDESC
- case MOUNT_FDESC:
- return "fdesc" ;
-#endif
-#ifdef MOUNT_PORTAL
- case MOUNT_PORTAL:
- return "portal" ;
-#endif
-#ifdef MOUNT_NULL
- case MOUNT_NULL:
- return "null" ;
-#endif
-#ifdef MOUNT_UMAP
- case MOUNT_UMAP:
- return "umap" ;
-#endif
-#ifdef MOUNT_KERNFS
- case MOUNT_KERNFS:
- return "kernfs" ;
-#endif
-#ifdef MOUNT_PROCFS
- case MOUNT_PROCFS:
- return "procfs" ;
-#endif
-#ifdef MOUNT_AFS
- case MOUNT_AFS:
- return "afs" ;
-#endif
-#ifdef MOUNT_CD9660
- case MOUNT_CD9660:
- return "cd9660" ;
-#endif
-#ifdef MOUNT_UNION
- case MOUNT_UNION:
- return "union" ;
-#endif
-#ifdef MOUNT_DEVFS
- case MOUNT_DEVFS:
- return "devfs" ;
-#endif
-#ifdef MOUNT_EXT2FS
- case MOUNT_EXT2FS:
- return "ext2fs" ;
-#endif
- default:
- return "?";
- }
-}
-#endif /* MOUNTED_GETMNTINFO */
-
-#ifdef MOUNTED_VMOUNT /* AIX. */
-static const char *
-fstype_to_string (int t)
-{
- struct vfs_ent *e;
-
- e = getvfsbytype (t);
- if (!e || !e->vfsent_name)
- return "none";
- else
- return e->vfsent_name;
-}
-#endif /* MOUNTED_VMOUNT */
-
-/* Return a list of the currently mounted filesystems, or NULL on error.
- Add each entry to the tail of the list so that they stay in order.
-*/
-
-static struct mount_entry *
-read_filesystem_list (void)
-{
- struct mount_entry *mount_list;
- struct mount_entry *me;
- struct mount_entry *mtail;
-
- /* Start the list off with a dummy entry. */
- me = g_new (struct mount_entry, 1);
- me->me_next = NULL;
- mount_list = mtail = me;
-
-#ifdef MOUNTED_LISTMNTENT
- {
- struct tabmntent *mntlist, *p;
- struct mntent *mnt;
- struct mount_entry *me;
-
- /* the third and fourth arguments could be used to filter mounts,
- but Crays doesn't seem to have any mounts that we want to
- remove. Specifically, automount create normal NFS mounts.
- */
-
- if(listmntent(&mntlist, KMTAB, NULL, NULL) < 0)
- return NULL;
- p = mntlist;
- while(p){
- mnt = p->ment;
- me = (struct mount_entry*) g_malloc(sizeof (struct mount_entry));
- me->me_devname = g_strdup(mnt->mnt_fsname);
- me->me_mountdir = g_strdup(mnt->mnt_dir);
- me->me_type = g_strdup(mnt->mnt_type);
- me->me_dev = -1;
- me->me_next = NULL;
- mtail->me_next = me;
- mtail = me;
- p = p->next;
- }
- freemntlist(mntlist);
- }
-#endif
-
-#ifdef MOUNTED_GETMNTENT1 /* Linux, 4.3BSD, SunOS, HP-UX, Dynix, Irix. */
- {
- const struct mntent *mnt;
- FILE *fp;
- const char *devopt;
-
- fp = setmntent (MOUNTED, "r");
- if (fp == NULL)
- return NULL;
-
- while ((mnt = getmntent (fp)))
- {
- me = g_new(struct mount_entry, 1);
- me->me_devname = g_strdup (mnt->mnt_fsname);
- me->me_mountdir = g_strdup (mnt->mnt_dir);
- me->me_type = g_strdup (mnt->mnt_type);
- devopt = strstr (mnt->mnt_opts, "dev=");
- if (devopt)
- me->me_dev = (dev_t) strtoull( devopt + 4, NULL, 0);
- else
- me->me_dev = (dev_t) -1; /* Magic; means not known yet. */
-
- me->me_next = NULL;
-
- /* Add to the linked list. */
- mtail->me_next = me;
- mtail = me;
- }
-
- if (endmntent (fp) == 0)
- return NULL;
- }
-#endif /* MOUNTED_GETMNTENT1. */
-
-#ifdef MOUNTED_GETMNTINFO /* 4.4BSD. */
- {
- struct statfs *fsp;
- int entries;
-
- entries = getmntinfo (&fsp, MNT_NOWAIT);
- if (entries < 0)
- return NULL;
- while (entries-- > 0)
- {
- me = (struct mount_entry *) g_malloc (sizeof (struct mount_entry));
- me->me_devname = g_strdup (fsp->f_mntfromname);
- me->me_mountdir = g_strdup (fsp->f_mntonname);
-#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
- me->me_type = g_strdup (fsp->f_fstypename);
-#else
- me->me_type = g_strdup (fstype_to_string (fsp->f_type));
-#endif
- me->me_dev = (dev_t) -1; /* Magic; means not known yet. */
- me->me_next = NULL;
-
- /* Add to the linked list. */
- mtail->me_next = me;
- mtail = me;
- fsp++;
- }
- }
-#endif /* MOUNTED_GETMNTINFO */
-
-#ifdef MOUNTED_GETMNT /* Ultrix. */
- {
- int offset = 0;
- int val;
- struct fs_data fsd;
-
- while ((val = getmnt (&offset, &fsd, sizeof (fsd), NOSTAT_MANY,
- (char *) 0)) > 0)
- {
- me = (struct mount_entry *) g_malloc (sizeof (struct mount_entry));
- me->me_devname = g_strdup (fsd.fd_req.devname);
- me->me_mountdir = g_strdup (fsd.fd_req.path);
- me->me_type = g_strdup (gt_names[fsd.fd_req.fstype]);
- me->me_dev = fsd.fd_req.dev;
- me->me_next = NULL;
-
- /* Add to the linked list. */
- mtail->me_next = me;
- mtail = me;
- }
- if (val < 0)
- return NULL;
- }
-#endif /* MOUNTED_GETMNT. */
-
-#if defined (MOUNTED_GETFSSTAT) /* __alpha running OSF_1 */
- {
- int numsys, counter, bufsize;
- struct statfs *stats;
-
- numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
- if (numsys < 0)
- return (NULL);
-
- bufsize = (1 + numsys) * sizeof (struct statfs);
- stats = (struct statfs *) g_malloc (bufsize);
- numsys = getfsstat (stats, bufsize, MNT_WAIT);
-
- if (numsys < 0)
- {
- g_free (stats);
- return (NULL);
- }
-
- for (counter = 0; counter < numsys; counter++)
- {
- me = (struct mount_entry *) g_malloc (sizeof (struct mount_entry));
- me->me_devname = g_strdup (stats[counter].f_mntfromname);
- me->me_mountdir = g_strdup (stats[counter].f_mntonname);
- me->me_type = g_strdup (mnt_names[stats[counter].f_type]);
- me->me_dev = (dev_t) -1; /* Magic; means not known yet. */
- me->me_next = NULL;
-
- /* Add to the linked list. */
- mtail->me_next = me;
- mtail = me;
- }
-
- g_free (stats);
- }
-#endif /* MOUNTED_GETFSSTAT */
-
-#if defined (MOUNTED_FREAD) || defined (MOUNTED_FREAD_FSTYP) /* SVR[23]. */
- {
- struct mnttab mnt;
- FILE *fp;
- fp = fopen ("/etc/mnttab", "r");
- if (fp == NULL)
- return NULL;
-
- while (fread (&mnt, sizeof mnt, 1, fp) > 0)
- {
- me = (struct mount_entry *) g_malloc (sizeof (struct mount_entry));
-#ifdef GETFSTYP /* SVR3. */
- me->me_devname = g_strdup (mnt.mt_dev);
-#else
- me->me_devname = g_strdup_printf("/dev/%s", mnt.mt_dev);
-#endif
- me->me_mountdir = g_strdup (mnt.mt_filsys);
- me->me_dev = (dev_t) -1; /* Magic; means not known yet. */
-
-#ifdef GETFSTYP /* SVR3. */
- {
- struct statfs fsd;
- char typebuf[FSTYPSZ];
-
- if (statfs (me->me_mountdir, &fsd, sizeof fsd, 0) != -1
- && sysfs (GETFSTYP, fsd.f_fstyp, typebuf) != -1)
- me->me_type = g_strdup (typebuf);
- }
-#else
- me->me_type = g_strdup ("");
-#endif
-
- me->me_next = NULL;
-
- /* Add to the linked list. */
- mtail->me_next = me;
- mtail = me;
- }
-
- if (fclose (fp) == EOF)
- return NULL;
- }
-#endif /* MOUNTED_FREAD || MOUNTED_FREAD_FSTYP. */
-
-#ifdef MOUNTED_GETMNTTBL /* DolphinOS goes it's own way */
- {
- struct mntent **mnttbl=getmnttbl(),**ent;
- for (ent=mnttbl;*ent;ent++)
- {
- me = (struct mount_entry *) g_malloc (sizeof (struct mount_entry));
- me->me_devname = g_strdup ( (*ent)->mt_resource);
- me->me_mountdir = g_strdup( (*ent)->mt_directory);
- me->me_type = g_strdup ((*ent)->mt_fstype);
- me->me_dev = (dev_t) -1; /* Magic; means not known yet. */
- me->me_next = NULL;
-
- /* Add to the linked list. */
- mtail->me_next = me;
- mtail = me;
- }
- endmnttbl();
- }
-#endif
-
-#ifdef MOUNTED_GETMNTENT2 /* SVR4. */
- {
- struct mnttab mnt;
- FILE *fp;
- int ret;
-
- fp = fopen (MNTTAB, "r");
- if (fp == NULL)
- return NULL;
-
- while ((ret = getmntent (fp, &mnt)) == 0)
- {
- me = (struct mount_entry *) g_malloc (sizeof (struct mount_entry));
- me->me_devname = g_strdup (mnt.mnt_special);
- me->me_mountdir = g_strdup (mnt.mnt_mountp);
- me->me_type = g_strdup (mnt.mnt_fstype);
- me->me_dev = (dev_t) -1; /* Magic; means not known yet. */
- me->me_next = NULL;
-
- /* Add to the linked list. */
- mtail->me_next = me;
- mtail = me;
- }
-
- if (fclose (fp) == EOF)
- return NULL;
- if (ret > 0)
- return NULL;
- }
-#endif /* MOUNTED_GETMNTENT2. */
-
-#ifdef MOUNTED_VMOUNT /* AIX. */
- {
- int bufsize;
- char *entries, *thisent;
- struct vmount *vmp;
-
- /* Ask how many bytes to allocate for the mounted filesystem info. */
- mntctl (MCTL_QUERY, sizeof bufsize, (struct vmount *) &bufsize);
- entries = g_malloc (bufsize);
-
- /* Get the list of mounted filesystems. */
- mntctl (MCTL_QUERY, bufsize, (struct vmount *) entries);
-
- for (thisent = entries; thisent < entries + bufsize;
- thisent += vmp->vmt_length)
- {
- vmp = (struct vmount *) thisent;
- me = (struct mount_entry *) g_malloc (sizeof (struct mount_entry));
- if (vmp->vmt_flags & MNT_REMOTE)
- {
- /* Prepend the remote pathname. */
- me->me_devname = \
- g_strdup_printf("%s:%s",
- thisent + vmp->vmt_data[VMT_HOSTNAME].vmt_off
- thisent + vmp->vmt_data[VMT_OBJECT ].vmt_off);
- }
- else
- {
- me->me_devname = g_strdup (thisent +
- vmp->vmt_data[VMT_OBJECT].vmt_off);
- }
- me->me_mountdir = g_strdup (thisent + vmp->vmt_data[VMT_STUB].vmt_off);
- me->me_type = g_strdup (fstype_to_string (vmp->vmt_gfstype));
- me->me_dev = (dev_t) -1; /* vmt_fsid might be the info we want. */
- me->me_next = NULL;
-
- /* Add to the linked list. */
- mtail->me_next = me;
- mtail = me;
- }
- g_free (entries);
- }
-#endif /* MOUNTED_VMOUNT. */
-
- /* Free the dummy head. */
- me = mount_list;
- mount_list = mount_list->me_next;
- g_free (me);
- return mount_list;
-}
-
-
-static gboolean ignore_mount_entry(const struct mount_entry *me)
-{
- /* keep sorted */
- static const char ignored[][12] = {
- "autofs",
- "binfmt_misc",
- "ctfs",
- "devfs",
- "devpts",
- "fusectl",
- "linprocfs",
- "mfs",
- "mntfs",
- "mqueue",
- "none",
- "nsfd",
- "objfs",
- "openpromfs",
- "proc",
- "procfs",
- "securityfs",
- "supermount",
- "sysfs",
- "tmpfs",
- "unknown",
- "usbdevfs",
- "usbfs"
- };
-
- typedef int (*Comparator)(const void*, const void*);
-
- return bsearch(me->me_type,
- ignored, G_N_ELEMENTS(ignored), sizeof ignored[0],
- (Comparator) strcmp) != NULL;
-}
-
-
-glibtop_mountentry *
-glibtop_get_mountlist_s (glibtop *server, glibtop_mountlist *buf, int all_fs)
-{
- struct mount_entry *entries, *cur, *next;
-
- GArray *mount_array = g_array_new(FALSE, FALSE,
- sizeof(glibtop_mountentry));
-
- glibtop_init_r (&server, 0, 0);
-
- memset (buf, 0, sizeof (glibtop_mountlist));
-
- /* Read filesystem list. */
-
- if((entries = read_filesystem_list ()) == NULL)
- return NULL;
-
- for (cur = &entries[0]; cur != NULL; cur = next) {
-
- if(all_fs || !ignore_mount_entry(cur)) {
- /* add a new glibtop_mountentry */
- glibtop_mountentry e;
-
- g_strlcpy(e.devname, cur->me_devname, sizeof e.devname);
- g_strlcpy(e.mountdir, cur->me_mountdir, sizeof e.mountdir);
- g_strlcpy(e.type, cur->me_type, sizeof e.type);
- e.dev = cur->me_dev;
-
- g_array_append_val(mount_array, e);
- }
-
- /* free current mount_entry and move to the next */
- next = cur->me_next;
- g_free(cur->me_devname);
- g_free(cur->me_mountdir);
- g_free(cur->me_type);
- g_free(cur);
- }
-
- buf->size = sizeof (glibtop_mountentry);
- buf->number = mount_array->len;
- buf->total = buf->number * buf->size;
-
- buf->flags = (1 << GLIBTOP_MOUNTLIST_SIZE)
- | (1 << GLIBTOP_MOUNTLIST_NUMBER)
- | (1 << GLIBTOP_MOUNTLIST_TOTAL);
-
- return (glibtop_mountentry*) g_array_free(mount_array, FALSE);
-}
diff --git a/sysdeps/common/procargs.c b/sysdeps/common/procargs.c
deleted file mode 100644
index cefdb582..00000000
--- a/sysdeps/common/procargs.c
+++ /dev/null
@@ -1,44 +0,0 @@
-#include <config.h>
-#include <glibtop/procargs.h>
-
-#include <glib.h>
-#include <string.h>
-
-/*
- Splitting args0
- * args0 [......0.. ....0.........0]
- * Returned value must be free with g_strfreev
- * args0 is g_free()d
- */
-static char **
-split_args0(const char * const args0, size_t size)
-{
- GPtrArray *argv = g_ptr_array_new();
- const char *arg;
-
- /* remember that if there were no args, args0 == NULL and size == 0 */
- for (arg = args0; arg < (args0 + size); arg += strlen(arg) + 1) {
- g_ptr_array_add(argv, g_strdup(arg));
- }
-
- g_ptr_array_add(argv, NULL);
-
- g_free((void* /* remove constness */) args0);
-
- return (char**) g_ptr_array_free(argv, FALSE);
-}
-
-
-
-
-/*
- * public functions
- */
-
-char **
-glibtop_get_proc_argv_l (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len)
-{
- const char * const args0 = glibtop_get_proc_args_l(server, buf, pid, max_len);
- return split_args0(args0, buf->size);
-}
diff --git a/sysdeps/common/sysdeps_suid.c b/sysdeps/common/sysdeps_suid.c
deleted file mode 100644
index b244d12e..00000000
--- a/sysdeps/common/sysdeps_suid.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/union.h>
-#include <glibtop/sysdeps.h>
-#include <glibtop/init_hooks.h>
-
-const _glibtop_init_func_t _glibtop_init_hook_p [] = {
-#if GLIBTOP_SUID_CPU
- _glibtop_init_cpu_p,
-#endif
-#if GLIBTOP_SUID_MEM
- _glibtop_init_mem_p,
-#endif
-#if GLIBTOP_SUID_SWAP
- _glibtop_init_swap_p,
-#endif
-#if GLIBTOP_SUID_UPTIME
- _glibtop_init_uptime_p,
-#endif
-#if GLIBTOP_SUID_LOADAVG
- _glibtop_init_loadavg_p,
-#endif
-#if GLIBTOP_SUID_SHM_LIMITS
- _glibtop_init_shm_limits_p,
-#endif
-#if GLIBTOP_SUID_MSG_LIMITS
- _glibtop_init_msg_limits_p,
-#endif
-#if GLIBTOP_SUID_SEM_LIMITS
- _glibtop_init_sem_limits_p,
-#endif
-#if GLIBTOP_SUID_PROCLIST
- _glibtop_init_proclist_p,
-#endif
-#if GLIBTOP_SUID_PROC_STATE
- _glibtop_init_proc_state_p,
-#endif
-#if GLIBTOP_SUID_PROC_UID
- _glibtop_init_proc_uid_p,
-#endif
-#if GLIBTOP_SUID_PROC_MEM
- _glibtop_init_proc_mem_p,
-#endif
-#if GLIBTOP_SUID_PROC_TIME
- _glibtop_init_proc_time_p,
-#endif
-#if GLIBTOP_SUID_PROC_SIGNAL
- _glibtop_init_proc_signal_p,
-#endif
-#if GLIBTOP_SUID_PROC_KERNEL
- _glibtop_init_proc_kernel_p,
-#endif
-#if GLIBTOP_SUID_PROC_SEGMENT
- _glibtop_init_proc_segment_p,
-#endif
-#if GLIBTOP_SUID_PROC_ARGS
- _glibtop_init_proc_args_p,
-#endif
-#if GLIBTOP_SUID_PROC_MAP
- _glibtop_init_proc_map_p,
-#endif
-#if GLIBTOP_SUID_NETLOAD
- _glibtop_init_netload_p,
-#endif
-#if GLIBTOP_SUID_NETLIST
- _glibtop_init_netlist_p,
-#endif
-#if GLIBTOP_SUID_PPP
- _glibtop_init_ppp_p,
-#endif
- NULL
-};
-
diff --git a/sysdeps/freebsd/AUTHORS b/sysdeps/freebsd/AUTHORS
deleted file mode 100644
index e274ce59..00000000
--- a/sysdeps/freebsd/AUTHORS
+++ /dev/null
@@ -1,3 +0,0 @@
-Martin Baulig (martin@home-of-linux.org)
-Josh Sled (jsled@scam.XCF.Berkeley.EDU)
-Joe Marcus Clarke (marcus@FreeBSD.org)
diff --git a/sysdeps/freebsd/ChangeLog b/sysdeps/freebsd/ChangeLog
deleted file mode 100644
index 29489cd1..00000000
--- a/sysdeps/freebsd/ChangeLog
+++ /dev/null
@@ -1,477 +0,0 @@
-2007-07-01 Benoît Dejean <benoit@placenet.org>
-
- Fixe some problems as well as implements procwd and procopenfiles
- for FreeBSD using a wrapper around lsof. This same backend should
- also work on kFreeBSD.
-
- Patch by Joe Marcus Clarke <marcus@freebsd.org>
-
-2007-02-18 Benoît Dejean <benoit@placenet.org>
-
- * AUTHORS:
- * Makefile.am:
- * NOTES:
- * cpu.c: (glibtop_init_cpu_s), (glibtop_get_cpu_s):
- * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write):
- * glibtop_machine.h:
- * glibtop_server.h:
- * init.c:
- * loadavg.c: (glibtop_init_loadavg_s), (glibtop_get_loadavg_s):
- * mem.c: (glibtop_init_mem_s), (glibtop_get_mem_s):
- * msg_limits.c: (glibtop_init_msg_limits_s),
- (glibtop_get_msg_limits_s):
- * netload.c: (glibtop_init_netload_p), (glibtop_get_netload_p):
- * open.c: (glibtop_open_p):
- * ppp.c: (glibtop_init_ppp_p), (glibtop_get_ppp_p):
- * procargs.c: (glibtop_get_proc_args_p):
- * procdata.c:
- * prockernel.c: (glibtop_init_proc_kernel_p),
- (glibtop_get_proc_kernel_p):
- * proclist.c: (glibtop_get_proclist_p):
- * procmap.c: (_glibtop_sysdeps_freebsd_dev_inode),
- (glibtop_get_proc_map_p):
- * procmem.c: (glibtop_init_proc_mem_p), (glibtop_get_proc_mem_p):
- * procsegment.c: (glibtop_init_proc_segment_p),
- (glibtop_get_proc_segment_p):
- * procsignal.c: (glibtop_get_proc_signal_p):
- * procstate.c: (glibtop_init_proc_state_p),
- (glibtop_get_proc_state_p):
- * proctime.c: (glibtop_get_proc_time_p):
- * procuid.c: (glibtop_init_proc_uid_p), (glibtop_get_proc_uid_p):
- * sem_limits.c: (glibtop_init_sem_limits_s),
- (glibtop_get_sem_limits_s):
- * shm_limits.c: (glibtop_init_shm_limits_s),
- (glibtop_get_shm_limits_s):
- * swap.c: (glibtop_init_swap_p), (glibtop_get_swap_p):
- * sysinfo.c: (init_sysinfo):
- * uptime.c: (glibtop_init_uptime_s), (glibtop_get_uptime_s):
-
- Huge (k)FreeBSD update.
- (k)FreeBSD support is freebsd/
- Other BSD are in bsd/
-
- Patch by Joe Marcus Clarke <marcus@freebsd.org>
- Alexander Nedotsukov <bland@FreeBSD.org>
-
- Closes #407693.
-
-2007-01-31 Benoît Dejean <benoit@placenet.org>
-
- * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write):
- * netload.c: (glibtop_get_netload_p):
- * prockernel.c: (glibtop_get_proc_kernel_p):
- * procmap.c: (glibtop_get_proc_map_p):
- * proctime.c:
- * siglist.c:
- * /libgtop-sysdeps.m4:
-
- Various FreeBSD and kFreeBSD updates.
- Patch by Roy Marples <uberlord@gentoo.org>.
- Reviewed by Petr Salinger <Petr.Salinger@seznam.cz>.
- Closes #387200.
-
-2006-11-27 Benoît Dejean <benoit@placenet.org>
-
- * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write):
- * mem.c: (glibtop_get_mem_p):
- * prockernel.c: (glibtop_get_proc_kernel_p):
- * proclist.c: (glibtop_get_proclist_p):
- * procmap.c: (glibtop_get_proc_map_p):
- * procmem.c: (glibtop_get_proc_mem_p):
- * procsignal.c: (glibtop_get_proc_signal_p):
- * procstate.c: (glibtop_get_proc_state_p):
- * proctime.c:
- * procuid.c: (glibtop_get_proc_uid_p):
- * swap.c: (glibtop_init_swap_p), (glibtop_get_swap_p):
-
- Added kfreebsd support.
- Patch by Petr Salinger <Petr.Salinger@seznam.cz>.
-
-2006-04-09 Benoît Dejean <benoit@placenet.org>
-
- * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write):
-
- Fixed typo.
-
-2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
-
- * sysdeps/freebsd/fsusage.c:
-
- Use statvfs(2) if available instead of statfs(2). The latter was
- replaced by the former and is no longer available under, e.g. NetBSD.
-
- Fixes bug #337235.
-
-2006-04-04 Benoît Dejean <benoit@placenet.org>
-
- * sysinfo.c: (init_sysinfo):
-
- Store only strings in values' values. g_strdup these strings.
- Even if values is never destroyed, set key_destroy_func to NULL.
-
- Leave description to NULL.
-
-2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
-
- * sysdeps/freebsd/Makefile.am:
- * sysdeps/freebsd/sysinfo.c:
-
- Bring back to life (from the 1.x versions) the sysinfo.c file for
- the freebsd sysdeps. The new file comes from the FreeBSD ports
- repository and has some minor style changes by me. This is required
- to get the glibtop_get_sysinfo_s function used by the sysdeps common
- code.
-
- Fixes bug #337251.
-
-2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
-
- * sysdeps/freebsd/proctime.c:
-
- Remove obsolete and non-functional code that breaks the build under
- NetBSD. It was guarded by a conditional but could not compile
- anyway because it referred to an undefined variable.
-
- Fixes bug #337234.
-
-2005-02-28 Benoît Dejean <TazForEver@dlfp.org>
-
- * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write): Forgot to add
- this file :)
-
-2005-02-28 Benoît Dejean <TazForEver@dlfp.org>
-
- * Makefile.am:
- * cpu.c: (glibtop_get_cpu_p):
- * netlist.c: (glibtop_get_netlist_s):
- * netload.c: (glibtop_get_netload_p):
- * procmem.c: (glibtop_get_proc_mem_p):
-
- Fix a bug in netlist where glibtop_netlist.number was never initialized to 0
- (this resulted in a NULL pointer dereference in the network load feature
- of the multiload applet)
-
- * Add support for getting interface flags and packet counts even on interfaces
- without IP addresses (needed for the network load feature of the multiload applet)
-
- * Restore per-process limits in the !FreeBSD or __FreeBSD_version < 500013
- case
-
- * Add CPU interrupt time as IOWAIT to get support for the cpu load feature of
- the multiload applet.
-
- Patch from marcus@freebsd.org (Joe Marcus Clarke).
- Closes #168704.
-
-2005-02-23 Benoît Dejean <TazForEver@dlfp.org>
-
- * Makefile.am:
- * netlist.c: (glibtop_get_netlist_s):
- * procmap.c: (glibtop_get_proc_map_p):
- * procmem.c: (glibtop_get_proc_mem_p):
- * procopenfiles.c: (glibtop_init_proc_open_files_s),
- (glibtop_get_proc_open_files_s):
- * proctime.c:
-
- Add support for FreeBSD 6-CURRENT.
- Use the more portable getrlimit to obtain process memory limits.
- Correctly determine process time.
- Stub out the procopenfiles() function (this is not yet implemented, however).
- Fix a nasty infinite loop and memory leak due to a forgot pointer increment.
-
- Patch from marcus@freebsd.org (Joe Marcus Clarke).
- Closes #168232.
-
-2004-12-05 Benoît Dejean <tazforever@dlfp.org>
-
- * Makefile.am:
- * netlist.c: (glibtop_init_netlist_s), (glibtop_get_netlist_s):
- Added glibtop_get_netlist. Patch from marcus@freebsd.org (Joe Marcus Clarke).
-
-2004-08-28 Benoît Dejean <tazforever@dlfp.org>
-
- * mem.c: (glibtop_get_mem_p):
- * ppp.c:
- * swap.c: (glibtop_init_swap_p), (glibtop_get_swap_p):
- * uptime.c: (glibtop_get_uptime_p): Merge a bunch of trivial OpenBSD
- patchs. To *BSD maintainers : please report bugs ! don't be selfish, share
- your patchs.
-
-2004-08-22 Benoît Dejean <tazforever@dlfp.org>
-
- * procstate.c:
- * uptime.c: (glibtop_get_uptime_p): Merged Marcus' patches.
-
-2004-07-15 Benoît Dejean <tazforever@dlfp.org>
-
- * procstate.c: (glibtop_get_proc_state_p): Fixed copy/paste error
- while setting buf->state.
-
-2004-06-07 Benoît Dejean <tazforever@dlfp.org>
-
- * netload.c: (glibtop_get_netload_p):
- * procstate.c: (glibtop_get_proc_state_p):
- * prockernel.c: (glibtop_get_proc_kernel_p): s/strncpy/g_strlcpy/.
-
- * procargs.c: (glibtop_get_proc_args_p):
- * procmap.c: (glibtop_get_proc_map_p): Cleaned.
-
-
-2004-05-26 Benoît Dejean <tazforever@dlfp.org>
-
- * procdata.c: (glibtop_get_procdata_s): Removed Linux related code.
-
-2004-04-07 Bastien Nocera <hadess@hadess.net>
-
- * prockernel.c: (glibtop_get_proc_kernel_p): patch for NetBSD/AMD64
- support (Julio M. Merino Vidal <jmmv@menta.net>)
-
-2004-03-09 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am:
- * cpu.c: (glibtop_init_cpu_p), (glibtop_get_cpu_p):
- * glibtop_machine.h:
- * mem.c:
- * netload.c: (glibtop_get_netload_p):
- * prockernel.c: (glibtop_get_proc_kernel_p):
- * proclist.c: (glibtop_get_proclist_p):
- * procmap.c: (glibtop_get_proc_map_p):
- * procmem.c: (glibtop_get_proc_mem_p):
- * procsignal.c: (glibtop_get_proc_signal_p):
- * procstate.c: (glibtop_get_proc_state_p):
- * proctime.c:
- * procuid.c: (glibtop_get_proc_uid_p):
- * uptime.c: (glibtop_get_uptime_p): implement NetBSD support, and
- some build problems on FreeBSD (Closes: #135674)
-
-2004-03-09 Bastien Nocera <hadess@hadess.net>
-
- * procargs.c: (glibtop_get_proc_args_p):
- * procmap.c: (glibtop_get_proc_map_p):
- * swap.c: (glibtop_get_swap_p): fix g_malloc usage on non-Linux
- platforms (patch by Benoît Dejean <bnet@ifrance.com>)
-
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * mem.c: (glibtop_get_mem_p):
- * prockernel.c: (glibtop_get_proc_kernel_p):
- * procmem.c: (glibtop_get_proc_mem_p):
- * proctime.c: (glibtop_get_proc_time_p): s/u_int64_t/guint64/
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * swap.c: (glibtop_get_swap_p): fix swap sizes in FreeBSD,
- patch by edwin@mavetju.org
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * glibtop_machine.h:
- * glibtop_server.h:
- * glibtop_suid.h:
- * open.c:
- * procargs.c:
- * proclist.c:
- * procmap.c:
- * swap.c: fixed compilation
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * procargs.c: (glibtop_get_proc_args_p):
- * proclist.c: (glibtop_get_proclist_p):
- * procmap.c: (glibtop_get_proc_map_p):
- * swap.c: (glibtop_get_swap_p): replace all the xmalloc crap by glib
- memory management functions
-
-2001-10-17 Abel Cheung <maddog@linux.org.hk>
-
- * Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
-
-2001-02-27 Martin Baulig <baulig@suse.de>
-
- * netload.c: Comment out the `subnet' field on BSDI; this should
- make it compile. Bug #13345.
-
- * shm_limits.c, msg_limits.c, sem_limits.c: Applied a patch
- from Rolf Grossmann (grossman@securitas.net) for FreeBSD 4.2.
- Fixes #51334.
-
-2001-02-14 Martin Baulig <baulig@suse.de>
-
- * proctime.c (glibtop_get_proc_time_p): Make things work on
- OpenBSD 2.6; this is basically the same than on NetBSD.
-
-2000-02-13 Martin Baulig <martin@home-of-linux.org>
-
- * *.c: kvm_nlist () returns -1 on error, but a positive return value
- does not necessarily mean failure. Fixes #3302 which was reported by
- Matthias Scheler some time ago.
-
-1999-10-16 Martin Baulig <martin@home-of-linux.org>
-
- Applied all patches from the FreeBSD 3.3 ports collection.
-
- * swap.c: Only #include <rlist.h> for __FreeBSD_version < 400005.
-
- * prockernel.c: Make it compile on FreeBSD / alpha.
-
- * procsignal.c: Some fixes for FreeBSD-current.
-
-1999-10-16 Martin Baulig <martin@home-of-linux.org>
-
- * procstate.c (glibtop_get_proc_state_p): Don't use the
- `GLIBTOP_PROCESS_*' constants for process states for
- LibGTop 1.0.x.
-
-1999-07-29 Martin Baulig <martin@home-of-linux.org>
-
- * proctime.c (glibtop_get_proc_time_p): Fix bug reported by
- Takis Psarogiannakopoulos: `start_time' are seconds since the
- epoch as it is stated in the manual.
-
-Tue Jun 15 16:04:10 1999 Timur Bakeyev <mc@bat.ru>
-
- * procuid.c: A fix to a ommitted case, when nor NetBSD, nor
- LibGTop >= 1.1.0. This should be investigated closely to cover
- more cases....
-
-1999-05-26 Martin Baulig <martin@home-of-linux.org>
-
- More NetBSD 1.4 fixes.
-
- * mem.c, procmap.c, procmem.c: Make this work with the new UVM code.
-
- [FIXME: This following most likely works on all BSD systems, but
- this needs to be tested; I made it conditional to NetBSD 1.4 at
- the moment. Please extend the conditionals to any other systems
- where this works ...]
-
- * procstate.c: Added `ruid' and `rgid' for LibGTop >= 1.1.0.
- * procuid.c: Added `ngroups' and `groups' for LibGTop >= 1.1.0.
-
-1999-05-25 Martin Baulig <martin@home-of-linux.org>
-
- * ppp.c: Make this work on NetBSD.
-
-Thu Apr 8 23:47:29 1999 Timur Bakeyev <timur@gnu.org>
-
- * cpu.c, mem.c, netload.c, procargs.c, procstate.c, proctime.c,
- sem_limits.c, shm_limits.c, swap.c: Added initial port for BSD/OS
- (aka BSDI) 2.x and 3.x. 4.x should also(?) work.
-
- Still, this port require more close look and extended check.
-
-1999-03-19 Martin Baulig <martin@home-of-linux.org>
-
- Added basic support for BSDI. It compiles without problems on
- BSDI 2.1 and 3.1, but it is *untested* - I'm neither root on
- the machine nor have I access to /dev/kmem, so I don't know
- whether it will work.
-
- You need to give configure the `--enable-hacker-mode' parameter
- to use the code.
-
- If someone can verify whether it actually works, please let me
- know.
-
-1999-03-18 Martin Baulig <martin@home-of-linux.org>
-
- * ppp.c: Don't use `sppp.pp_phase' if we don't HAVE_I4B_ACCT.
- This is an ugly hack until someone tells me which versions have
- this field and which not.
-
-1999-02-25 Martin Baulig <martin@home-of-linux.org>
-
- * prockernel.c, proctime.c: Applied patch Stanislav Grozev for
- OpenBSD: only include <osreldate.h> for FreeBSD.
-
-1999-02-24 Martin Baulig <martin@home-of-linux.org>
-
- * swap.c: Applied another patch from Jeremy Lea to
- make it work with FreeBSD-current.
-
-1999-02-21 Martin Baulig <martin@home-of-linux.org>
-
- * procmap.c, procmem.c: Applied patch from Jeremy Lea.
-
- * prockernel.c, proctime.c: Applied patch from the FreeBSD 2.2.8
- ports collection.
-
- * procsignal.c: Applied patch from the NetBSD-current ports
- collection.
-
-1998-12-06 Martin Baulig <martin@home-of-linux.org>
-
- * Make it work with OpenBSD 2.4.
-
-1998-12-05 Martin Baulig <martin@home-of-linux.org>
-
- * Make it work with NetBSD 1.3.2.
-
-1998-11-17 Martin Baulig <martin@home-of-linux.org>
-
- * Make it work with FreeBSD 3.0.
-
-1998-11-11 Martin Baulig <martin@home-of-linux.org>
-
- * *.c: It does not work to get information about the swapper task
- on FreeBSD 2.2.6, so we simple return if pid == 0.
-
-1998-10-31 Martin Baulig <martin@home-of-linux.org>
-
- * *.c: Use glibtop_warn_io_r () instead of glibtop_error_io_r ().
-
- * proctime.c, prockernel.c, procargs.c: Don't call kvm_uread () if
- the /proc filesystem is not mounted.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * netload.c: New file to get network load.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * procargs.c: New file to get command line arguments.
-
-1998-10-25 Martin Baulig <martin@home-of-linux.org>
-
- * ppp.c: New file to get PPP/ISDN statistics. Currently this only
- get ISDN statistics if you have the I4B package.
-
- To get the number of bytes transferred in/out you need to read the
- file `misc/i4b_acct.txt' in the LibGTop source directory to see
- how to enable this.
-
-1998-10-03 Martin Baulig <martin@home-of-linux.org>
-
- * procstate.c (glibtop_get_procstate_s): Use correct values for
- the `state' field.
-
- * proclist.c (glibtop_get_proclist_p): Honor the GLIBTOP_EXCLUDE_IDLE
- and GLIBTOP_EXCLUDE_SYSTEM flags of the `which' parameter.
-
-1998-08-24 Martin Baulig <martin@home-of-linux.org>
-
- * *.c (glibtop_init_p): Using correct `(1 << GLIBTOP_SYSDPES_*)'.
- * cpu.c, mem.c: Removed `const' from sysctl () constants to keep
- compiler happy.
-
- * procmem.c: Added missing call to `glibtop_init_p'.
-
- * prockernel.c: Casting `nwchan' to `unsigned long' since this
- normally has the same size than a pointer. Well, is there a
- FreeBSD for 64bit architectures ?
-
-1998-08-08 Martin Baulig <martin@home-of-linux.org>
-
- * swap.c: Added swap usage based upton the source code
- of `pinfo'.
-
-1998-08-07 Martin Baulig <martin@home-of-linux.org>
-
- * *: Imported FreeBSD port of libgtop from Josh Sled.
-
- * ChangeLog: New file.
diff --git a/sysdeps/freebsd/Makefile.am b/sysdeps/freebsd/Makefile.am
deleted file mode 100644
index a48bb3bc..00000000
--- a/sysdeps/freebsd/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-
-INCLUDES = @INCLUDES@
-
-noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
-
-libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c sysinfo.c shm_limits.c \
- cpu.c msg_limits.c sem_limits.c loadavg.c \
- uptime.c netlist.c fsusage.c mem.c \
- procopenfiles.c procwd.c \
- glibtop_private.c
-
-libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
-libgtop_sysdeps_suid_2_0_la_LIBADD = $(KVM_LIBS) $(EXTRA_SYSDEPS_LIBS)
-libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c swap.c \
- proclist.c procstate.c procuid.c \
- proctime.c procmem.c procsignal.c \
- prockernel.c procsegment.c procargs.c \
- procmap.c netload.c ppp.c
-
-libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
-libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h \
- glibtop_suid.h glibtop_private.h
-
-libgtopincludedir = $(includedir)/libgtop-2.0
diff --git a/sysdeps/freebsd/close.c b/sysdeps/freebsd/close.c
deleted file mode 100644
index a8ea4d57..00000000
--- a/sysdeps/freebsd/close.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/close.h>
-
-/* Closes pipe to gtop server. */
-
-void
-glibtop_close_p (glibtop *server)
-{ }
diff --git a/sysdeps/freebsd/cpu.c b/sysdeps/freebsd/cpu.c
deleted file mode 100644
index 9577703d..00000000
--- a/sysdeps/freebsd/cpu.c
+++ /dev/null
@@ -1,114 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/cpu.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_cpu =
-(1L << GLIBTOP_CPU_TOTAL) + (1L << GLIBTOP_CPU_USER) +
-(1L << GLIBTOP_CPU_NICE) + (1L << GLIBTOP_CPU_SYS) +
-(1L << GLIBTOP_CPU_IDLE) + (1L << GLIBTOP_CPU_FREQUENCY) +
-(1L << GLIBTOP_CPU_IRQ);
-
-static const unsigned long _glibtop_sysdeps_cpu_smp =
-(1L << GLIBTOP_XCPU_TOTAL) + (1L << GLIBTOP_XCPU_USER) +
-(1L << GLIBTOP_XCPU_NICE) + (1L << GLIBTOP_XCPU_SYS) +
-(1L << GLIBTOP_XCPU_IDLE) + (1L << GLIBTOP_XCPU_IRQ);
-
-/* Init function. */
-
-void
-_glibtop_init_cpu_s (glibtop *server)
-{
- server->sysdeps.cpu = _glibtop_sysdeps_cpu;
-
- if (server->ncpu)
- server->sysdeps.cpu |= _glibtop_sysdeps_cpu_smp;
-}
-
-/* Provides information about cpu usage. */
-
-void
-glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
-{
- long cpts [CPUSTATES];
- struct clockinfo ci;
- size_t length;
- int ncpu, i;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);
-
- memset (buf, 0, sizeof (glibtop_cpu));
-
- length = sizeof (cpts);
- if (sysctlbyname ("kern.cp_time", cpts, &length, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.cp_time)");
- return;
- }
-
- /* Get the clockrate data */
- length = sizeof (ci);
- if (sysctlbyname ("kern.clockrate", &ci, &length, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.cockrate)");
- return;
- }
-
- /* set user time */
- buf->user = cpts [CP_USER];
- /* set nice time */
- buf->nice = cpts [CP_NICE];
- /* set sys time */
- buf->sys = cpts [CP_SYS];
- /* set idle time */
- buf->idle = cpts [CP_IDLE];
- /* set irq */
- buf->irq = cpts [CP_INTR];
-
- /* set frequency */
- buf->frequency = (ci.stathz ? ci.stathz : ci.hz);
- /* set total */
- buf->total = cpts [CP_USER] + cpts [CP_NICE]
- + cpts [CP_SYS] + cpts [CP_IDLE] + cpts [CP_INTR];
-
- ncpu = server->ncpu + 1;
-
- for (i = 0; i < ncpu; i++) {
- buf->xcpu_user[i] = cpts [CP_USER] / ncpu;
- buf->xcpu_nice[i] = cpts [CP_NICE] / ncpu;
- buf->xcpu_sys[i] = cpts [CP_SYS] / ncpu;
- buf->xcpu_idle[i] = cpts [CP_IDLE] / ncpu;
- buf->xcpu_irq[i] = cpts [CP_INTR] / ncpu;
- buf->xcpu_total[i] = buf->xcpu_user[i] + buf->xcpu_nice[i] \
- + buf->xcpu_sys[i] + buf->xcpu_idle[i] \
- + buf->xcpu_irq[i];
- }
-
- /* Set the flags last. */
- buf->flags = _glibtop_sysdeps_cpu;
-
- if (ncpu > 1) {
- buf->flags |= _glibtop_sysdeps_cpu_smp;
- }
-}
diff --git a/sysdeps/freebsd/fsusage.c b/sysdeps/freebsd/fsusage.c
deleted file mode 100644
index 0c34429f..00000000
--- a/sysdeps/freebsd/fsusage.c
+++ /dev/null
@@ -1,137 +0,0 @@
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/fsusage.h>
-
-#include <glibtop_suid.h>
-
-#include <glib.h>
-
-#include <unistd.h>
-#include <sys/param.h>
-#include <sys/mount.h>
-#if __FreeBSD_version >= 600000 || defined(__FreeBSD_kernel__)
-#include <libgeom.h>
-#include <sys/resource.h>
-#include <devstat.h>
-#include <sys/devicestat.h>
-#endif
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
-void
-_glibtop_freebsd_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path);
-
-void
-_glibtop_freebsd_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path)
-{
- int result;
- struct statfs sfs;
-#if __FreeBSD_version >= 600000 || defined(__FreeBSD_kernel__)
- struct devstat *ds;
- void *sc;
- struct timespec ts;
- struct gprovider *gp;
- struct gident *gid;
- struct gmesh gmp;
- double etime;
- uint64_t ld[2];
-#endif
-
- result = statfs (path, &sfs);
-
- if (result == -1) {
- glibtop_warn_io_r (server, "statfs");
- return;
- }
-#if __FreeBSD_version >= 600000 || defined(__FreeBSD_kernel__)
- ld[0] = 0;
- ld[1] = 0;
- result = geom_gettree (&gmp);
- if (result != 0) {
- glibtop_warn_io_r (server, "geom_gettree = %d", result);
- return;
- }
-
- result = geom_stats_open ();
- if (result != 0) {
- glibtop_warn_io_r (server, "geom_stats_open()");
- geom_deletetree (&gmp);
- return;
- }
-
- sc = NULL;
- sc = geom_stats_snapshot_get ();
- if (sc == NULL) {
- glibtop_warn_io_r (server, "geom_stats_snapshot_get()");
- geom_stats_close ();
- geom_deletetree (&gmp);
- return;
- }
- geom_stats_snapshot_timestamp (sc, &ts);
- etime = ts.tv_sec + (ts.tv_nsec * 1e-9);
- geom_stats_snapshot_reset (sc);
-
- for (;;) {
- ds = geom_stats_snapshot_next (sc);
- if (ds == NULL) {
- break;
- }
- if (ds->id == NULL) {
- continue;
- }
-
- gid = geom_lookupid (&gmp, ds->id);
- if (gid == NULL) {
- geom_deletetree (&gmp);
- result = geom_gettree (&gmp);
- gid = geom_lookupid (&gmp, ds->id);
- }
-
- if (gid == NULL) {
- continue;
- }
- if (gid->lg_what == ISCONSUMER) {
- continue;
- }
-
- gp = gid->lg_ptr;
-
- if (!g_str_has_suffix (sfs.f_mntfromname, gp->lg_name)) {
- continue;
- } else {
- result = devstat_compute_statistics (ds, NULL, etime,
- DSM_TOTAL_TRANSFERS_READ,
- &ld[0],
- DSM_TOTAL_TRANSFERS_WRITE,
- &ld[1], DSM_NONE);
- if (result != 0) {
- glibtop_warn_io_r (server,
- "devstat_compute_statistics()");
- geom_stats_snapshot_free (sc);
- geom_stats_close ();
- geom_deletetree (&gmp);
- return;
- }
- break;
- }
- }
-
- geom_stats_snapshot_free (sc);
- geom_stats_close ();
- geom_deletetree (&gmp);
-
- buf->read = ld[0];
- buf->write = ld[1];
-#else
- buf->read = sfs.f_syncreads + sfs.f_asyncreads;
- buf->write = sfs.f_syncwrites + sfs.f_asyncwrites;
-#endif
- buf->flags |= (1 << GLIBTOP_FSUSAGE_READ) | (1 << GLIBTOP_FSUSAGE_WRITE);
-}
diff --git a/sysdeps/freebsd/glibtop_machine.h b/sysdeps/freebsd/glibtop_machine.h
deleted file mode 100644
index 57289021..00000000
--- a/sysdeps/freebsd/glibtop_machine.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/* 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_MACHINE_H__
-#define __GLIBTOP_MACHINE_H__
-
-#include <sys/param.h>
-#include <nlist.h>
-#include <kvm.h>
-#include <sys/dkstat.h>
-#include <time.h>
-#include <sys/user.h>
-#include <sys/types.h>
-#include <sys/sysctl.h>
-
-#include <fcntl.h>
-
-#include <osreldate.h>
-
-G_BEGIN_DECLS
-
-typedef struct _glibtop_machine glibtop_machine;
-
-struct _glibtop_machine
-{
- uid_t uid, euid;
- gid_t gid, egid;
-
- /* The kernel descriptor, used by kvm_* calls. We keep and re-use
- * it rather than re-getting it for almost all function
- * invocations. */
- kvm_t *kd;
-};
-
-G_END_DECLS
-
-#endif /* __GLIBTOP_MACHINE_H__ */
diff --git a/sysdeps/freebsd/glibtop_private.c b/sysdeps/freebsd/glibtop_private.c
deleted file mode 100644
index 5e7ed66b..00000000
--- a/sysdeps/freebsd/glibtop_private.c
+++ /dev/null
@@ -1,54 +0,0 @@
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-
-#include "glibtop_private.h"
-
-#include <sys/types.h>
-#include <unistd.h>
-#include <string.h>
-#include <glib.h>
-#include <errno.h>
-
-char *
-execute_lsof(pid_t pid) {
- char *output = NULL;
- char *lsof;
- char *command;
- int exit_status;
-
- lsof = g_find_program_in_path("lsof");
- if (lsof == NULL)
- return NULL;
-
- command = g_strdup_printf("%s -n -P -Fftn -p %d", lsof, pid);
- g_free(lsof);
-
- if (g_spawn_command_line_sync (command, &output, NULL, &exit_status, NULL)) {
- if (exit_status != 0) {
- g_warning("Could not execute \"%s\" (%i)", command,
- exit_status);
- output = NULL;
- }
- }
-
- g_free(command);
- return output;
-}
-
-/* Ported from linux/glibtop_private.c */
-gboolean
-safe_readlink(const char *path, char *buf, int bufsiz)
-{
- int ret;
-
- ret = readlink(path, buf, bufsiz - 1);
-
- if (ret == -1) {
- g_warning("Could not read link %s : %s", path, strerror(errno));
- return FALSE;
- }
-
- buf[ret] = '\0';
- return TRUE;
-}
diff --git a/sysdeps/freebsd/glibtop_private.h b/sysdeps/freebsd/glibtop_private.h
deleted file mode 100644
index 4fd8bd00..00000000
--- a/sysdeps/freebsd/glibtop_private.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* Copyright (C) 2007 Joe Marcus Clarke
- This file is part of LibGTop 2.0.
-
- 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 __FREEBSD__GLIBTOP_PRIVATE_H__
-#define __FREEBSD__GLIBTOP_PRIVATE_H__
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-
-#include <glib.h>
-
-#include <sys/types.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-
-G_BEGIN_DECLS
-
-char *execute_lsof(pid_t pid);
-gboolean safe_readlink(const char *path, char *buf, int bufsiz);
-
-G_END_DECLS
-
-#endif /* __FREEBSD__GLIBTOP_PRIVATE_H__ */
diff --git a/sysdeps/freebsd/glibtop_server.h b/sysdeps/freebsd/glibtop_server.h
deleted file mode 100644
index d73c645c..00000000
--- a/sysdeps/freebsd/glibtop_server.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* 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 __FREEBSD__GLIBTOP_SERVER_H__
-#define __FREEBSD__GLIBTOP_SERVER_H__
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_SUID_SWAP (1 << GLIBTOP_SYSDEPS_SWAP)
-#define GLIBTOP_SUID_PROCLIST (1 << GLIBTOP_SYSDEPS_PROCLIST)
-#define GLIBTOP_SUID_PROC_STATE (1 << GLIBTOP_SYSDEPS_PROC_STATE)
-#define GLIBTOP_SUID_PROC_UID (1 << GLIBTOP_SYSDEPS_PROC_UID)
-#define GLIBTOP_SUID_PROC_MEM (1 << GLIBTOP_SYSDEPS_PROC_MEM)
-#define GLIBTOP_SUID_PROC_TIME (1 << GLIBTOP_SYSDEPS_PROC_TIME)
-#define GLIBTOP_SUID_PROC_SIGNAL (1 << GLIBTOP_SYSDEPS_PROC_SIGNAL)
-#define GLIBTOP_SUID_PROC_KERNEL (1 << GLIBTOP_SYSDEPS_PROC_KERNEL)
-#define GLIBTOP_SUID_PROC_SEGMENT (1 << GLIBTOP_SYSDEPS_PROC_SEGMENT)
-#define GLIBTOP_SUID_PROC_ARGS (1 << GLIBTOP_SYSDEPS_PROC_ARGS)
-#define GLIBTOP_SUID_PROC_MAP (1 << GLIBTOP_SYSDEPS_PROC_MAP)
-#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
-#define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP)
-#define GLIBTOP_SUID_CPU 0
-#define GLIBTOP_SUID_MEM 0
-#define GLIBTOP_SUID_UPTIME 0
-#define GLIBTOP_SUID_LOADAVG 0
-#define GLIBTOP_SUID_SHM_LIMITS 0
-#define GLIBTOP_SUID_MSG_LIMITS 0
-#define GLIBTOP_SUID_SEM_LIMITS 0
-#define GLIBTOP_SUID_NETLIST 0
-#define GLIBTOP_SUID_PROC_WD 0
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/freebsd/glibtop_suid.h b/sysdeps/freebsd/glibtop_suid.h
deleted file mode 100644
index 01a38b91..00000000
--- a/sysdeps/freebsd/glibtop_suid.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* 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_SUID_H__
-#define __GLIBTOP_SUID_H__
-
-G_BEGIN_DECLS
-
-#if _IN_LIBGTOP
-#include <sys/param.h>
-#endif
-
-#define KI_PROC(ki) (&(ki))->kp_proc)
-#define KI_EPROC(ki) (&(ki))->kp_eproc)
-
-#define FORCEUREAD 1
-#define UREADOK(ki) (FORCEUREAD || (KI_PROC(ki)->p_flag & P_INMEM))
-
-static inline void glibtop_suid_enter (glibtop *server) {
- setregid (server->machine.gid, server->machine.egid);
-};
-
-static inline void glibtop_suid_leave (glibtop *server) {
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-};
-
-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);
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/freebsd/loadavg.c b/sysdeps/freebsd/loadavg.c
deleted file mode 100644
index 91c61854..00000000
--- a/sysdeps/freebsd/loadavg.c
+++ /dev/null
@@ -1,77 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <stdlib.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/loadavg.h>
-
-#include <sys/types.h>
-#include <sys/sysctl.h>
-
-static const unsigned long _glibtop_sysdeps_loadavg =
-(1L << GLIBTOP_LOADAVG_LOADAVG);
-
-static const unsigned long _glibtop_sysdeps_last_pid =
-(1L << GLIBTOP_LOADAVG_LAST_PID);
-
-/* Init function. */
-
-void
-_glibtop_init_loadavg_s (glibtop *server)
-{
- server->sysdeps.loadavg = _glibtop_sysdeps_loadavg |
- _glibtop_sysdeps_last_pid;
-}
-
-/* Provides load averange. */
-
-void
-glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
-{
- double ldavg[3];
- pid_t last_pid;
- size_t len;
- int i;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_LOADAVG, 0);
-
- memset (buf, 0, sizeof (glibtop_loadavg));
-
- getloadavg (ldavg, 3);
-
- /* fill in the struct */
- buf->flags = _glibtop_sysdeps_loadavg;
- for (i = 0; i < 3; i++) {
- buf->loadavg [i] = ldavg [i];
- } /* end for */
-
- len = sizeof (last_pid);
- if (sysctlbyname ("kern.lastpid", &last_pid, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.lastpid)");
- return;
- }
-
- buf->last_pid = last_pid;
-
- buf->flags |= _glibtop_sysdeps_last_pid;
-}
diff --git a/sysdeps/freebsd/mem.c b/sysdeps/freebsd/mem.c
deleted file mode 100644
index 71a4a60f..00000000
--- a/sysdeps/freebsd/mem.c
+++ /dev/null
@@ -1,90 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/mem.h>
-
-#include <sys/types.h>
-#include <sys/sysctl.h>
-
-static const unsigned long _glibtop_sysdeps_mem =
-(1L << GLIBTOP_MEM_TOTAL) + (1L << GLIBTOP_MEM_USED) +
-(1L << GLIBTOP_MEM_FREE) + (1L << GLIBTOP_MEM_SHARED) +
-(1L << GLIBTOP_MEM_BUFFER) + (1L << GLIBTOP_MEM_CACHED) +
-(1L << GLIBTOP_MEM_USER);
-
-/* these are for getting the memory statistics */
-static int pagesize;
-
-/* Init function. */
-void
-_glibtop_init_mem_s (glibtop *server)
-{
- pagesize = getpagesize ();
-
- server->sysdeps.mem = _glibtop_sysdeps_mem;
-}
-
-void
-glibtop_get_mem_s (glibtop *server, glibtop_mem *buf)
-{
- gulong memtotal;
- guint memused;
- gulong buffers;
- guint cached;
- size_t len;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_MEM, 0);
-
- memset (buf, 0, sizeof *buf);
-
- len = sizeof (memtotal);
- if (sysctlbyname ("hw.physmem", &memtotal, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (hw.physmem)");
- return;
- }
-
- len = sizeof (memused);
- if (sysctlbyname ("vm.stats.vm.v_wire_count", &memused, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (vm.stats.vm.v_wire_count)");
- return;
- }
-
- len = sizeof (cached);
- if (sysctlbyname ("vm.stats.vm.v_cache_count", &cached, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (vm.stats.vm.v_cache_count)");
- return;
- }
-
- buffers = 0;
-
- buf->total = memtotal;
- buf->used = (memused * pagesize);
- buf->free = (buf->total - buf->used);
- buf->shared = 0;
- buf->cached = (cached * pagesize);
- buf->buffer = buffers;
-
- buf->user = buf->total - buf->free - buf->cached - buf->buffer;
- buf->flags = _glibtop_sysdeps_mem;
-}
diff --git a/sysdeps/freebsd/msg_limits.c b/sysdeps/freebsd/msg_limits.c
deleted file mode 100644
index a9c44127..00000000
--- a/sysdeps/freebsd/msg_limits.c
+++ /dev/null
@@ -1,102 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, August 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/msg_limits.h>
-
-#include <sys/types.h>
-#include <sys/sysctl.h>
-
-static const unsigned long _glibtop_sysdeps_msg_limits =
-(1L << GLIBTOP_IPC_MSGMAX) + (1L << GLIBTOP_IPC_MSGMNI) +
-(1L << GLIBTOP_IPC_MSGMNB) + (1L << GLIBTOP_IPC_MSGTQL) +
-(1L << GLIBTOP_IPC_MSGSSZ) + (1L << GLIBTOP_IPC_MSGPOOL);
-
-/* Init function. */
-
-void
-_glibtop_init_msg_limits_s (glibtop *server)
-{
- server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf)
-{
- size_t len;
- int msgmax, msgmni, msgmnb, msgtql, msgssz, msgseg;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_MSG_LIMITS, 0);
-
- memset (buf, 0, sizeof (glibtop_msg_limits));
-
- if (server->sysdeps.msg_limits == 0)
- return;
-
- len = sizeof (msgseg);
- if (sysctlbyname ("kern.ipc.msgseg", &msgseg, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.msgseg)");
- return;
- }
-
- len = sizeof (msgssz);
- if (sysctlbyname ("kern.ipc.msgssz", &msgssz, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.msgssz)");
- return;
- }
-
- len = sizeof (msgtql);
- if (sysctlbyname ("kern.ipc.msgtql", &msgtql, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.msgtql)");
- return;
- }
-
- len = sizeof (msgmnb);
- if (sysctlbyname ("kern.ipc.msgmnb", &msgmnb, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.msgmnb)");
- return;
- }
-
- len = sizeof (msgmni);
- if (sysctlbyname ("kern.ipc.msgmni", &msgmni, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.msgmni)");
- return;
- }
-
- len = sizeof (msgmax);
- if (sysctlbyname ("kern.ipc.msgmax", &msgmax, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.msgmax)");
- return;
- }
-
- buf->msgmax = msgmax;
- buf->msgmni = msgmni;
- buf->msgmnb = msgmnb;
- buf->msgtql = msgtql;
- buf->msgssz = msgssz;
- buf->msgpool = msgseg;
-
- buf->flags = _glibtop_sysdeps_msg_limits;
-}
diff --git a/sysdeps/freebsd/netlist.c b/sysdeps/freebsd/netlist.c
deleted file mode 100644
index ab329803..00000000
--- a/sysdeps/freebsd/netlist.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- This file is part of LibGTop 2.0.
-
- 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.
-*/
-
-#include <config.h>
-#include <glibtop/netlist.h>
-#include <glibtop/error.h>
-
-#include <net/if.h>
-
-
-static const unsigned long _glibtop_sysdeps_netlist = (1 << GLIBTOP_NETLIST_NUMBER);
-
-/* Init function. */
-
-void
-_glibtop_init_netlist_s (glibtop *server)
-{
- server->sysdeps.netlist = _glibtop_sysdeps_netlist;
-}
-
-
-char**
-glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf)
-{
- struct if_nameindex *ifstart, *ifs;
- GPtrArray *devices;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_NETLIST, 0);
-
- memset (buf, 0, sizeof (glibtop_netlist));
-
- ifs = ifstart = if_nameindex();
-
- devices = g_ptr_array_new();
-
- while(ifs && ifs->if_name) {
- g_ptr_array_add(devices, g_strdup(ifs->if_name));
- buf->number++;
- ifs++;
- }
-
- if_freenameindex(ifstart);
-
- buf->flags = _glibtop_sysdeps_netlist;
-
- g_ptr_array_add(devices, NULL);
-
- return (char **) g_ptr_array_free(devices, FALSE);
-}
-
diff --git a/sysdeps/freebsd/netload.c b/sysdeps/freebsd/netload.c
deleted file mode 100644
index 7359ce0a..00000000
--- a/sysdeps/freebsd/netload.c
+++ /dev/null
@@ -1,254 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/netload.h>
-
-#include <glibtop_suid.h>
-
-#include <string.h>
-
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-
-#include <net/if.h>
-#include <net/if_dl.h>
-#include <net/if_types.h>
-
-#ifdef HAVE_NET_IF_VAR_H
-#include <net/if_var.h>
-#endif
-
-#include <netinet/in.h>
-#include <netinet/in_var.h>
-
-static const unsigned long _glibtop_sysdeps_netload =
-(1L << GLIBTOP_NETLOAD_IF_FLAGS) +
-(1L << GLIBTOP_NETLOAD_PACKETS_IN) +
-(1L << GLIBTOP_NETLOAD_PACKETS_OUT) +
-(1L << GLIBTOP_NETLOAD_PACKETS_TOTAL) +
-(1L << GLIBTOP_NETLOAD_BYTES_IN) +
-(1L << GLIBTOP_NETLOAD_BYTES_OUT) +
-(1L << GLIBTOP_NETLOAD_BYTES_TOTAL) +
-(1L << GLIBTOP_NETLOAD_ERRORS_IN) +
-(1L << GLIBTOP_NETLOAD_ERRORS_OUT) +
-(1L << GLIBTOP_NETLOAD_ERRORS_TOTAL) +
-(1L << GLIBTOP_NETLOAD_COLLISIONS);
-
-static const unsigned long _glibtop_sysdeps_netload_data =
-(1L << GLIBTOP_NETLOAD_ADDRESS) +
-(1L << GLIBTOP_NETLOAD_MTU);
-
-static const unsigned long _glibtop_sysdeps_netload6 =
-(1L << GLIBTOP_NETLOAD_ADDRESS6) +
-(1L << GLIBTOP_NETLOAD_SCOPE6);
-
-/* nlist structure for kernel access */
-static struct nlist nlst [] =
- {
- { "_ifnet"
- },
- { 0 }
- };
-
-/* Init function. */
-
-void
-_glibtop_init_netload_p (glibtop *server)
-{
- if (kvm_nlist (server->machine.kd, nlst) < 0) {
- glibtop_warn_io_r (server, "kvm_nlist");
- return;
- }
-
- server->sysdeps.netload = _glibtop_sysdeps_netload;
-}
-
-/* Provides Network statistics. */
-
-void
-glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
- const char *interface)
-{
- struct ifnet ifnet;
- u_long ifnetaddr, ifnetfound;
- struct sockaddr *sa = NULL;
- char name [32];
-
- union {
- struct ifaddr ifa;
- struct in_ifaddr in;
- } ifaddr;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_NETLOAD), 0);
-
- memset (buf, 0, sizeof (glibtop_netload));
-
- if (server->sysdeps.netload == 0) return;
-
- if (kvm_read (server->machine.kd, nlst [0].n_value,
- &ifnetaddr, sizeof (ifnetaddr)) != sizeof (ifnetaddr)) {
- glibtop_warn_io_r (server, "kvm_read (ifnet)");
- return;
- }
-
- while (ifnetaddr)
- {
- struct sockaddr_in *sin;
- register char *cp;
- u_long ifaddraddr;
-
- {
- ifnetfound = ifnetaddr;
-
- if (kvm_read (server->machine.kd, ifnetaddr, &ifnet,
- sizeof (ifnet)) != sizeof (ifnet)) {
- glibtop_warn_io_r (server,
- "kvm_read (ifnetaddr)");
- continue;
- }
-
- g_strlcpy (name, ifnet.if_xname, sizeof(name));
- ifnetaddr = (u_long) ifnet.if_link.tqe_next;
-
- if (strcmp (name, interface) != 0)
- continue;
-
- ifaddraddr = (u_long) ifnet.if_addrhead.tqh_first;
- }
- if (ifnet.if_flags & IFF_UP)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_UP);
- if (ifnet.if_flags & IFF_BROADCAST)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_BROADCAST);
- if (ifnet.if_flags & IFF_DEBUG)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_DEBUG);
- if (ifnet.if_flags & IFF_LOOPBACK)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_LOOPBACK);
- if (ifnet.if_flags & IFF_POINTOPOINT)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_POINTOPOINT);
-#ifdef IFF_DRV_RUNNING
- if (ifnet.if_drv_flags & IFF_DRV_RUNNING)
-#else
- if (ifnet.if_flags & IFF_RUNNING)
-#endif
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_RUNNING);
- if (ifnet.if_flags & IFF_NOARP)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_NOARP);
- if (ifnet.if_flags & IFF_PROMISC)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_PROMISC);
- if (ifnet.if_flags & IFF_ALLMULTI)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_ALLMULTI);
-#ifdef IFF_DRV_OACTIVE
- if (ifnet.if_drv_flags & IFF_DRV_OACTIVE)
-#else
- if (ifnet.if_flags & IFF_OACTIVE)
-#endif
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_OACTIVE);
- if (ifnet.if_flags & IFF_SIMPLEX)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_SIMPLEX);
- if (ifnet.if_flags & IFF_LINK0)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_LINK0);
- if (ifnet.if_flags & IFF_LINK1)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_LINK1);
- if (ifnet.if_flags & IFF_LINK2)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_LINK2);
- if (ifnet.if_flags & IFF_ALTPHYS)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_ALTPHYS);
- if (ifnet.if_flags & IFF_MULTICAST)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_MULTICAST);
-
- buf->packets_in = ifnet.if_ipackets;
- buf->packets_out = ifnet.if_opackets;
- buf->packets_total = buf->packets_in + buf->packets_out;
-
- buf->bytes_in = ifnet.if_ibytes;
- buf->bytes_out = ifnet.if_obytes;
- buf->bytes_total = buf->bytes_in + buf->bytes_out;
-
- buf->errors_in = ifnet.if_ierrors;
- buf->errors_out = ifnet.if_oerrors;
- buf->errors_total = buf->errors_in + buf->errors_out;
-
- buf->collisions = ifnet.if_collisions;
- buf->flags = _glibtop_sysdeps_netload;
-
- while (ifaddraddr) {
- if ((kvm_read (server->machine.kd, ifaddraddr, &ifaddr,
- sizeof (ifaddr)) != sizeof (ifaddr))) {
- glibtop_warn_io_r (server,
- "kvm_read (ifaddraddr)");
- continue;
- }
-
-#define CP(x) ((char *)(x))
- cp = (CP(ifaddr.ifa.ifa_addr) - CP(ifaddraddr)) +
- CP(&ifaddr);
- sa = (struct sockaddr *)cp;
-
- if (sa->sa_family == AF_LINK) {
- struct sockaddr_dl *dl = (struct sockaddr_dl *) sa;
-
- memcpy (buf->hwaddress, LLADDR (dl),
- sizeof (buf->hwaddress));
- buf->flags |= GLIBTOP_NETLOAD_HWADDRESS;
- } else if (sa->sa_family == AF_INET) {
- sin = (struct sockaddr_in *)sa;
- /* Commenting out to "fix" #13345. */
- buf->subnet = htonl (ifaddr.in.ia_subnet);
- buf->address = sin->sin_addr.s_addr;
- buf->mtu = ifnet.if_mtu;
-
- buf->flags |= _glibtop_sysdeps_netload_data;
- } else if (sa->sa_family == AF_INET6) {
- struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sa;
- int in6fd;
-
- memcpy (buf->address6, &sin6->sin6_addr,
- sizeof (buf->address6));
- buf->scope6 = (guint8) sin6->sin6_scope_id;
- buf->flags |= _glibtop_sysdeps_netload6;
-
- in6fd = socket (AF_INET6, SOCK_DGRAM, 0);
- if (in6fd >= 0) {
- struct in6_ifreq ifr;
-
- memset (&ifr, 0, sizeof (ifr));
- ifr.ifr_addr = *sin6;
- g_strlcpy (ifr.ifr_name, interface,
- sizeof (ifr.ifr_name));
- if (ioctl (in6fd, SIOCGIFNETMASK_IN6,
- (char *) &ifr) >= 0) {
- memcpy (buf->prefix6,
- &ifr.ifr_addr.sin6_addr,
- sizeof (buf->prefix6));
- buf->flags |= GLIBTOP_NETLOAD_PREFIX6;
- }
- close (in6fd);
- }
- }
- ifaddraddr = (u_long) ifaddr.ifa.ifa_link.tqe_next;
- }
- return;
- }
-}
diff --git a/sysdeps/freebsd/nosuid.c b/sysdeps/freebsd/nosuid.c
deleted file mode 100644
index b43eaca5..00000000
--- a/sysdeps/freebsd/nosuid.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-
-void
-glibtop_open_s (glibtop *server,
- const char *program_name,
- const unsigned long features,
- const unsigned flags)
-{ }
-
-void
-glibtop_close_s (glibtop *server)
-{ }
diff --git a/sysdeps/freebsd/open.c b/sysdeps/freebsd/open.c
deleted file mode 100644
index 0627026b..00000000
--- a/sysdeps/freebsd/open.c
+++ /dev/null
@@ -1,93 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/open.h>
-#include <glibtop/init_hooks.h>
-
-/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
-void
-glibtop_init_p (glibtop *server, const unsigned long features,
- const unsigned flags)
-{
- const _glibtop_init_func_t *init_fkt;
-
- if (server == NULL)
- glibtop_error_r (NULL, "glibtop_init_p (server == NULL)");
-
- /* Do the initialization, but only if not already initialized. */
-
- if ((server->flags & _GLIBTOP_INIT_STATE_SYSDEPS) == 0) {
- glibtop_open_p (server, "glibtop", features, flags);
-
- for (init_fkt = _glibtop_init_hook_p; *init_fkt; init_fkt++)
- (*init_fkt) (server);
-
- server->flags |= _GLIBTOP_INIT_STATE_SYSDEPS;
- }
-}
-
-void
-glibtop_open_p (glibtop *server, const char *program_name,
- const unsigned long features,
- const unsigned flags)
-{
-#ifdef DEBUG
- fprintf (stderr, "DEBUG (%d): glibtop_open_p ()\n", getpid ());
-#endif
-
- /* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */
-
- server->machine.uid = getuid ();
- server->machine.euid = geteuid ();
- server->machine.gid = getgid ();
- server->machine.egid = getegid ();
-
- server->os_version_code = __FreeBSD_version;
-
- /* Setup machine-specific data */
- server->machine.kd = kvm_open (NULL, NULL, NULL, O_RDONLY, "kvm_open");
-
- if (server->machine.kd == NULL)
- glibtop_error_io_r (server, "kvm_open");
-
- /* Drop priviledges. */
-
- if (setreuid (server->machine.euid, server->machine.uid))
- _exit (1);
-
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- /* Our effective uid is now those of the user invoking the server,
- * so we do no longer have any priviledges. */
-
- /* NOTE: On FreeBSD, we do not need to be suid root, we just need to
- * be sgid kmem.
- *
- * The server will only use setegid() to get back it's priviledges,
- * so it will fail if it is suid root and not sgid kmem. */
-}
diff --git a/sysdeps/freebsd/ppp.c b/sysdeps/freebsd/ppp.c
deleted file mode 100644
index 6a0beb63..00000000
--- a/sysdeps/freebsd/ppp.c
+++ /dev/null
@@ -1,145 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/ppp.h>
-
-#include <glibtop_suid.h>
-
-#ifdef HAVE_I4B
-
-#include <net/if.h>
-#include <net/if_types.h>
-
-#ifdef HAVE_NET_IF_VAR_H
-#include <net/if_var.h>
-#endif
-
-#include <net/netisr.h>
-#include <net/route.h>
-
-#include <net/if_sppp.h>
-
-/* Read `misc/i4b_acct.txt' for details ... */
-#ifdef HAVE_I4B_ACCT
-#include <machine/i4b_acct.h>
-#endif
-
-static const unsigned long _glibtop_sysdeps_ppp =
-(1L << GLIBTOP_PPP_STATE);
-
-#ifdef HAVE_I4B_ACCT
-static const unsigned long _glibtop_sysdeps_ppp_acct =
-(1L << GLIBTOP_PPP_BYTES_IN) + (1L << GLIBTOP_PPP_BYTES_OUT);
-#endif
-
-#endif /* HAVE_I4B */
-
-/* nlist structure for kernel access */
-static struct nlist nlst [] = {
-#ifdef HAVE_I4B
- { "_i4bisppp_softc" },
-#endif
- { 0 }
-};
-
-/* Init function. */
-
-void
-_glibtop_init_ppp_p (glibtop *server)
-{
-#ifdef HAVE_I4B
-#ifdef HAVE_I4B_ACCT
- server->sysdeps.ppp = _glibtop_sysdeps_ppp |
- _glibtop_sysdeps_ppp_acct;
-#else
- server->sysdeps.ppp = _glibtop_sysdeps_ppp;
-#endif
-#endif /* HAVE_I4B */
-
- if (kvm_nlist (server->machine.kd, nlst) < 0) {
- glibtop_warn_io_r (server, "kvm_nlist");
- server->sysdeps.ppp = 0;
- }
-}
-
-/* Provides information about ppp usage. */
-
-void
-glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device)
-{
-#ifdef HAVE_I4B
-#ifdef HAVE_I4B_ACCT
- struct i4bisppp_softc data;
-#else
- struct sppp data;
-#endif
- int phase;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PPP), 0);
-
- memset (buf, 0, sizeof (glibtop_ppp));
-
- if (server->sysdeps.ppp == 0) return;
-
- if (kvm_read (server->machine.kd, nlst [0].n_value,
- &data, sizeof (data)) != sizeof (data)) {
- glibtop_warn_io_r (server, "kvm_read (i4bisppp_softc)");
- return;
- }
-
-#ifdef HAVE_I4B_ACCT
- phase = data.sc_if_un.scu_sp.pp_phase;
-#else
- /* FIXME: Which FreeBSD version have this field and
- * which not. */
-#if 0
- phase = data.pp_phase;
-#endif
-#endif
-
- switch (phase) {
-#ifdef HAVE_I4B_ACCT
- case PHASE_DEAD:
- case PHASE_TERMINATE:
- buf->state = GLIBTOP_PPP_STATE_HANGUP;
- break;
- case PHASE_ESTABLISH:
- case PHASE_NETWORK:
- buf->state = GLIBTOP_PPP_STATE_ONLINE;
- break;
-#endif
- default:
- buf->state = GLIBTOP_PPP_STATE_UNKNOWN;
- break;
- }
-
- buf->flags = _glibtop_sysdeps_ppp;
-
-#ifdef HAVE_I4B_ACCT
- buf->bytes_in = data.sc_inb;
- buf->bytes_out = data.sc_outb;
- buf->flags |= _glibtop_sysdeps_ppp_acct;
-#endif
-#endif /* HAVE_I4B */
-}
diff --git a/sysdeps/freebsd/procargs.c b/sysdeps/freebsd/procargs.c
deleted file mode 100644
index 791afb7d..00000000
--- a/sysdeps/freebsd/procargs.c
+++ /dev/null
@@ -1,98 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procargs.h>
-
-#include <glibtop_suid.h>
-
-#include <kvm.h>
-#include <sys/param.h>
-#include <sys/proc.h>
-
-static const unsigned long _glibtop_sysdeps_proc_args =
-(1L << GLIBTOP_PROC_ARGS_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_args_p (glibtop *server)
-{
- server->sysdeps.proc_args = _glibtop_sysdeps_proc_args;
-}
-
-/* Provides detailed information about a process. */
-
-char *
-glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len)
-{
- struct kinfo_proc *pinfo;
- char *retval, **args, **ptr;
- size_t size = 0, pos = 0;
- int count;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_ARGS), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_args));
-
- /* swapper, init, pagedaemon, vmdaemon, update - this doen't work. */
- if (pid < 5) return NULL;
-
- glibtop_suid_enter (server);
-
- /* Get the process data */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count < 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- glibtop_suid_leave (server);
- return NULL;
- }
-
- args = kvm_getargv (server->machine.kd, pinfo, max_len);
- if (args == NULL) {
- glibtop_warn_io_r (server, "kvm_getargv (%d)", pid);
- glibtop_suid_leave (server);
- return NULL;
- }
-
- glibtop_suid_leave (server);
-
- for (ptr = args; *ptr; ptr++)
- size += strlen (*ptr)+1;
-
- size += 2;
- retval = g_malloc0 (size);
-
- for (ptr = args; *ptr; ptr++) {
- const size_t len = strlen (*ptr)+1;
- memcpy (retval+pos, *ptr, len);
- pos += len;
- }
-
- buf->size = pos ? pos-1 : 0;
-
- buf->flags = _glibtop_sysdeps_proc_args;
-
- return retval;
-}
diff --git a/sysdeps/freebsd/prockernel.c b/sysdeps/freebsd/prockernel.c
deleted file mode 100644
index 533725c0..00000000
--- a/sysdeps/freebsd/prockernel.c
+++ /dev/null
@@ -1,121 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/prockernel.h>
-
-#include <glibtop_suid.h>
-
-#include <kvm.h>
-#include <sys/param.h>
-#include <sys/sysctl.h>
-#include <sys/proc.h>
-#include <sys/user.h>
-
-#include <unistd.h>
-#include <fcntl.h>
-
-#include <osreldate.h>
-
-static const unsigned long _glibtop_sysdeps_proc_kernel_pstats =
-(1L << GLIBTOP_PROC_KERNEL_K_FLAGS) +
-(1L << GLIBTOP_PROC_KERNEL_MIN_FLT) +
-(1L << GLIBTOP_PROC_KERNEL_MAJ_FLT) +
-#if (__FreeBSD_version >= 600006) || defined(__FreeBSD_kernel__)
-(1L << GLIBTOP_PROC_KERNEL_CMIN_FLT) +
-(1L << GLIBTOP_PROC_KERNEL_CMAJ_FLT);
-#else
-0;
-#endif
-
-static const unsigned long _glibtop_sysdeps_proc_kernel_wchan =
-(1L << GLIBTOP_PROC_KERNEL_WCHAN) +
-(1L << GLIBTOP_PROC_KERNEL_NWCHAN);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_kernel_p (glibtop *server)
-{
- server->sysdeps.proc_kernel = _glibtop_sysdeps_proc_kernel_pstats |
- _glibtop_sysdeps_proc_kernel_wchan;
-}
-
-void
-glibtop_get_proc_kernel_p (glibtop *server,
- glibtop_proc_kernel *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- int count;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_KERNEL), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_kernel));
-
- if (server->sysdeps.proc_time == 0)
- return;
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- glibtop_suid_enter (server);
-
- /* Get the process information */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count != 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- glibtop_suid_leave (server);
- return;
- }
-
- glibtop_suid_leave (server);
-
-#define PROC_WCHAN ki_wchan
-#define PROC_WMESG ki_wmesg
-#define PROC_WMESG ki_wmesg
-
- buf->nwchan = (unsigned long) pinfo [0].PROC_WCHAN;
-
- buf->flags |= (1L << GLIBTOP_PROC_KERNEL_NWCHAN);
-
- if (pinfo [0].PROC_WCHAN && pinfo [0].PROC_WMESG[0] != 0) {
- g_strlcpy (buf->wchan, pinfo [0].PROC_WMESG,
- sizeof buf->wchan);
- buf->flags |= (1L << GLIBTOP_PROC_KERNEL_WCHAN);
- } else {
- buf->wchan [0] = 0;
- }
-
- buf->k_flags = (unsigned long) pinfo [0].ki_flag;
- buf->min_flt = (unsigned long) pinfo [0].ki_rusage.ru_minflt;
- buf->maj_flt = (unsigned long) pinfo [0].ki_rusage.ru_majflt;
-#if (__FreeBSD_version >= 600006) || defined(__FreeBSD_kernel__)
- buf->cmin_flt = (unsigned long) buf->min_flt + pinfo [0].ki_rusage_ch.ru_minflt;
- buf->cmaj_flt = (unsigned long) buf->maj_flt + pinfo [0].ki_rusage_ch.ru_majflt;
-#endif
-
- buf->flags |= _glibtop_sysdeps_proc_kernel_pstats;
-
- return;
-}
diff --git a/sysdeps/freebsd/proclist.c b/sysdeps/freebsd/proclist.c
deleted file mode 100644
index d65732d7..00000000
--- a/sysdeps/freebsd/proclist.c
+++ /dev/null
@@ -1,152 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/proclist.h>
-#include <glibtop/procstate.h>
-
-#include <glibtop_suid.h>
-
-#include <sys/types.h>
-#include <sys/sysctl.h>
-#include <sys/user.h>
-
-static const unsigned long _glibtop_sysdeps_proclist =
-(1L << GLIBTOP_PROCLIST_TOTAL) + (1L << GLIBTOP_PROCLIST_NUMBER) +
-(1L << GLIBTOP_PROCLIST_SIZE);
-
-/* Fetch list of currently running processes.
- * The interface of this function is a little bit different from the others:
- * buf->flags is only set if the call succeeded, in this case pids_chain,
- * a list of the pids of all currently running processes is returned,
- * buf->number is the number of elements of this list and buf->size is
- * the size of one single element (sizeof (pid_t)). The total size is
- * stored in buf->total.
- *
- * The calling function has to free the memory to which a pointer is returned.
- *
- * IMPORTANT NOTE:
- * On error, this function MUST return NULL and set buf->flags to zero !
- * On success, it returnes a pointer to a list of buf->number elements
- * each buf->size big. The total size is stored in buf->total.
- * The calling function has to free the memory to which a pointer is returned.
- *
- * On error, NULL is returned and buf->flags is zero. */
-
-/* Init function. */
-
-void
-_glibtop_init_proclist_p (glibtop *server)
-{
- server->sysdeps.proclist = _glibtop_sysdeps_proclist;
-}
-
-pid_t *
-glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg)
-{
- struct kinfo_proc *pinfo;
- GArray *pids;
- glibtop_proc_state procstate;
- size_t len;
- unsigned int i;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROCLIST), 0);
-
- memset (buf, 0, sizeof (glibtop_proclist));
-
- if (sysctlbyname ("kern.proc.all", NULL, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.proc.all)");
- return NULL;
- }
-
- pinfo = (struct kinfo_proc *) g_malloc0 (len);
-
- if (sysctlbyname ("kern.proc.all", pinfo, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.proc.all)");
- g_free (pinfo);
- return NULL;
- }
-
- len /= sizeof (struct kinfo_proc);
-
- pids = g_array_sized_new (FALSE, FALSE, sizeof (pid_t), len);
-
- for (i = 0; i < len; i++) {
- pid_t pid;
-
- pid = (pid_t) pinfo[i].ki_pid;
-
- switch (which & GLIBTOP_KERN_PROC_MASK) {
- case GLIBTOP_KERN_PROC_ALL:
- break;
- case GLIBTOP_KERN_PROC_PID:
- if ((pid_t) arg != pid)
- continue;
- break;
- case GLIBTOP_KERN_PROC_UID:
- if ((uid_t) arg != pinfo[i].ki_ruid)
- continue;
- break;
- case GLIBTOP_KERN_PROC_PGRP:
- if ((pid_t) arg != pinfo[i].ki_pgid)
- continue;
- break;
- case GLIBTOP_KERN_PROC_SESSION:
- if ((pid_t) arg != pinfo[i].ki_sid)
- continue;
- break;
- case GLIBTOP_KERN_PROC_TTY:
- if ((dev_t) arg != pinfo[i].ki_tdev)
- continue;
- break;
- case GLIBTOP_KERN_PROC_RUID:
- if ((uid_t) arg != pinfo[i].ki_ruid)
- continue;
- break;
- }
-
- if (which & GLIBTOP_EXCLUDE_NOTTY)
- if (pinfo[i].ki_tdev == (dev_t) -1) continue;
-
- if (which & GLIBTOP_EXCLUDE_IDLE) {
- glibtop_get_proc_state_p (server, &procstate, pid);
- if (procstate.flags & (1L << GLIBTOP_PROC_STATE_STATE))
- if (procstate.state != GLIBTOP_PROCESS_RUNNING) continue;
- }
-
- if (which & GLIBTOP_EXCLUDE_SYSTEM)
- if (pinfo[i].ki_ruid == (uid_t) 0) continue;
-
- g_array_append_val (pids, pid);
- }
-
- g_free (pinfo);
-
- buf->flags = _glibtop_sysdeps_proclist;
- buf->size = sizeof (pid_t);
- buf->number = pids->len;
- buf->total = buf->number * buf->size;
-
- return (pid_t *) g_array_free (pids, FALSE);
-}
diff --git a/sysdeps/freebsd/procmap.c b/sysdeps/freebsd/procmap.c
deleted file mode 100644
index a82b2f02..00000000
--- a/sysdeps/freebsd/procmap.c
+++ /dev/null
@@ -1,285 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmap.h>
-
-#include <glibtop_suid.h>
-
-#include <kvm.h>
-#include <sys/param.h>
-#include <sys/proc.h>
-#include <sys/resource.h>
-#include <vm/vm_object.h>
-#include <vm/vm_map.h>
-#include <vm/vm.h>
-
-#define _KVM_VNODE
-#include <sys/vnode.h>
-#undef _KVM_VNODE
-
-#define _KERNEL
-#include <sys/pipe.h>
-#include <sys/conf.h>
-#include <sys/file.h>
-#include <sys/mount.h>
-#include <ufs/ufs/quota.h>
-#include <ufs/ufs/inode.h>
-#include <fs/devfs/devfs.h>
-#if (__FreeBSD_version >= 600006) || defined(__FreeBSD_kernel__)
-#include <fs/devfs/devfs_int.h>
-#endif
-#undef _KERNEL
-
-#include <sys/ucred.h>
-#include <sys/sysctl.h>
-
-static const unsigned long _glibtop_sysdeps_proc_map =
- (1L << GLIBTOP_PROC_MAP_TOTAL) + (1L << GLIBTOP_PROC_MAP_NUMBER) +
- (1L << GLIBTOP_PROC_MAP_SIZE);
-
-static const unsigned long _glibtop_sysdeps_map_entry =
- (1L << GLIBTOP_MAP_ENTRY_START) + (1L << GLIBTOP_MAP_ENTRY_END) +
- (1L << GLIBTOP_MAP_ENTRY_OFFSET) + (1L << GLIBTOP_MAP_ENTRY_PERM) +
- (1L << GLIBTOP_MAP_ENTRY_INODE) + (1L << GLIBTOP_MAP_ENTRY_DEVICE);
-
-#if (__FreeBSD_version >= 600006) || defined(__FreeBSD_kernel__)
-void _glibtop_sysdeps_freebsd_dev_inode (glibtop *server, struct vnode *vnode, struct vnode *vn, guint64 *inum, guint64 *dev);
-
-void
-_glibtop_sysdeps_freebsd_dev_inode (glibtop *server, struct vnode *vnode,
- struct vnode *vn, guint64 *inum,
- guint64 *dev)
-{
- char *tagptr;
- char tagstr[12];
- struct inode inode;
- struct cdev_priv priv;
- struct cdev si;
-
- *inum = 0;
- *dev = 0;
-
- if (kvm_read (server->machine.kd, (gulong) &vnode->v_tag,
- (char *) &tagptr, sizeof (tagptr)) != sizeof (tagptr) ||
- kvm_read (server->machine.kd, (gulong) tagptr,
- (char *) tagstr, sizeof (tagstr)) != sizeof (tagstr))
- {
- glibtop_warn_io_r (server, "kvm_read (tagptr)");
- return;
- }
-
- tagstr[sizeof(tagstr) - 1] = '\0';
-
- if (strcmp (tagstr, "ufs"))
- return;
-
- if (kvm_read (server->machine.kd, (gulong) VTOI(vn), (char *) &inode,
- sizeof (inode)) != sizeof (inode))
- {
- glibtop_warn_io_r (server, "kvm_read (inode)");
- return;
- }
-
- if (kvm_read (server->machine.kd, (gulong) inode.i_dev, (char *) &si,
- sizeof (si)) != sizeof (si) ||
- kvm_read (server->machine.kd, (gulong) si.si_priv, (char *) &priv,
- sizeof (priv)) != sizeof (priv))
- {
- glibtop_warn_io_r (server, "kvm_read (si)");
- return;
- }
-
- *inum = (guint64) inode.i_number;
- *dev = (guint64) priv.cdp_inode;
-}
-#endif
-
-/* Init function. */
-
-void
-_glibtop_init_proc_map_p (glibtop *server)
-{
- server->sysdeps.proc_map = _glibtop_sysdeps_proc_map;
-}
-
-/* Provides detailed information about a process. */
-
-glibtop_map_entry *
-glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- struct vm_map_entry entry, *first;
- struct vmspace vmspace;
- struct vm_object object;
- GArray *maps;
- struct vnode vnode;
- int count;
- int update = 0;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_MAP), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_map));
-
- /* It does not work for the swapper task. */
- if (pid == 0) return NULL;
-
- /*return (glibtop_map_entry*) g_array_free(maps, TRUE);*/
-
- glibtop_suid_enter (server);
-
- /* Get the process data */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count < 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- glibtop_suid_leave (server);
- return NULL;
- }
-
- /* Now we get the memory maps. */
-
- if (kvm_read (server->machine.kd,
- (gulong) pinfo [0].ki_vmspace,
- (char *) &vmspace, sizeof (vmspace)) != sizeof (vmspace)) {
- glibtop_warn_io_r (server, "kvm_read (vmspace)");
- glibtop_suid_leave (server);
- return NULL;
- }
-
- first = vmspace.vm_map.header.next;
-
- if (kvm_read (server->machine.kd,
- (gulong) vmspace.vm_map.header.next,
- (char *) &entry, sizeof (entry)) != sizeof (entry)) {
- glibtop_warn_io_r (server, "kvm_read (entry)");
- glibtop_suid_leave (server);
- return NULL;
- }
-
- /* Walk through the `vm_map_entry' list ... */
-
- /* I tested this a few times with `mmap'; as soon as you write
- * to the mmap'ed area, the object type changes from OBJT_VNODE
- * to OBJT_DEFAULT so if seems this really works. */
-
- maps = g_array_sized_new(FALSE, FALSE, sizeof(glibtop_map_entry),
- vmspace.vm_map.nentries);
-
- do {
- glibtop_map_entry *mentry;
- guint64 inum, dev;
- guint len;
-
- if (update) {
- if (kvm_read (server->machine.kd,
- (gulong) entry.next,
- (char *) &entry, sizeof (entry)) != sizeof (entry)) {
- glibtop_warn_io_r (server, "kvm_read (entry)");
- continue;
- }
- } else {
- update = 1;
- }
-
- if (entry.eflags & (MAP_ENTRY_IS_SUB_MAP))
- continue;
-
- if (!entry.object.vm_object)
- continue;
-
- /* We're only interested in `vm_object's */
-
- if (kvm_read (server->machine.kd,
- (gulong) entry.object.vm_object,
- (char *) &object, sizeof (object)) != sizeof (object)) {
- glibtop_warn_io_r (server, "kvm_read (object)");
- continue;
- }
-
- /* If the object is of type vnode, add its size */
-
- if (object.type != OBJT_VNODE)
- continue;
-
- if (!object.handle)
- continue;
-
- if (kvm_read (server->machine.kd,
- (gulong) object.handle,
- (char *) &vnode, sizeof (vnode)) != sizeof (vnode)) {
- glibtop_warn_io_r (server, "kvm_read (vnode)");
- continue;
- }
-
- switch (vnode.v_type) {
- case VNON:
- case VBAD:
- continue;
- default:
-#if (__FreeBSD_version < 600006) && !defined(__FreeBSD_kernel__)
- inum = vnode.v_cachedid;
- dev = vnode.v_cachedfs;
-
-#else
- _glibtop_sysdeps_freebsd_dev_inode (server,
- (struct vnode *) object.handle,
- &vnode, &inum, &dev);
-#endif
- break;
- }
-
- len = maps->len;
- g_array_set_size(maps, len + 1);
- mentry = &g_array_index(maps, glibtop_map_entry, len);
-
- memset (mentry, 0, sizeof (glibtop_map_entry));
-
- mentry->flags = _glibtop_sysdeps_map_entry;
- mentry->start = (guint64) entry.start;
- mentry->end = (guint64) entry.end;
- mentry->offset = (guint64) entry.offset;
- mentry->device = (guint64) dev;
- mentry->inode = (guint64) inum;
-
- mentry->perm = (guint64) 0;
-
- if (entry.protection & VM_PROT_READ)
- mentry->perm |= GLIBTOP_MAP_PERM_READ;
- if (entry.protection & VM_PROT_WRITE)
- mentry->perm |= GLIBTOP_MAP_PERM_WRITE;
- if (entry.protection & VM_PROT_EXECUTE)
- mentry->perm |= GLIBTOP_MAP_PERM_EXECUTE;
-
- } while (entry.next != first);
-
- glibtop_suid_leave (server);
-
- buf->flags = _glibtop_sysdeps_proc_map;
-
- buf->number = (guint64) maps->len;
- buf->size = (guint64) sizeof (glibtop_map_entry);
- buf->total = (guint64) (buf->number * buf->size);
-
- return (glibtop_map_entry*) g_array_free(maps, FALSE);
-}
diff --git a/sysdeps/freebsd/procmem.c b/sysdeps/freebsd/procmem.c
deleted file mode 100644
index c5841498..00000000
--- a/sysdeps/freebsd/procmem.c
+++ /dev/null
@@ -1,160 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmem.h>
-
-#include <glibtop_suid.h>
-
-#include <kvm.h>
-#include <sys/param.h>
-#include <sys/proc.h>
-#include <sys/resource.h>
-#include <vm/vm_object.h>
-#include <vm/vm_map.h>
-
-#include <sys/vnode.h>
-#include <ufs/ufs/quota.h>
-#include <ufs/ufs/inode.h>
-
-#include <sys/ucred.h>
-#include <sys/user.h>
-#include <sys/sysctl.h>
-#include <vm/vm.h>
-
-static const unsigned long _glibtop_sysdeps_proc_mem =
-(1L << GLIBTOP_PROC_MEM_SIZE) +
-(1L << GLIBTOP_PROC_MEM_VSIZE) +
-(1L << GLIBTOP_PROC_MEM_RESIDENT) +
-(1L << GLIBTOP_PROC_MEM_RSS) +
-(1L << GLIBTOP_PROC_MEM_RSS_RLIM);
-
-static const unsigned long _glibtop_sysdeps_proc_mem_share =
-(1L << GLIBTOP_PROC_MEM_SHARE);
-
-/* define pagetok in terms of pageshift */
-#define ps_pgtok(a) (((a) * getpagesize()) / 1024)
-
-/* Init function. */
-
-void
-_glibtop_init_proc_mem_p (glibtop *server)
-{
- server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem |
- _glibtop_sysdeps_proc_mem_share;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- struct vm_map_entry entry, *first;
- struct vmspace vmspace;
- struct vm_object object;
- int count;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_MEM), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_mem));
-
- if (server->sysdeps.proc_mem == 0)
- return;
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- /* Get the process data */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count < 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return;
- }
-
-#define PROC_VMSPACE ki_vmspace
-
- buf->rss_rlim = pinfo [0].ki_rssize;
-
- buf->vsize = buf->size = (guint64)
- (pinfo [0].ki_size / 1024);
- buf->resident = buf->rss = (guint64)
- ps_pgtok (pinfo [0].ki_rssize);
-
- /* Now we get the shared memory. */
-
- if (kvm_read (server->machine.kd,
- (unsigned long) pinfo [0].PROC_VMSPACE,
- (char *) &vmspace, sizeof (vmspace)) != sizeof (vmspace)) {
- glibtop_warn_io_r (server, "kvm_read (vmspace)");
- return;
- }
-
- first = vmspace.vm_map.header.next;
-
- if (kvm_read (server->machine.kd,
- (unsigned long) vmspace.vm_map.header.next,
- (char *) &entry, sizeof (entry)) != sizeof (entry)) {
- glibtop_warn_io_r (server, "kvm_read (entry)");
- return;
- }
-
- /* Walk through the `vm_map_entry' list ... */
-
- /* I tested this a few times with `mmap'; as soon as you write
- * to the mmap'ed area, the object type changes from OBJT_VNODE
- * to OBJT_DEFAULT so if seems this really works. */
-
- while (entry.next != first) {
- if (kvm_read (server->machine.kd,
- (unsigned long) entry.next,
- (char *) &entry, sizeof (entry)) != sizeof (entry)) {
- glibtop_warn_io_r (server, "kvm_read (entry)");
- return;
- }
-
- if (entry.eflags & (MAP_ENTRY_IS_SUB_MAP))
- continue;
-
- if (!entry.object.vm_object)
- continue;
-
- /* We're only interested in `vm_object's */
-
- if (kvm_read (server->machine.kd,
- (unsigned long) entry.object.vm_object,
- (char *) &object, sizeof (object)) != sizeof (object)) {
- glibtop_warn_io_r (server, "kvm_read (object)");
- return;
- }
-
- if (object.type != OBJT_VNODE)
- continue;
-
- buf->share += object.un_pager.vnp.vnp_size;
- }
-
- buf->flags = _glibtop_sysdeps_proc_mem |
- _glibtop_sysdeps_proc_mem_share;
-}
diff --git a/sysdeps/freebsd/procopenfiles.c b/sysdeps/freebsd/procopenfiles.c
deleted file mode 100644
index af00021c..00000000
--- a/sysdeps/freebsd/procopenfiles.c
+++ /dev/null
@@ -1,184 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- Copyright (C) 2004 Nicols Lichtmaier
- Copyright (C) 2007 Joe Marcus Clarke
- This file is part of LibGTop 1.0.
-
- Modified by Nicols Lichtmaier to give a process open files.
-
- 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procopenfiles.h>
-#include <sys/types.h>
-#include <string.h>
-#include <stdlib.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_proc_open_files =
-(1L << GLIBTOP_PROC_OPEN_FILES_NUMBER)|
-(1L << GLIBTOP_PROC_OPEN_FILES_TOTAL)|
-(1L << GLIBTOP_PROC_OPEN_FILES_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_open_files_s (glibtop *server)
-{
- server->sysdeps.proc_open_files = _glibtop_sysdeps_proc_open_files;
-}
-
-static GArray *
-parse_output(const char *output) {
- GArray *entries;
- char **lines;
- char *ftype = NULL;
- char *fname = NULL;
- guint i;
- guint len;
- int fd = -1;
-
- entries = g_array_new(FALSE, FALSE, sizeof(glibtop_open_files_entry));
-
- lines = g_strsplit(output, "\n", 0);
- len = g_strv_length(lines);
-
- for (i = 0; i < len && lines[i]; i++) {
- glibtop_open_files_entry entry = {0};
-
- if (strlen(lines[i]) < 2)
- continue;
-
- if (!g_str_has_prefix(lines[i], "f") &&
- !g_str_has_prefix(lines[i], "t") &&
- !g_str_has_prefix(lines[i], "n"))
- continue;
-
- if (g_str_has_prefix(lines[i], "f")) {
- if (!g_ascii_isdigit(*(lines[i] + 1)))
- i += 2;
- else
- fd = atoi(lines[i] + 1);
- continue;
- }
-
- if (g_str_has_prefix(lines[i], "t")) {
- ftype = lines[i];
- ftype++;
- continue;
- } else {
- fname = lines[i];
- fname++;
- }
-
- if (ftype == NULL || fname == NULL)
- continue;
-
- if (!strcmp(ftype, "unix")) {
- entry.type = GLIBTOP_FILE_TYPE_LOCALSOCKET;
- g_strlcpy(entry.info.localsock.name, fname,
- sizeof(entry.info.localsock.name));
- } else if (!strcmp(ftype, "PIPE")) {
- entry.type = GLIBTOP_FILE_TYPE_PIPE;
- } else if (!strcmp(ftype, "VREG") ||
- !strcmp(ftype, "GDIR") ||
- !strcmp(ftype, "GREG") ||
- !strcmp(ftype, "VCHR") ||
- !strcmp(ftype, "VBLK") ||
- !strcmp(ftype, "DIR") ||
- !strcmp(ftype, "LINK") ||
- !strcmp(ftype, "REG") ||
- !strcmp(ftype, "VDIR")) {
- entry.type = GLIBTOP_FILE_TYPE_FILE;
- g_strlcpy(entry.info.file.name, fname,
- sizeof(entry.info.file.name));
- } else if (!strcmp(ftype, "IPv4")) {
- char **hosts;
- char **remote_host;
-
- if (!strstr(fname, "->")) {
- remote_host = g_strsplit(fname, ":", 0);
- } else {
- hosts = g_strsplit(fname, "->", 0);
- if (g_strv_length(hosts) < 2) {
- g_strfreev(hosts);
- continue;
- }
-
- remote_host = g_strsplit(hosts[1], ":", 0);
- g_strfreev(hosts);
- }
-
- if (g_strv_length(remote_host) < 2) {
- g_strfreev(remote_host);
- continue;
- }
-
- entry.type = GLIBTOP_FILE_TYPE_INETSOCKET;
- if (!strcmp(remote_host[0], "*"))
- g_strlcpy(entry.info.sock.dest_host, "0.0.0.0",
- sizeof(entry.info.sock.dest_host));
- else
- g_strlcpy(entry.info.sock.dest_host,
- remote_host[0],
- sizeof(entry.info.sock.dest_host));
- entry.info.sock.dest_port = atoi(remote_host[1]);
-
- g_strfreev(remote_host);
- } else
- continue;
-
- entry.fd = fd;
-
- fd = -1;
- ftype = NULL;
- fname = NULL;
-
- g_array_append_val(entries, entry);
- }
-
- g_strfreev(lines);
-
- return entries;
-}
-
-glibtop_open_files_entry *
-glibtop_get_proc_open_files_s (glibtop *server, glibtop_proc_open_files *buf, pid_t pid)
-{
- char *output;
- GArray *entries;
-
- memset(buf, 0, sizeof (glibtop_proc_open_files));
-
- output = execute_lsof(pid);
- if (output == NULL) return NULL;
-
- entries = parse_output(output);
-
- g_free(output);
-
- buf->flags = _glibtop_sysdeps_proc_open_files;
- buf->number = entries->len;
- buf->size = sizeof(glibtop_open_files_entry);
- buf->total = buf->number * buf->size;
-
- return (glibtop_open_files_entry*)g_array_free(entries, FALSE);
-}
diff --git a/sysdeps/freebsd/procsegment.c b/sysdeps/freebsd/procsegment.c
deleted file mode 100644
index e9b1de8a..00000000
--- a/sysdeps/freebsd/procsegment.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procsegment.h>
-
-#include <glibtop_suid.h>
-
-#include <kvm.h>
-#include <sys/param.h>
-#include <sys/sysctl.h>
-
-static const unsigned long _glibtop_sysdeps_proc_segment =
-(1L << GLIBTOP_PROC_SEGMENT_TEXT_RSS) +
-(1L << GLIBTOP_PROC_SEGMENT_DATA_RSS);
-
-static int pagesize;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_segment_p (glibtop *server)
-{
- pagesize = getpagesize ();
- server->sysdeps.proc_segment = _glibtop_sysdeps_proc_segment;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_segment_p (glibtop *server,
- glibtop_proc_segment *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- int count = 0;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_SEGMENT), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_segment));
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- /* Get the process info from the kernel */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count != 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return;
- }
-
- buf->text_rss = pinfo[0].ki_tsize * pagesize;
- buf->data_rss = pinfo[0].ki_dsize * pagesize;
-
- buf->flags = _glibtop_sysdeps_proc_segment;
-}
diff --git a/sysdeps/freebsd/procsignal.c b/sysdeps/freebsd/procsignal.c
deleted file mode 100644
index 8d49fe9a..00000000
--- a/sysdeps/freebsd/procsignal.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procsignal.h>
-
-#include <glibtop_suid.h>
-
-#include <sys/param.h>
-
-#include <osreldate.h>
-
-static const unsigned long _glibtop_sysdeps_proc_signal =
-(1L << GLIBTOP_PROC_SIGNAL_SIGNAL) +
-(1L << GLIBTOP_PROC_SIGNAL_BLOCKED) +
-(1L << GLIBTOP_PROC_SIGNAL_SIGIGNORE) +
-(1L << GLIBTOP_PROC_SIGNAL_SIGCATCH);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_signal_p (glibtop *server)
-{
- server->sysdeps.proc_signal = _glibtop_sysdeps_proc_signal;
-}
-
-void
-glibtop_get_proc_signal_p (glibtop *server,
- glibtop_proc_signal *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- int count = 0;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_SIGNAL), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_signal));
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- /* Get the process information */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count != 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return;
- }
-
-#define PROC_SIGLIST ki_siglist
-#define PROC_SIGMASK ki_sigmask
-#define PROC_SIGIGNORE ki_sigignore
-#define PROC_SIGCATCH ki_sigcatch
-
- /* signal: mask of pending signals.
- * pinfo [0].kp_proc.p_siglist
- */
- buf->signal [0] = pinfo [0].PROC_SIGLIST.__bits[0];
-
- /* blocked: mask of blocked signals.
- * pinfo [0].kp_proc.p_sigmask
- */
- buf->blocked [0] = pinfo [0].PROC_SIGMASK.__bits[0];
-
- /* sigignore: mask of ignored signals.
- * pinfo [0].kp_proc.p_sigignore
- */
- buf->sigignore [0] = pinfo [0].PROC_SIGIGNORE.__bits[0];
-
- /* sigcatch: mask of caught signals.
- * pinfo [0].kp_proc.p_sigcatch
- */
- buf->sigcatch [0] = pinfo [0].PROC_SIGCATCH.__bits[0];
-
- buf->flags = _glibtop_sysdeps_proc_signal;
-}
diff --git a/sysdeps/freebsd/procstate.c b/sysdeps/freebsd/procstate.c
deleted file mode 100644
index 786771a2..00000000
--- a/sysdeps/freebsd/procstate.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/* Copyright (C) 1998 Joshua Sled
- This file is part of LibGTop 1.0.
-
- Contributed by Joshua Sled <jsled@xcf.berkeley.edu>, July 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procstate.h>
-
-#include <glibtop_suid.h>
-
-#include <sys/user.h>
-
-static const unsigned long _glibtop_sysdeps_proc_state =
-(1L << GLIBTOP_PROC_STATE_CMD) + (1L << GLIBTOP_PROC_STATE_STATE) +
-(1L << GLIBTOP_PROC_STATE_UID) + (1L << GLIBTOP_PROC_STATE_GID);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_state_p (glibtop *server)
-{
- server->sysdeps.proc_state = _glibtop_sysdeps_proc_state;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_state_p (glibtop *server,
- glibtop_proc_state *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- int count = 0;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_STATE), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_state));
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- /* Get the process information */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count != 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return;
- }
-
- buf->uid = pinfo[0].ki_ruid;
- buf->gid = pinfo[0].ki_rgid;
-
- g_strlcpy (buf->cmd, pinfo[0].ki_comm, sizeof (buf->cmd));
-
- switch (pinfo[0].ki_stat) {
- case SRUN:
- buf->state = GLIBTOP_PROCESS_RUNNING;
- break;
- case SSLEEP:
- buf->state = GLIBTOP_PROCESS_INTERRUPTIBLE;
- break;
- case SSTOP:
- buf->state = GLIBTOP_PROCESS_STOPPED;
- break;
- case SZOMB:
- buf->state = GLIBTOP_PROCESS_ZOMBIE;
- break;
- case SWAIT:
- case SLOCK:
- buf->state = GLIBTOP_PROCESS_UNINTERRUPTIBLE;
- break;
- case SIDL:
- default:
- buf->state = 0;
- break;
- }
-
- buf->flags = _glibtop_sysdeps_proc_state;
-}
diff --git a/sysdeps/freebsd/proctime.c b/sysdeps/freebsd/proctime.c
deleted file mode 100644
index 5c10aafe..00000000
--- a/sysdeps/freebsd/proctime.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/proctime.h>
-
-#include <glibtop_suid.h>
-
-#include <sys/time.h>
-#include <osreldate.h>
-
-static const unsigned long _glibtop_sysdeps_proc_time =
-(1L << GLIBTOP_PROC_TIME_RTIME) + (1L << GLIBTOP_PROC_TIME_FREQUENCY);
-
-static const unsigned long _glibtop_sysdeps_proc_time_user =
-(1L << GLIBTOP_PROC_TIME_UTIME) + (1L << GLIBTOP_PROC_TIME_STIME) +
-(1L << GLIBTOP_PROC_TIME_CUTIME) + (1L << GLIBTOP_PROC_TIME_CSTIME) +
-(1L << GLIBTOP_PROC_TIME_START_TIME);
-
-#define tv2sec(tv) (((guint64) tv.tv_sec * 1000000) + (guint64) tv.tv_usec)
-
-/* Init function. */
-
-void
-_glibtop_init_proc_time_p (glibtop *server)
-{
- server->sysdeps.proc_time = _glibtop_sysdeps_proc_time |
- _glibtop_sysdeps_proc_time_user;
-}
-
-/* Taken from /usr/src/sys/kern/kern_resource.c */
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- struct clockinfo ci;
- int count;
- size_t len;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_TIME), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_time));
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- glibtop_suid_enter (server);
-
- /* Get the process information */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count != 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- glibtop_suid_leave (server);
- return;
- }
-
- glibtop_suid_leave (server);
-
- buf->rtime = pinfo [0].ki_runtime * 1e-6;
-
- len = sizeof (ci);
- if (sysctlbyname ("kern.clockrate", &ci, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.clockrate) (%d)", pid);
- glibtop_suid_leave (server);
- return;
- }
-
- buf->frequency = (ci.stathz ? ci.stathz : ci.hz);
- buf->flags = _glibtop_sysdeps_proc_time;
-
- buf->rtime *= buf->frequency;
-
- if ((pinfo [0].ki_flag & PS_INMEM)) {
- buf->utime = (pinfo [0].ki_runtime * 1e-6) * buf->frequency;
- buf->stime = tv2sec (pinfo [0].ki_rusage.ru_stime) * buf->frequency;
- buf->cutime = tv2sec (pinfo [0].ki_childtime) * buf->frequency;
-#if (__FreeBSD_version >= 600006) || defined(__FreeBSD_kernel__)
- buf->cstime = tv2sec (pinfo [0].ki_rusage_ch.ru_stime) * buf->frequency;
-#else
- buf->cstime = 0;
-#endif
- buf->start_time = tv2sec (pinfo [0].ki_start);
- buf->flags |= _glibtop_sysdeps_proc_time_user;
- }
-}
diff --git a/sysdeps/freebsd/procuid.c b/sysdeps/freebsd/procuid.c
deleted file mode 100644
index 2e712bc5..00000000
--- a/sysdeps/freebsd/procuid.c
+++ /dev/null
@@ -1,90 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procuid.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_uid =
-(1L << GLIBTOP_PROC_UID_UID) + (1L << GLIBTOP_PROC_UID_EUID) +
-(1L << GLIBTOP_PROC_UID_EGID) + (1L << GLIBTOP_PROC_UID_PID) +
-(1L << GLIBTOP_PROC_UID_PPID) + (1L << GLIBTOP_PROC_UID_PGRP) +
-(1L << GLIBTOP_PROC_UID_TPGID) + (1L << GLIBTOP_PROC_UID_PRIORITY) +
-(1L << GLIBTOP_PROC_UID_NICE) + (1L << GLIBTOP_PROC_UID_GID);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_uid_p (glibtop *server)
-{
- server->sysdeps.proc_uid = _glibtop_sysdeps_proc_uid;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_uid_p (glibtop *server, glibtop_proc_uid *buf,
- pid_t pid)
-{
- struct kinfo_proc *pinfo;
- int count = 0;
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_UID), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_uid));
-
- /* It does not work for the swapper task. */
- if (pid == 0) return;
-
- /* Get the process information */
- pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid, &count);
- if ((pinfo == NULL) || (count != 1)) {
- glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);
- return;
- }
-
-#define PROC_RUID ki_ruid
-#define PROC_EUID ki_uid
-#define PROC_RGID ki_rgid
-#define PROC_SVGID ki_svgid
-#define PROC_PPID ki_ppid
-#define PROC_PGID ki_pgid
-#define PROC_TPGID ki_tpgid
-#define PROC_NICE ki_nice
-#define PROC_PRIORITY ki_pri.pri_user
-
- buf->uid = pinfo [0].PROC_RUID;
- buf->euid = pinfo [0].PROC_EUID;
- buf->gid = pinfo [0].PROC_RGID;
- buf->egid = pinfo [0].PROC_SVGID;
-
- buf->ppid = pinfo [0].PROC_PPID;
- buf->pgrp = pinfo [0].PROC_PGID;
- buf->tpgid = pinfo [0].PROC_TPGID;
-
- buf->nice = pinfo [0].PROC_NICE;
- buf->priority = pinfo [0].PROC_PRIORITY;
-
- buf->flags = _glibtop_sysdeps_proc_uid;
-}
diff --git a/sysdeps/freebsd/procwd.c b/sysdeps/freebsd/procwd.c
deleted file mode 100644
index e7c42a46..00000000
--- a/sysdeps/freebsd/procwd.c
+++ /dev/null
@@ -1,121 +0,0 @@
-/* Copyright (C) 2007 Joe Marcus Clarke
- This file is part of LibGTop 2.
-
- 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.
-*/
-
-#include <config.h>
-#include <glibtop/procwd.h>
-#include <glibtop/error.h>
-
-#include <glibtop_private.h>
-
-#include <sys/types.h>
-#include <sys/param.h>
-#include <string.h>
-
-static const unsigned long _glibtop_sysdeps_proc_wd =
-(1 << GLIBTOP_PROC_WD_EXE) |
-(1 << GLIBTOP_PROC_WD_ROOT) |
-(1 << GLIBTOP_PROC_WD_NUMBER);
-
-void
-_glibtop_init_proc_wd_s(glibtop *server)
-{
- server->sysdeps.proc_wd = _glibtop_sysdeps_proc_wd;
-}
-
-static GPtrArray *
-parse_output(const char *output, glibtop_proc_wd *buf)
-{
- GPtrArray *dirs;
- char **lines;
- gboolean nextwd = FALSE;
- gboolean nextrtd = FALSE;
- gboolean havertd = FALSE;
- guint i;
- guint len;
-
- dirs = g_ptr_array_sized_new(1);
-
- lines = g_strsplit(output, "\n", 0);
- len = g_strv_length(lines);
-
- for (i = 0; i < len && lines[i]; i++) {
- if (strlen(lines[i]) < 2)
- continue;
-
- if (!strcmp(lines[i], "fcwd")) {
- nextwd = TRUE;
- continue;
- }
-
- if (!strcmp(lines[i], "frtd")) {
- nextrtd = TRUE;
- continue;
- }
-
- if (!g_str_has_prefix(lines[i], "n"))
- continue;
-
- if (nextwd) {
- g_ptr_array_add(dirs, g_strdup(lines[i] + 1));
- nextwd = FALSE;
- }
-
- if (nextrtd && !havertd) {
- g_strlcpy(buf->root, lines[i] + 1,
- sizeof(buf->root));
- buf->flags |= (1 << GLIBTOP_PROC_WD_ROOT);
- nextrtd = FALSE;
- havertd = TRUE;
- }
- }
-
- g_strfreev(lines);
-
- return dirs;
-}
-
-char**
-glibtop_get_proc_wd_s(glibtop *server, glibtop_proc_wd *buf, pid_t pid)
-{
- char path[MAXPATHLEN];
- char *output;
-
- memset (buf, 0, sizeof (glibtop_proc_wd));
-
- g_snprintf(path, sizeof(path), "/proc/%u/file", pid);
- if (safe_readlink(path, buf->exe, sizeof(buf->exe)))
- buf->flags |= (1 << GLIBTOP_PROC_WD_EXE);
-
- output = execute_lsof(pid);
- if (output != NULL) {
- GPtrArray *dirs;
-
- dirs = parse_output(output, buf);
- g_free(output);
-
- buf->number = dirs->len;
- buf->flags |= (1 << GLIBTOP_PROC_WD_NUMBER);
-
- g_ptr_array_add(dirs, NULL);
-
- return (char **)g_ptr_array_free(dirs, FALSE);
- }
-
- return NULL;
-}
diff --git a/sysdeps/freebsd/sem_limits.c b/sysdeps/freebsd/sem_limits.c
deleted file mode 100644
index 71f78db8..00000000
--- a/sysdeps/freebsd/sem_limits.c
+++ /dev/null
@@ -1,134 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, August 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/sem_limits.h>
-
-#include <sys/types.h>
-#include <sys/sysctl.h>
-
-static unsigned long _glibtop_sysdeps_sem_limits =
-(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
-(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
-(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
-(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
-(1L << GLIBTOP_IPC_SEMVMX) + (1L << GLIBTOP_IPC_SEMAEM);
-
-/* Init function. */
-
-void
-_glibtop_init_sem_limits_s (glibtop *server)
-{
- server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits;
-}
-
-/* Provides information about sysv sem limits. */
-
-void
-glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
-{
- size_t len;
- int semmap, semmni, semmns, semmnu, semmsl, semopm, semume, semusz;
- int semvmx, semaem;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_SEM_LIMITS, 0);
-
- memset (buf, 0, sizeof (glibtop_sem_limits));
-
- if (server->sysdeps.sem_limits == 0)
- return;
-
- len = sizeof (semmap);
- if (sysctlbyname ("kern.ipc.semmap", &semmap, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.semmap)");
- return;
- }
-
- len = sizeof (semmni);
- if (sysctlbyname ("kern.ipc.semmni", &semmni, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.semmni)");
- return;
- }
-
- len = sizeof (semmns);
- if (sysctlbyname ("kern.ipc.semmns", &semmns, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.semmns)");
- return;
- }
-
- len = sizeof (semmnu);
- if (sysctlbyname ("kern.ipc.semmnu", &semmnu, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.semmnu)");
- return;
- }
-
- len = sizeof (semmsl);
- if (sysctlbyname ("kern.ipc.semmsl", &semmsl, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.semmsl)");
- return;
- }
-
- len = sizeof (semopm);
- if (sysctlbyname ("kern.ipc.semopm", &semopm, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.semopm)");
- return;
- }
-
- len = sizeof (semume);
- if (sysctlbyname ("kern.ipc.semume", &semume, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.semume)");
- return;
- }
-
- len = sizeof (semusz);
- if (sysctlbyname ("kern.ipc.semusz", &semusz, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.semusz)");
- return;
- }
-
- len = sizeof (semvmx);
- if (sysctlbyname ("kern.ipc.semvmx", &semvmx, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.semvmx)");
- return;
- }
-
- len = sizeof (semaem);
- if (sysctlbyname ("kern.ipc.semaem", &semaem, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.semaem)");
- return;
- }
-
- buf->semmap = semmap;
- buf->semmni = semmni;
- buf->semmns = semmns;
- buf->semmnu = semmnu;
- buf->semmsl = semmsl;
- buf->semopm = semopm;
- buf->semume = semume;
- buf->semusz = semusz;
- buf->semvmx = semvmx;
- buf->semaem = semaem;
-
- buf->flags = _glibtop_sysdeps_sem_limits;
-}
-
diff --git a/sysdeps/freebsd/shm_limits.c b/sysdeps/freebsd/shm_limits.c
deleted file mode 100644
index d5d4df36..00000000
--- a/sysdeps/freebsd/shm_limits.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, August 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/shm_limits.h>
-
-#include <sys/types.h>
-#include <sys/sysctl.h>
-
-static unsigned long _glibtop_sysdeps_shm_limits =
-(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
-(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG) +
-(1L << GLIBTOP_IPC_SHMALL);
-
-/* Init function. */
-
-void
-_glibtop_init_shm_limits_s (glibtop *server)
-{
- server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
-{
- size_t len;
- int shmmax, shmmin, shmmni, shmseg, shmall;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_SHM_LIMITS, 0);
-
- memset (buf, 0, sizeof (glibtop_shm_limits));
-
- if (server->sysdeps.shm_limits == 0)
- return;
-
- len = sizeof (shmmax);
- if (sysctlbyname ("kern.ipc.shmmax", &shmmax, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.shmmax)");
- return;
- }
-
- len = sizeof (shmmin);
- if (sysctlbyname ("kern.ipc.shmmin", &shmmin, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.shmmin)");
- return;
- }
-
- len = sizeof (shmmni);
- if (sysctlbyname ("kern.ipc.shmmni", &shmmni, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.shmmni)");
- return;
- }
-
- len = sizeof (shmseg);
- if (sysctlbyname ("kern.ipc.shmseg", &shmseg, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.shmseg)");
- return;
- }
-
- len = sizeof (shmall);
- if (sysctlbyname ("kern.ipc.shmall", &shmall, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (kern.ipc.shmall)");
- return;
- }
-
- buf->shmmax = shmmax;
- buf->shmmin = shmmin;
- buf->shmmni = shmmni;
- buf->shmseg = shmseg;
- buf->shmall = shmall;
-
- buf->flags = _glibtop_sysdeps_shm_limits;
-}
diff --git a/sysdeps/freebsd/siglist.c b/sysdeps/freebsd/siglist.c
deleted file mode 100644
index c90c242c..00000000
--- a/sysdeps/freebsd/siglist.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/signal.h>
-
-const glibtop_signame glibtop_sys_siglist [] =
-{ { 1, "SIGHUP", "Hangup" },
- { 2, "SIGINT", "Interrupt" },
- { 3, "SIGQUIT", "Quit" },
- { 4, "SIGILL", "Illegal Instruction" },
- { 5, "SIGTRAP", "Trace/Breakpoint Trap" },
- { 6, "SIGABRT", "Abort" },
- { 7, "SIGEMT", "Emulation Trap" },
- { 8, "SIGFPE", "Arithmetic Exception" },
- { 9, "SIGKILL", "Killed" },
- { 10, "SIGBUS", "Bus Error" },
- { 11, "SIGSEGV", "Segmentation Fault" },
- { 12, "SIGSYS", "Bad System Call" },
- { 13, "SIGPIPE", "Broken Pipe" },
- { 14, "SIGALRM", "Alarm Clock" },
- { 15, "SIGTERM", "Terminated" },
- { 16, "SIGURG", "Urgent Condition Present On Socket" },
- { 17, "SIGSTOP", "Stop (cannot be caught or ignored)" },
- { 18, "SIGTSTP", "Stop Signal Generated From Keyboard" },
- { 19, "SIGCONT", "Continue After Stop" },
- { 20, "SIGCHLD", "Child Status Has Changed" },
- { 21, "SIGTTIN", "Background Read Attempted From Control Terminal" },
- { 22, "SIGTTOU", "Background Write Attempted To Control Terminal" },
- { 23, "SIGIO", "I/O Is Possible On A Descriptor" },
- { 24, "SIGXCPU", "CPU Time Limit Exceeded" },
- { 25, "SIGXFSZ", "File Size Limit Exceeded" },
- { 26, "SIGVTALRM","Virtual Time Alarm" },
- { 27, "SIGPROF", "Profiling Timer Alarm" },
- { 28, "SIGWINCH","Window Size Change" },
- { 29, "SIGINFO", "Status Request From Keyboard" },
- { 30, "SIGUSR1", "User Defined Signal 1" },
- { 31, "SIGUSR2", "User Defined Signal 2" },
- { 32, "SIGTHR", "Thread Interrupt" },
- { 0, NULL, NULL }
-};
diff --git a/sysdeps/freebsd/swap.c b/sysdeps/freebsd/swap.c
deleted file mode 100644
index c9e3545b..00000000
--- a/sysdeps/freebsd/swap.c
+++ /dev/null
@@ -1,94 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/swap.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_swap =
-(1L << GLIBTOP_SWAP_TOTAL) + (1L << GLIBTOP_SWAP_USED) +
-(1L << GLIBTOP_SWAP_FREE);
-
-static const unsigned long _glibtop_sysdeps_swap_paging =
-(1L << GLIBTOP_SWAP_PAGEIN) + (1L << GLIBTOP_SWAP_PAGEOUT);
-
-static int pagesize;
-
-/* Init function. */
-
-void
-_glibtop_init_swap_p (glibtop *server)
-{
- pagesize = getpagesize ();
-
- server->sysdeps.swap = _glibtop_sysdeps_swap |
- _glibtop_sysdeps_swap_paging;
-}
-
-/* Provides information about swap usage. */
-
-void
-glibtop_get_swap_p (glibtop *server, glibtop_swap *buf)
-{
- size_t len;
- unsigned int swappgsout, swappgsin;
- int nswdev;
- struct kvm_swap kvmsw[16];
-
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_SWAP), 0);
-
- memset (buf, 0, sizeof (glibtop_swap));
- memset (kvmsw, 0, sizeof (kvmsw));
-
- nswdev = kvm_getswapinfo (server->machine.kd, kvmsw, 16, 0);
- if (nswdev < 1) return;
-
- buf->flags = _glibtop_sysdeps_swap;
-
- /* See the man page for kvm_getswapinfo(3) to see why we can do this. */
- buf->used = kvmsw[nswdev].ksw_used;
- buf->total = kvmsw[nswdev].ksw_total;
-
- buf->total *= pagesize;
- buf->used *= pagesize;
-
- buf->free = buf->total - buf->used;
-
- len = sizeof (swappgsout);
- if (sysctlbyname ("vm.stats.vm.v_swappgsout", &swappgsout, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (vm.stats.vm.v_swappgsout)");
- return;
- }
-
- len = sizeof (swappgsin);
- if (sysctlbyname ("vm.stats.vm.v_swappgsin", &swappgsin, &len, NULL, 0)) {
- glibtop_warn_io_r (server, "sysctl (vm.stats.vm.v_swappgsin)");
- return;
- }
-
- buf->pagein = (guint64) swappgsin;
- buf->pageout = (guint64) swappgsout;
-
- buf->flags |= _glibtop_sysdeps_swap_paging;
-}
diff --git a/sysdeps/freebsd/sysinfo.c b/sysdeps/freebsd/sysinfo.c
deleted file mode 100644
index 9e281ca0..00000000
--- a/sysdeps/freebsd/sysinfo.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/sysctl.h>
-#include <glibtop/error.h>
-#include <glibtop/cpu.h>
-#include <glibtop/sysinfo.h>
-
-static const unsigned long _glibtop_sysdeps_sysinfo =
-(1L << GLIBTOP_SYSINFO_CPUINFO);
-
-static glibtop_sysinfo sysinfo = { .flags = 0 };
-
-static void
-init_sysinfo (glibtop *server)
-{
- char *model;
- guint64 ncpus = 1;
- int mhz = 0;
- size_t len;
-
- if (G_LIKELY (sysinfo.flags))
- return;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);
-
- len = sizeof (ncpus);
- sysctlbyname ("hw.ncpu", &ncpus, &len, NULL, 0);
- len = 0;
- sysctlbyname ("hw.model", NULL, &len, NULL, 0);
- model = g_malloc (len);
- sysctlbyname ("hw.model", model, &len, NULL, 0);
- len = sizeof (mhz);
- sysctlbyname ("hw.clockrate", &mhz, &len, NULL, 0);
-
- for (sysinfo.ncpu = 0;
- sysinfo.ncpu < GLIBTOP_NCPU && sysinfo.ncpu < ncpus;
- sysinfo.ncpu++) {
- glibtop_entry * const cpuinfo = &sysinfo.cpuinfo[sysinfo.ncpu];
-
- cpuinfo->labels = g_ptr_array_new ();
-
- cpuinfo->values = g_hash_table_new_full(g_str_hash,
- g_str_equal,
- NULL, g_free);
-
- g_ptr_array_add (cpuinfo->labels, "processor");
- g_hash_table_insert (cpuinfo->values, "processor",
- g_strdup_printf("%u", (guint)sysinfo.ncpu));
-
- g_ptr_array_add (cpuinfo->labels, "vendor_id");
- g_hash_table_insert (cpuinfo->values, "vendor_id",
- g_strdup(model));
-
- g_ptr_array_add (cpuinfo->labels, "model name");
- g_hash_table_insert (cpuinfo->values, "model name",
- g_strdup(model));
-
- g_ptr_array_add (cpuinfo->labels, "cpu MHz");
- g_hash_table_insert (cpuinfo->values, "cpu MHz",
- g_strdup_printf("%d", mhz));
- }
-
- g_free (model);
-
- sysinfo.flags = _glibtop_sysdeps_sysinfo;
-}
-
-const glibtop_sysinfo *
-glibtop_get_sysinfo_s (glibtop *server)
-{
- init_sysinfo (server);
- return &sysinfo;
-}
diff --git a/sysdeps/freebsd/uptime.c b/sysdeps/freebsd/uptime.c
deleted file mode 100644
index 2c333e41..00000000
--- a/sysdeps/freebsd/uptime.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/uptime.h>
-
-#include <glibtop/cpu.h>
-
-#include <sys/types.h>
-#include <sys/sysctl.h>
-
-static const unsigned long _glibtop_sysdeps_uptime =
-(1L << GLIBTOP_UPTIME_UPTIME);
-
-static const unsigned long _glibtop_sysdeps_idletime =
-(1L << GLIBTOP_UPTIME_IDLETIME);
-
-static const unsigned long _required_cpu_flags =
-(1L << GLIBTOP_CPU_IDLE) +
-(1L << GLIBTOP_CPU_FREQUENCY);
-
-/* Init function. */
-
-void
-_glibtop_init_uptime_s (glibtop *server)
-{
- server->sysdeps.uptime = _glibtop_sysdeps_uptime;
-}
-
-/* Provides uptime and idle time. */
-
-void
-glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf)
-{
- time_t now;
- int mib[2];
- struct timeval boottime;
- size_t size;
- glibtop_cpu cpu;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_UPTIME, 0);
-
- memset (buf, 0, sizeof (glibtop_uptime));
-
- mib[0] = CTL_KERN;
- mib[1] = KERN_BOOTTIME;
- size = sizeof(boottime);
- if (sysctl(mib, 2, &boottime, &size, NULL, 0) != -1 &&
- boottime.tv_sec != 0) {
- time(&now);
- buf->uptime = now - boottime.tv_sec;
- buf->flags = _glibtop_sysdeps_uptime;
- }
-
- glibtop_get_cpu_s (server, &cpu);
-
- /* Make sure all required fields are present. */
-
- if ((cpu.flags & _required_cpu_flags) != _required_cpu_flags)
- return;
-
- /* Calculate values. */
-
- buf->idletime = (double) cpu.idle / (double) cpu.frequency;
- buf->idletime /= (double) (server->ncpu + 1);
-
- buf->flags |= _glibtop_sysdeps_idletime;
-}
diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog
deleted file mode 100644
index e4401e4a..00000000
--- a/sysdeps/linux/ChangeLog
+++ /dev/null
@@ -1,784 +0,0 @@
-2007-05-20 Benoît Dejean <benoit@placenet.org>
-
- * *.c:
-
- Got rid of glibtop_init_s calls.
- If i'm right, these are only no-op and the legacy stub/ don't
- have any calls to them, so it's should harmless.
- So let's try it.
-
-2007-05-19 Benoît Dejean <benoit@placenet.org>
-
- * proclist.c: (glibtop_get_proclist_s):
-
- Fixed warnings.
-
-2007-05-17 Benoît Dejean <benoit@placenet.org>
-
- * procopenfiles.c: (glibtop_get_proc_open_files_s):
-
- Added missing sizeof.
-
-2007-05-07 Benoît Dejean <benoit@placenet.org>
-
- * procwd.c:
-
- Always set buf->number.
-
-2007-05-07 Benoît Dejean <benoit@placenet.org>
-
- * glibtop_private.c (safe_readlink):
-
- Simplified.
-
- * procopenfiles.c:
-
- Use safe_readlink.
-
-2007-05-07 Benoît Dejean <benoit@placenet.org>
-
- * procwd.c:
-
- Implemented.
-
- * glibtop_private.c (safe_readlink):
-
- New function.
-
-2007-03-13 Benoît Dejean <benoit@placenet.org>
-
- * fsusage.c: (get_sys_path), (linux_2_6_0):
-
- Fixed stat parsing for md devices.
- Patch by Martin Bailey <martin@pcalpha.com>.
-
-2007-02-15 Benoît Dejean <benoit@placenet.org>
-
- * procmap.c: (add_smaps):
-
- Some more const.
-
-2007-01-14 Benoît Dejean <benoit@placenet.org>
-
- * procmap.c: (glibtop_get_proc_map_s):
- * procopenfiles.c: (parse_file):
-
- Fixed stack overflow in proc_map.
- Switched to Glibc getline because fgets gets fooled by long
- lines.
- Closes #396477.
-
-2007-01-11 Benoît Dejean <benoit@placenet.org>
-
- * glibtop_private.c: (get_scaled):
-
- Replaced two strstr by a hand-written loop in this critical code.
-
-2006-09-11 Benoît Dejean <benoit@placenet.org>
-
- * procmap.c: (glibtop_get_proc_map_s):
-
- Fixed parsing s?maps on 64bit kernel.
- Closes #355290.
- Removed useless casts.
-
-2006-08-10 Benoît Dejean <benoit@placenet.org>
-
- * open.c: (glibtop_open_s):
-
- Only print the warning if
- (number of real cpu's) != (number of cpu's monitored).
- Patch by Wouter Bolsterlee (uws) <uws+gnome@xs4all.nl>.
- Closes #350705.
-
-2006-07-27 Benoît Dejean <benoit@placenet.org>
-
- * netload.c: (glibtop_get_netload_s):
-
- Updated implementation.
-
-2006-07-27 Benoît Dejean <benoit@placenet.org>
-
- * glibtop_private.c: (has_sysfs):
- * glibtop_private.h:
- * netload.c: (glibtop_get_netload_s):
- * open.c: (set_linux_version):
-
- New has_sysfs function to avoid stating
- over and over '/sys' on each netload call.
-
-2006-04-02 Benoît Dejean <benoit@placenet.org>
-
- * msg_limits.c: (glibtop_get_msg_limits_s):
- * sem_limits.c: (glibtop_get_sem_limits_s):
- * shm_limits.c: (glibtop_get_shm_limits_s):
-
- Fixed a bunch of warnings.
-
-2006-01-23 Benoît Dejean <benoit@placenet.org>
-
- * procmap.c: (glibtop_get_proc_map_s):
-
- I can't believe i've been so stupid :)
- Uses smaps if linux > 2.6.14.
-
-2005-12-15 Benoît Dejean <benoit@placenet.org>
-
- * proclist.c: (glibtop_get_proclist_s):
-
- Fixed when which == GLIBTOP_KERN_PROC_UID.
- Closes #324055.
-
-2005-12-14 Benoît Dejean <benoit@placenet.org>
-
- * open.c: (glibtop_open_s):
-
- Implemented server->real_ncpu.
- Add a warning to display ncpu and real_ncpu on open.
-
-2005-12-13 Benoît Dejean <benoit@placenet.org>
-
- * cpu.c: (glibtop_get_cpu_s):
- * glibtop_private.c: (get_scaled), (check_cpu_line):
- * glibtop_private.h:
- * open.c: (glibtop_open_s):
- * proctime.c: (glibtop_get_proc_time_s):
-
- Fixed server->ncpu usage (SMP handling). Need more testing.
-
-2005-12-12 Benoît Dejean <benoit@placenet.org>
-
- * procmap.c: (add_smaps), (glibtop_get_proc_map_s):
-
- Implemented smap support.
- Closes #320710.
-
-2005-12-12 Benoît Dejean <benoit@placenet.org>
-
- * proclist.c: (glibtop_get_proclist_s):
-
- Improved so that it doesn't stat(2) every /proc/<PID>/.
-
-2005-12-07 Benoît Dejean <benoit@placenet.org>
-
- * procmap.c: (glibtop_get_proc_map_s):
-
- Small improvements.
- Use g_array_sized_new instead of g_array_new with
- reserved_size = 100.
- Don't use g_array_append_val to avoid copying
- glibtop_map_entries. Use g_array_set_size(size + 1) instead.
-
- I've run a little python benchmark and this shows a little
- speedup. I hope this would be more sensible in
- gnome-system-monitor (glibtop_get_procmap is intensively used for
- the 'Writable Memory' column).
-
-2005-10-29 Benoît Dejean <benoit@placenet.org>
-
- * glibtop_private.c: (read_boot_time):
-
- Removed 1 g_return_*.
-
-2005-08-15 Benoît Dejean <benoit@placenet.org>
-
- * cpu.c: (glibtop_get_cpu_s):
-
- Do not add irq, softirq and iowait to idle.
-
-2005-08-04 Benoît Dejean <TazForEver@dlfp.org>
-
- * open.c: (set_linux_version), (glibtop_open_s):
-
- Reworked a bit.
- Warn on 2.6 without /sys.
-
-2005-08-03 Benoît Dejean <TazForEver@dlfp.org>
-
- * netload.c: (glibtop_get_netload_s):
-
- Fixed for people running 2.6 without /sys.
-
-2005-08-02 Benoît Dejean <TazForEver@dlfp.org>
-
- * glibtop_server.h:
-
- Added GLIBTOP_SUID_NETLIST.
-
-2005-07-23 Benoît Dejean <TazForEver@dlfp.org>
-
- * uptime.c:
-
- Fixed .flags.
-
-2005-07-22 Benoît Dejean <TazForEver@dlfp.org>
-
- * glibtop_private.c: (get_page_size):
- * glibtop_private.h:
- * procmem.c: (glibtop_get_proc_mem_s):
- * procsegment.c: (glibtop_get_proc_segment_s):
-
- Cached getpagesize().
-
-2005-07-09 Benoît Dejean <TazForEver@dlfp.org>
-
- * netload.c: (read_value), (linux_2_6_stats), (linux_2_0_stats),
- (linux_2_4_stats), (glibtop_get_netload_s): Split implementations.
- New (simpler) implementation for 2.6 (/sys is so nice ;)
-
-2005-07-07 Benoît Dejean <TazForEver@dlfp.org>
-
- * glibtop_private.c: (read_boot_time), (get_boot_time): Cached boot_time.
-
-2005-07-06 Benoît Dejean <TazForEver@dlfp.org>
-
- Et m***e ... CVS got me. I wanted to commit a single change on the
- toplevel configure.in but commited the whole tree. Sorry.
-
- * glibtop_private.c:
- * glibtop_private.h:
- * proctime.c:
- * uptime.c:
-
- Added new function get_boot_time.
-
- Retrieve boot_time from /proc/stat.
-
-2005-06-13 Benoît Dejean <TazForEver@dlfp.org>
-
- * glibtop_private.c: (try_file_to_buffer): Ensures buffer is 0-terminated.
-
-2005-06-13 Benoît Dejean <TazForEver@dlfp.org>
-
- * swap.c: (glibtop_get_swap_s): Added pagein/pageout for linux 2.6.
-
-2005-05-26 Benoît Dejean <TazForEver@dlfp.org>
-
- * siglist.c: Fixed compilation on mips. Closes #304570.
-
-2005-04-01 Benoît Dejean <TazForEver@dlfp.org>
-
- * glibtop_private.h: Fixed gcc-4.0 warnings.
-
-2005-03-29 Benoît Dejean <TazForEver@dlfp.org>
-
- * fsusage.c: (get_partition): Removed a g_return_if_fail.
-
-2005-03-27 Benoît Dejean <TazForEver@dlfp.org>
-
- * loadavg.c: (glibtop_get_loadavg_s):
- * uptime.c: (glibtop_get_uptime_s): Fixed behaviour when locale is not C
- s/strtod/g_ascii_strod/. (strtod behaviour is locale specific, which is bad
- because linux /proc is always C.)
-
-2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
-
- * netload.c: (get_ipv6): s/strerror/g_strerror/
-
-2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
-
- * siglist.c: Updated.
-
-2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
-
- * fsusage.c: Fixed G_GNUC attribute usage.
-
-2005-01-22 Benoît Dejean <TazForEver@dlfp.org>
-
- * procopenfiles.c: (parse_file), (get_all), (inet_socket_parser),
- (get_all_inet_sockets), (local_socket_parser),
- (get_all_local_sockets), (glibtop_get_proc_open_files_s): Total rewrite.
- socket/localsocket should be much faster.
-
-2005-01-16 Benoît Dejean <TazForEver@dlfp.org>
-
- * glibtop_private.c: (skip_token):
- * glibtop_private.h: Uninlined.
-
-2005-01-13 Benoît Dejean <TazForEver@dlfp.org>
-
- * fsusage.c: (get_partition), (get_sys_path), (linux_2_6_0): Reworked.
- Should works with IDE, SCSI. DM support is ready, but i don't know why
- their /stat is empty ...
-
-2005-01-12 Benoît Dejean <TazForEver@dlfp.org>
-
- * procopenfiles.c: (get_all_sockets),
- (glibtop_get_proc_open_files_s): Parses /proc/net/tcp only once.
-
-2005-01-10 Benoît Dejean <TazForEver@dlfp.org>
-
- * procopenfiles.c: (get_socket_endpoint): Fixed.
-
-2005-01-10 Benoît Dejean <TazForEver@dlfp.org>
-
- * glibtop_server.h:
- * procopenfiles.c: (get_socket_endpoint): Disabled.
-
- (glibtop_get_proc_open_files_s): Secured -> g_snprintf.
-
-2004-12-23 Benoît Dejean <tazforever@dlfp.org>
-
- * fsusage.c: (_glibtop_linux_get_fsusage_read_write):
- * glibtop_private.h: Marked private functions G_GNUC_INTERNAL.
-
-2004-11-30 Benoît Dejean <tazforever@dlfp.org>
-
- * proclist.c: (glibtop_get_proclist_s): Glibified. g_array_free which
- returns a char* ! If you want to change this, please tell them
- http://bugzilla.gnome.org/show_bug.cgi?id=145767 .
-
-2004-11-28 Benoît Dejean <tazforever@dlfp.org>
-
- * Makefile.am:
- * cpu.c:
- * fsusage.c:
- * glibtop_private.c: (get_scaled), (try_file_to_buffer),
- (file_to_buffer): Added
- * glibtop_private.h: Added
- * glibtop_server.c: Removed
- * glibtop_server.h:
- * loadavg.c:
- * mem.c:
- * netload.c:
- * open.c:
- * prockernel.c:
- * procmem.c:
- * procsegment.c:
- * procsignal.c:
- * procstate.c:
- * proctime.c:
- * procuid.c:
- * swap.c:
- * sysinfo.c:
- * uptime.c: Moved linux impl utils function from glibtop_server.* to
- glibtob_private.* because glibtop_server.h is a public header.
-
-2004-11-15 Benoît Dejean <tazforever@dlfp.org>
-
- * netload.c: (get_ipv6), (glibtop_get_netload_s): Added a check for NULL
- pointer when wlaking though interfaces (though i don't understand why some
- interface don't have an ifa_addr).
- Move all ipv6 code into a separate function. Added a paranoid check on
- getifaddrs.
-
-2004-11-13 Benoît Dejean <tazforever@dlfp.org>
-
- * netlist.c: (glibtop_get_netlist_s): Killed warning.
-
-2004-10-26 Benoît Dejean <tazforever@dlfp.org>
-
- * proctime.c: (glibtop_get_proc_time_s): Set .rtime. At last !
-
-2004-09-24 Benoît Dejean <tazforever@dlfp.org>
-
- * loadavg.c: (glibtop_get_loadavg_s):
- * msg_limits.c: (glibtop_get_msg_limits_s):
- * shm_limits.c: (glibtop_get_shm_limits_s): Small cleanup.
-
-2004-09-23 Benoît Dejean <tazforever@dlfp.org>
-
- * glibtop_server.c:
- * glibtop_server.h:
- * procmem.c: (glibtop_get_proc_mem_s):
- * procsegment.c: (glibtop_get_proc_segment_s): Removed get_pageshift().
- Every one can affort a * instead of a >>, no need for this kind of
- non-reentrant optimization. Saved 144B (obviously perfect cleanup ;)
-
-2004-09-22 Benoît Dejean <tazforever@dlfp.org>
-
- * glibtop_server.c: Removed #warning, my gcc is not buggy anymore.
-
-2004-09-21 Benoît Dejean <tazforever@dlfp.org>
-
- * fsusage.c: (linux_2_6_0), (linux_2_4_0),
- (_glibtop_linux_get_fsusage_read_write): Back to previous version.
- Now set .flags correctly.
-
-2004-09-19 Benoît Dejean <tazforever@dlfp.org>
-
- * fsusage.c: (linux_2_6_0), (linux_2_4_0),
- (_glibtop_linux_get_fsusage_read_write): Updated to match new prototype.
-
-2004-09-19 Benoît Dejean <tazforever@dlfp.org>
-
- * mem.c: (glibtop_get_mem_s): Added missing memset( , 0, ).
-
-2004-08-03 Benoît Dejean <tazforever@dlfp.org>
-
- * glibtop_server.h: Added next_token(). Changed skip_token(),
- i hope it won't break any bad code.
- * procstate.c: (glibtop_get_proc_state_s): Used next_token.
- * proctime.c: (glibtop_get_proc_time_s): Implemented .start_time
- the way it ought to be. Clean ups
-
-2004-07-22 Benoît Dejean <tazforever@dlfp.org>
-
- * netload.c: (glibtop_get_netload_s): Fixed leak.
- * proctime.c: (glibtop_get_proc_time_s): Don't set .timeout anymore.
-
-2004-07-17 Benoît Dejean <tazforever@dlfp.org>
-
- * Makefile.am:
- * fsusage.c: (linux_2_6_0), (linux_2_4_0),
- (_glibtop_linux_get_fsusage_read_write): Added to repository. WIP.
-
-
- * glibtop_server.h: LINUX_VERSION -> LINUX_VERSION_CODE
-
- * netload.c: (glibtop_get_netload_s): Cleanups. Added support for
- hardware address. s/LINUX_VERSION/LINUX_VERSION_CODE/
-
- * open.c: (get_linux_version): s/LINUX_VERSION/LINUX_VERSION_CODE/
-
- * procmap.c: (glibtop_get_proc_map_s): glibify: used GArray
-
- * procuid.c: (glibtop_get_proc_uid_s): s/LINUX_VERSION/LINUX_VERSION_CODE/.
- Used Linux MKDEV.
-
-2004-07-15 Benoît Dejean <tazforever@dlfp.org>
-
- * procstate.c: (glibtop_get_proc_state_s): Wake, we're libgtop2.7.x,
- lets get rid of old buf->state format. Now using bitfield instead
- letters.
-
-2004-07-07 Benoît Dejean <tazforever@dlfp.org>
-
- * procargs.c: (glibtop_get_proc_args_s): Fixed. error is now correctly
- set to NULL before is's used. Fixed max_len behaviour.
-
-2004-07-03 Benoît Dejean <tazforever@dlfp.org>
-
- * sysinfo.c: (init_sysinfo): Removed useless memset.
-
-2004-07-03 Benoît Dejean <tazforever@dlfp.org>
-
- * glibtop_server.h:
- * glibtop_server.c: (try_file_to_buffer), (file_to_buffer): Added. These
- functions are commonly used. Misc cleanups.
-
- * cpu.c: (glibtop_get_cpu_s):
- * loadavg.c: (glibtop_get_loadavg_s):
- * mem.c: (glibtop_get_mem_s):
- * open.c: (glibtop_open_s):
- * swap.c: (glibtop_get_swap_s):
- * sysinfo.c: (init_sysinfo):
- * uptime.c: (glibtop_get_uptime_s): Replaced open/read/close by file_to_buffer().
-
-2004-06-18 Benoît Dejean <tazforever@dlfp.org>
-
- * loadavg.c: (glibtop_get_loadavg_s): Whitespace cleanup.
-
- * ppp.c: (get_ISDN_stats), (is_ISDN_on): Replace g_malloc by an
- array.
-
- * glibtop_server.c: (get_pageshift):
- * glibtop_server.h:
- * procmem.c: (glibtop_init_proc_mem_s), (glibtop_get_proc_mem_s):
- * procsegment.c: (glibtop_init_proc_segment_s),
- (glibtop_get_proc_segment_s): Moved the pageshift calculation to
- glibtop_server.[ch]
-
- * procstate.c: (glibtop_get_proc_state_s):
- * procuid.c: (glibtop_get_proc_uid_s):
- * sysinfo.c: (init_sysinfo): Minor cleanups.
-
-2004-06-18 Benoît Dejean <tazforever@dlfp.org>
-
- * netload.c: (glibtop_get_netload_s): Implemented new IPv6 feature.
-
-2004-06-13 Benoît Dejean <tazforever@dlfp.org>
-
- * procargs.c: (glibtop_get_proc_args_s): Replaced by g_file_get_contents.
-
-2004-06-13 Benoît Dejean <tazforever@dlfp.org>
-
- * glibtop_server.h:
- * glibtop_server.c: (get_scaled): Cleaned.
- (proc_file_to_buffer): Uninlined.
-
- * sysinfo.c: (init_sysinfo): Re-implemented.
- Fixed segfault on SMP.
- Stores keys in cpuinfo->labels.
-
-2004-06-12 Benoît Dejean <tazforever@dlfp.org>
-
- * Makefile.am:
- * glibtop_server.c: Added to repository.
-
- * glibtop_server.h: (get_scaled): Uninlined and moved it to glibtop_server.c.
- (skip_token) : Fixed indentation.
-
- * procmap.c: (glibtop_get_proc_map_s): Big cleanup. Better allocation
- algorithm.
-
- * procmem.c:
- * procsegment.c: Added missing initializations.
-
- * sem_limits.c:
- * shm_limits.c: (glibtop_get_shm_limits_s):
- * swap.c:
- * uptime.c: Added missing const qualifiers.
-
- * sysinfo.c: (init_sysinfo): Added missing 0 initialization.
- Saved 1 gboolean :D.
-
-2004-06-08 Benoît Dejean <tazforever@dlfp.org>
-
- * procuid.c: (glibtop_get_proc_uid_s): Whitespace clean up.
-
-2004-06-08 Benoît Dejean <tazforever@dlfp.org>
-
- * glibtop_server.h: Small clean up.
-
-2004-06-07 Benoît Dejean <tazforever@dlfp.org>
-
- * glibtop_machine.h (skip_token): Removed.
- * glibtop_server.h (skip_multiple_token): Cleaned.
- * netload.c: (glibtop_get_netload_s): Replaced unsafe strcpy by g_strlcpy.
- * procmap.c: (glibtop_get_proc_map_s): s/strncpy/g_strlcpy/.
- * procstate.c: (glibtop_get_proc_state_s): Likewise.
- * sysinfo.c: (init_sysinfo): Cleaned.
-
-2004-05-26 Benoît Dejean <tazforever@dlfp.org>
-
- * cpu.c: (glibtop_get_cpu_s): Cleaned whitespaces.
-
- * open.c: (get_linux_version), (glibtop_open_s): Removed get_linux_version()
- Cleaned. Remove static struct utsname.
-
-2004-05-26 Benoît Dejean <tazforever@dlfp.org>
-
- * glibtop_server.h:
- * open.c:
- * procuid.c: Moved LINUX_VERSION macro to glibtop_server.h.
-
- * Changelog: Converted to UTF-8.
-
-2004-05-19 Benoît Dejean <TazForEver@dlfp.org>
-
- * glibtop_server.h (skip_line): Added test for end of string.
- (get_scaled): Cleaned.
-
- * cpu.c (glibtop_get_cpu_s):
- * open.c (glibtop_open_s): Fixed SMP detection. Closes #142597.
-
- * uptime.c (glibtop_get_uptime_s): Added boot_time.
-
-2004-03-09 Bastien Nocera <hadess@hadess.net>
-
- * cpu.c: (glibtop_get_cpu_s): fixup CPU usage calculation on 2.6
- kernels (patch by Benoît Dejean <bnet@ifrance.com>) (Closes: #134252)
-
-2004-03-04 Bastien Nocera <hadess@hadess.net>
-
- * ppp.c: use a config.h define instead of copying the values in
- the file (Closes: #126504)
-
-2004-02-02 Sebastien Bacher <seb128@debian.org>
-
- * sysdeps/linux/mem.c: (glibtop_get_mem_s): patch from
- Benoît Dejean <bnet@ifrance.com> to fix libtop_mem.used
- and glibtop_mem.shared values (Closes: #129863).
-
-2003-12-23 Bastien Nocera <hadess@hadess.net>
-
- * cpu.c: (glibtop_get_cpu_s):
- * glibtop_server.h:
- * loadavg.c: (glibtop_get_loadavg_s):
- * mem.c: (glibtop_get_mem_s):
- * netload.c: (glibtop_get_netload_s):
- * prockernel.c: (glibtop_get_proc_kernel_s):
- * procmem.c: (glibtop_get_proc_mem_s):
- * procsegment.c: (glibtop_get_proc_segment_s):
- * procsignal.c: (glibtop_get_proc_signal_s):
- * proctime.c: (glibtop_get_proc_time_s):
- * procuid.c: (glibtop_get_proc_uid_s):
- * swap.c: (glibtop_get_swap_s): Apply patch from Benoît Dejean
- <bnet@ifrance.com> to fix overflow issues using strtol
- (Closes: #129881)
-
-2003-12-23 Bastien Nocera <hadess@hadess.net>
-
- * mem.c: (glibtop_get_mem_s): Fix calculation of used memory,
- patch by Benoît Dejean, <bnet@ifrance.com> (Closes: #129863)
-
-2003-12-07 Jon K Hellan <hellan@acm.org>
-
- * ppp.c: Copy needed defines from linux/isdn.h instead of
- including it, unbreaking build with linux 2.6 kernel headers.
-
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * glibtop_server.h:
- * mem.c: (glibtop_get_mem_s):
- * swap.c: (glibtop_get_swap_s): committing patch from Sebastien
- Bacher <seb128@debian.org> for Linux 2.6 support (Closes: #104747)
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * cpu.c: (glibtop_get_cpu_s):
- * procmap.c: (glibtop_get_proc_map_s): s/u_int64_t/guint64/
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * glibtop_machine.h:
- * glibtop_server.h:
- * ppp.c:
- * procargs.c: (glibtop_get_proc_args_s):
- * proclist.c:
- * procmap.c: fixed compilation
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * ppp.c: (get_ISDN_stats):
- * procargs.c: (glibtop_get_proc_args_s):
- * proclist.c: (glibtop_get_proclist_s):
- * procmap.c: (glibtop_get_proc_map_s):
- replace all the xmalloc crap by glib memory management functions
-
-2001-10-17 Abel Cheung <maddog@linux.org.hk>
-
- * Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
-
-2001-02-13 Martin Baulig <baulig@suse.de>
-
- Fix bug #14076.
-
- * open.c (glibtop_open_s): Check whether /proc/1/cpu exists to
- detect SMP support rather than reading /proc/stat; on Linux 2.4.x,
- /proc/stat has "cpu" and "cpu0" entries even for non-SMP systems.
-
-2000-01-22 Martin Baulig <martin@home-of-linux.org>
-
- * procargs.c (glibtop_get_proc_args_s): Set correct `buf->size' and
- `buf->flags' fields when `max_length' was given. Fixes #5183.
-
-1999-11-28 Martin Baulig <martin@home-of-linux.org>
-
- * procstate.c (glibtop_get_procstate_s): Stat "/proc/<pid>" instead
- of "/proc/<pid>/state" to get `uid' and `gid'. Thanks to Jason Becker
- for pointing out that GTop reported wrong uid's.
-
-1999-10-19 Martin Baulig <martin@home-of-linux.org>
-
- * uptime.c (glibtop_get_uptime_s): Don't cast uptime and idletime
- to float as suggested by John Kodis.
-
-1999-07-29 Martin Baulig <martin@home-of-linux.org>
-
- * proctime.c (glibtop_get_proctime_s): Don't provide `rtime'
- any longer since we must not use `rtime = utime + stime'.
-
-1999-02-20 Martin Baulig <martin@home-of-linux.org>
-
- * netload.c: Don't include <linux/ip_fw.h> for libc5 systems
- since it is no longer required and makes trouble on Slakware.
-
-1999-01-06 Martin Baulig <martin@home-of-linux.org>
-
- * netload.c (glibtop_get_netload_s): Use `server->os_version_code'
- instead of GLIBTOP_LINUX_VERSION_CODE.
-
-1999-01-06 Martin Baulig <martin@home-of-linux.org>
-
- Unconditionally enable SMP support for linux.
-
- * open.c (_glibtop_open_s): Always determine the number of CPUs
- we have here, not only when SMP support was enabled.
-
- * cpu.c, proctime.c: Use `server->ncpu' to determine whether to
- enable SMP support.
-
-1998-12-28 Martin Baulig <martin@home-of-linux.org>
-
- * netload.c: When using glibc, don't include <netinet/ip_fw.h>
- any longer but all headers that were included there; we only
- needed this file to get those headers.
-
-1998-12-09 Martin Baulig <martin@home-of-linux.org>
-
- * procargs.c (glibtop_get_proc_args_s): Added implementation
- for this function.
-
-1998-12-03 Martin Baulig <martin@home-of-linux.org>
-
- * netload.c: No longer include <linux/version.h>, but use
- GLIBTOP_LINUX_VERSION_CODE which is set by configure instead.
- Define _GLIBTOP_IP_FW_ACCTIN and _GLIBTOP_IP_FW_ACCTOUT here
- and use them instead of IP_FW_F_ACCTIN and IP_FW_F_ACCTOUT.
-
-1998-11-30 Martin Baulig <martin@home-of-linux.org>
-
- * netload.c: Use correct header files both for libc5 and glibc.
- With Linux >= 2.1.114 we no longer use IP accounting since it
- already has byte counts in /proc/net/dev.
-
-1998-11-22 Martin Baulig <baulig@merkur.uni-trier.de>
-
- * netload.c (glibtop_get_netload_s): Added implementation
- for this function.
-
- The code here is smart enough to use /proc/net/ip_acct if
- IP accounting is enabled in the kernel and activated on the
- requested device and /proc/net/dev if not.
-
- To get separate statistics for received and transmitted
- packets you need to use two accounting rules:
-
- ipfwadm -A in -a -P all -W eth0
- ipfwadm -A out -a -P all -W eth0
-
- But before you activate IP accounting, please have a look
- at /proc/net/dev - if if already contains byte counters,
- then don't use IP accounting.
-
-1998-10-28 Martin Baulig <martin@home-of-linux.org>
-
- * ppp.c: Added code for ISDN here.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * netload.c: New file. Currently empty.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * procargs.c: New file. Currently empty.
-
-1998-10-25 Martin Baulig <martin@home-of-linux.org>
-
- * ppp.c: New file. Currently empty.
-
-1998-10-11 Martin Baulig <martin@home-of-linux.org>
-
- * procdata.c: Removed this obsolete file.
-
-1998-10-02 Martin Baulig <martin@home-of-linux.org>
-
- * proclist.c (glibtop_init_proclist_s): You can now also use the
- `GLIBTOP_EXCLUDE_*' flags for the `which' parameter.
-
-1998-10-01 Martin Baulig <baulig@Stud.Informatik.uni-trier.de>
-
- * proclist.c (glibtop_init_proclist_s): Honor the `which' parameter
- to select which processes to fetch.
-
-1998-09-12 Martin Baulig <martin@home-of-linux.org>
-
- * sysinfo.c: New file.
-
-1998-09-09 Martin Baulig <baulig@Stud.Informatik.uni-trier.de>
-
- * proctime.c (glibtop_get_proc_time_s): Added SMP support.
-
- * open.c (glibtop_init_s): Initialize `ncpu' on SMP systems.
-
- * cpu.c (glibtop_get_cpu_s): Added SMP support.
-
- * ChangeLog: New file.
-
diff --git a/sysdeps/linux/Makefile.am b/sysdeps/linux/Makefile.am
deleted file mode 100644
index 6b94337b..00000000
--- a/sysdeps/linux/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-INCLUDES = @INCLUDES@
-
-noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la
-
-libgtop_sysdeps_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
- uptime.c loadavg.c shm_limits.c msg_limits.c \
- sem_limits.c proclist.c procstate.c procuid.c \
- proctime.c procmem.c procsignal.c prockernel.c \
- procsegment.c procargs.c procmap.c siglist.c \
- sysinfo.c netload.c ppp.c glibtop_private.c \
- fsusage.c netlist.c procopenfiles.c procwd.c
-
-libgtop_sysdeps_2_0_la_LIBADD = @GLIB_LIBS@
-
-# libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
-libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h
-libgtopincludedir = $(includedir)/libgtop-2.0
-
-noinst_HEADERS = glibtop_private.h
diff --git a/sysdeps/linux/close.c b/sysdeps/linux/close.c
deleted file mode 100644
index 03057967..00000000
--- a/sysdeps/linux/close.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/close.h>
-
-/* Closes pipe to gtop server. */
-
-void
-glibtop_close_s (glibtop *server)
-{ }
diff --git a/sysdeps/linux/cpu.c b/sysdeps/linux/cpu.c
deleted file mode 100644
index bedeab59..00000000
--- a/sysdeps/linux/cpu.c
+++ /dev/null
@@ -1,150 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/error.h>
-#include <glibtop/cpu.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_cpu =
-(1L << GLIBTOP_CPU_TOTAL) + (1L << GLIBTOP_CPU_USER) +
-(1L << GLIBTOP_CPU_NICE) + (1L << GLIBTOP_CPU_SYS) +
-(1L << GLIBTOP_CPU_IDLE) + (1L << GLIBTOP_CPU_FREQUENCY);
-
-static const unsigned long _glibtop_sysdeps_cpu_smp =
-(1L << GLIBTOP_XCPU_TOTAL) + (1L << GLIBTOP_XCPU_USER) +
-(1L << GLIBTOP_XCPU_NICE) + (1L << GLIBTOP_XCPU_SYS) +
-(1L << GLIBTOP_XCPU_IDLE);
-
-static const unsigned long _glibtop_sysdeps_cpu_2_6 =
-(1L << GLIBTOP_CPU_IOWAIT) + (1L << GLIBTOP_CPU_IRQ) +
-(1L << GLIBTOP_CPU_SOFTIRQ);
-
-static const unsigned long _glibtop_sysdeps_cpu_smp_2_6 =
-(1L << GLIBTOP_XCPU_IOWAIT) + (1L << GLIBTOP_XCPU_IRQ) +
-(1L << GLIBTOP_XCPU_SOFTIRQ);
-
-/* Init function. */
-
-void
-_glibtop_init_cpu_s (glibtop *server)
-{
- server->sysdeps.cpu = _glibtop_sysdeps_cpu;
-
- if (server->ncpu)
- server->sysdeps.cpu |= _glibtop_sysdeps_cpu_smp;
-
-
- if(server->os_version_code >= LINUX_VERSION_CODE(2, 6, 0))
- {
- server->sysdeps.cpu |= _glibtop_sysdeps_cpu_2_6;
-
- if (server->ncpu)
- server->sysdeps.cpu |= _glibtop_sysdeps_cpu_smp_2_6;
- }
-}
-
-/* Provides information about cpu usage. */
-
-#define FILENAME "/proc/stat"
-
-void
-glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
-{
- char buffer [BUFSIZ], *p;
- int i;
-
- memset (buf, 0, sizeof (glibtop_cpu));
-
- file_to_buffer(server, buffer, sizeof buffer, FILENAME);
-
- /*
- * GLOBAL
- */
-
- p = skip_token (buffer); /* "cpu" */
-
- buf->user = strtoull (p, &p, 0);
- buf->nice = strtoull (p, &p, 0);
- buf->sys = strtoull (p, &p, 0);
- buf->idle = strtoull (p, &p, 0);
- buf->total = buf->user + buf->nice + buf->sys + buf->idle;
-
- /* 2.6 kernel */
- if(server->os_version_code >= LINUX_VERSION_CODE(2, 6, 0))
- {
- buf->iowait = strtoull(p, &p, 0);
- buf->irq = strtoull(p, &p, 0);
- buf->softirq = strtoull(p, &p, 0);
-
- buf->total += buf->iowait + buf->irq + buf->softirq;
- }
-
- buf->frequency = 100;
- buf->flags = _glibtop_sysdeps_cpu;
-
- /*
- * PER CPU
- */
-
- for (i = 0; i <= server->ncpu; i++) {
-
- p = skip_line(p); /* move to ^ */
-
- if (!check_cpu_line_warn(server, p, i))
- break;
-
- p = skip_token(p); /* "cpuN" */
-
- buf->xcpu_user [i] = strtoull (p, &p, 0);
- buf->xcpu_nice [i] = strtoull (p, &p, 0);
- buf->xcpu_sys [i] = strtoull (p, &p, 0);
- buf->xcpu_idle [i] = strtoull (p, &p, 0);
- buf->xcpu_total[i] = buf->xcpu_user [i] \
- + buf->xcpu_nice [i] \
- + buf->xcpu_sys [i] \
- + buf->xcpu_idle [i];
-
- /* 2.6 kernel */
- if(server->os_version_code >= LINUX_VERSION_CODE(2, 6, 0))
- {
- buf->xcpu_iowait [i] = strtoull(p, &p, 0);
- buf->xcpu_irq [i] = strtoull(p, &p, 0);
- buf->xcpu_softirq [i] = strtoull(p, &p, 0);
-
- buf->xcpu_total [i] += buf->xcpu_iowait [i] \
- + buf->xcpu_irq [i] \
- + buf->xcpu_softirq [i];
- }
- }
-
- if(server->ncpu) /* ok, that's a real SMP */
- buf->flags |= _glibtop_sysdeps_cpu_smp;
-
- if(server->os_version_code >= LINUX_VERSION_CODE(2, 6, 0))
- {
- buf->flags |= _glibtop_sysdeps_cpu_2_6;
-
- if(server->ncpu) /* ok, that's a real SMP */
- buf->flags |= _glibtop_sysdeps_cpu_smp_2_6;
- }
-}
diff --git a/sysdeps/linux/fsusage.c b/sysdeps/linux/fsusage.c
deleted file mode 100644
index d66fcc5e..00000000
--- a/sysdeps/linux/fsusage.c
+++ /dev/null
@@ -1,143 +0,0 @@
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/fsusage.h>
-
-#include "glibtop_private.h"
-
-#include <glib.h>
-
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <linux/kdev_t.h>
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
-void
-_glibtop_linux_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path);
-
-/*
- * Linux 2.6.x
- * linux/Documentation/iostats.txt
- */
-
-
-
-
-static char *
-get_partition(const char *mountpoint)
-{
- FILE *partitions;
- char *name = NULL;
- char line[1024];
- struct stat statb;
-
- if(stat(mountpoint, &statb) == -1)
- return NULL;
-
- if((partitions = fopen("/proc/partitions", "r")) == NULL)
- return NULL;
-
- while(fgets(line, sizeof line, partitions))
- {
- unsigned major, minor;
- char dev[32];
-
- if(sscanf(line, "%u %u %*u %31s", &major, &minor, dev) != 3)
- continue;
-
- if(MKDEV(major, minor) != statb.st_dev)
- continue;
-
- name = g_strdup(dev);
- break;
- }
-
- fclose(partitions);
- return name;
-}
-
-
-static void
-get_sys_path(const char *device, char **stat_path, const char **parse_format)
-{
- if(g_str_has_prefix(device, "hd") || g_str_has_prefix(device, "sd"))
- {
- char *prefix;
- char *path;
- size_t offset;
-
- offset = strcspn(device, "0123456789");
-
- prefix = g_strdup(device);
- prefix [offset] = '\0';
-
- path = g_strdup_printf("/sys/block/%s/%s/stat",
- prefix, device);
-
- g_free(prefix);
-
- *stat_path = path;
- *parse_format = "%*llu %llu %*llu %llu";
- }
- else
- {
- *stat_path = g_strdup_printf("/sys/block/%s/stat", device);
- *parse_format = "%*llu %*llu %llu %*llu %*llu %*llu %llu";
- }
-}
-
-
-
-static void linux_2_6_0(glibtop *server, glibtop_fsusage *buf, const char *path)
-{
- char *device;
- char *filename;
- const char *format;
- int ret;
- char buffer[BUFSIZ];
-
- device = get_partition(path);
- if(!device) return;
-
- get_sys_path(device, &filename, &format);
- g_free(device);
-
- ret = try_file_to_buffer(buffer, sizeof buffer, filename);
-
- if(ret < 0) return;
-
- if (sscanf(buffer, format, &buf->read, &buf->write) != 2) {
- glibtop_warn_io_r(server, "Could not parse %s", filename);
- return;
- }
-
- g_free(filename);
-
- buf->flags |= (1 << GLIBTOP_FSUSAGE_READ) | (1 << GLIBTOP_FSUSAGE_WRITE);
-}
-
-
-static void linux_2_4_0(glibtop *server, glibtop_fsusage *buf, const char *path)
-{
-}
-
-
-void
-_glibtop_linux_get_fsusage_read_write(glibtop *server,
- glibtop_fsusage *buf,
- const char *path)
-{
- if(server->os_version_code >= LINUX_VERSION_CODE(2, 6, 0))
- {
- linux_2_6_0(server, buf, path);
- }
- else if(server->os_version_code >= LINUX_VERSION_CODE(2, 4, 0))
- {
- linux_2_4_0(server, buf, path);
- }
-}
diff --git a/sysdeps/linux/glibtop_machine.h b/sysdeps/linux/glibtop_machine.h
deleted file mode 100644
index 9df31610..00000000
--- a/sysdeps/linux/glibtop_machine.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/* 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_MACHINE_H__
-#define __GLIBTOP_MACHINE_H__
-
-#include <unistd.h>
-#include <fcntl.h>
-#include <ctype.h>
-
-G_BEGIN_DECLS
-
-typedef struct _glibtop_machine glibtop_machine;
-
-struct _glibtop_machine
-{
- pid_t last_pid;
- int no_update;
- int fd_stat, fd_meminfo, fd_loadavg;
- char proc_stat [BUFSIZ], proc_statm [BUFSIZ];
- char proc_status [BUFSIZ];
-};
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/linux/glibtop_private.c b/sysdeps/linux/glibtop_private.c
deleted file mode 100644
index ac1a0e19..00000000
--- a/sysdeps/linux/glibtop_private.c
+++ /dev/null
@@ -1,206 +0,0 @@
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-
-#include "glibtop_private.h"
-
-#include <glib.h>
-
-#include <string.h>
-#include <stdlib.h>
-#include <stdarg.h>
-
-#include <fcntl.h>
-#include <unistd.h>
-
-
-unsigned long long
-get_scaled(const char *buffer, const char *key)
-{
- const char *ptr;
- char *next;
- unsigned long long value = 0;
-
- if (G_LIKELY((ptr = strstr(buffer, key))))
- {
- ptr += strlen(key);
- value = strtoull(ptr, &next, 0);
-
- for ( ; *next; ++next) {
- if (*next == 'k') {
- value *= 1024;
- break;
- } else if (*next == 'M') {
- value *= 1024 * 1024;
- break;
- }
- }
- } else
- g_warning("Could not read key '%s' in buffer '%s'",
- key, buffer);
-
- return value;
-}
-
-
-char *
-skip_token (const char *p)
-{
- p = next_token(p);
- while (*p && !isspace(*p)) p++;
- p = next_token(p);
- return (char *)p;
-}
-
-
-/*
- * Read functions
- */
-enum TRY_FILE_TO_BUFFER
-{
- TRY_FILE_TO_BUFFER_OK = 0,
- TRY_FILE_TO_BUFFER_OPEN = -1,
- TRY_FILE_TO_BUFFER_READ = -2
-};
-
-int try_file_to_buffer(char *buffer, size_t bufsiz, const char *format, ...)
-{
- char path[4096];
- int fd;
- ssize_t len;
- va_list pa;
-
- if (bufsiz <= sizeof(char*))
- g_warning("Huhu, bufsiz of %lu looks bad", (gulong)bufsiz);
-
- va_start(pa, format);
-
- /* C99 also provides vsnprintf */
- g_vsnprintf(path, sizeof path, format, pa);
-
- va_end(pa);
-
- buffer [0] = '\0';
-
- if((fd = open (path, O_RDONLY)) < 0)
- return TRY_FILE_TO_BUFFER_OPEN;
-
- len = read (fd, buffer, bufsiz - 1);
- close (fd);
-
- if (len < 0)
- return TRY_FILE_TO_BUFFER_READ;
-
- buffer [len] = '\0';
-
- return TRY_FILE_TO_BUFFER_OK;
-}
-
-
-void
-file_to_buffer(glibtop *server, char *buffer, size_t bufsiz, const char *filename)
-{
- switch(try_file_to_buffer(buffer, bufsiz, filename))
- {
- case TRY_FILE_TO_BUFFER_OPEN:
- glibtop_error_io_r (server, "open (%s)", filename);
- case TRY_FILE_TO_BUFFER_READ:
- glibtop_error_io_r (server, "read (%s)", filename);
- }
-}
-
-
-
-
-static unsigned long
-read_boot_time(glibtop *server)
-{
- char buffer[BUFSIZ];
- char *btime;
-
- file_to_buffer(server, buffer, sizeof buffer, "/proc/stat");
-
- btime = strstr(buffer, "btime");
-
- if (!btime) {
- glibtop_warn_io_r(server, "cannot find btime in /proc/stat");
- return 0UL;
- }
-
- btime = skip_token(btime);
- return strtoul(btime, NULL, 10);
-}
-
-
-
-unsigned long
-get_boot_time(glibtop *server)
-{
- static unsigned long boot_time = 0UL;
-
- if(G_UNLIKELY(!boot_time))
- {
- boot_time = read_boot_time(server);
- }
-
- return boot_time;
-}
-
-
-size_t
-get_page_size(void)
-{
- static size_t pagesize = 0;
-
- if(G_UNLIKELY(!pagesize))
- {
- pagesize = getpagesize();
- }
-
- return pagesize;
-}
-
-
-
-gboolean
-check_cpu_line(glibtop *server, const char *line, unsigned i)
-{
- char start[10];
-
- g_snprintf(start, sizeof start, "cpu%u", i);
-
- return g_str_has_prefix(line, start);
-}
-
-
-
-gboolean
-has_sysfs(void)
-{
- static gboolean init;
- static gboolean sysfs;
-
- if (G_UNLIKELY(!init)) {
- sysfs = g_file_test("/sys", G_FILE_TEST_IS_DIR);
- init = TRUE;
- }
-
- return sysfs;
-}
-
-
-
-gboolean safe_readlink(const char *path, char *buf, size_t bufsiz)
-{
- ssize_t ret;
-
- ret = readlink(path, buf, bufsiz - 1);
-
- if (ret == -1) {
- g_warning("Could not read link %s : %s", path, strerror(errno));
- return FALSE;
- }
-
- buf[ret] = '\0';
- return TRUE;
-}
diff --git a/sysdeps/linux/glibtop_private.h b/sysdeps/linux/glibtop_private.h
deleted file mode 100644
index 8acfa2fa..00000000
--- a/sysdeps/linux/glibtop_private.h
+++ /dev/null
@@ -1,153 +0,0 @@
-/* Copyright (C) 2004 Benoît Dejean
- This file is part of LibGTop 2.0.
-
- 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 __LINUX__GLIBTOP_PRIVATE_H__
-#define __LINUX__GLIBTOP_PRIVATE_H__
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-
-#include <glib.h>
-
-#include <fcntl.h>
-#include <ctype.h>
-#include <string.h>
-
-G_BEGIN_DECLS
-
-#define LINUX_VERSION_CODE(x,y,z) (0x10000*(x) + 0x100*(y) + z)
-
-
-static inline char*
-next_token(const char *p)
-{
- while (isspace(*p)) p++;
- return (char*) p;
-}
-
-char *
-skip_token (const char *p);
-
-static inline char *
-skip_multiple_token (const char *p, size_t count)
-{
- while(count--)
- p = skip_token (p);
-
- return (char *)p;
-}
-
-
-static inline char *
-skip_line (const char *p)
-{
- while (*p && *p != '\n') p++;
- return (char *) (*p ? p+1 : p);
-}
-
-
-unsigned long long
-get_scaled(const char *buffer, const char *key);
-
-
-/* aborts on error */
-void
-file_to_buffer(glibtop *server, char *buffer, size_t bufsiz, const char *filename);
-
-/* return < 0 on error, otherwise 0 on success */
-int
-try_file_to_buffer(char *buffer, size_t bufsiz, const char *format, ...) G_GNUC_PRINTF(3, 4);
-
-
-/* some inline functions that wrap proc path
- * as fast as macros :)
- */
-
-static inline int
-proc_file_to_buffer (char *buffer, size_t bufsiz, const char *fmt, pid_t pid)
-{
- return try_file_to_buffer(buffer, bufsiz, fmt, pid);
-}
-
-static inline int
-proc_stat_to_buffer (char *buffer, size_t bufsiz, pid_t pid)
-{
- return proc_file_to_buffer(buffer, bufsiz, "/proc/%d/stat", pid);
-}
-
-static inline int
-proc_status_to_buffer (char *buffer, size_t bufsiz, pid_t pid)
-{
- return proc_file_to_buffer(buffer, bufsiz, "/proc/%d/status", pid);
-}
-
-static inline int
-proc_statm_to_buffer (char *buffer, size_t bufsiz, pid_t pid)
-{
- return proc_file_to_buffer(buffer, bufsiz, "/proc/%d/statm", pid);
-}
-
-
-static inline char *
-proc_stat_after_cmd (char *p)
-{
- p = strrchr (p, ')');
- if (G_LIKELY(p))
- *p++ = '\0';
- return p;
-}
-
-
-unsigned long
-get_boot_time(glibtop *server);
-
-
-size_t
-get_page_size(void);
-
-
-gboolean
-check_cpu_line(glibtop *server, const char *line, unsigned n);
-
-
-static inline gboolean
-check_cpu_line_warn(glibtop *server, const char *line, unsigned i)
-{
- gboolean ret;
-
- ret = check_cpu_line(server, line, i);
-
- if (G_UNLIKELY(!ret))
- glibtop_warn_io_r(server,
- "'%s' does not start with 'cpu%u'",
- line, i);
-
- return ret;
-}
-
-
-gboolean
-has_sysfs(void) G_GNUC_CONST;
-
-gboolean safe_readlink(const char *path, char *buf, size_t bufsiz);
-
-
-G_END_DECLS
-
-#endif /* __LINUX__GLIBTOP_PRIVATE_H__ */
diff --git a/sysdeps/linux/glibtop_server.h b/sysdeps/linux/glibtop_server.h
deleted file mode 100644
index 3f9980d6..00000000
--- a/sysdeps/linux/glibtop_server.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/* 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 __LINUX__GLIBTOP_SERVER_H__
-#define __LINUX__GLIBTOP_SERVER_H__
-
-#define GLIBTOP_SUID_CPU 0
-#define GLIBTOP_SUID_MEM 0
-#define GLIBTOP_SUID_SWAP 0
-#define GLIBTOP_SUID_UPTIME 0
-#define GLIBTOP_SUID_LOADAVG 0
-#define GLIBTOP_SUID_SHM_LIMITS 0
-#define GLIBTOP_SUID_MSG_LIMITS 0
-#define GLIBTOP_SUID_SEM_LIMITS 0
-#define GLIBTOP_SUID_PROCLIST 0
-#define GLIBTOP_SUID_PROC_STATE 0
-#define GLIBTOP_SUID_PROC_UID 0
-#define GLIBTOP_SUID_PROC_MEM 0
-#define GLIBTOP_SUID_PROC_TIME 0
-#define GLIBTOP_SUID_PROC_SIGNAL 0
-#define GLIBTOP_SUID_PROC_KERNEL 0
-#define GLIBTOP_SUID_PROC_SEGMENT 0
-#define GLIBTOP_SUID_PROC_ARGS 0
-#define GLIBTOP_SUID_PROC_MAP 0
-#define GLIBTOP_SUID_NETLOAD 0
-#define GLIBTOP_SUID_NETLIST 0
-#define GLIBTOP_SUID_PROC_WD 0
-#define GLIBTOP_SUID_PPP 0
-#define GLIBTOP_SUID_PROC_FILE 0
-
-#endif /* __LINUX__GLIBTOP_SERVER_H__ */
diff --git a/sysdeps/linux/loadavg.c b/sysdeps/linux/loadavg.c
deleted file mode 100644
index 98a612b0..00000000
--- a/sysdeps/linux/loadavg.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/error.h>
-#include <glibtop/loadavg.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_loadavg =
-(1L << GLIBTOP_LOADAVG_LOADAVG);
-
-static const unsigned long _glibtop_sysdeps_loadavg_tasks =
-(1L << GLIBTOP_LOADAVG_NR_RUNNING) +
-(1L << GLIBTOP_LOADAVG_NR_TASKS) +
-(1L << GLIBTOP_LOADAVG_LAST_PID);
-
-/* Init function. */
-
-void
-_glibtop_init_loadavg_s (glibtop *server)
-{
- server->sysdeps.loadavg = _glibtop_sysdeps_loadavg;
-}
-
-/* Provides load load averange. */
-
-#define FILENAME "/proc/loadavg"
-
-void
-glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
-{
- char buffer [BUFSIZ], *p, *old;
-
- memset (buf, 0, sizeof (glibtop_loadavg));
-
- file_to_buffer(server, buffer, sizeof buffer, FILENAME);
-
- buf->loadavg [0] = g_ascii_strtod (buffer, &p);
- buf->loadavg [1] = g_ascii_strtod (p, &p);
- buf->loadavg [2] = g_ascii_strtod (p, &p);
-
- buf->flags = _glibtop_sysdeps_loadavg;
-
- p = next_token(p);
-
- /* Older Linux versions don't have the nr_running/nr_tasks fields. */
-
- old = p;
- while (*p) {
- if (*p == '/')
- break;
- if (!isdigit (*p))
- return;
- p++;
- }
-
- buf->nr_running = strtoull (old, &p, 0); p++;
- buf->nr_tasks = strtoull (p, &p, 0);
- buf->last_pid = strtoull (p, &p, 0);
-
- buf->flags |= _glibtop_sysdeps_loadavg_tasks;
-}
diff --git a/sysdeps/linux/mem.c b/sysdeps/linux/mem.c
deleted file mode 100644
index 7b081de1..00000000
--- a/sysdeps/linux/mem.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/error.h>
-#include <glibtop/mem.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_mem =
-(1L << GLIBTOP_MEM_TOTAL) + (1L << GLIBTOP_MEM_USED) +
-(1L << GLIBTOP_MEM_FREE) + (1L << GLIBTOP_MEM_SHARED) +
-(1L << GLIBTOP_MEM_BUFFER) + (1L << GLIBTOP_MEM_CACHED) +
-(1L << GLIBTOP_MEM_USER);
-
-/* Init function. */
-
-void
-_glibtop_init_mem_s (glibtop *server)
-{
- server->sysdeps.mem = _glibtop_sysdeps_mem;
-}
-
-/* Provides information about memory usage. */
-
-#define FILENAME "/proc/meminfo"
-
-void
-glibtop_get_mem_s (glibtop *server, glibtop_mem *buf)
-{
- char buffer [BUFSIZ];
-
- memset(buf, 0, sizeof *buf);
-
- file_to_buffer(server, buffer, sizeof buffer, FILENAME);
-
- buf->total = get_scaled(buffer, "MemTotal:");
- buf->free = get_scaled(buffer, "MemFree:");
- buf->used = buf->total - buf->free;
- buf->shared = 0;
- buf->buffer = get_scaled(buffer, "Buffers:");
- buf->cached = get_scaled(buffer, "Cached:");
-
- buf->user = buf->total - buf->free - buf->cached - buf->buffer;
- buf->flags = _glibtop_sysdeps_mem;
-}
diff --git a/sysdeps/linux/msg_limits.c b/sysdeps/linux/msg_limits.c
deleted file mode 100644
index 69c3ad41..00000000
--- a/sysdeps/linux/msg_limits.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/msg_limits.h>
-
-#include <sys/ipc.h>
-#include <sys/msg.h>
-
-static const unsigned long _glibtop_sysdeps_msg_limits =
-(1L << GLIBTOP_IPC_MSGPOOL) + (1L << GLIBTOP_IPC_MSGMAP) +
-(1L << GLIBTOP_IPC_MSGMAX) + (1L << GLIBTOP_IPC_MSGMNB) +
-(1L << GLIBTOP_IPC_MSGMNI) + (1L << GLIBTOP_IPC_MSGSSZ) +
-(1L << GLIBTOP_IPC_MSGTQL);
-
-/* Init function. */
-
-void
-_glibtop_init_msg_limits_s (glibtop *server)
-{
- server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf)
-{
- struct msginfo msginfo;
-
- memset (buf, 0, sizeof (glibtop_msg_limits));
-
- msgctl (0, IPC_INFO, (void*) &msginfo);
-
- buf->msgpool = msginfo.msgpool;
- buf->msgmap = msginfo.msgmap;
- buf->msgmax = msginfo.msgmax;
- buf->msgmnb = msginfo.msgmnb;
- buf->msgmni = msginfo.msgmni;
- buf->msgssz = msginfo.msgssz;
- buf->msgtql = msginfo.msgtql;
- buf->flags = _glibtop_sysdeps_msg_limits;
-}
diff --git a/sysdeps/linux/netlist.c b/sysdeps/linux/netlist.c
deleted file mode 100644
index 0e579c26..00000000
--- a/sysdeps/linux/netlist.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/netlist.h>
-#include <glibtop/error.h>
-
-#include <stdio.h>
-
-
-static const unsigned long _glibtop_sysdeps_netlist = (1 << GLIBTOP_NETLIST_NUMBER);
-
-/* Init function. */
-
-void
-_glibtop_init_netlist_s (glibtop *server)
-{
- server->sysdeps.netlist = _glibtop_sysdeps_netlist;
-}
-
-
-char**
-glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf)
-{
- char line[1024];
- FILE *f;
- GPtrArray *devices;
-
- memset (buf, 0, sizeof (glibtop_netlist));
-
- f = fopen("/proc/net/dev", "r");
-
- if(!f)
- {
- glibtop_warn_io_r (server, "cannot open \"/proc/net/dev\"");
- return NULL;
- }
-
- devices = g_ptr_array_new();
-
- while(fgets(line, sizeof line, f))
- {
- char *sep = strchr(line, ':');
-
- if(!sep) continue;
-
- *sep = '\0'; /* truncate : we only need the name */
-
- g_strstrip(line);
- g_ptr_array_add(devices, g_strdup(line));
- buf->number++;
- }
-
- fclose(f);
-
- buf->flags = _glibtop_sysdeps_netlist;
-
- g_ptr_array_add(devices, NULL);
-
- return (char**) g_ptr_array_free(devices, FALSE);
-}
-
diff --git a/sysdeps/linux/netload.c b/sysdeps/linux/netload.c
deleted file mode 100644
index c275db2e..00000000
--- a/sysdeps/linux/netload.c
+++ /dev/null
@@ -1,561 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/netload.h>
-
-#include "glibtop_private.h"
-
-#include <errno.h>
-#include <string.h>
-
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-
-#if !defined (_LIBC) && defined (__GNU_LIBRARY__) && __GNU_LIBRARY__ > 1
-/* GNU LibC */
-#include <net/if.h>
-#include <netinet/ip_icmp.h>
-#include <netinet/in.h>
-#include <netinet/ip.h>
-#include <netinet/tcp.h>
-#include <netinet/udp.h>
-#include <net/if.h>
-#else /* Libc 5 */
-#include <linux/if.h>
-#include <linux/in.h>
-#include <linux/ip.h>
-#include <linux/icmp.h>
-#include <linux/tcp.h>
-#include <linux/udp.h>
-#endif
-
-
-#ifdef HAVE_IFADDRS_H
-/* needed for IPV6 support */
-
-#include <ifaddrs.h>
-
-#ifndef IN6_IS_ADDR_GLOBAL
-#define IN6_IS_ADDR_GLOBAL(a) \
- (((((__const uint8_t *) (a))[0] & 0xff) == 0x3f \
- || (((__const uint8_t *) (a))[0] & 0xff) == 0x20))
-#endif
-#endif /* HAVE_IFADDRS_H */
-
-
-#define _GLIBTOP_IP_FW_ACCTIN 0x1000 /* Account incoming packets only. */
-#define _GLIBTOP_IP_FW_ACCTOUT 0x2000 /* Account outgoing packets only. */
-
-static const unsigned long _glibtop_sysdeps_netload =
-(1L << GLIBTOP_NETLOAD_ERRORS_IN) +
-(1L << GLIBTOP_NETLOAD_ERRORS_OUT) +
-(1L << GLIBTOP_NETLOAD_COLLISIONS);
-
-static const unsigned long _glibtop_sysdeps_netload_data =
-(1L << GLIBTOP_NETLOAD_ADDRESS) +
-(1L << GLIBTOP_NETLOAD_SUBNET) +
-(1L << GLIBTOP_NETLOAD_MTU);
-
-static const unsigned long _glibtop_sysdeps_netload_bytes =
-(1L << GLIBTOP_NETLOAD_BYTES_IN) +
-(1L << GLIBTOP_NETLOAD_BYTES_OUT) +
-(1L << GLIBTOP_NETLOAD_BYTES_TOTAL);
-
-static const unsigned long _glibtop_sysdeps_netload_packets =
-(1L << GLIBTOP_NETLOAD_PACKETS_IN) +
-(1L << GLIBTOP_NETLOAD_PACKETS_OUT) +
-(1L << GLIBTOP_NETLOAD_PACKETS_TOTAL);
-
-static const unsigned long _glibtop_sysdeps_netload_total =
-(1L << GLIBTOP_NETLOAD_PACKETS_TOTAL) +
-(1L << GLIBTOP_NETLOAD_BYTES_TOTAL);
-
-static const unsigned long _glibtop_sysdeps_netload_in =
-(1L << GLIBTOP_NETLOAD_PACKETS_TOTAL) +
-(1L << GLIBTOP_NETLOAD_BYTES_TOTAL) +
-(1L << GLIBTOP_NETLOAD_PACKETS_IN) +
-(1L << GLIBTOP_NETLOAD_BYTES_IN);
-
-static const unsigned long _glibtop_sysdeps_netload_out =
-(1L << GLIBTOP_NETLOAD_PACKETS_TOTAL) +
-(1L << GLIBTOP_NETLOAD_BYTES_TOTAL) +
-(1L << GLIBTOP_NETLOAD_PACKETS_OUT) +
-(1L << GLIBTOP_NETLOAD_BYTES_OUT);
-
-static const unsigned long _glibtop_sysdeps_netload_6 =
-(1L << GLIBTOP_NETLOAD_ADDRESS6) +
-(1L << GLIBTOP_NETLOAD_PREFIX6) +
-(1L << GLIBTOP_NETLOAD_SCOPE6);
-
-/* Init function. */
-
-void
-_glibtop_init_netload_s (glibtop *server)
-{
- server->sysdeps.netload = _glibtop_sysdeps_netload |
- _glibtop_sysdeps_netload_data |
- _glibtop_sysdeps_netload_bytes |
- _glibtop_sysdeps_netload_packets;
-}
-
-
-#ifdef HAVE_IFADDRS_H
-
-static void get_ipv6(glibtop *server, glibtop_netload *buf,
- const char *interface)
-{
- struct ifaddrs *ifa0, *ifr6;
-
- if(getifaddrs (&ifa0) != 0)
- {
- glibtop_warn_r(server, "getifaddrs failed : %s", g_strerror(errno));
- return;
- }
-
- for (ifr6 = ifa0; ifr6; ifr6 = ifr6->ifa_next) {
- if (strcmp (ifr6->ifa_name, interface) == 0
- && ifr6->ifa_addr != NULL
- && ifr6->ifa_addr->sa_family == AF_INET6)
- break;
- }
-
- if(!ifr6) goto free_ipv6;
-
- memcpy(buf->address6,
- &((struct sockaddr_in6 *) ifr6->ifa_addr)->sin6_addr,
- 16);
-
- memcpy(buf->prefix6,
- &((struct sockaddr_in6 *) ifr6->ifa_netmask)->sin6_addr,
- 16);
-
-
- if (IN6_IS_ADDR_LINKLOCAL (buf->address6))
- buf->scope6 = GLIBTOP_IF_IN6_SCOPE_LINK;
-
- else if (IN6_IS_ADDR_SITELOCAL (buf->address6))
- buf->scope6 = GLIBTOP_IF_IN6_SCOPE_SITE;
-
- else if (IN6_IS_ADDR_GLOBAL (buf->address6)
- || IN6_IS_ADDR_MC_ORGLOCAL (buf->address6)
- || IN6_IS_ADDR_V4COMPAT (buf->address6)
- || IN6_IS_ADDR_MULTICAST (buf->address6)
- || IN6_IS_ADDR_UNSPECIFIED (buf->address6)
- )
- buf->scope6 = GLIBTOP_IF_IN6_SCOPE_GLOBAL;
-
- else if (IN6_IS_ADDR_LOOPBACK (buf->address6))
- buf->scope6 = GLIBTOP_IF_IN6_SCOPE_HOST;
-
- else
- buf->scope6 = GLIBTOP_IF_IN6_SCOPE_UNKNOWN;
-
- buf->flags |= _glibtop_sysdeps_netload_6;
-
- free_ipv6:
- freeifaddrs(ifa0);
-}
-
-#endif /* HAVE_IFADDRS_H */
-
-
-
-
-static gboolean
-read_value(glibtop *server,
- const char *device,
- const char *filename,
- guint64 *value)
-{
- char buffer[BUFSIZ];
-
- if(try_file_to_buffer(buffer,
- sizeof buffer,
- "/sys/class/net/%s/statistics/%s",
- device,
- filename))
- {
- glibtop_warn_io_r(server,
- "Failed to open \"/sys/class/net/%s/statistics/%s\"",
- device,
- filename);
-
- return FALSE;
- }
-
- *value = strtoull(buffer, NULL, 10);
- return TRUE;
-}
-
-
-
-
-static void
-linux_2_6_stats(glibtop *server,
- glibtop_netload *buf,
- const char *dev)
-{
- if(read_value(server, dev, "rx_packets", &buf->packets_in))
- buf->flags |= (1 << GLIBTOP_NETLOAD_PACKETS_IN);
-
- if(read_value(server, dev, "tx_packets", &buf->packets_out))
- buf->flags |= (1 << GLIBTOP_NETLOAD_PACKETS_OUT);
-
- buf->packets_total = buf->packets_in + buf->packets_out;
- buf->flags |= (1 << GLIBTOP_NETLOAD_PACKETS_TOTAL);
-
-
- if(read_value(server, dev, "rx_bytes", &buf->bytes_in))
- buf->flags |= (1 << GLIBTOP_NETLOAD_BYTES_IN);
-
- if(read_value(server, dev, "tx_bytes", &buf->bytes_out))
- buf->flags |= (1 << GLIBTOP_NETLOAD_BYTES_OUT);
-
- buf->bytes_total = buf->bytes_in + buf->bytes_out;
- buf->flags |= (1 << GLIBTOP_NETLOAD_BYTES_TOTAL);
-
-
- if(read_value(server, dev, "rx_errors", &buf->errors_in))
- buf->flags |= (1 << GLIBTOP_NETLOAD_ERRORS_IN);
-
- if(read_value(server, dev, "tx_errors", &buf->errors_out))
- buf->flags |= (1 << GLIBTOP_NETLOAD_ERRORS_OUT);
-
- buf->errors_total = buf->errors_in + buf->errors_out;
- buf->flags |= (1 << GLIBTOP_NETLOAD_ERRORS_TOTAL);
-
-
- if(read_value(server, dev, "collisions", &buf->collisions))
- buf->flags |= (1 << GLIBTOP_NETLOAD_COLLISIONS);
-}
-
-
-
-
-static void
-linux_2_0_stats(glibtop *server,
- glibtop_netload *buf,
- const char *interface)
-{
- FILE *f;
- char buffer[BUFSIZ];
-
- f = fopen ("/proc/net/ip_acct", "r");
-
- if (!f) {
- glibtop_warn_io_r (server,
- "Failed to open \"/proc/net/ip_acct\"");
- return;
- }
-
- /* Skip over the header line. */
- fgets (buffer, BUFSIZ-1, f);
-
- while (fgets (buffer, BUFSIZ-1, f)) {
- unsigned long long flags, packets, bytes;
- char *p, *dev;
-
- /* Skip over the network thing. */
- dev = skip_token (buffer) + 1;
- p = skip_token (dev);
- *p++ = 0;
-
- if (strcmp (dev, interface))
- continue;
-
- p = skip_token (p);
-
- flags = strtoull (p, &p, 16);
-
- p = skip_multiple_token (p, 2);
-
- packets = strtoull (p, &p, 0);
- bytes = strtoull (p, &p, 0);
-
- if (flags & _GLIBTOP_IP_FW_ACCTIN) {
- /* Incoming packets only. */
-
- buf->packets_total += packets;
- buf->packets_in += packets;
-
- buf->bytes_total += bytes;
- buf->bytes_in += bytes;
-
- buf->flags |= _glibtop_sysdeps_netload_in;
-
- } else if (flags & _GLIBTOP_IP_FW_ACCTOUT) {
- /* Outgoing packets only. */
-
- buf->packets_total += packets;
- buf->packets_out += packets;
-
- buf->bytes_total += bytes;
- buf->bytes_out += bytes;
-
- buf->flags |= _glibtop_sysdeps_netload_out;
-
- } else {
- /* Only have total values. */
-
- buf->packets_total += packets;
- buf->bytes_total += bytes;
-
- buf->flags |= _glibtop_sysdeps_netload_total;
- }
- }
-
- fclose (f);
-}
-
-
-
-
-static void
-linux_2_4_stats(glibtop *server,
- glibtop_netload *buf,
- const char *interface)
-{
- char buffer [BUFSIZ], *p;
- int have_bytes, fields;
- FILE *f;
-
- /* Ok, either IP accounting is not enabled in the kernel or
- * it was not enabled for the requested interface. */
-
- f = fopen ("/proc/net/dev", "r");
- if (!f) {
- glibtop_warn_io_r(server,
- "Failed to open \"/proc/net/dev\"");
- return;
- }
-
- /* Skip over the header line. */
- fgets (buffer, BUFSIZ-1, f);
- fgets (buffer, BUFSIZ-1, f);
-
- /* Starting with 2.1.xx (don't know exactly which version)
- * /proc/net/dev contains both byte and package counters. */
-
- p = strchr (buffer, '|');
- if (!p) {
- fclose (f);
- return;
- }
-
- /* Do we already have byte counters ? */
- have_bytes = strncmp (++p, "bytes", 5) == 0;
-
- /* Count remaining 'Receive' fields so we know where
- * the first 'Transmit' field starts. */
-
- fields = 0;
- while (*p != '|') {
- if (!isspace (*p++)) continue;
- while (isspace (*p++)) ;
- fields++;
- }
-
- /* Should never happen. */
- if (fields < 2) {
- fclose (f);
- return;
- }
- fields--;
-
- while (fgets (buffer, BUFSIZ-1, f)) {
- char *p, *dev;
-
- dev = buffer;
- while (isspace (*dev)) dev++;
-
- p = strchr (dev, ':');
- if (!p) continue;
- *p++ = 0;
-
- /* If it's not a digit, then it's most likely an error
- * message like 'No statistics available'. */
- while (isspace (*p)) p++;
- if (!isdigit (*p)) continue;
-
- if (strcmp (dev, interface))
- continue;
-
- /* Ok, we've found the interface */
-
- /* Only read byte counts if we really have them. */
-
- if (have_bytes) {
- buf->bytes_in = strtoull (p, &p, 0);
- fields--;
- }
-
- buf->packets_in = strtoull (p, &p, 0);
- buf->errors_in = strtoull (p, &p, 0);
-
- p = skip_multiple_token (p, fields);
-
- if (have_bytes)
- buf->bytes_out = strtoull (p, &p, 0);
-
- buf->packets_out = strtoull (p, &p, 0);
- buf->errors_out = strtoull (p, &p, 0);
-
- p = skip_multiple_token (p, 2);
-
- buf->collisions = strtoull (p, &p, 0);
-
- /* Compute total valules. */
-
- buf->bytes_total = buf->bytes_in + buf->bytes_out;
- buf->packets_total = buf->packets_in + buf->packets_out;
-
- /* And now the flags. */
-
- buf->flags |= _glibtop_sysdeps_netload;
- buf->flags |= _glibtop_sysdeps_netload_packets;
-
- if (have_bytes)
- buf->flags |= _glibtop_sysdeps_netload_bytes;
-
- break; /* finished */
- }
-
- fclose (f);
-}
-
-
-
-
-/* Provides network statistics. */
-
-void
-glibtop_get_netload_s (glibtop *server, glibtop_netload *buf,
- const char *interface)
-{
- int skfd;
- memset (buf, 0, sizeof (glibtop_netload));
-
- skfd = socket (AF_INET, SOCK_DGRAM, 0);
- if (skfd) {
- struct ifreq ifr;
-
- g_strlcpy (ifr.ifr_name, interface, sizeof ifr.ifr_name);
- if (!ioctl (skfd, SIOCGIFFLAGS, &ifr)) {
- const unsigned long long flags = ifr.ifr_flags;
-
- buf->flags |= (1L << GLIBTOP_NETLOAD_IF_FLAGS);
-
- if (flags & IFF_UP)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_UP);
-
- if (flags & IFF_BROADCAST)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_BROADCAST);
-
- if (flags & IFF_DEBUG)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_DEBUG);
-
- if (flags & IFF_LOOPBACK)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_LOOPBACK);
-
- if (flags & IFF_POINTOPOINT)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_POINTOPOINT);
-
- if (flags & IFF_RUNNING)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_RUNNING);
-
- if (flags & IFF_NOARP)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_NOARP);
-
- if (flags & IFF_PROMISC)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_PROMISC);
-
- if (flags & IFF_ALLMULTI)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_ALLMULTI);
-
- if (flags & IFF_MULTICAST)
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_MULTICAST);
- }
-
- g_strlcpy (ifr.ifr_name, interface, sizeof ifr.ifr_name);
- if (!ioctl(skfd, /* SIOCGIWNAME */ 0x8B01, &ifr))
- buf->if_flags |= (1L << GLIBTOP_IF_FLAGS_WIRELESS);
-
- g_strlcpy (ifr.ifr_name, interface, sizeof ifr.ifr_name);
- if (!ioctl (skfd, SIOCGIFADDR, &ifr)) {
- buf->address = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr.s_addr;
- buf->flags |= (1L << GLIBTOP_NETLOAD_ADDRESS);
- }
-
- g_strlcpy (ifr.ifr_name, interface, sizeof ifr.ifr_name);
- if (!ioctl (skfd, SIOCGIFNETMASK, &ifr)) {
- buf->subnet = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr.s_addr;
- buf->flags |= (1L << GLIBTOP_NETLOAD_SUBNET);
- }
-
- g_strlcpy (ifr.ifr_name, interface, sizeof ifr.ifr_name);
- if (!ioctl (skfd, SIOCGIFMTU, &ifr)) {
- buf->mtu = ifr.ifr_mtu;
- buf->flags |= (1L << GLIBTOP_NETLOAD_MTU);
- }
-
- g_strlcpy (ifr.ifr_name, interface, sizeof ifr.ifr_name);
- if (!ioctl (skfd, SIOCGIFHWADDR, &ifr)) {
- memcpy(buf->hwaddress, &ifr.ifr_hwaddr.sa_data, 8);
- buf->flags |= (1L << GLIBTOP_NETLOAD_HWADDRESS);
- }
-
- close (skfd);
- }
-
-
- /*
- * Statistics
- */
-
- /* Linux 2.1.114 - don't know where exactly this was added, but
- * recent kernels have byte count in /proc/net/dev so we don't
- * need IP accounting.
- */
-
- if (server->os_version_code < LINUX_VERSION_CODE(2, 1, 14)) {
- linux_2_0_stats(server, buf, interface);
- }
- else if (server->os_version_code > LINUX_VERSION_CODE(2, 6, 0)
- && has_sysfs()) {
- linux_2_6_stats(server, buf, interface);
- }
- else {
- /* 2.4 and 2.6 without /sys (?$£Z¥!) */
- linux_2_4_stats(server, buf, interface);
- }
-
-#ifdef HAVE_IFADDRS_H
- get_ipv6(server, buf, interface);
-#endif /* HAVE_IFADDRS_H */
-}
-
-
-
diff --git a/sysdeps/linux/open.c b/sysdeps/linux/open.c
deleted file mode 100644
index b39b99ee..00000000
--- a/sysdeps/linux/open.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/cpu.h>
-#include <glibtop/open.h>
-#include <glibtop/error.h>
-
-#include "glibtop_private.h"
-
-/* =====================================================
- * Linux kernel version information for procps utilities
- * Copyright (c) 1996 Charles Blake <cblake@bbn.com>
- */
-#include <sys/utsname.h>
-
-static void set_linux_version(glibtop *server)
-{
- struct utsname uts;
- unsigned x = 0, y = 0, z = 0; /* cleared in case sscanf() < 3 */
-
- if (uname(&uts) == -1) /* failure most likely implies impending death */
- glibtop_error_r(server, "uname() failed");
-
- if (sscanf(uts.release, "%u.%u.%u", &x, &y, &z) < 3)
- glibtop_warn_r(server,
- "Non-standard uts for running kernel:\n"
- "release %s=%u.%u.%u gives version code %d\n",
- uts.release, x, y, z, LINUX_VERSION_CODE(x,y,z));
-
- if (LINUX_VERSION_CODE(x, y, z) >= LINUX_VERSION_CODE(2, 6, 0)
- && !has_sysfs())
- glibtop_warn_r(server,
- "You're running a 2.6 kernel without /sys."
- "You should mount it.");
-
- server->os_version_code = LINUX_VERSION_CODE(x, y, z);
-}
-
-/* ======================================================= */
-
-/* Opens pipe to gtop server. Returns 0 on success and -1 on error. */
-
-#define FILENAME "/proc/stat"
-
-void
-glibtop_open_s (glibtop *server, const char *program_name,
- const unsigned long features,
- const unsigned flags)
-{
- char buffer [BUFSIZ], *p = buffer;
-
- server->name = program_name;
-
- set_linux_version(server);
-
- file_to_buffer(server, buffer, sizeof buffer, FILENAME);
-
- p = skip_line(p); /* cpu */
-
- for (server->real_ncpu = 0; /* nop */; server->real_ncpu++) {
-
- if (!check_cpu_line(server, p, server->real_ncpu)) {
- server->real_ncpu--;
- break;
- }
-
- p = skip_line(p);
- }
-
- server->ncpu = MIN(GLIBTOP_NCPU - 1, server->real_ncpu);
-
- if (server->real_ncpu != server->ncpu) {
- glibtop_warn_r(server,
- "This machine has %d CPUs, "
- "%d are being monitored.",
- server->real_ncpu + 1,
- server->ncpu + 1);
- }
-}
diff --git a/sysdeps/linux/ppp.c b/sysdeps/linux/ppp.c
deleted file mode 100644
index a4db1d82..00000000
--- a/sysdeps/linux/ppp.c
+++ /dev/null
@@ -1,197 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/ppp.h>
-
-#include <sys/ioctl.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
-#include <ctype.h>
-
-#include <glib.h>
-
-#ifdef HAVE_ISDN_H
-#include <linux/isdn.h>
-#else
-#define ISDN_MAX_CHANNELS 64
-#define IIOCGETCPS _IO('I',21)
-#endif /* HAVE_ISDN_H */
-
-static const unsigned long _glibtop_sysdeps_ppp =
-(1L << GLIBTOP_PPP_STATE) + (1L << GLIBTOP_PPP_BYTES_IN) +
-(1L << GLIBTOP_PPP_BYTES_OUT);
-
-/* Init function. */
-
-void
-_glibtop_init_ppp_s (glibtop *server)
-{
- server->sysdeps.ppp = _glibtop_sysdeps_ppp;
-}
-
-static gboolean
-get_ISDN_stats (glibtop *server, int *in, int *out)
-{
- unsigned long isdn_stats[2 * ISDN_MAX_CHANNELS], *ptr;
- int fd;
-
- *in = *out = 0;
-
- fd = open ("/dev/isdninfo", O_RDONLY);
- if (fd < 0) {
- return FALSE;
- }
-
- if ((ioctl (fd, IIOCGETCPS, isdn_stats) < 0) && (errno != 0)) {
- close(fd);
- return FALSE;
- }
-
- for (ptr = isdn_stats;
- ptr != (isdn_stats + G_N_ELEMENTS(isdn_stats));
- /* NOOP */) {
- *in += *ptr++; *out += *ptr++;
- }
-
- close (fd);
- return TRUE;
-}
-
-static gboolean is_ISDN_on (glibtop *server, int *online)
-{
- FILE *f = NULL;
- char buffer [BUFSIZ], *p;
- int i;
-
- /* Perhaps I should try to explain this code a little bit.
- *
- * ------------------------------------------------------------
- * This is from the manpage of isdninfo(4):
- *
- * DESCRIPTION
- * /dev/isdninfo is a character device with major number 45
- * and minor number 255. It delivers status information from
- * the Linux ISDN subsystem to user level.
- *
- * DATA FORMAT
- * When reading from this device, the current status of the
- * Linux ISDN subsystem is delivered in 6 lines of text. Each
- * line starts with a tag string followed by a colon and
- * whitespace. After that the status values are appended sep-
- * arated by whitespace.
- *
- * flags is the tag of line 5. In this line for every driver
- * slot, it's B-Channel status is shown. If no driver
- * is registered in a slot, a ? is shown. For every
- * established B-Channel of the driver, a bit is set
- * in the shown value. The driver's first channel is
- * mapped to bit 0, the second channel to bit 1 and so
- * on.
- * ------------------------------------------------------------
- *
- * So we open /dev/isdninfo, discard the first four lines of text
- * and then check whether we have something that is not `0' or `?'
- * in one of the flags fields.
- *
- * Sounds complicated, but I don't see any other way to check whether
- * we are connected. Also, this is the method some other ISDN tools
- * for Linux use.
- *
- * Martin
- */
-
- f = fopen ("/dev/isdninfo", "r");
-
- if (!f) return FALSE;
-
- for (i = 0; i < 5; i++) {
- if (fgets (buffer, BUFSIZ, f) == NULL) {
- fclose (f);
- return FALSE;
- }
- }
-
- if (strncmp (buffer, "flags:", 6)) {
- fclose (f);
- return FALSE;
- }
-
- p = buffer+6;
-
- while (*p) {
- char *end = p;
-
- if (isspace (*p)) {
- p++;
- continue;
- }
-
- for (end = p; *end && !isspace (*end); end++)
- ;
-
- if (*end == 0)
- break;
- else
- *end = 0;
-
- if (!strcmp (p, "?") || !strcmp (p, "0")) {
- p = end+1;
- continue;
- }
-
- fclose (f);
-
- *online = TRUE;
- return TRUE;
- }
-
- fclose (f);
-
- *online = FALSE;
- return TRUE;
-}
-
-/* Provides PPP/ISDN information. */
-
-void
-glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device)
-{
- int in, out, online;
-
- memset (buf, 0, sizeof (glibtop_ppp));
-
- if (is_ISDN_on (server, &online)) {
- buf->state = online ? GLIBTOP_PPP_STATE_ONLINE :
- GLIBTOP_PPP_STATE_HANGUP;
- buf->flags |= (1L << GLIBTOP_PPP_STATE);
- }
-
- if (get_ISDN_stats (server, &in, &out)) {
- buf->bytes_in = in;
- buf->bytes_out = out;
- buf->flags |= (1L << GLIBTOP_PPP_BYTES_IN) |
- (1L << GLIBTOP_PPP_BYTES_OUT);
- }
-}
diff --git a/sysdeps/linux/procaffinity.c b/sysdeps/linux/procaffinity.c
deleted file mode 100644
index e69de29b..00000000
--- a/sysdeps/linux/procaffinity.c
+++ /dev/null
diff --git a/sysdeps/linux/procargs.c b/sysdeps/linux/procargs.c
deleted file mode 100644
index 228728a4..00000000
--- a/sysdeps/linux/procargs.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procargs.h>
-
-static const unsigned long _glibtop_sysdeps_proc_args =
-(1L << GLIBTOP_PROC_ARGS_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_args_s (glibtop *server)
-{
- server->sysdeps.proc_args = _glibtop_sysdeps_proc_args;
-}
-
-/* Provides detailed information about a process. */
-
-char *
-glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len)
-{
- char filename[48]; /* magiv */
-
- char *args;
- gsize length;
- GError *error = NULL;
-
- memset (buf, 0, sizeof (glibtop_proc_args));
-
- sprintf (filename, "/proc/%d/cmdline", pid);
-
- if(!g_file_get_contents(filename, &args, &length, &error)) {
- g_error_free(error);
- buf->size = 0;
- return NULL;
- }
-
- if(max_len && max_len < length) {
- args = g_realloc(args, max_len);
- args[max_len - 1] = '\0';
- length = max_len;
- }
-
- buf->size = length;
- buf->flags = _glibtop_sysdeps_proc_args;
-
- return args;
-}
diff --git a/sysdeps/linux/prockernel.c b/sysdeps/linux/prockernel.c
deleted file mode 100644
index 258fa7e8..00000000
--- a/sysdeps/linux/prockernel.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/prockernel.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_proc_kernel =
-(1L << GLIBTOP_PROC_KERNEL_K_FLAGS) + (1L << GLIBTOP_PROC_KERNEL_MIN_FLT) +
-(1L << GLIBTOP_PROC_KERNEL_MAJ_FLT) + (1L << GLIBTOP_PROC_KERNEL_CMIN_FLT) +
-(1L << GLIBTOP_PROC_KERNEL_CMAJ_FLT) + (1L << GLIBTOP_PROC_KERNEL_KSTK_ESP) +
-(1L << GLIBTOP_PROC_KERNEL_KSTK_EIP) + (1L << GLIBTOP_PROC_KERNEL_WCHAN);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_kernel_s (glibtop *server)
-{
- server->sysdeps.proc_kernel = _glibtop_sysdeps_proc_kernel;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf, pid_t pid)
-{
- char buffer [BUFSIZ], *p;
-
- memset (buf, 0, sizeof (glibtop_proc_kernel));
-
- if (proc_stat_to_buffer(buffer, sizeof buffer, pid))
- return;
-
- p = proc_stat_after_cmd (buffer);
- if (!p) return;
-
- p = skip_multiple_token (p, 6);
-
- buf->k_flags = strtoull (p, &p, 0);
- buf->min_flt = strtoull (p, &p, 0);
- buf->cmin_flt = strtoull (p, &p, 0);
- buf->maj_flt = strtoull (p, &p, 0);
- buf->cmaj_flt = strtoull (p, &p, 0);
-
- p = skip_multiple_token (p, 15);
-
- buf->kstk_esp = strtoull (p, &p, 0);
- buf->kstk_eip = strtoull (p, &p, 0);
-
- p = skip_multiple_token (p, 4);
-
- buf->nwchan = strtoull (p, &p, 0);
-
- buf->flags = _glibtop_sysdeps_proc_kernel;
-}
diff --git a/sysdeps/linux/proclist.c b/sysdeps/linux/proclist.c
deleted file mode 100644
index 423865bd..00000000
--- a/sysdeps/linux/proclist.c
+++ /dev/null
@@ -1,169 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/proclist.h>
-
-#include <glibtop/procuid.h>
-#include <glibtop/procstate.h>
-
-#include <sys/stat.h>
-#include <unistd.h>
-#include <dirent.h>
-#include <ctype.h>
-
-static const unsigned long _glibtop_sysdeps_proclist =
-(1L << GLIBTOP_PROCLIST_TOTAL) + (1L << GLIBTOP_PROCLIST_NUMBER) +
-(1L << GLIBTOP_PROCLIST_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proclist_s (glibtop *server)
-{
- server->sysdeps.proclist = _glibtop_sysdeps_proclist;
-}
-
-/* Fetch list of currently running processes.
- *
- * The interface of this function is a little bit different from the others:
- * buf->flags is only set if the call succeeded, in this case pids_chain,
- * a list of the pids of all currently running processes is returned,
- * buf->number is the number of elements of this list and buf->size is
- * the size of one single element (sizeof (unsigned)). The total size is
- * stored in buf->total.
- *
- * The calling function has to free the memory to which a pointer is returned.
- *
- * On error, NULL is returned and buf->flags is zero. */
-
-pid_t*
-glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg)
-{
- DIR *proc;
- struct dirent *entry;
- GArray *pids;
- glibtop_proc_uid procuid;
- glibtop_proc_state procstate;
- struct stat statb;
-
- memset (buf, 0, sizeof (glibtop_proclist));
-
- proc = opendir ("/proc");
- if (!proc) return NULL;
-
- if(stat("/proc", &statb)) return NULL;
-
- pids = g_array_sized_new(FALSE, FALSE, sizeof(pid_t), statb.st_nlink);
-
- /* read every every entry in /proc */
-
- while((entry = readdir (proc))) {
- pid_t pid;
-
- if (entry->d_type != DT_DIR)
- continue;
-
- if (!(pid = strtoul(entry->d_name, NULL, 10)))
- continue;
-
- switch (which & GLIBTOP_KERN_PROC_MASK) {
- case GLIBTOP_KERN_PROC_ALL:
- break;
- case GLIBTOP_KERN_PROC_PID:
- if ((pid_t) arg != pid)
- continue;
- break;
- case GLIBTOP_KERN_PROC_UID:
- {
- char path[32];
- struct stat path_stat;
-
- snprintf(path, sizeof path, "/proc/%u", (unsigned)pid);
-
- if (stat(path, &path_stat))
- continue;
-
- if ((uid_t) arg != path_stat.st_uid)
- continue;
- }
- break;
- case GLIBTOP_KERN_PROC_PGRP:
- /* Do you really, really need this ? */
- glibtop_get_proc_uid_s (server, &procuid, pid);
- if (procuid.flags & (1L << GLIBTOP_PROC_UID_PGRP))
- if ((int) arg != procuid.pgrp)
- continue;
- break;
- case GLIBTOP_KERN_PROC_SESSION:
- /* Do you really, really need this ? */
- glibtop_get_proc_uid_s (server, &procuid, pid);
- if (procuid.flags & (1L << GLIBTOP_PROC_UID_SESSION))
- if ((int) arg != procuid.session)
- continue;
- break;
- case GLIBTOP_KERN_PROC_TTY:
- /* Do you really, really need this ? */
- glibtop_get_proc_uid_s (server, &procuid, pid);
- if (procuid.flags & (1L << GLIBTOP_PROC_UID_TTY))
- if ((int) arg != procuid.tty)
- continue;
- break;
- case GLIBTOP_KERN_PROC_RUID:
- /* Do you really, really need this ? */
- glibtop_get_proc_uid_s (server, &procuid, pid);
- if (procuid.flags & (1L << GLIBTOP_PROC_UID_EUID))
- if ((int) arg != procuid.euid)
- continue;
- break;
- }
-
- if (which & GLIBTOP_EXCLUDE_NOTTY) {
- glibtop_get_proc_uid_s (server, &procuid, pid);
- if (procuid.flags & (1L << GLIBTOP_PROC_UID_TTY))
- if (procuid.tty == -1) continue;
- }
-
- if (which & GLIBTOP_EXCLUDE_IDLE) {
- glibtop_get_proc_state_s (server, &procstate, pid);
- if (procstate.flags & (1L << GLIBTOP_PROC_STATE_STATE))
- if (procstate.state != GLIBTOP_PROCESS_RUNNING) continue;
- }
-
- if (which & GLIBTOP_EXCLUDE_SYSTEM) {
- glibtop_get_proc_uid_s (server, &procuid, pid);
- if (procuid.flags & (1L << GLIBTOP_PROC_UID_UID))
- if (procuid.uid == 0) continue;
- }
-
- g_array_append_val(pids, pid);
- }
-
- closedir (proc);
-
- buf->flags = _glibtop_sysdeps_proclist;
- buf->size = sizeof(pid_t);
- buf->number = pids->len;
- buf->total = buf->number * buf->size;
-
- return (pid_t*)g_array_free(pids, FALSE);
-}
diff --git a/sysdeps/linux/procmap.c b/sysdeps/linux/procmap.c
deleted file mode 100644
index f5638bda..00000000
--- a/sysdeps/linux/procmap.c
+++ /dev/null
@@ -1,223 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glib.h>
-
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmap.h>
-
-#include <linux/kdev_t.h>
-#include <stddef.h>
-
-#include "glibtop_private.h"
-
-
-#define MAPS_FILE "/proc/%u/maps"
-#define SMAPS_FILE "/proc/%u/smaps"
-
-
-#define PROC_MAPS_FORMAT "%16llx-%16llx %4c %16llx %02hx:%02hx %llu%*[ ]%n"
-
-
-static const unsigned long _glibtop_sysdeps_proc_map =
-(1L << GLIBTOP_PROC_MAP_NUMBER) + (1L << GLIBTOP_PROC_MAP_TOTAL) +
-(1L << GLIBTOP_PROC_MAP_SIZE);
-
-static const unsigned long _glibtop_sysdeps_map_entry =
-(1L << GLIBTOP_MAP_ENTRY_START) + (1L << GLIBTOP_MAP_ENTRY_END) +
-(1L << GLIBTOP_MAP_ENTRY_OFFSET) + (1L << GLIBTOP_MAP_ENTRY_PERM) +
-(1L << GLIBTOP_MAP_ENTRY_INODE) + (1L << GLIBTOP_MAP_ENTRY_DEVICE) +
-(1L << GLIBTOP_MAP_ENTRY_FILENAME);
-
-static const unsigned long _glibtop_sysdeps_map_entry_smaps =
-(1UL << GLIBTOP_MAP_ENTRY_SIZE) + (1UL << GLIBTOP_MAP_ENTRY_RSS) +
-(1UL << GLIBTOP_MAP_ENTRY_SHARED_DIRTY) + (1UL << GLIBTOP_MAP_ENTRY_SHARED_CLEAN) +
-(1UL << GLIBTOP_MAP_ENTRY_PRIVATE_DIRTY) + (1UL << GLIBTOP_MAP_ENTRY_PRIVATE_CLEAN);
-
-
-/* Init function. */
-
-void
-_glibtop_init_proc_map_s (glibtop *server)
-{
- server->sysdeps.proc_map = _glibtop_sysdeps_proc_map;
-}
-
-/* Provides detailed information about a process. */
-
-
-static void
-add_smaps(glibtop *server, FILE *smaps, glibtop_map_entry *entry)
-{
-#define SMAP_OFFSET(MEMBER) offsetof(glibtop_map_entry, MEMBER)
-
- struct smap_value {
- char name[15];
- ptrdiff_t offset;
- };
-
- const struct smap_value values[] = {
- { "Size:", SMAP_OFFSET(size) },
- { "Rss:", SMAP_OFFSET(rss) },
- { "Shared_Clean:", SMAP_OFFSET(shared_clean) },
- { "Shared_Dirty:", SMAP_OFFSET(shared_dirty) },
- { "Private_Clean:", SMAP_OFFSET(private_clean) },
- { "Private_Dirty:", SMAP_OFFSET(private_dirty) }
- };
-
- size_t i;
-
- for (i = 0; i < G_N_ELEMENTS(values); ++i) {
- char line[80];
- char *offset;
- guint64 *value;
-
- if (!fgets(line, sizeof line, smaps) || !g_str_has_prefix(line, values[i].name)) {
- glibtop_warn_io_r(server,
- "Could not read smaps value %s",
- values[i].name);
- return;
- }
-
- offset = (void*) entry;
- offset += values[i].offset;
- value = (void*) offset;
-
- *value = get_scaled(line, values[i].name);
- }
-
- entry->flags |= _glibtop_sysdeps_map_entry_smaps;
-
-#undef SMAP_OFFSET
-}
-
-
-
-
-glibtop_map_entry *
-glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid)
-{
- char procfilename[GLIBTOP_MAP_FILENAME_LEN+1];
-
- /*
- default size of 100 maybe inaccurate.
- It's the average number of entry per process on my laptop
- */
-
- GArray *entry_list = g_array_sized_new(FALSE, FALSE,
- sizeof(glibtop_map_entry),
- 100);
- FILE *maps;
- const char *filename;
- gboolean has_smaps;
- char *line = NULL;
- size_t line_size = 0;
-
- memset (buf, 0, sizeof (glibtop_proc_map));
-
- has_smaps = server->os_version_code >= LINUX_VERSION_CODE(2, 6, 14);
-
- if (has_smaps)
- filename = SMAPS_FILE;
- else
- filename = MAPS_FILE;
-
- snprintf (procfilename, sizeof procfilename, filename, (unsigned)pid);
-
- if((maps = fopen (procfilename, "r")) == NULL) {
- return (glibtop_map_entry*) g_array_free(entry_list, TRUE);
- }
-
- while(TRUE)
- {
- unsigned long perm = 0;
- guint len;
- int line_end;
-
- unsigned short dev_major, dev_minor;
- guint64 start, end, offset, inode;
- char flags[4];
- char *filename;
-
- glibtop_map_entry *entry;
-
- if (getline(&line, &line_size, maps) == -1)
- break;
-
- if (sscanf(line, PROC_MAPS_FORMAT,
- &start, &end, flags, &offset,
- &dev_major, &dev_minor, &inode, &line_end) != 7)
- continue;
-
- filename = line + line_end;
- g_strstrip(filename);
-
- /* Compute access permissions. */
-
- if (flags [0] == 'r')
- perm |= GLIBTOP_MAP_PERM_READ;
-
- if (flags [1] == 'w')
- perm |= GLIBTOP_MAP_PERM_WRITE;
-
- if (flags [2] == 'x')
- perm |= GLIBTOP_MAP_PERM_EXECUTE;
-
- if (flags [3] == 's')
- perm |= GLIBTOP_MAP_PERM_SHARED;
- else if (flags [3] == 'p')
- perm |= GLIBTOP_MAP_PERM_PRIVATE;
-
- /*
- avoid copying the entry, grow by 1 and point to the last
- element.
- */
- len = entry_list->len;
- g_array_set_size(entry_list, len + 1);
- entry = &g_array_index(entry_list, glibtop_map_entry, len);
-
- entry->flags = _glibtop_sysdeps_map_entry;
- entry->start = start;
- entry->end = end;
- entry->offset = offset;
- entry->perm = perm;
- entry->device = MKDEV(dev_major, dev_minor);
- entry->inode = inode;
- g_strlcpy(entry->filename, filename, sizeof entry->filename);
-
- if (has_smaps)
- add_smaps(server, maps, entry);
-
- }
-
- free(line);
- fclose (maps);
-
- buf->flags = _glibtop_sysdeps_proc_map;
-
- buf->number = entry_list->len;
- buf->size = sizeof (glibtop_map_entry);
- buf->total = buf->number * buf->size;
-
- return (glibtop_map_entry*) g_array_free(entry_list, FALSE);
-}
diff --git a/sysdeps/linux/procmem.c b/sysdeps/linux/procmem.c
deleted file mode 100644
index 18666435..00000000
--- a/sysdeps/linux/procmem.c
+++ /dev/null
@@ -1,84 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmem.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_proc_mem =
-(1L << GLIBTOP_PROC_MEM_VSIZE) + (1L << GLIBTOP_PROC_MEM_RSS) +
-(1L << GLIBTOP_PROC_MEM_RSS_RLIM);
-
-static const unsigned long _glibtop_sysdeps_proc_mem_statm =
-(1L << GLIBTOP_PROC_MEM_SIZE) + (1L << GLIBTOP_PROC_MEM_RESIDENT) +
-(1L << GLIBTOP_PROC_MEM_SHARE);
-
-
-/* Init function. */
-
-void
-_glibtop_init_proc_mem_s (glibtop *server)
-{
- server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem |
- _glibtop_sysdeps_proc_mem_statm;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf, pid_t pid)
-{
- char buffer [BUFSIZ], *p;
- const size_t pagesize = get_page_size();
-
- memset (buf, 0, sizeof (glibtop_proc_mem));
-
- if (proc_stat_to_buffer(buffer, sizeof buffer, pid))
- return;
-
- p = proc_stat_after_cmd (buffer);
- if (!p) return;
-
- p = skip_multiple_token (p, 20);
-
- buf->vsize = strtoull (p, &p, 0);
- buf->rss = strtoull (p, &p, 0);
- buf->rss_rlim = strtoull (p, &p, 0);
-
- buf->flags = _glibtop_sysdeps_proc_mem;
-
- if (proc_statm_to_buffer(buffer, sizeof buffer, pid))
- return;
-
- buf->size = strtoull (buffer, &p, 0);
- buf->resident = strtoull (p, &p, 0);
- buf->share = strtoull (p, &p, 0);
-
- buf->size *= pagesize;
- buf->resident *= pagesize;
- buf->share *= pagesize;
- buf->rss *= pagesize;
-
- buf->flags |= _glibtop_sysdeps_proc_mem_statm;
-}
diff --git a/sysdeps/linux/procopenfiles.c b/sysdeps/linux/procopenfiles.c
deleted file mode 100644
index 6aa37c4c..00000000
--- a/sysdeps/linux/procopenfiles.c
+++ /dev/null
@@ -1,268 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- Copyright (C) 2004 Nicolás Lichtmaier
- This file is part of LibGTop 1.0.
-
- Modified by Nicolás Lichtmaier to give a process open files.
-
- 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procopenfiles.h>
-#include <sys/types.h>
-#include <dirent.h>
-#include <string.h>
-#include <stdio.h>
-#include <arpa/inet.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_proc_open_files =
-(1L << GLIBTOP_PROC_OPEN_FILES_NUMBER)|
-(1L << GLIBTOP_PROC_OPEN_FILES_TOTAL)|
-(1L << GLIBTOP_PROC_OPEN_FILES_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_open_files_s (glibtop *server)
-{
- server->sysdeps.proc_open_files = _glibtop_sysdeps_proc_open_files;
-}
-
-
-
-typedef void (*LineParser)(GHashTable *dict, const char *line);
-
-
-static void
-parse_file(const char *filename, LineParser parser, GHashTable *dict)
-{
- FILE *f;
- char *line = NULL;
- size_t size = 0;
-
- f = fopen(filename, "r");
-
- if(!f) {
- g_warning("Cannot open '%s'", filename);
- return;
- }
-
-
- /* skip the first line */
- if (getline(&line, &size, f) == -1)
- goto eof;
-
- while (getline(&line, &size, f) != -1)
- parser(dict, line);
-
- eof:
- free(line);
- fclose(f);
-}
-
-
-static GHashTable*
-get_all(const char *filename, LineParser parser)
-{
- GHashTable *dict;
-
- dict = g_hash_table_new_full(g_direct_hash, g_direct_equal,
- NULL, g_free);
-
- parse_file(filename, parser, dict);
-
- return dict;
-}
-
-
-
-
-
-struct InetSocketEntry
-{
- char host[GLIBTOP_OPEN_DEST_HOST_LEN + 1];
- int port;
-};
-
-
-static void
-inet_socket_parser(GHashTable *dict, const char* line)
-{
- struct InetSocketEntry *se;
- int sock;
- unsigned addr;
-
- se = g_malloc0(sizeof *se);
-
- if(sscanf(line, "%*d: %*x:%*x %8x:%4x %*x %*x:%*x %*x:%*x %*d %*d %*d %d",
- &addr, &se->port, &sock) != 3)
- goto error;
-
- if(!inet_ntop(AF_INET, &addr, se->host, sizeof se->host))
- goto error;
-
- g_hash_table_insert(dict, GINT_TO_POINTER(sock), se);
- return;
-
- error:
- g_free(se);
-}
-
-
-static inline GHashTable *
-get_all_inet_sockets()
-{
- return get_all("/proc/net/tcp", inet_socket_parser);
-}
-
-
-
-
-
-struct LocalSocketEntry
-{
- char name[GLIBTOP_OPEN_DEST_HOST_LEN + 1];
-};
-
-
-static void
-local_socket_parser(GHashTable *dict, const char *line)
-{
- int sock;
- struct LocalSocketEntry *use;
- char *p;
-
- use = g_malloc0(sizeof *use);
-
- /* dfaf1640: 00000003 00000000 00000000 0001 03 6457 /dev/log */
- p = skip_multiple_token(line, 6);
-
- sock = strtoul(p, &p, 10);
- g_strlcpy(use->name, p, sizeof use->name);
- g_strstrip(use->name);
- g_hash_table_insert(dict, GINT_TO_POINTER(sock), use);
-}
-
-
-static inline GHashTable *
-get_all_local_sockets()
-{
- return get_all("/proc/net/unix", local_socket_parser);
-}
-
-
-
-/* Provides detailed information about a process' open files */
-
-glibtop_open_files_entry *
-glibtop_get_proc_open_files_s (glibtop *server, glibtop_proc_open_files *buf, pid_t pid)
-{
- char fn [BUFSIZ];
- GArray *entries;
- GHashTable *inet_sockets = NULL, *local_sockets = NULL;
- struct dirent *direntry;
- DIR *dir;
-
- memset (buf, 0, sizeof (glibtop_proc_open_files));
-
- sprintf (fn, "/proc/%d/fd", pid);
-
- dir = opendir (fn);
- if (!dir) return NULL;
-
- entries = g_array_new(FALSE, FALSE, sizeof(glibtop_open_files_entry));
-
- while((direntry = readdir(dir))) {
- char tgt [BUFSIZ];
- glibtop_open_files_entry entry = {0};
-
- if(direntry->d_name[0] == '.')
- continue;
-
- g_snprintf(fn, sizeof fn, "/proc/%d/fd/%s",
- pid, direntry->d_name);
-
- if (!safe_readlink(fn, tgt, sizeof tgt))
- continue;
-
- entry.fd = atoi(direntry->d_name);
-
- if(g_str_has_prefix(tgt, "socket:["))
- {
- int sockfd;
- struct InetSocketEntry *ise;
- struct LocalSocketEntry *lse;
-
- if(!inet_sockets) inet_sockets = get_all_inet_sockets();
- if(!local_sockets) local_sockets = get_all_local_sockets();
-
- sockfd = atoi(tgt + 8);
-
- ise = g_hash_table_lookup(inet_sockets,
- GINT_TO_POINTER(sockfd));
-
- if(ise) {
- entry.type = GLIBTOP_FILE_TYPE_INETSOCKET;
- entry.info.sock.dest_port = ise->port;
- g_strlcpy(entry.info.sock.dest_host, ise->host,
- sizeof entry.info.sock.dest_host);
- goto found;
- }
-
- lse = g_hash_table_lookup(local_sockets,
- GINT_TO_POINTER(sockfd));
-
- if(lse) {
- entry.type = GLIBTOP_FILE_TYPE_LOCALSOCKET;
- g_strlcpy(entry.info.localsock.name, lse->name,
- sizeof entry.info.localsock.name);
- goto found;
- }
-
- found:
- (void)0; /* kills warning */
- }
- else if(g_str_has_prefix(tgt, "pipe:["))
- {
- entry.type = GLIBTOP_FILE_TYPE_PIPE;
- }
- else
- {
- entry.type = GLIBTOP_FILE_TYPE_FILE;
- g_strlcpy(entry.info.file.name, tgt, sizeof entry.info.file.name);
- }
-
- g_array_append_val(entries, entry);
- }
-
- closedir (dir);
-
- if(inet_sockets) g_hash_table_destroy(inet_sockets);
- if(local_sockets) g_hash_table_destroy(local_sockets);
-
- buf->flags = _glibtop_sysdeps_proc_open_files;
- buf->number = entries->len;
- buf->size = sizeof(glibtop_open_files_entry);
- buf->total = buf->number * buf->size;
-
- return (glibtop_open_files_entry*)g_array_free(entries, FALSE);
-}
diff --git a/sysdeps/linux/procsegment.c b/sysdeps/linux/procsegment.c
deleted file mode 100644
index 9da2c6a8..00000000
--- a/sysdeps/linux/procsegment.c
+++ /dev/null
@@ -1,93 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/error.h>
-#include <glibtop/procsegment.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_proc_segment =
-(1L << GLIBTOP_PROC_SEGMENT_START_CODE) +
-(1L << GLIBTOP_PROC_SEGMENT_END_CODE) +
-(1L << GLIBTOP_PROC_SEGMENT_START_STACK);
-
-static const unsigned long _glibtop_sysdeps_proc_segment_statm =
-(1L << GLIBTOP_PROC_SEGMENT_TEXT_RSS) +
-/* Disabled due to bug in the Linux Kernel. */
-/* (1L << GLIBTOP_PROC_SEGMENT_SHLIB_RSS) + */
-(1L << GLIBTOP_PROC_SEGMENT_DATA_RSS) +
-(1L << GLIBTOP_PROC_SEGMENT_DIRTY_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_segment_s (glibtop *server)
-{
- server->sysdeps.proc_segment = _glibtop_sysdeps_proc_segment |
- _glibtop_sysdeps_proc_segment_statm;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
- pid_t pid)
-{
- char buffer [BUFSIZ], *p;
- const size_t pagesize = get_page_size();
-
- memset (buf, 0, sizeof (glibtop_proc_segment));
-
- if (proc_stat_to_buffer(buffer, sizeof buffer, pid))
- return;
-
- p = proc_stat_after_cmd (buffer);
- if (!p) return;
-
- p = skip_multiple_token (p, 23);
-
- buf->start_code = strtoull (p, &p, 0);
- buf->end_code = strtoull (p, &p, 0);
- buf->start_stack = strtoull (p, &p, 0);
-
- buf->flags = _glibtop_sysdeps_proc_segment;
-
- if (proc_statm_to_buffer(buffer, sizeof buffer, pid))
- return;
-
- p = skip_multiple_token (buffer, 3);
-
- /* This doesn't work very well due to a bug in the Linux kernel.
- * I'll submit a patch to the kernel mailing list soon. */
-
- buf->text_rss = strtoull (p, &p, 0);
- buf->shlib_rss = strtoull (p, &p, 0);
- buf->data_rss = strtoull (p, &p, 0);
- buf->dirty_size = strtoull (p, &p, 0);
-
- buf->text_rss *= pagesize;
- buf->shlib_rss *= pagesize;
- buf->data_rss *= pagesize;
- buf->dirty_size *= pagesize;
-
- buf->flags |= _glibtop_sysdeps_proc_segment_statm;
-}
diff --git a/sysdeps/linux/procsignal.c b/sysdeps/linux/procsignal.c
deleted file mode 100644
index 87a4156c..00000000
--- a/sysdeps/linux/procsignal.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procsignal.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_proc_signal =
-(1L << GLIBTOP_PROC_SIGNAL_SIGNAL) + (1L << GLIBTOP_PROC_SIGNAL_BLOCKED) +
-(1L << GLIBTOP_PROC_SIGNAL_SIGIGNORE) + (1L << GLIBTOP_PROC_SIGNAL_SIGCATCH);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_signal_s (glibtop *server)
-{
- server->sysdeps.proc_signal = _glibtop_sysdeps_proc_signal;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_signal_s (glibtop *server, glibtop_proc_signal *buf, pid_t pid)
-{
- char buffer [BUFSIZ], *p;
-
- memset (buf, 0, sizeof (glibtop_proc_signal));
-
- if (proc_stat_to_buffer(buffer, sizeof buffer, pid))
- return;
-
- p = proc_stat_after_cmd (buffer);
- if (!p) return;
-
- p = skip_multiple_token (p, 28);
-
- buf->signal [0] = strtoull (p, &p, 0);
- buf->blocked [0] = strtoull (p, &p, 0);
- buf->sigignore [0] = strtoull (p, &p, 0);
- buf->sigcatch [0] = strtoull (p, &p, 0);
-
- buf->flags = _glibtop_sysdeps_proc_signal;
-}
diff --git a/sysdeps/linux/procstate.c b/sysdeps/linux/procstate.c
deleted file mode 100644
index 4c124a53..00000000
--- a/sysdeps/linux/procstate.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procstate.h>
-
-#include "glibtop_private.h"
-
-#include <sys/stat.h>
-
-static const unsigned long _glibtop_sysdeps_proc_state =
-(1L << GLIBTOP_PROC_STATE_CMD) + (1L << GLIBTOP_PROC_STATE_STATE);
-
-static const unsigned long _glibtop_sysdeps_proc_state_uid =
-(1L << GLIBTOP_PROC_STATE_UID) + (1L << GLIBTOP_PROC_STATE_GID);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_state_s (glibtop *server)
-{
- server->sysdeps.proc_state = _glibtop_sysdeps_proc_state |
- _glibtop_sysdeps_proc_state_uid;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf, pid_t pid)
-{
- char buffer [BUFSIZ], *p;
- struct stat statb;
-
- memset (buf, 0, sizeof (glibtop_proc_state));
-
- /* IMPORTANT NOTICE: For security reasons it is extremely important
- * that the 'uid' and 'gid' fields have correct
- * values; NEVER set their flags values if this
- * is not the case !!! */
-
- sprintf (buffer, "/proc/%d", pid);
-
- if (stat (buffer, &statb))
- return;
-
- /* For security reasons we use stat () since it is
- * more failsafe than parsing the file. */
-
- buf->uid = statb.st_uid;
- buf->gid = statb.st_gid;
-
- buf->flags = _glibtop_sysdeps_proc_state_uid;
-
- /* Now we read the remaining fields. */
-
- if (proc_stat_to_buffer(buffer, sizeof buffer, pid))
- return;
-
- p = proc_stat_after_cmd(buffer);
- p = next_token(p);
-
- switch(*p)
- {
- case 'R':
- buf->state = GLIBTOP_PROCESS_RUNNING;
- break;
-
- case 'Z':
- buf->state = GLIBTOP_PROCESS_ZOMBIE;
- break;
-
- case 'S':
- buf->state = GLIBTOP_PROCESS_INTERRUPTIBLE;
- break;
-
- case 'T':
- buf->state = GLIBTOP_PROCESS_STOPPED;
- break;
-
- case 'D':
- buf->state = GLIBTOP_PROCESS_UNINTERRUPTIBLE;
- break;
-
- case 'W':
- buf->state = GLIBTOP_PROCESS_SWAPPING;
- break;
-
- case 'X':
- buf->state = GLIBTOP_PROCESS_DEAD;
- break;
- }
-
- p = skip_token (buffer); /* pid */
- if (G_UNLIKELY(*p++ != '('))
- glibtop_error_r (server, "Bad data in /proc/%d/stat", pid);
-
- g_strlcpy (buf->cmd, p, sizeof buf->cmd);
-
- buf->flags |= _glibtop_sysdeps_proc_state;
-}
diff --git a/sysdeps/linux/proctime.c b/sysdeps/linux/proctime.c
deleted file mode 100644
index 706290c5..00000000
--- a/sysdeps/linux/proctime.c
+++ /dev/null
@@ -1,132 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/proctime.h>
-#include <glibtop/uptime.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_proc_time =
-(1L << GLIBTOP_PROC_TIME_UTIME) + (1L << GLIBTOP_PROC_TIME_CUTIME) +
-(1L << GLIBTOP_PROC_TIME_RTIME) +
-(1L << GLIBTOP_PROC_TIME_STIME) + (1L << GLIBTOP_PROC_TIME_CSTIME) +
-(1L << GLIBTOP_PROC_TIME_FREQUENCY) + (1L << GLIBTOP_PROC_TIME_TIMEOUT) +
-(1L << GLIBTOP_PROC_TIME_IT_REAL_VALUE) + (1L << GLIBTOP_PROC_TIME_START_TIME);
-
-static const unsigned long _glibtop_sysdeps_proc_time_smp =
-(1L << GLIBTOP_PROC_TIME_XCPU_UTIME) + (1L << GLIBTOP_PROC_TIME_XCPU_STIME);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_time_s (glibtop *server)
-{
- server->sysdeps.proc_time = _glibtop_sysdeps_proc_time;
-
- if (server->ncpu)
- server->sysdeps.proc_time |= _glibtop_sysdeps_proc_time_smp;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf, pid_t pid)
-{
- char buffer [BUFSIZ], *p;
- int i;
-
- memset (buf, 0, sizeof (glibtop_proc_time));
-
- if (proc_stat_to_buffer(buffer, sizeof buffer, pid))
- return;
-
- p = proc_stat_after_cmd (buffer);
- if (!p) return;
-
- p = skip_multiple_token (p, 11);
-
- /* clock_t (1/100 s) */
- buf->utime = strtoull (p, &p, 0);
- buf->stime = strtoull (p, &p, 0);
- buf->rtime = buf->utime + buf->stime;
-
- buf->cutime = strtoull (p, &p, 0);
- buf->cstime = strtoull (p, &p, 0);
-
- p = skip_multiple_token (p, 3);
-
- /* timeout is 0 on 2.4 and "thread_number" on 2.6
- lets skip it (using previous skip_multiple_token)
- buf->timeout = strtoull (p, &p, 0);
- */
- buf->it_real_value = strtoull (p, &p, 0);
-
- /* seconds since epoch */
- {
- /*
- See libgtop documentation.
-
- #ifdef __KERNEL__
- ...
- *
- * Have the 32 bit jiffies value wrap 5 minutes after boot
- * so jiffies wrap bugs show up earlier.
- *
- #define INITIAL_JIFFIES ((unsigned long)(unsigned int) (-300*HZ))
- ...
- #endif
-
- start_time may be incremented by INITIAL_JIFFIES, so start_time
- may be not be exact. You may also get wrong start_time if your
- system clock is not synchronised with you hardware clock.
- 'man hwclock'
- */
- buf->start_time = get_boot_time(server) + strtoull (p, &p, 0) / 100;
- }
-
- buf->frequency = 100;
-
- buf->flags = _glibtop_sysdeps_proc_time;
-
- if (!server->ncpu)
- return;
-
- /* FIXME: doesn't work with 2.6 */
- if (proc_file_to_buffer(buffer, sizeof buffer, "/proc/%d/cpu", pid))
- return;
-
- p = skip_multiple_token (p, 3);
-
- for (i = 0; i <= server->ncpu; i++) {
-
- if (!check_cpu_line_warn(server, p + 1, i))
- break;
-
- p = skip_token(p);
- buf->xcpu_utime [i] = strtoull (p, &p, 0);
- buf->xcpu_stime [i] = strtoull (p, &p, 0);
- }
-
- buf->flags |= _glibtop_sysdeps_proc_time_smp;
-}
diff --git a/sysdeps/linux/procuid.c b/sysdeps/linux/procuid.c
deleted file mode 100644
index 9cb1b4d3..00000000
--- a/sysdeps/linux/procuid.c
+++ /dev/null
@@ -1,124 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procuid.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_proc_uid =
-(1L << GLIBTOP_PROC_UID_UID) + (1L << GLIBTOP_PROC_UID_EUID) +
-(1L << GLIBTOP_PROC_UID_GID) + (1L << GLIBTOP_PROC_UID_EGID);
-
-static const unsigned long _glibtop_sysdeps_proc_uid_stat =
-(1L << GLIBTOP_PROC_UID_PID) + (1L << GLIBTOP_PROC_UID_PPID) +
-(1L << GLIBTOP_PROC_UID_PGRP) + (1L << GLIBTOP_PROC_UID_SESSION) +
-(1L << GLIBTOP_PROC_UID_TTY) + (1L << GLIBTOP_PROC_UID_TPGID) +
-(1L << GLIBTOP_PROC_UID_PRIORITY) + (1L << GLIBTOP_PROC_UID_NICE);
-
-
-/* Init function. */
-
-void
-_glibtop_init_proc_uid_s (glibtop *server)
-{
- server->sysdeps.proc_uid = _glibtop_sysdeps_proc_uid |
- _glibtop_sysdeps_proc_uid_stat;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_uid_s (glibtop *server, glibtop_proc_uid *buf, pid_t pid)
-{
- char buffer [BUFSIZ], *p;
-
- memset (buf, 0, sizeof (glibtop_proc_uid));
-
- if (proc_status_to_buffer(buffer, sizeof buffer, pid))
- return;
-
- /* Search substring 'Pid:' */
-
- p = strstr (buffer, "\nPid:");
- if (!p) return;
-
- p = skip_token (p); /* "Pid:" */
- buf->pid = strtol (p, &p, 0);
-
- p = skip_token (p); /* "PPid:" */
- buf->ppid = strtol (p, &p, 0);
-
- /* Maybe future Linux versions place something between
- * "PPid" and "Uid", so we catch this here. */
- p = strstr (p, "\nUid:");
- if (!p) return;
-
- p = skip_token (p); /* "Uid:" */
- buf->uid = strtol (p, &p, 0);
- buf->euid = strtol (p, &p, 0);
-
- /* We don't know how many entries on the "Uid:" line
- * future Linux version will have, so we catch this here. */
- p = strstr (p, "\nGid:");
- if (!p) return;
-
- p = skip_token (p); /* "Gid:" */
- buf->gid = strtol (p, &p, 0);
- buf->egid = strtol (p, &p, 0);
-
- buf->flags = _glibtop_sysdeps_proc_uid;
-
- if (proc_stat_to_buffer(buffer, sizeof buffer, pid))
- return;
-
- p = proc_stat_after_cmd (buffer);
- if (!p) return;
-
- p = skip_multiple_token (p, 2);
-
- buf->pgrp = strtol (p, &p, 0);
- buf->session = strtol (p, &p, 0);
- buf->tty = strtol (p, &p, 0);
- buf->tpgid = strtol (p, &p, 0);
-
- p = skip_multiple_token (p, 9);
-
- buf->priority = strtol (p, &p, 0);
- buf->nice = strtol (p, &p, 0);
-
- if (buf->tty == 0)
- /* the old notty val, update elsewhere bef. moving to 0 */
- buf->tty = -1;
-
- if (server->os_version_code < LINUX_VERSION_CODE(1,3,39)) {
- /* map old meanings to new */
- buf->priority = 2*15 - buf->priority;
- buf->nice = 15 - buf->nice;
- }
- else if (server->os_version_code < LINUX_VERSION_CODE(1,1,30) && buf->tty != -1)
- /* when tty wasn't full devno */
- buf->tty = 4*0x100 + buf->tty;
-
- buf->flags |= _glibtop_sysdeps_proc_uid_stat;
-}
diff --git a/sysdeps/linux/procwd.c b/sysdeps/linux/procwd.c
deleted file mode 100644
index 9a79085f..00000000
--- a/sysdeps/linux/procwd.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/* Copyright (C) 2007 Benoît Dejean
- This file is part of LibGTop 2.
-
- 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.
-*/
-
-#include <config.h>
-#include <glibtop/procwd.h>
-#include <glibtop/error.h>
-
-#include <glibtop_private.h>
-
-#include <unistd.h>
-#include <dirent.h>
-#include <sys/types.h>
-
-
-void
-_glibtop_init_proc_wd_s(glibtop *server)
-{
- server->sysdeps.proc_wd =
- (1 << GLIBTOP_PROC_WD_EXE) +
- (1 << GLIBTOP_PROC_WD_ROOT) +
- (1 << GLIBTOP_PROC_WD_NUMBER);
-
-}
-
-static gboolean is_in(GPtrArray *array, const char *str)
-{
- guint i;
-
- for (i = 0; i != array->len; ++i) {
- if (strcmp(g_ptr_array_index(array, i), str) == 0)
- return TRUE;
- }
-
- return FALSE;
-}
-
-
-char**
-glibtop_get_proc_wd_s(glibtop *server, glibtop_proc_wd *buf, pid_t pid)
-{
- GPtrArray *dirs;
- char path[80];
- char dir[256];
- DIR *task;
-
- memset(buf, 0, sizeof(glibtop_proc_wd));
-
- g_snprintf(path, sizeof path, "/proc/%u/root", pid);
- if (safe_readlink(path, buf->root, sizeof buf->root))
- buf->flags |= (1 << GLIBTOP_PROC_WD_ROOT);
-
- g_snprintf(path, sizeof path, "/proc/%u/exe", pid);
- if (safe_readlink(path, buf->exe, sizeof buf->exe))
- buf->flags |= (1 << GLIBTOP_PROC_WD_EXE);
-
- dirs = g_ptr_array_sized_new(2);
-
- g_snprintf(path, sizeof path, "/proc/%u/cwd", pid);
- if (safe_readlink(path, dir, sizeof dir))
- g_ptr_array_add(dirs, g_strdup(dir));
-
- g_snprintf(path, sizeof path, "/proc/%u/task", pid);
- if ((task = opendir(path)) != NULL) {
- struct dirent *sub;
- while ((sub = readdir(task)) != NULL) {
- g_snprintf(path, sizeof path, "/proc/%u/task/%s/cwd", pid, sub->d_name);
- if (safe_readlink(path, dir, sizeof dir) && !is_in(dirs, dir))
- g_ptr_array_add(dirs, g_strdup(dir));
- }
- closedir(task);
- }
-
- buf->number = dirs->len;
- buf->flags |= (1 << GLIBTOP_PROC_WD_NUMBER);
-
- g_ptr_array_add(dirs, NULL);
-
- return (char**) g_ptr_array_free(dirs, FALSE);
-}
-
diff --git a/sysdeps/linux/sem_limits.c b/sysdeps/linux/sem_limits.c
deleted file mode 100644
index 01ed8213..00000000
--- a/sysdeps/linux/sem_limits.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/sem_limits.h>
-
-#include <sys/ipc.h>
-#include <sys/sem.h>
-
-#ifdef _SEM_SEMUN_UNDEFINED
-
-/* glibc 2.1 will no longer defines semun, instead it defines
- * _SEM_SEMUN_UNDEFINED so users can define semun on their own.
- * Thanks to Albert K T Hui <avatar@deva.net>. */
-
-union semun
-{
- int val;
- struct semid_ds *buf;
- unsigned short int *array;
- struct seminfo *__buf;
-};
-#endif
-
-static const unsigned long _glibtop_sysdeps_sem_limits =
-(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
-(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
-(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
-(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
-(1L << GLIBTOP_IPC_SEMVMX) + (1L << GLIBTOP_IPC_SEMAEM);
-
-/* Init function. */
-
-void
-_glibtop_init_sem_limits_s (glibtop *server)
-{
- server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
-{
- struct seminfo seminfo;
- union semun arg;
-
- memset (buf, 0, sizeof (glibtop_sem_limits));
-
- buf->flags = _glibtop_sysdeps_sem_limits;
-
- arg.array = (void *) &seminfo;
- semctl (0, 0, IPC_INFO, arg);
-
- buf->semmap = seminfo.semmap;
- buf->semmni = seminfo.semmni;
- buf->semmns = seminfo.semmns;
- buf->semmnu = seminfo.semmnu;
- buf->semmsl = seminfo.semmsl;
- buf->semopm = seminfo.semopm;
- buf->semume = seminfo.semume;
- buf->semusz = seminfo.semusz;
- buf->semvmx = seminfo.semvmx;
- buf->semaem = seminfo.semaem;
-}
diff --git a/sysdeps/linux/shm_limits.c b/sysdeps/linux/shm_limits.c
deleted file mode 100644
index 8e86eb1d..00000000
--- a/sysdeps/linux/shm_limits.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/shm_limits.h>
-
-#include <sys/ipc.h>
-#include <sys/shm.h>
-
-static const unsigned long _glibtop_sysdeps_shm_limits =
-(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
-(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG) +
-(1L << GLIBTOP_IPC_SHMALL);
-
-/* Init function. */
-
-void
-_glibtop_init_shm_limits_s (glibtop *server)
-{
- server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
-{
- struct shminfo shminfo;
-
- memset (buf, 0, sizeof (glibtop_shm_limits));
-
- shmctl (0, IPC_INFO, (void *) &shminfo);
-
- buf->shmmax = shminfo.shmmax;
- buf->shmmin = shminfo.shmmin;
- buf->shmmni = shminfo.shmmni;
- buf->shmseg = shminfo.shmseg;
- buf->shmall = shminfo.shmall;
- buf->flags = _glibtop_sysdeps_shm_limits;
-}
diff --git a/sysdeps/linux/siglist.c b/sysdeps/linux/siglist.c
deleted file mode 100644
index edf514df..00000000
--- a/sysdeps/linux/siglist.c
+++ /dev/null
@@ -1,143 +0,0 @@
-/* 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.
-*/
-
-
-#include <config.h>
-#include <glibtop/signal.h>
-
-#include <signal.h>
-
-
-#if 0 /* comment */
-perl -nle 'print "{$1,\t\"$1\",\t\"$2\"}," if m|^#define\s*(SIG[A-Z0-9]+).*?/\*\s*(.*?)\s*\*/|'
- < /usr/include/bits/signum.h
-#endif
-
-
-const glibtop_signame glibtop_sys_siglist [] =
-{
-#ifdef SIGHUP
- {SIGHUP, "SIGHUP", "Hangup (POSIX)."},
-#endif
-#ifdef SIGINT
- {SIGINT, "SIGINT", "Interrupt (ANSI)."},
-#endif
-#ifdef SIGQUIT
- {SIGQUIT, "SIGQUIT", "Quit (POSIX)."},
-#endif
-#ifdef SIGILL
- {SIGILL, "SIGILL", "Illegal instruction (ANSI)."},
-#endif
-#ifdef SIGTRAP
- {SIGTRAP, "SIGTRAP", "Trace trap (POSIX)."},
-#endif
-#ifdef SIGABRT
- {SIGABRT, "SIGABRT", "Abort (ANSI)."},
-#endif
-#ifdef SIGIOT
- {SIGIOT, "SIGIOT", "IOT trap (4.2 BSD)."},
-#endif
-#ifdef SIGBUS
- {SIGBUS, "SIGBUS", "BUS error (4.2 BSD)."},
-#endif
-#ifdef SIGFPE
- {SIGFPE, "SIGFPE", "Floating-point exception (ANSI)."},
-#endif
-#ifdef SIGKILL
- {SIGKILL, "SIGKILL", "Kill, unblockable (POSIX)."},
-#endif
-#ifdef SIGUSR1
- {SIGUSR1, "SIGUSR1", "User-defined signal 1 (POSIX)."},
-#endif
-#ifdef SIGSEGV
- {SIGSEGV, "SIGSEGV", "Segmentation violation (ANSI)."},
-#endif
-#ifdef SIGUSR2
- {SIGUSR2, "SIGUSR2", "User-defined signal 2 (POSIX)."},
-#endif
-#ifdef SIGPIPE
- {SIGPIPE, "SIGPIPE", "Broken pipe (POSIX)."},
-#endif
-#ifdef SIGALRM
- {SIGALRM, "SIGALRM", "Alarm clock (POSIX)."},
-#endif
-#ifdef SIGTERM
- {SIGTERM, "SIGTERM", "Termination (ANSI)."},
-#endif
-#ifdef SIGSTKFLT
- {SIGSTKFLT, "SIGSTKFLT", "Stack fault."},
-#endif
-#ifdef SIGCLD
- {SIGCLD, "SIGCLD", "Same as SIGCHLD (System V)."},
-#endif
-#ifdef SIGCHLD
- {SIGCHLD, "SIGCHLD", "Child status has changed (POSIX)."},
-#endif
-#ifdef SIGCONT
- {SIGCONT, "SIGCONT", "Continue (POSIX)."},
-#endif
-#ifdef SIGSTOP
- {SIGSTOP, "SIGSTOP", "Stop, unblockable (POSIX)."},
-#endif
-#ifdef SIGTSTP
- {SIGTSTP, "SIGTSTP", "Keyboard stop (POSIX)."},
-#endif
-#ifdef SIGTTIN
- {SIGTTIN, "SIGTTIN", "Background read from tty (POSIX)."},
-#endif
-#ifdef SIGTTOU
- {SIGTTOU, "SIGTTOU", "Background write to tty (POSIX)."},
-#endif
-#ifdef SIGURG
- {SIGURG, "SIGURG", "Urgent condition on socket (4.2 BSD)."},
-#endif
-#ifdef SIGXCPU
- {SIGXCPU, "SIGXCPU", "CPU limit exceeded (4.2 BSD)."},
-#endif
-#ifdef SIGXFSZ
- {SIGXFSZ, "SIGXFSZ", "File size limit exceeded (4.2 BSD)."},
-#endif
-#ifdef SIGVTALRM
- {SIGVTALRM, "SIGVTALRM", "Virtual alarm clock (4.2 BSD)."},
-#endif
-#ifdef SIGPROF
- {SIGPROF, "SIGPROF", "Profiling alarm clock (4.2 BSD)."},
-#endif
-#ifdef SIGWINCH
- {SIGWINCH, "SIGWINCH", "Window size change (4.3 BSD, Sun)."},
-#endif
-#ifdef SIGPOLL
- {SIGPOLL, "SIGPOLL", "Pollable event occurred (System V)."},
-#endif
-#ifdef SIGIO
- {SIGIO, "SIGIO", "I/O now possible (4.2 BSD)."},
-#endif
-#ifdef SIGPWR
- {SIGPWR, "SIGPWR", "Power failure restart (System V)."},
-#endif
-#ifdef SIGSYS
- {SIGSYS, "SIGSYS", "Bad system call."},
-#endif
-#ifdef SIGUNUSED
- {SIGUNUSED, "SIGUNUSED", ""},
-#endif
- {0, NULL, NULL}
-};
diff --git a/sysdeps/linux/swap.c b/sysdeps/linux/swap.c
deleted file mode 100644
index 91832ad8..00000000
--- a/sysdeps/linux/swap.c
+++ /dev/null
@@ -1,103 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/error.h>
-#include <glibtop/swap.h>
-
-#include "glibtop_private.h"
-
-#include <fcntl.h>
-
-static const unsigned long _glibtop_sysdeps_swap =
-(1L << GLIBTOP_SWAP_TOTAL) + (1L << GLIBTOP_SWAP_USED) +
-(1L << GLIBTOP_SWAP_FREE);
-
-static const unsigned long _glibtop_sysdeps_swap_paging =
-(1L << GLIBTOP_SWAP_PAGEIN) + (1L << GLIBTOP_SWAP_PAGEOUT);
-
-/* Init function. */
-
-void
-_glibtop_init_swap_s (glibtop *server)
-{
- server->sysdeps.swap = _glibtop_sysdeps_swap |
- _glibtop_sysdeps_swap_paging;
-}
-
-/* Provides information about swap usage. */
-
-#define MEMINFO "/proc/meminfo"
-#define PROC_STAT "/proc/stat"
-#define PROC_VMSTAT "/proc/vmstat"
-
-void
-glibtop_get_swap_s (glibtop *server, glibtop_swap *buf)
-{
- char buffer [BUFSIZ], *p;
-
- memset (buf, 0, sizeof (glibtop_swap));
-
- file_to_buffer(server, buffer, sizeof buffer, MEMINFO);
-
- /* Kernel 2.6 with multiple lines */
-
- buf->total = get_scaled(buffer, "SwapTotal:");
- buf->free = get_scaled(buffer, "SwapFree:");
- buf->used = buf->total - buf->free;
-
- buf->flags = _glibtop_sysdeps_swap;
-
-
- if(server->os_version_code >= LINUX_VERSION_CODE(2, 6, 0))
- {
- file_to_buffer (server, buffer, sizeof buffer, PROC_VMSTAT);
-
- p = strstr (buffer, "\npswpin");
-
- if(p)
- {
- p = skip_token(p);
- buf->pagein = strtoull (p, &p, 0);
-
- p = skip_token(p);
- buf->pageout = strtoull (p, &p, 0);
-
- buf->flags |= _glibtop_sysdeps_swap_paging;
- }
- }
- else /* Linux 2.4 */
- {
- file_to_buffer (server, buffer, sizeof buffer, PROC_STAT);
-
- p = strstr (buffer, "\nswap");
-
- if(p)
- {
- p = skip_token (p);
-
- buf->pagein = strtoull (p, &p, 0);
- buf->pageout = strtoull (p, &p, 0);
-
- buf->flags |= _glibtop_sysdeps_swap_paging;
- }
- }
-}
diff --git a/sysdeps/linux/sysinfo.c b/sysdeps/linux/sysinfo.c
deleted file mode 100644
index 9c82b7f5..00000000
--- a/sysdeps/linux/sysinfo.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/error.h>
-#include <glibtop/cpu.h>
-#include <glibtop/sysinfo.h>
-
-#include "glibtop_private.h"
-
-#define FILENAME "/proc/cpuinfo"
-
-static const unsigned long _glibtop_sysdeps_sysinfo =
-(1L << GLIBTOP_SYSINFO_CPUINFO);
-
-static glibtop_sysinfo sysinfo = { .flags = 0 };
-
-static void
-init_sysinfo (glibtop *server)
-{
- char buffer [16384];
- gchar ** processors;
-
- if(G_LIKELY(sysinfo.flags)) return;
-
- file_to_buffer(server, buffer, sizeof buffer, FILENAME);
-
- /* cpuinfo records are seperated by a blank line */
- processors = g_strsplit(buffer, "\n\n", 0);
-
- for(sysinfo.ncpu = 0;
- sysinfo.ncpu < GLIBTOP_NCPU && processors[sysinfo.ncpu] && *processors[sysinfo.ncpu];
- sysinfo.ncpu++) {
-
- gchar **parts, **p;
-
- glibtop_entry * const cpuinfo = &sysinfo.cpuinfo[sysinfo.ncpu];
-
- cpuinfo->labels = g_ptr_array_new ();
-
- cpuinfo->values = g_hash_table_new_full(g_str_hash, g_str_equal,
- g_free, g_free);
-
- cpuinfo->descriptions = g_hash_table_new_full(g_str_hash, g_str_equal,
- g_free, g_free);
-
- /* "<key> : <value>" */
- parts = g_strsplit_set(processors[sysinfo.ncpu], ":\n", 0);
-
- for(p = parts; *p && *(p+1); p += 2) {
-
- /* stole the allocated memory */
- gchar * const key = g_strstrip( *p );
- gchar * const value = g_strstrip( *(p+1) );
-
- g_ptr_array_add(cpuinfo->labels, key);
- g_hash_table_insert(cpuinfo->values, key, value);
- }
-
-
- /* the last key has no value and has not been added */
- if(*p) g_free(*p);
-
- /* just g_free instead of g_strvfree because we stole
- the memory*/
-
- g_free(parts);
-
- }
-
- g_strfreev(processors);
-
- sysinfo.flags = _glibtop_sysdeps_sysinfo;
-}
-
-const glibtop_sysinfo *
-glibtop_get_sysinfo_s (glibtop *server)
-{
- init_sysinfo (server);
- return &sysinfo;
-}
diff --git a/sysdeps/linux/uptime.c b/sysdeps/linux/uptime.c
deleted file mode 100644
index a48d8760..00000000
--- a/sysdeps/linux/uptime.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/error.h>
-#include <glibtop/uptime.h>
-
-#include "glibtop_private.h"
-
-#include <time.h>
-
-static const unsigned long _glibtop_sysdeps_uptime =
- (1UL << GLIBTOP_UPTIME_UPTIME) \
-+ (1UL << GLIBTOP_UPTIME_IDLETIME) \
-+ (1UL << GLIBTOP_UPTIME_BOOT_TIME);
-
-/* Init function. */
-
-void
-_glibtop_init_uptime_s (glibtop *server)
-{
- server->sysdeps.uptime = _glibtop_sysdeps_uptime;
-}
-
-/* Provides uptime and idle time. */
-
-#define FILENAME "/proc/uptime"
-
-void
-glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf)
-{
- char buffer [BUFSIZ], *p;
-
- memset (buf, 0, sizeof (glibtop_uptime));
-
- file_to_buffer(server, buffer, sizeof buffer, FILENAME);
-
- buf->uptime = g_ascii_strtod (buffer, &p);
- buf->idletime = g_ascii_strtod (p, &p);
- buf->boot_time = get_boot_time(server);
-
- buf->flags = _glibtop_sysdeps_uptime;
-}
diff --git a/sysdeps/osf1/ChangeLog b/sysdeps/osf1/ChangeLog
deleted file mode 100644
index 1518b895..00000000
--- a/sysdeps/osf1/ChangeLog
+++ /dev/null
@@ -1,51 +0,0 @@
-2004-06-06 Benoît Dejean <tazforever@dlfp.org>
-
- * procdata.c: (glibtop_get_procdata_r): Removed duplicated memset.
- * procstate.c: (glibtop_get_proc_state_p): Replaced strncpy by g_strlcpy.
-
-2004-05-25 Benoît Dejean <tazforever@dlfp.org>
-
- * sem_limits.c:
- * shm_limits.c:
- * swap.c: Added missing const qualifiers.
-
- * uptime.c: (glibtop_get_uptime_s): Cleaned up. Added boot_time.
-
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * glibtop_server.h:
- * glibtop_suid.h:
- * procargs.c:
- * proclist.c:
- * procmap.c: fixed compilation
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * proclist.c: (glibtop_get_proclist_p):
- replace all the xmalloc crap by glib memory management functions
-
-2001-10-17 Abel Cheung <maddog@linux.org.hk>
-
- * Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
-
-1999-05-11 Martin Baulig <martin@home-of-linux.org>
-
- * procstate.c: Fixed implementation of the `state' field; added
- `ruid' and `rgid' fields.
-
-1999-02-19 Martin Baulig <martin@home-of-linux.org>
-
- * procmap.c, procargs.c, netload.c: Copied from stub_suid.
-
- * proclist.c, procsegment.c: Make them compile again.
-
-1998-10-25 Martin Baulig <martin@home-of-linux.org>
-
- * ChangeLog: New file.
- * ppp.c: New file.
-
diff --git a/sysdeps/osf1/Makefile.am b/sysdeps/osf1/Makefile.am
deleted file mode 100644
index ddae0c13..00000000
--- a/sysdeps/osf1/Makefile.am
+++ /dev/null
@@ -1,22 +0,0 @@
-
-INCLUDES = @INCLUDES@
-
-noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
-
-libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
- uptime.c loadavg.c shm_limits.c msg_limits.c \
- sem_limits.c ppp.c
-libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-libgtop_sysdeps_2_0_la_LIBADD = -lmach
-
-libgtop_sysdeps_suid_2_0_la_SOURCES = open_suid.c close_suid.c proclist.c \
- procstate.c procuid.c proctime.c procmem.c \
- procsignal.c prockernel.c procsegment.c \
- procmap.c procargs.c netload.c
-libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-libgtop_sysdeps_suid_2_0_la_LIBADD = -lmach
-
-libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h
-libgtopincludedir = $(includedir)/libgtop-2.0
-
-noinst_HEADERS = glibtop_suid.h
diff --git a/sysdeps/osf1/close.c b/sysdeps/osf1/close.c
deleted file mode 100644
index 03057967..00000000
--- a/sysdeps/osf1/close.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/close.h>
-
-/* Closes pipe to gtop server. */
-
-void
-glibtop_close_s (glibtop *server)
-{ }
diff --git a/sysdeps/osf1/close_suid.c b/sysdeps/osf1/close_suid.c
deleted file mode 100644
index 22717e1c..00000000
--- a/sysdeps/osf1/close_suid.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/close.h>
-
-/* Closes pipe to gtop server. */
-
-void
-glibtop_close_p (glibtop *server)
-{ }
diff --git a/sysdeps/osf1/cpu.c b/sysdeps/osf1/cpu.c
deleted file mode 100644
index 70d551c6..00000000
--- a/sysdeps/osf1/cpu.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/cpu.h>
-
-static const unsigned long _glibtop_sysdeps_cpu =
-(1L << GLIBTOP_CPU_TOTAL) + (1L << GLIBTOP_CPU_USER) +
-(1L << GLIBTOP_CPU_NICE) + (1L << GLIBTOP_CPU_SYS) +
-(1L << GLIBTOP_CPU_IDLE) + (1L << GLIBTOP_CPU_FREQUENCY);
-
-/* Init function. */
-
-void
-_glibtop_init_cpu_s (glibtop *server)
-{
- server->sysdeps.cpu = _glibtop_sysdeps_cpu;
-}
-
-/* Provides information about cpu usage. */
-
-void
-glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
-{
- struct tbl_sysinfo sysinfo;
- int ret;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);
-
- memset (buf, 0, sizeof (glibtop_cpu));
-
- ret = table (TBL_SYSINFO, 0, (char *) &sysinfo, 1,
- sizeof (struct tbl_sysinfo));
-
- if (ret != 1) return;
-
- buf->flags = _glibtop_sysdeps_cpu;
-
- buf->user = sysinfo.si_user;
- buf->nice = sysinfo.si_nice;
- buf->sys = sysinfo.si_sys;
- buf->idle = sysinfo.si_idle;
-
- buf->total = sysinfo.si_user + sysinfo.si_nice +
- sysinfo.si_sys + sysinfo.si_idle;
-
- buf->frequency = sysinfo.si_hz;
-}
diff --git a/sysdeps/osf1/glibtop_machine.h b/sysdeps/osf1/glibtop_machine.h
deleted file mode 100644
index 1ca82371..00000000
--- a/sysdeps/osf1/glibtop_machine.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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_MACHINE_H__
-#define __GLIBTOP_MACHINE_H__
-
-#include <sys/table.h>
-
-/* The following are defined in <sys/table.h>. */
-
-#undef sys
-#undef user
-#undef idle
-
-G_BEGIN_DECLS
-
-int table (int id, int index, char *addr, int nel, u_int lel);
-
-typedef struct _glibtop_machine glibtop_machine;
-
-struct _glibtop_machine
-{
- uid_t uid, euid; /* Real and effective user id */
- gid_t gid, egid; /* Real and effective group id */
- unsigned proctable_entries; /* Max entries in the proctable */
-};
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/osf1/glibtop_server.h b/sysdeps/osf1/glibtop_server.h
deleted file mode 100644
index 51c44bec..00000000
--- a/sysdeps/osf1/glibtop_server.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* 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_SERVER_H__
-#define __GLIBTOP_SERVER_H__
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_SUID_CPU 0
-#define GLIBTOP_SUID_MEM 0
-#define GLIBTOP_SUID_SWAP 0
-#define GLIBTOP_SUID_UPTIME 0
-#define GLIBTOP_SUID_LOADAVG 0
-#define GLIBTOP_SUID_SHM_LIMITS 0
-#define GLIBTOP_SUID_MSG_LIMITS 0
-#define GLIBTOP_SUID_SEM_LIMITS 0
-#define GLIBTOP_SUID_PROCLIST (1 << GLIBTOP_SYSDEPS_PROCLIST)
-#define GLIBTOP_SUID_PROC_STATE (1 << GLIBTOP_SYSDEPS_PROC_STATE)
-#define GLIBTOP_SUID_PROC_UID (1 << GLIBTOP_SYSDEPS_PROC_UID)
-#define GLIBTOP_SUID_PROC_MEM (1 << GLIBTOP_SYSDEPS_PROC_MEM)
-#define GLIBTOP_SUID_PROC_TIME (1 << GLIBTOP_SYSDEPS_PROC_TIME)
-#define GLIBTOP_SUID_PROC_SIGNAL (1 << GLIBTOP_SYSDEPS_PROC_SIGNAL)
-#define GLIBTOP_SUID_PROC_KERNEL (1 << GLIBTOP_SYSDEPS_PROC_KERNEL)
-#define GLIBTOP_SUID_PROC_SEGMENT (1 << GLIBTOP_SYSDEPS_PROC_SEGMENT)
-#define GLIBTOP_SUID_PROC_MAP (1 << GLIBTOP_SYSDEPS_PROC_MAP)
-#define GLIBTOP_SUID_PROC_ARGS (1 << GLIBTOP_SYSDEPS_PROC_ARGS)
-#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
-#define GLIBTOP_SUID_NETLIST 0
-#define GLIBTOP_SUID_PPP 0
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/osf1/glibtop_suid.h b/sysdeps/osf1/glibtop_suid.h
deleted file mode 100644
index bcaa3b53..00000000
--- a/sysdeps/osf1/glibtop_suid.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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_SUID_H__
-#define __GLIBTOP_SUID_H__
-
-#include <sys/table.h>
-
-G_BEGIN_DECLS
-
-static inline void glibtop_suid_enter (glibtop *server) {
- setreuid (server->machine.uid, server->machine.euid);
-};
-
-static inline void glibtop_suid_leave (glibtop *server) {
- if (setreuid (server->machine.euid, server->machine.uid))
- _exit (1);
-};
-
-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);
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/osf1/loadavg.c b/sysdeps/osf1/loadavg.c
deleted file mode 100644
index 6641cca9..00000000
--- a/sysdeps/osf1/loadavg.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/error.h>
-#include <glibtop/loadavg.h>
-
-static const unsigned long _glibtop_sysdeps_loadavg =
-(1L << GLIBTOP_LOADAVG_LOADAVG);
-
-/* Init function. */
-
-void
-_glibtop_init_loadavg_s (glibtop *server)
-{
- server->sysdeps.loadavg = _glibtop_sysdeps_loadavg;
-}
-
-/* Provides load averange. */
-
-void
-glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
-{
- struct tbl_loadavg loadavg;
- int ret;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_LOADAVG, 0);
-
- memset (buf, 0, sizeof (glibtop_loadavg));
-
- ret = table (TBL_LOADAVG, 0, (char *) &loadavg, 1,
- sizeof (struct tbl_loadavg));
-
- if (ret != 1) return;
-
- buf->flags = _glibtop_sysdeps_loadavg;
-
- if (loadavg.tl_lscale == 0) {
- buf->loadavg [0] = loadavg.tl_avenrun.d [0];
- buf->loadavg [1] = loadavg.tl_avenrun.d [1];
- buf->loadavg [2] = loadavg.tl_avenrun.d [2];
- } else {
- buf->loadavg [0] =
- (double) loadavg.tl_avenrun.l [0] /
- (double) loadavg.tl_mach_factor [0];
- buf->loadavg [1] =
- (double) loadavg.tl_avenrun.l [1]
- / (double) loadavg.tl_mach_factor [1];
- buf->loadavg [2] =
- (double) loadavg.tl_avenrun.l [2] /
- (double) loadavg.tl_mach_factor [2];
- }
-}
diff --git a/sysdeps/osf1/mem.c b/sysdeps/osf1/mem.c
deleted file mode 100644
index f9618abc..00000000
--- a/sysdeps/osf1/mem.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/mem.h>
-
-#include <sys/vm.h>
-
-#include <mach.h>
-#include <mach/mach_types.h>
-#include <mach/vm_statistics.h>
-
-static const unsigned long _glibtop_sysdeps_mem =
-(1L << GLIBTOP_MEM_TOTAL) + (1L << GLIBTOP_MEM_USED) +
-(1L << GLIBTOP_MEM_FREE);
-
-/* Init function. */
-
-void
-_glibtop_init_mem_s (glibtop *server)
-{
- server->sysdeps.mem = _glibtop_sysdeps_mem;
-}
-
-/* Provides information about memory usage. */
-
-void
-glibtop_get_mem_s (glibtop *server, glibtop_mem *buf)
-{
- vm_statistics_data_t vmstats;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_MEM, 0);
-
- memset (buf, 0, sizeof (glibtop_mem));
-
- buf->flags = _glibtop_sysdeps_mem;
-
- (void) vm_statistics(task_self(), &vmstats);
-
- buf->free = vmstats.free_count * vmstats.pagesize;
- buf->used = vmstats.active_count * vmstats.pagesize;
-
- /* [FIXME]: Is this correct? */
-
- buf->total = (vmstats.active_count + vmstats.inactive_count +
- vmstats.free_count + vmstats.wire_count) *
- vmstats.pagesize;
-}
diff --git a/sysdeps/osf1/msg_limits.c b/sysdeps/osf1/msg_limits.c
deleted file mode 100644
index e28dd82b..00000000
--- a/sysdeps/osf1/msg_limits.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/msg_limits.h>
-
-static const unsigned long _glibtop_sysdeps_msg_limits =
-(1L << GLIBTOP_IPC_MSGMAP) + (1L << GLIBTOP_IPC_MSGMAX) +
-(1L << GLIBTOP_IPC_MSGMNB) + (1L << GLIBTOP_IPC_MSGMNI) +
-(1L << GLIBTOP_IPC_MSGTQL);
-
-/* Init function. */
-
-void
-_glibtop_init_msg_limits_s (glibtop *server)
-{
- server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf)
-{
- int ret, value;
-
- glibtop_init_s (&server, 0, 0);
-
- memset (buf, 0, sizeof (glibtop_msg_limits));
-
- ret = table (TBL_MSGINFO, MSGINFO_MAX, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_MSGMAX);
-
- buf->msgmax = value;
-
- ret = table (TBL_MSGINFO, MSGINFO_MNB, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_MSGMNB);
-
- buf->msgmnb = value;
-
- ret = table (TBL_MSGINFO, MSGINFO_MNI, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_MSGMNI);
-
- buf->msgmni = value;
-
- ret = table (TBL_MSGINFO, MSGINFO_TQL, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_MSGTQL);
-
- buf->msgtql = value;
-}
diff --git a/sysdeps/osf1/netload.c b/sysdeps/osf1/netload.c
deleted file mode 100644
index eefacf51..00000000
--- a/sysdeps/osf1/netload.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/netload.h>
-
-static const unsigned long _glibtop_sysdeps_netload = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_netload_p (glibtop *server)
-{
- server->sysdeps.netload = _glibtop_sysdeps_netload;
-}
-
-/* Provides Network statistics. */
-
-void
-glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
- const char *interface)
-{
- memset (buf, 0, sizeof (glibtop_netload));
-}
diff --git a/sysdeps/osf1/open.c b/sysdeps/osf1/open.c
deleted file mode 100644
index 3fd856aa..00000000
--- a/sysdeps/osf1/open.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-
-#include <unistd.h>
-#include <sys/types.h>
-
-/* Opens pipe to gtop server. Returns 0 on success and -1 on error. */
-
-void
-glibtop_open_s (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags)
-{ }
diff --git a/sysdeps/osf1/open_suid.c b/sysdeps/osf1/open_suid.c
deleted file mode 100644
index bc45ef15..00000000
--- a/sysdeps/osf1/open_suid.c
+++ /dev/null
@@ -1,90 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/init_hooks.h>
-#include <glibtop_suid.h>
-
-#include <unistd.h>
-#include <sys/types.h>
-
-/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
-void
-glibtop_init_p (glibtop *server, const unsigned long features,
- const unsigned flags)
-{
- const _glibtop_init_func_t *init_fkt;
-
- if (server == NULL)
- glibtop_error_r (NULL, "glibtop_init_p (server == NULL)");
-
- /* Do the initialization, but only if not already initialized. */
-
- if ((server->flags & _GLIBTOP_INIT_STATE_INIT) == 0) {
- glibtop_open_p (server, "glibtop", features, flags);
-
- for (init_fkt = _glibtop_init_hook_p; *init_fkt; init_fkt++)
- (*init_fkt) (server);
-
- server->flags |= _GLIBTOP_INIT_STATE_INIT;
- }
-}
-
-/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
-void
-glibtop_open_p (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags)
-{
- /* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */
-
- server->name = program_name;
-
- server->machine.uid = getuid ();
- server->machine.euid = geteuid ();
- server->machine.gid = getgid ();
- server->machine.egid = getegid ();
-
- server->machine.proctable_entries = table
- (TBL_PROCINFO, 0, NULL, INT_MAX, 0);
-
- /* Drop priviledges; we only become root when necessary.
-
- setreuid (ruid, euid) - set real and effective user id;
- setregid (rgid, egid) - set real and effective group id;
-
- */
-
- if (setreuid (server->machine.euid, server->machine.uid))
- _exit (1);
-
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- /* Our effective uid is now those of the user invoking the server,
- so we do no longer have any priviledges.
- */
-}
diff --git a/sysdeps/osf1/ppp.c b/sysdeps/osf1/ppp.c
deleted file mode 100644
index d7b510ef..00000000
--- a/sysdeps/osf1/ppp.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/ppp.h>
-
-static const unsigned long _glibtop_sysdeps_ppp = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_ppp_s (glibtop *server)
-{
- server->sysdeps.ppp = _glibtop_sysdeps_ppp;
-}
-
-/* Provides PPP/ISDN information. */
-
-void
-glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device)
-{
- memset (buf, 0, sizeof (glibtop_ppp));
-}
diff --git a/sysdeps/osf1/procargs.c b/sysdeps/osf1/procargs.c
deleted file mode 100644
index 42029eb5..00000000
--- a/sysdeps/osf1/procargs.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procargs.h>
-
-static const unsigned long _glibtop_sysdeps_proc_args = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_args_p (glibtop *server)
-{
- server->sysdeps.proc_args = _glibtop_sysdeps_proc_args;
-}
-
-/* Provides detailed information about a process. */
-
-char *
-glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len)
-{
- memset (buf, 0, sizeof (glibtop_proc_args));
- return NULL;
-}
diff --git a/sysdeps/osf1/procdata.c b/sysdeps/osf1/procdata.c
deleted file mode 100644
index 7c1ed3e0..00000000
--- a/sysdeps/osf1/procdata.c
+++ /dev/null
@@ -1,146 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/procdata.h>
-
-#include <sys/user.h>
-#include <sys/time.h>
-#include <sys/resource.h>
-
-#include <mach.h>
-#include <mach/mach_types.h>
-#include <mach/task_info.h>
-
-/* Provides detailed information about a process. */
-
-#define BIT_SHIFT(x) (1L << (x % 64))
-
-static const unsigned long _glibtop_sysdeps_procdata_0 =
-BIT_SHIFT(GLIBTOP_PROCDATA_CMD) +
-BIT_SHIFT(GLIBTOP_PROCDATA_STATE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_UID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_PID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_PPID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_PGRP) +
-BIT_SHIFT(GLIBTOP_PROCDATA_TTY) +
-BIT_SHIFT(GLIBTOP_PROCDATA_K_FLAGS) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SESSION) +
-BIT_SHIFT(GLIBTOP_PROCDATA_TPGID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SIGIGNORE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SIGCATCH) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SIGNAL) +
-BIT_SHIFT(GLIBTOP_PROCDATA_NICE);
-
-static const unsigned long _glibtop_sysdeps_procdata_1 = 0;
-
-void
-glibtop_get_procdata_r (glibtop *server, glibtop_procdata *buf, pid_t pid)
-{
- struct tbl_procinfo procinfo;
- task_basic_info_data_t taskinfo;
- struct user u;
- task_t thistask;
- int ret, info_count;
-
- glibtop_init ();
-
- memset (buf, 0, sizeof (glibtop_procdata));
-
- ret = table (TBL_PROCINFO, pid, (char *) &procinfo, 1,
- sizeof (struct tbl_procinfo));
-
- if (ret != 1) return;
-
- strcpy (buf->cmd, procinfo.pi_comm);
-
- buf->uid = procinfo.pi_uid;
- buf->pid = procinfo.pi_pid;
- buf->ppid = procinfo.pi_ppid;
- buf->pgrp = procinfo.pi_pgrp;
- buf->tty = procinfo.pi_ttyd;
- buf->k_flags = procinfo.pi_flag;
- buf->session = procinfo.pi_session;
- buf->tpgid = procinfo.pi_tpgrp;
- buf->sigignore = procinfo.pi_sigignore;
- buf->sigcatch = procinfo.pi_sigcatch;
- buf->signal = procinfo.pi_sig;
-
- buf->flags [0] += _glibtop_sysdeps_procdata_0;
-
- if (procinfo.pi_status != PI_ACTIVE) return;
-
- /* From that point on, we are only interested in active processes. */
-
- buf->nice = getpriority (PRIO_PROCESS, pid);
-
- /* Get task structure. */
-
- ret = task_by_unix_pid (task_self(), procinfo.pi_pid, &thistask);
-
- if (ret != KERN_SUCCESS) return;
-
- /* Get taskinfo about this task. */
-
- info_count = TASK_BASIC_INFO_COUNT;
-
- ret = task_info (thistask, TASK_BASIC_INFO, (task_info_t) &taskinfo, &info_count);
-
- if (ret != KERN_SUCCESS) return;
-
- buf->priority = taskinfo.base_priority;
- buf->resident = taskinfo.resident_size;
- buf->rss = taskinfo.resident_size;
- buf->vsize = taskinfo.virtual_size;
-
- buf->flags [0] += BIT_SHIFT(GLIBTOP_PROCDATA_PRIORITY) +
- BIT_SHIFT(GLIBTOP_PROCDATA_RESIDENT) +
- BIT_SHIFT(GLIBTOP_PROCDATA_RSS) +
- BIT_SHIFT(GLIBTOP_PROCDATA_VSIZE);
-
- ret = table (TBL_UAREA, pid, (char *) &u, 1,
- sizeof (struct user));
-
- if (ret != 1) return;
-
- buf->start_code = (unsigned long) u.u_text_start;
- buf->end_code = (unsigned long) u.u_data_start;
- buf->start_stack = (unsigned long) u.u_stack_start;
-
- buf->trs = u.u_tsize;
- buf->drs = u.u_dsize;
-
- buf->start_time = u.u_start.tv_sec;
-
- buf->utime = u.u_ru.ru_utime.tv_sec;
- buf->stime = u.u_ru.ru_stime.tv_sec;
- buf->cutime = u.u_cru.ru_utime.tv_sec;
- buf->cstime = u.u_cru.ru_stime.tv_sec;
-
- buf->flags [0] += BIT_SHIFT(GLIBTOP_PROCDATA_START_TIME) +
- BIT_SHIFT(GLIBTOP_PROCDATA_UTIME) + BIT_SHIFT(GLIBTOP_PROCDATA_STIME) +
- BIT_SHIFT(GLIBTOP_PROCDATA_CUTIME) + BIT_SHIFT(GLIBTOP_PROCDATA_CSTIME) +
- BIT_SHIFT(GLIBTOP_PROCDATA_TRS) + BIT_SHIFT(GLIBTOP_PROCDATA_DRS);
-
- buf->flags [1] += BIT_SHIFT(GLIBTOP_PROCDATA_START_CODE) +
- BIT_SHIFT(GLIBTOP_PROCDATA_END_CODE) +
- BIT_SHIFT(GLIBTOP_PROCDATA_START_STACK);
-}
diff --git a/sysdeps/osf1/prockernel.c b/sysdeps/osf1/prockernel.c
deleted file mode 100644
index 77f867ab..00000000
--- a/sysdeps/osf1/prockernel.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/prockernel.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_kernel = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_kernel_p (glibtop *server)
-{
- server->sysdeps.proc_kernel = _glibtop_sysdeps_proc_kernel;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_kernel_p (glibtop *server, glibtop_proc_kernel *buf,
- pid_t pid)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_KERNEL, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_kernel));
-}
diff --git a/sysdeps/osf1/proclist.c b/sysdeps/osf1/proclist.c
deleted file mode 100644
index 7d5f5bd3..00000000
--- a/sysdeps/osf1/proclist.c
+++ /dev/null
@@ -1,170 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/proclist.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proclist =
-(1L << GLIBTOP_PROCLIST_TOTAL) + (1L << GLIBTOP_PROCLIST_NUMBER) +
-(1L << GLIBTOP_PROCLIST_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proclist_p (glibtop *server)
-{
- server->sysdeps.proclist = _glibtop_sysdeps_proclist;
-}
-
-/* How many elements are there per proctable entry? */
-
-#define ELEMENTS_PER_ENTRY 8
-
-/* We have a buffer for BLOCK_COUNT pids; when it's full, it is copied
- * to a newly realloc()ed area. */
-
-#define BLOCK_COUNT 256
-#define BLOCK_SIZE (BLOCK_COUNT * sizeof (unsigned))
-
-/* Fetch list of currently running processes.
- *
- * The interface of this function is a little bit different from the others:
- * buf->flags is only set if the call succeeded, in this case pids_chain,
- * a list of the pids of all currently running processes is returned,
- * buf->number is the number of elements of this list and buf->size is
- * the size of one single element (sizeof (unsigned)). The total size is
- * stored in buf->total.
- *
- * The calling function has to free the memory to which a pointer is returned.
- *
- * On error, NULL is returned and buf->flags is zero. */
-
-/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
-unsigned *
-glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg)
-{
- unsigned count = 0, total = 0;
- unsigned pids [BLOCK_COUNT], *pids_chain = NULL;
- unsigned pids_size = 0, pids_offset = 0, new_size;
- struct tbl_procinfo procinfo [8];
- int entry, max_elements, k;
-
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROCLIST, 0);
-
- memset (buf, 0, sizeof (glibtop_proclist));
-
- for (entry = 0; entry < server->machine.proctable_entries;
- entry += ELEMENTS_PER_ENTRY)
- {
- /* !!! THE FOLLOWING CODE RUNS SUID ROOT -
- * CHANGE WITH CAUTION !!! */
-
- glibtop_suid_enter (server);
-
- max_elements = table
- (TBL_PROCINFO, entry, (char *) &procinfo,
- ELEMENTS_PER_ENTRY, sizeof (struct tbl_procinfo));
-
- glibtop_suid_leave (server);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- for (k = 0; k < max_elements; k++)
- {
- /* Does this entry contain a real process? */
-
- if (procinfo [k].pi_status == 0)
- continue;
-
- /* Fine. Now we first try to store it in pids.
- * If this buffer is full, we copy it to the
- * pids_chain. */
-
- if (count >= BLOCK_COUNT) {
-
- /* The following call to g_realloc ()
- * will be equivalent to g_malloc ()
- * if `pids_chain' is NULL. We just calculate
- * the new size and copy `pids' to the
- * beginning of the newly allocated block. */
-
- new_size = pids_size + BLOCK_SIZE;
-
- pids_chain = g_realloc
- (server, pids_chain, new_size);
-
- memcpy (pids_chain + pids_offset,
- pids, BLOCK_SIZE);
-
- pids_size = new_size;
-
- pids_offset += BLOCK_COUNT;
-
- count = 0;
- }
-
- /* pids is now big enough to hold at least
- * one single pid. */
-
- pids [count++] = procinfo [k].pi_pid;
-
- total++;
- }
- }
-
- /* count is only zero if an error occured
- * (eg. the server is not suid root). */
-
- if (!count) return NULL;
-
- /* The following call to g_realloc () will be equivalent to
- * g_malloc () if `pids_chain' is NULL. We just calculate the
- * new size and copy `pids' to the beginning of the newly allocated
- * block. */
-
- new_size = pids_size + count * sizeof (unsigned);
-
- pids_chain = g_realloc (server, pids_chain, new_size);
-
- memcpy (pids_chain + pids_offset, pids, count * sizeof (unsigned));
-
- pids_size = new_size;
-
- pids_offset += BLOCK_COUNT;
-
- /* Since everything is ok now, we can set buf->flags, fill in the
- * remaining fields and return `pids_chain'. */
-
- buf->flags = _glibtop_sysdeps_proclist;
-
- buf->size = sizeof (unsigned);
- buf->number = total;
-
- buf->total = total * sizeof (unsigned);
-
- return pids_chain;
-}
diff --git a/sysdeps/osf1/procmap.c b/sysdeps/osf1/procmap.c
deleted file mode 100644
index 490eeab4..00000000
--- a/sysdeps/osf1/procmap.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmap.h>
-
-static const unsigned long _glibtop_sysdeps_proc_map = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_map_p (glibtop *server)
-{
- server->sysdeps.proc_map = _glibtop_sysdeps_proc_map;
-}
-
-/* Provides detailed information about a process. */
-
-glibtop_map_entry *
-glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf, pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_proc_map));
- return NULL;
-}
diff --git a/sysdeps/osf1/procmem.c b/sysdeps/osf1/procmem.c
deleted file mode 100644
index 59e4a4b7..00000000
--- a/sysdeps/osf1/procmem.c
+++ /dev/null
@@ -1,102 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmem.h>
-
-#include <glibtop_suid.h>
-
-#include <sys/user.h>
-#include <sys/time.h>
-#include <sys/resource.h>
-
-#include <mach.h>
-#include <mach/mach_types.h>
-#include <mach/task_info.h>
-
-static const unsigned long _glibtop_sysdeps_proc_mem =
-(1L << GLIBTOP_PROC_MEM_VSIZE) + (1L << GLIBTOP_PROC_MEM_RESIDENT) +
-(1L << GLIBTOP_PROC_MEM_RSS);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_mem_p (glibtop *server)
-{
- server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
- pid_t pid)
-{
- task_basic_info_data_t taskinfo;
- int ret, info_count;
- task_t thistask;
- struct user u;
-
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_MEM, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_mem));
-
- /* Get task structure. */
-
- ret = task_by_unix_pid (task_self(), pid, &thistask);
-
- if (ret != KERN_SUCCESS) return;
-
- /* Get taskinfo about this task. */
-
- info_count = TASK_BASIC_INFO_COUNT;
-
- ret = task_info (thistask, TASK_BASIC_INFO,
- (task_info_t) &taskinfo, &info_count);
-
- if (ret != KERN_SUCCESS) return;
-
- buf->resident = taskinfo.resident_size;
- buf->rss = taskinfo.resident_size;
- buf->vsize = taskinfo.virtual_size;
-
- /* !!! THE FOLLOWING CODE RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
- glibtop_suid_enter (server);
-
- ret = table (TBL_UAREA, pid, (char *) &u, 1,
- sizeof (struct user));
-
- glibtop_suid_leave (server);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- if (ret != 1) return;
-
- buf->rss_rlim = u.u_rlimit [RLIMIT_RSS].rlim_cur;
-
- buf->share = u.u_ru.ru_ixrss;
-
- buf->flags |= (1L << GLIBTOP_PROC_MEM_RSS_RLIM) |
- (1L << GLIBTOP_PROC_MEM_SHARE);
-}
diff --git a/sysdeps/osf1/procsegment.c b/sysdeps/osf1/procsegment.c
deleted file mode 100644
index ebd9364a..00000000
--- a/sysdeps/osf1/procsegment.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procsegment.h>
-
-#include <glibtop_suid.h>
-
-#include <sys/user.h>
-
-static const unsigned long _glibtop_sysdeps_proc_segment =
-(1L << GLIBTOP_PROC_SEGMENT_TEXT_RSS) +
-(1L << GLIBTOP_PROC_SEGMENT_DATA_RSS) +
-(1L << GLIBTOP_PROC_SEGMENT_START_CODE) +
-(1L << GLIBTOP_PROC_SEGMENT_END_CODE) +
-(1L << GLIBTOP_PROC_SEGMENT_START_STACK);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_segment_p (glibtop *server)
-{
- server->sysdeps.proc_segment = _glibtop_sysdeps_proc_segment;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_segment_p (glibtop *server, glibtop_proc_segment *buf,
- pid_t pid)
-{
- int ret;
- struct user u;
-
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_SEGMENT, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_segment));
-
- /* !!! THE FOLLOWING CODE RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
- glibtop_suid_enter (server);
-
- ret = table (TBL_UAREA, pid, (char *) &u, 1,
- sizeof (struct user));
-
- glibtop_suid_leave (server);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- if (ret != 1) return;
-
- buf->start_code = (unsigned long) u.u_text_start;
- buf->end_code = (unsigned long) u.u_data_start;
- buf->start_stack = (unsigned long) u.u_stack_start;
-
- buf->text_rss = u.u_tsize;
- buf->data_rss = u.u_dsize;
-
- buf->flags = _glibtop_sysdeps_proc_segment;
-}
diff --git a/sysdeps/osf1/procsignal.c b/sysdeps/osf1/procsignal.c
deleted file mode 100644
index 58d7430d..00000000
--- a/sysdeps/osf1/procsignal.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procsignal.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_signal =
-(1L << GLIBTOP_PROC_SIGNAL_SIGNAL) + (1L << GLIBTOP_PROC_SIGNAL_BLOCKED) +
-(1L << GLIBTOP_PROC_SIGNAL_SIGIGNORE) + (1L << GLIBTOP_PROC_SIGNAL_SIGCATCH);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_signal_p (glibtop *server)
-{
- server->sysdeps.proc_signal = _glibtop_sysdeps_proc_signal;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_signal_p (glibtop *server, glibtop_proc_signal *buf,
- pid_t pid)
-{
- struct tbl_procinfo procinfo;
- int ret;
-
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_SIGNAL, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_signal));
-
- /* !!! THE FOLLOWING CODE RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
- glibtop_suid_enter (server);
-
- ret = table (TBL_PROCINFO, pid, (char *) &procinfo, 1,
- sizeof (struct tbl_procinfo));
-
- glibtop_suid_leave (server);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- if (ret != 1) return;
-
- buf->signal [0] = procinfo.pi_sig;
- buf->blocked [0] = procinfo.pi_sigmask;
- buf->sigignore [0] = procinfo.pi_sigignore;
- buf->sigcatch [0] = procinfo.pi_sigcatch;
-
- buf->flags = _glibtop_sysdeps_proc_signal;
-}
diff --git a/sysdeps/osf1/procstate.c b/sysdeps/osf1/procstate.c
deleted file mode 100644
index f0f4ae1f..00000000
--- a/sysdeps/osf1/procstate.c
+++ /dev/null
@@ -1,152 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procstate.h>
-
-#include <glibtop_suid.h>
-
-#include <mach.h>
-#include <mach/mach_types.h>
-#include <mach/task_info.h>
-
-static const unsigned long _glibtop_sysdeps_proc_state =
-(1L << GLIBTOP_PROC_STATE_CMD) +
-(1L << GLIBTOP_PROC_STATE_UID) + (1L << GLIBTOP_PROC_STATE_GID) +
-(1L << GLIBTOP_PROC_STATE_RUID) + (1L << GLIBTOP_PROC_STATE_RGID);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_state_p (glibtop *server)
-{
- server->sysdeps.proc_state = _glibtop_sysdeps_proc_state;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_state_p (glibtop *server, glibtop_proc_state *buf,
- pid_t pid)
-{
- struct tbl_procinfo procinfo;
- int minim_state = 99, ret;
- task_t thistask;
-
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_STATE, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_state));
-
- /* !!! THE FOLLOWING CODE RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
- glibtop_suid_enter (server);
-
- ret = table (TBL_PROCINFO, pid, (char *) &procinfo, 1,
- sizeof (struct tbl_procinfo));
-
- glibtop_suid_leave (server);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- if (ret != 1) return;
-
- /* Check whether the process actually exists. */
- if (procinfo.pi_status == PI_EMPTY) return;
-
- /* Check whether it is not a zombie. */
- if (procinfo.pi_status == PI_ZOMBIE) {
- buf->state = GLIBTOP_PROCESS_ZOMBIE;
- buf->flags = (1L << GLIBTOP_PROC_STATE_STATE);
- return;
- }
-
- g_strlcpy (buf->cmd, procinfo.pi_comm, sizeof buf->cmd);
-
- buf->uid = procinfo.pi_svuid;
- buf->gid = procinfo.pi_svgid;
- buf->ruid = procinfo.pi_ruid;
- buf->rgid = procinfo.pi_rgid;
-
- buf->flags = _glibtop_sysdeps_proc_state;
-
- /* !!! THE FOLLOWING CODE RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
- glibtop_suid_enter (server);
-
- /* Get task structure. */
- ret = task_by_unix_pid (task_self(), procinfo.pi_pid, &thistask);
-
- if (ret == KERN_SUCCESS) {
- thread_array_t threadarr;
- unsigned int threadarr_l;
- thread_basic_info_t threadinfo;
- thread_basic_info_data_t threadinfodata;
- int j;
-
- /* Get thread array. */
- (void) task_threads (thistask, &threadarr, &threadarr_l);
-
- threadinfo = &threadinfodata;
- for (j = 0; j < threadarr_l; j++) {
- unsigned int threadinfo_l = THREAD_BASIC_INFO_COUNT;
- int tret;
-
- tret = thread_info (threadarr [j], THREAD_BASIC_INFO,
- (thread_info_t) threadinfo, &threadinfo_l);
-
- if (tret == KERN_SUCCESS) {
- if (minim_state > threadinfo->run_state)
- minim_state=threadinfo->run_state;
- }
- }
- }
-
- glibtop_suid_leave (server);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- if (ret != KERN_SUCCESS) return;
-
- switch (minim_state) {
- case TH_STATE_RUNNING:
- buf->state = GLIBTOP_PROCESS_RUNNING;
- break;
- case TH_STATE_UNINTERRUPTIBLE:
- buf->state = GLIBTOP_PROCESS_UNINTERRUPTIBLE;
- break;
- case TH_STATE_WAITING:
- buf->state = GLIBTOP_PROCESS_INTERRUPTIBLE;
- break;
- case TH_STATE_STOPPED:
- case TH_STATE_HALTED:
- buf->state = GLIBTOP_PROCESS_STOPPED;
- break;
- default:
- if (ret != KERN_SUCCESS)
- buf->state = GLIBTOP_PROCESS_ZOMBIE;
- break;
- }
-
- if (buf->state)
- buf->flags |= (1L << GLIBTOP_PROC_STATE_STATE);
-}
diff --git a/sysdeps/osf1/proctime.c b/sysdeps/osf1/proctime.c
deleted file mode 100644
index d51e20bb..00000000
--- a/sysdeps/osf1/proctime.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/proctime.h>
-
-#include <glibtop_suid.h>
-
-#include <sys/user.h>
-#include <sys/time.h>
-
-static const unsigned long _glibtop_sysdeps_proc_time =
-(1L << GLIBTOP_PROC_TIME_UTIME) + (1L << GLIBTOP_PROC_TIME_CUTIME) +
-(1L << GLIBTOP_PROC_TIME_STIME) + (1L << GLIBTOP_PROC_TIME_CSTIME) +
-(1L << GLIBTOP_PROC_TIME_START_TIME);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_time_p (glibtop *server)
-{
- server->sysdeps.proc_time = _glibtop_sysdeps_proc_time;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf,
- pid_t pid)
-{
- struct user u;
- int ret;
-
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_TIME, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_time));
-
- /* !!! THE FOLLOWING CODE RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
- glibtop_suid_enter (server);
-
- ret = table (TBL_UAREA, pid, (char *) &u, 1,
- sizeof (struct user));
-
- glibtop_suid_leave (server);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- if (ret != 1) return;
-
- buf->start_time = u.u_start.tv_sec;
-
- buf->utime = u.u_ru.ru_utime.tv_sec;
- buf->stime = u.u_ru.ru_stime.tv_sec;
- buf->cutime = u.u_cru.ru_utime.tv_sec;
- buf->cstime = u.u_cru.ru_stime.tv_sec;
-
- buf->flags = _glibtop_sysdeps_proc_time;
-}
diff --git a/sysdeps/osf1/procuid.c b/sysdeps/osf1/procuid.c
deleted file mode 100644
index daa06e21..00000000
--- a/sysdeps/osf1/procuid.c
+++ /dev/null
@@ -1,131 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procuid.h>
-
-#include <glibtop_suid.h>
-
-#include <sys/table.h>
-#include <sys/resource.h>
-
-#include <mach.h>
-#include <mach/mach_types.h>
-#include <mach/task_info.h>
-
-/* Provides detailed information about a process. */
-
-static const unsigned long _glibtop_sysdeps_proc_uid =
-(1L << GLIBTOP_PROC_UID_UID) + (1L << GLIBTOP_PROC_UID_EUID) +
-(1L << GLIBTOP_PROC_UID_GID) + (1L << GLIBTOP_PROC_UID_EGID) +
-(1L << GLIBTOP_PROC_UID_PID) + (1L << GLIBTOP_PROC_UID_PPID) +
-(1L << GLIBTOP_PROC_UID_PGRP) + (1L << GLIBTOP_PROC_UID_SESSION) +
-(1L << GLIBTOP_PROC_UID_TTY) + (1L << GLIBTOP_PROC_UID_TPGID);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_uid_p (glibtop *server)
-{
- server->sysdeps.proc_uid = _glibtop_sysdeps_proc_uid;
-}
-
-void
-glibtop_get_proc_uid_p (glibtop *server, glibtop_proc_uid *buf,
- pid_t pid)
-{
- struct tbl_procinfo procinfo;
- task_basic_info_data_t taskinfo;
- int ret, info_count;
- task_t thistask;
-
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_UID, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_uid));
-
- /* !!! THE FOLLOWING CODE RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
- glibtop_suid_enter (server);
-
- ret = table (TBL_PROCINFO, pid, (char *) &procinfo, 1,
- sizeof (struct tbl_procinfo));
-
- glibtop_suid_leave (server);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- if (ret != 1) return;
-
- buf->uid = procinfo.pi_ruid;
- buf->euid = procinfo.pi_svuid;
- buf->gid = procinfo.pi_rgid;
- buf->egid = procinfo.pi_svgid;
-
- buf->pid = procinfo.pi_pid;
- buf->ppid = procinfo.pi_ppid;
- buf->pgrp = procinfo.pi_pgrp;
- buf->tty = procinfo.pi_ttyd;
- buf->session = procinfo.pi_session;
- buf->tpgid = procinfo.pi_tpgrp;
-
- buf->flags = _glibtop_sysdeps_proc_uid;
-
- /* !!! THE FOLLOWING CODE RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
- glibtop_suid_enter (server);
-
- /* Get task structure. */
-
- ret = task_by_unix_pid (task_self(), procinfo.pi_pid, &thistask);
-
- if (ret == KERN_SUCCESS) {
-
- /* Get taskinfo about this task. */
-
- info_count = TASK_BASIC_INFO_COUNT;
-
- ret = task_info (thistask, TASK_BASIC_INFO,
- (task_info_t) &taskinfo, &info_count);
-
- /* `ret' is evaluated outside the `if' clause. */
- }
-
- glibtop_suid_leave (server);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- if (ret != KERN_SUCCESS) return;
-
- buf->priority = taskinfo.base_priority;
-
- buf->flags += (1L << GLIBTOP_PROC_UID_PRIORITY);
-
- errno = 0;
-
- ret = getpriority (PRIO_PROCESS, pid);
-
- if ((ret == -1) && (errno != 0)) return;
-
- buf->nice = ret;
-
- buf->flags += (1L << GLIBTOP_PROC_UID_NICE);
-}
diff --git a/sysdeps/osf1/sem_limits.c b/sysdeps/osf1/sem_limits.c
deleted file mode 100644
index 8cb07962..00000000
--- a/sysdeps/osf1/sem_limits.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/sem_limits.h>
-
-static const unsigned long _glibtop_sysdeps_sem_limits =
-(1L << GLIBTOP_IPC_SEMMNI) + (1L << GLIBTOP_IPC_SEMMSL) +
-(1L << GLIBTOP_IPC_SEMOPM) + (1L << GLIBTOP_IPC_SEMVMX) +
-(1L << GLIBTOP_IPC_SEMAEM);
-
-/* Init function. */
-
-void
-_glibtop_init_sem_limits_s (glibtop *server)
-{
- server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits;
-}
-
-/* Provides information about sysv sem limits. */
-
-void
-glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
-{
- int ret, value;
-
- glibtop_init_s (&server, 0, 0);
-
- memset (buf, 0, sizeof (glibtop_sem_limits));
-
- ret = table (TBL_SEMINFO, SEMINFO_MNI, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_SEMMNI);
-
- buf->semmni = value;
-
-
- ret = table (TBL_SEMINFO, SEMINFO_MSL, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_SEMMSL);
-
- buf->semmsl = value;
-
-
- ret = table (TBL_SEMINFO, SEMINFO_OPM, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_SEMOPM);
-
- buf->semopm = value;
-
-
- ret = table (TBL_SEMINFO, SEMINFO_UME, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_SEMUME);
-
- buf->semume = value;
-
-
- ret = table (TBL_SEMINFO, SEMINFO_VMX, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_SEMVMX);
-
- buf->semvmx = value;
-
-
- ret = table (TBL_SEMINFO, SEMINFO_AEM, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_SEMAEM);
-
- buf->semaem = value;
-}
diff --git a/sysdeps/osf1/shm_limits.c b/sysdeps/osf1/shm_limits.c
deleted file mode 100644
index 2a34c484..00000000
--- a/sysdeps/osf1/shm_limits.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/shm_limits.h>
-
-static const unsigned long _glibtop_sysdeps_shm_limits =
-(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
-(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG);
-
-/* Init function. */
-
-void
-_glibtop_init_shm_limits_s (glibtop *server)
-{
- server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
-{
- int ret, value;
-
- glibtop_init_s (&server, 0, 0);
-
- memset (buf, 0, sizeof (glibtop_shm_limits));
-
- ret = table (TBL_SHMINFO, SHMINFO_MAX, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_SHMMAX);
-
- buf->shmmax = value;
-
-
- ret = table (TBL_SHMINFO, SHMINFO_MIN, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_SHMMIN);
-
- buf->shmmin = value;
-
-
- ret = table (TBL_SHMINFO, SHMINFO_MNI, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_SHMMNI);
-
- buf->shmmni = value;
-
-
- ret = table (TBL_SHMINFO, SHMINFO_SEG, (char *) &value, 1,
- sizeof (value));
-
- if (ret != 1) return;
-
- buf->flags += (1L << GLIBTOP_IPC_SHMSEG);
-
- buf->shmseg = value;
-}
diff --git a/sysdeps/osf1/siglist.c b/sysdeps/osf1/siglist.c
deleted file mode 100644
index b2d7bd8e..00000000
--- a/sysdeps/osf1/siglist.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/signal.h>
-
-const glibtop_signame glibtop_sys_siglist [] =
-{ { 1, "SIGHUP", N_("Hangup") },
- { 2, "SIGINT", N_("Interrupt") },
- { 3, "SIGQUIT", N_("Quit") },
- { 4, "SIGILL", N_("Illegal instruction") },
- { 5, "SIGTRAP", N_("Trace trap") },
- { 6, "SIGABRT", N_("Abort") },
- { 7, "SIGEMT", N_("EMT error") },
- { 8, "SIGFPE", N_("Floating-point exception") },
- { 9, "SIGKILL", N_("Kill") },
- { 10, "SIGBUS", N_("Bus error") },
- { 11, "SIGSEGV", N_("Segmentation violation") },
- { 12, "SIGSYS", N_("Bad argument to system call") },
- { 13, "SIGPIPE", N_("Broken pipe") },
- { 14, "SIGALRM", N_("Alarm clock") },
- { 15, "SIGTERM", N_("Termination") },
- { 16, "SIGURG", N_("Urgent condition on socket") },
- { 17, "SIGSTOP", N_("Stop") },
- { 18, "SIGTSTP", N_("Keyboard stop") },
- { 19, "SIGCONT", N_("Continue") },
- { 20, "SIGCHLD", N_("Child status has changed") },
- { 21, "SIGTTIN", N_("Background read from tty") },
- { 22, "SIGTTOU", N_("Background write to tty") },
- { 23, "SIGIO", N_("I/O now possible") },
- { 24, "SIGXCPU", N_("CPU limit exceeded") },
- { 25, "SIGXFSZ", N_("File size limit exceeded") },
- { 26, "SIGVTALRM", N_("Virtual alarm clock") },
- { 27, "SIGPROF", N_("Profiling alarm clock") },
- { 28, "SIGWINCH", N_("Window size change") },
- { 29, "SIGINFO", N_("Information request") },
- { 30, "SIGUSR1", N_("User defined signal 1") },
- { 31, "SIGUSR2", N_("User defined signal 2") },
- { 0, NULL, NULL },
-};
diff --git a/sysdeps/osf1/swap.c b/sysdeps/osf1/swap.c
deleted file mode 100644
index ba28ab31..00000000
--- a/sysdeps/osf1/swap.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/swap.h>
-
-static const unsigned long _glibtop_sysdeps_swap =
-(1L << GLIBTOP_SWAP_TOTAL) + (1L << GLIBTOP_SWAP_USED) +
-(1L << GLIBTOP_SWAP_FREE);
-
-/* Init function. */
-
-void
-_glibtop_init_swap_s (glibtop *server)
-{
- server->sysdeps.swap = _glibtop_sysdeps_swap;
-}
-
-/* Provides information about swap usage. */
-
-void
-glibtop_get_swap_s (glibtop *server, glibtop_swap *buf)
-{
- struct tbl_swapinfo swapinfo;
- int i;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_SWAP, 0);
-
- memset (buf, 0, sizeof (glibtop_swap));
-
- i = 0;
-
- while (table (TBL_SWAPINFO, i, (char *) &swapinfo, 1,
- sizeof (struct tbl_swapinfo)) > 0) {
- buf->total += swapinfo.size * getpagesize ();
- buf->free += swapinfo.free * getpagesize ();
- i++;
- }
-
- buf->flags = _glibtop_sysdeps_swap;
-
- buf->used = buf->total - buf->free;
-}
diff --git a/sysdeps/osf1/uptime.c b/sysdeps/osf1/uptime.c
deleted file mode 100644
index 826b4428..00000000
--- a/sysdeps/osf1/uptime.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/uptime.h>
-
-#include <time.h>
-
-static const unsigned long _glibtop_sysdeps_uptime =
-(1L << GLIBTOP_UPTIME_UPTIME);
-
-/* Init function. */
-
-void
-_glibtop_init_uptime_s (glibtop *server)
-{
- server->sysdeps.uptime = _glibtop_sysdeps_uptime;
-}
-
-/* Provides uptime and idle time. */
-
-void
-glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf)
-{
- struct tbl_sysinfo sysinfo;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_UPTIME, 0);
-
- memset (buf, 0, sizeof (glibtop_uptime));
-
- if(table (TBL_SYSINFO, 0, (char *) &sysinfo, 1,
- sizeof (struct tbl_sysinfo)) != 1)
- return;
-
- buf->uptime = (double) (time (NULL) - sysinfo.si_boottime);
- buf->boot_time = sysinfo.si_boottime;
-
- buf->flags = _glibtop_sysdeps_uptime;
-}
diff --git a/sysdeps/solaris/AUTHORS b/sysdeps/solaris/AUTHORS
deleted file mode 100644
index 37b903af..00000000
--- a/sysdeps/solaris/AUTHORS
+++ /dev/null
@@ -1,2 +0,0 @@
-Drazen Kacar (dave@srce.hr)
-Martin Baulig (martin@home-of-linux.org)
diff --git a/sysdeps/solaris/ChangeLog b/sysdeps/solaris/ChangeLog
deleted file mode 100644
index 13701dcf..00000000
--- a/sysdeps/solaris/ChangeLog
+++ /dev/null
@@ -1,436 +0,0 @@
-2007-06-07 Benoît Dejean <benoit@placenet.org>
-
- * proclist.c: (glibtop_get_proclist_s):
-
- Fixed build.
- Patch by Damien Carbery <damien.carbery@sun.com>.
- Closes #444815.
-
-2006-09-19 Benoît Dejean <benoit@placenet.org>
-
- * Makefile.am:
- * procopenfiles.c: (glibtop_init_proc_open_files_s),
- (glibtop_get_proc_open_files_s):
-
- Added glibtop_get_proc_open_files implementation by
- Henry Zhang <hua.zhang@sun.com>.
- Closes #346174.
-
-2006-06-24 Benoît Dejean <benoit@placenet.org>
-
- * proctime.c: (glibtop_get_proc_time_s):
-
- Fixed start time.
-
- Patch by hua.zhang@sun.com.
- Closes #345819.
-
-2006-06-24 Benoît Dejean <benoit@placenet.org>
-
- * procmap.c: (glibtop_get_proc_map_s):
-
- Fixed writable memory.
-
- Patch by hua.zhang@sun.com.
- Closes #345817.
-
-2006-06-24 Benoît Dejean <benoit@placenet.org>
-
- * open.c: (glibtop_get_kstats), (glibtop_open_s):
-
- Can't get cpu_stat_kstat, didn't close kstat, this will make other
- program used kstat wrong.
- Patch by hua.zhang@sun.com.
- Closes #345814.
-
-2006-06-24 Benoît Dejean <benoit@placenet.org>
-
- * netlist.c: (glibtop_get_netlist_s):
-
- Fixed.
- Patch by hua.zhang@sun.com.
- Closes #345813.
-
-2006-06-24 Benoît Dejean <benoit@placenet.org>
-
- * msg_limits.c: (glibtop_init_msg_limits_p),
- (glibtop_get_msg_limits_p):
- * open_suid.c: (glibtop_open_p):
- * sem_limits.c: (glibtop_init_sem_limits_p),
- (glibtop_get_sem_limits_p):
- * shm_limits.c: (glibtop_init_shm_limits_p),
- (glibtop_get_shm_limits_p):
-
- Don't use kvm anymore.
- Patch by hua.zhang@sun.com.
- Closes #345811.
-
-2005-08-12 Benoît Dejean <benoit@placenet.org>
-
- * glibtop_server.h:
- * open.c:
- * open_suid.c:
- * procdata.c:
-
- Added missing includes.
- Added missing GLIBTOP_SUID_NETLIST.
-
-2004-10-11 Benoît Dejean <tazforever@dlfp.org>
-
- * cpu.c: (glibtop_init_cpu_s), (glibtop_get_cpu_s):
- * loadavg.c: (glibtop_get_loadavg_s):
- * mem.c: (glibtop_init_mem_s), (glibtop_get_mem_s):
- * open.c: (glibtop_get_kstats), (glibtop_open_s):
- * procargs.c: (glibtop_get_proc_args_s):
- * procdata.c: (glibtop_get_proc_data_psinfo_s),
- (glibtop_get_proc_data_usage_s), (glibtop_get_proc_credentials_s),
- (glibtop_get_proc_status_s):
- * proclist.c: (glibtop_get_proclist_s):
- * procmap.c: (glibtop_get_proc_map_s):
- * procmem.c: (glibtop_get_proc_mem_s):
- * procstate.c: (glibtop_get_proc_state_s):
- * safeio.c:
- * safeio.h:
- * shm_limits.c: (glibtop_init_shm_limits_p),
- (glibtop_get_shm_limits_p):
- * swap.c: (glibtop_get_swap_s):
- * uptime.c: (glibtop_get_uptime_s): Updated. Lots of cleanup.
-
-2004-06-06 Benoît Dejean <tazforever@dlfp.org>
-
- * proclist.c: (glibtop_get_proclist_s): Removed useless tests.
- * procmap.c: (glibtop_get_proc_map_s): Replace g_malloc + memset
- by g_malloc0
- * procstate.c: (glibtop_get_proc_state_s): Replace strncpy by g_strlcpy.
-
-2004-05-25 Benoît Dejean <tazforever@dlfp.org>
-
- * loadavg.c: (glibtop_get_loadavg_s):
- * msg_limits.c:
- * sem_limits.c:
- * shm_limits.c: Added missing const qualifiers.
-
-2004-03-09 Bastien Nocera <hadess@hadess.net>
-
- * procargs.c: (glibtop_get_proc_args_s):
- * procmap.c: (glibtop_get_proc_map_s): fix g_malloc usage on non-Linux
- platforms (patch by Benoît Dejean <bnet@ifrance.com>)
-
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * shm_limits.c: (glibtop_get_shm_limits_p): Apply patch by
- the_h1ghlander@yahoo.com and Cory Omand <cory.omand@Sun.com> for
- Solaris support
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * mem.c: (glibtop_get_mem_s):
- * swap.c: (glibtop_get_swap_s): s/u_int64_t/guint64/
-
-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):
- * proclist.c: (glibtop_get_proclist_s):
- * procmap.c: (glibtop_get_proc_map_s):
- replace all the xmalloc crap by glib memory management functions
-
-2001-10-17 Abel Cheung <maddog@linux.org.hk>
-
- * Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
-
-2001-02-18 Martin Baulig <baulig@suse.de>
-
- Applied a patch from Laszlo PETER <Laszlo.Peter@ireland.sun.com>
- for Solaris 8.
-
- * msg_limits.c: `struct msginfo' no longer has msgmap and msgssz.
- * sem_limits.c: `struct seminfo' no longer has a semmap field.
-
-1999-10-17 Martin Baulig <martin@home-of-linux.org>
-
- * Makefile.am (libgtop_sysdeps_la_LIBADD): Added `@DL_LIB@'.
-
-1999-09-28 Drazen Kacar <dave@srce.hr>
-
- * proclist.c (glibtop_get_proclist_s): Bugfix. It wasn't
- excluding system, non-tty or idle processes if that was
- requested.
-
-1999-07-29 Martin Baulig <martin@home-of-linux.org>
-
- * proctime.c (glibtop_get_proc_time_p): Fix bug reported by
- Takis Psarogiannakopoulos: `start_time' are seconds since the
- epoch as it is stated in the manual.
-
-1999-07-16 Drazen Kacar <dave@srce.hr>
-
- * proclist.c: Bug fix. All Solaris versions have RUID and
- RGID in /proc.
-
-1999-06-07 Drazen Kacar <dave@srce.hr>
-
- * glibtop_machine.h, open.c, procargs.c, proclist.c, procmap.c:
- Solaris 2.5 & 2.5.1 portability fixes, based on patches
- from Steve Murphy <murf@e-tools.com>.
-
-1999-05-30 Drazen Kacar <dave@srce.hr>
-
- * procargs.c: Fixed bug in calculation of process argument list.
-
-1999-05-27 Drazen Kacar <dave@srce.hr>
-
- * glibtop_machine.h, open.c, procmap.c: Get the file name
- from inode number.
-
-1999-05-17 Drazen Kacar <dave@srce.hr>
-
- * procargs.c: Implemented what Solaris has to offer cheaply.
- It sucks, but digging in process address space would be
- too slow.
-
-1999-05-11 Drazen Kacar <dave@srce.hr>
-
- * proctime.c: Return 0 usage times for scheaduler (PID 0).
-
-1999-05-10 Drazen Kacar <dave@srce.hr>
-
- * proclist.c: Added process selection mechanism. It's not
- included in Solaris 2.5 build, since we first have to decide
- what will be dispatched to daemon.
-
-1999-05-10 Drazen Kacar <dave@srce.hr>
-
- There be some useful documentation now. Syncing...
-
- * mem.c: Output values in bytes, as the documentation requires.
- It was a bit odd when gtop reported 256K of total memory.
-
-1999-05-09 Drazen Kacar <dave@srce.hr>
-
- * glibtop_machine.h, procdata.c, proclist.c, procmap.c, procmem.c,
- procsignal.c, procstate.c, procuid.c, open.c, mem.c: Initial
- Solaris 2.5 port. It's far from being complete and hasn't been
- tested properly. We'll need setuid root daemon, which is
- currently not implemented. #ifdef symbols to check are
- HAVE_PROCFS_H and KSTAT_DATA_UINT32. These will be defined on
- Solaris 2.6 and later, but not on earlier releases.
-
-1999-05-08 Drazen Kacar <dave@srce.hr>
-
- * safeio.c, safeio.h: Added s_open(), s_close() etc. with EINTR
- wrappers.
-
- * procdata.c, procmap.c, proclist.c: Use them.
-
-1999-05-08 Drazen Kacar <dave@srce.hr>
-
- * procmem.c: Use bytes as units for memory consumption.
-
-1999-05-08 Drazen Kacar <dave@srce.hr>
-
- * procuid.c: Fixed nice value.
-
-1999-05-08 Martin Baulig <martin@home-of-linux.org>
-
- Use the setgid server for IPC Limits.
-
- * shm_limits.c, msg_limits.c, sem_limits.c: Moved them into the
- setgid server since they need to access kvm data.
-
- * open_suid.c, close_suid.c: New file. We do the initialization and cleanup
- for the setgid server here.
-
- * glibtop_suid.h: New file. We include this in the setgid files.
-
- * open.c: Moved kvm opening code into open_suid.c.
-
-1999-05-07 Drazen Kacar <dave@srce.hr>
-
- * glibtop_machine.h, open.c, mem.c, procmem.c: machine.pagesize
- is now number of bits we need for shifting, ie. 2^pagesize
- will give pagesize in Kb.
-
-1999-05-07 Drazen Kacar <dave@srce.hr>
-
- * procmem.c: Implemented size, vsize, resident and rss.
-
-1999-05-06 Drazen Kacar <dave@srce.hr>
-
- * siglist.c: Fixed, valid for Solaris 2.6 & 7.
-
-1999-05-06 Drazen Kacar <dave@srce.hr>
-
- * glibtop_private.h, procuid.c, procdata.c: List of supplementary
- groups was not correct. Fixed.
-
-1999-05-04 Drazen Kacar <dave@srce.hr>
-
- * glibtop_machine.h: Changed boot time to unsigned long long.
-
- * open.c: Added proper type checking for boot value. There's
- no point in saving a few nanoseconds in init function. And
- one day it will become 64-bit value.
-
- In glibtop_get_kstats(): Don't reread vminfo_snaptime when
- reinitializing kstats.
-
-1999-05-03 Drazen Kacar <dave@srce.hr>
-
- * glibtop_private.h: Fixed typoo.
-
- * procmap.c (glibtop_get_proc_map_s): Implemented start, end,
- offset and perm for mapped segments. File name and inode
- should be accessible from bunyip kstat data. The only
- obstacle is that the data format is undocumented and
- possibly not the same accross releases.
-
-1999-05-03 Drazen Kacar <dave@srce.hr>
-
- * glibtop_private.h, procdata.c (glibtop_get_proc_status_s):
- Read pstatus info from /proc
-
- * procsignal.c (glibtop_get_proc_signal_s): Implemented
- set of pending and blocked signals. The rest should probably
- be read from /proc/<pid>/sigact, but I'm not sure it's
- worth implementing before thread API comes into place.
-
- * siglist.c: Added Solaris 7 signals. Someone will gettextize
- it eventually. Besides, signal list should become a pointer
- instead of being fixed field. We need some run time initializations.
- The code is written, but commented out.
-
-1999-05-03 Drazen Kacar <dave@srce.hr>
-
- * glibtop_private.h: Ups, forgot to put prototypes in.
-
-1999-05-02 Drazen Kacar <dave@srce.hr>
-
- * open.c (glibtop_get_kstats): Yet another kstat_chain_update
- check. Added machine.cpu_stat_kstat[x] = NULL when processor
- x is not configured.
-
- * procdata.c (glibtop_get_proc_credentials_s): Read prcred
- structure from /proc.
-
- * procstate.c (glibtop_get_proc_state_s): Added ruid, rgid,
- has_cpu, processor and last_processor.
-
- * procuid.c (glibtop_get_proc_uid_s): Added priority, nice,
- suid, sgid, ngroups and groups. The last four will be
- filled only if our process has the authority to read prcred
- structure of another process.
-
-1999-05-02 Drazen Kacar <dave@srce.hr>
-
- procdata.c: Use pread() instead of read().
-
-1999-05-02 Drazen Kacar <dave@srce.hr>
-
- * glibtop_machine.h: added fields for page size, clock ticks and
- boot time. These are constants. Also added three new kstats.
-
- * open.c (glibtop_get_kstats): Initialize kstats in *server.
- We need to call this at init time (obviously) and each time
- kstat_chain_update() says that kstat chain has changed. In this
- case all kstat pointers and data are invalid, so we need to
- reinitialize everything.
-
- (glibtop_open_s): Made it call glibtop_get_kstats(). Added
- initialization for run time constants in struct machine.
-
- * cpu.c (glibtop_get_cpu_s): Call kstat_chain_update().
- See if processor is on-line and set bits in xcpu_flags.
- Added frequency (bad name, should have been ticks).
-
- * swap.c (glibtop_get_swap_s): Call kstat_chain_update().
- I probably broke vminfo_snaptime consistency. Fix later.
-
- * uptime.c (glibtop_get_uptime_s): Implemented uptime and boot_time.
- Still looking for a sane way to get idletime.
-
- * mem.c (glibtop_get_mem_s): Implemented. Will use bunyip
- module if it's loaded. Or when it gets loaded. kstat_chain_update()
- is our friend. And with a friends like that...
-
- * loadavg.c (glibtop_get_loadavg_s): Solaris 2.6 code brought
- into sync with everything else.
-
- * msg_limits.c (glibtop_init_msg_limits_s): Implemented.
-
- * sem_limits.c (glibtop_get_sem_limits_s): Implemented.
-
- Solaris takes kernel modularity too seriously. We can't get
- IPC configuration data if the kernel module is not loaded and
- it won't be loaded until some process actually asks for a
- particular IPC resource. There's no way to tell our applications
- about this. Possible API additions?
-
- All three IPC functions should go into daemon, but I'm keeping
- them in the normal library because I can't build daemon yet. All
- praise 64 bits!
-
-1999-04-29 Drazen Kacar <dave@srce.hr>
-
- * glibtop_machine.h: added field for kvm descriptor.
-
- * open.c: added code for opening kernel name space.
-
- * shm_limits.c: implemented.
-
-1999-03-31 Drazen Kacar <dave@srce.hr>
-
- * loadavg.c: make it work with Solaris 2.6 and older. A part
- of it should be moved to open.c.
-
-1999-03-19 Martin Baulig <martin@home-of-linux.org>
-
- Added first kstat based implementation for Solaris 7.
-
- * open.c (glibtop_open_s): Walk kstat list and save interesting
- kstats in the `server->machine'.
-
- * cpu.c: This can already provide `idle', `user' and `sys' with
- full SMP support.
-
- * swap.c: This can already provide `total', `used' and `free'.
-
-1999-03-17 Martin Baulig <martin@home-of-linux.org>
-
- Initial import of my Solaris 7 port.
-
- * loadavg.c: We use getloadavg () to get the `loadavg' field.
-
- * procdata.c: This file will handle all interaction with the
- /proc filesystem.
- (glibtop_get_proc_data_psinfo_s): Read `/proc/<pid>/psinfo' and
- return the resulting `struct psinfo'.
- (glibtop_get_proc_data_usage_s): Read `/proc/<pid>/usage' and
- return the resulting `struct prusage'.
-
- * proclist.c: We use readdir () on /proc to get the list of
- all pids.
-
- * procstate.c: Read `uid' and `gid' from the `struct psinfo'.
-
- * proctime.c: Read `start_time', `rtime', `utime' and `stime'
- from the `struct prusage'.
-
- * procuid.c: Read `euid', `uid', `egid', `gid', `pid', `ppid',
- `pgrp', `session' and `tty' from the `struct psinfo'.
-
diff --git a/sysdeps/solaris/Makefile.am b/sysdeps/solaris/Makefile.am
deleted file mode 100644
index 3f43e69f..00000000
--- a/sysdeps/solaris/Makefile.am
+++ /dev/null
@@ -1,28 +0,0 @@
-
-INCLUDES = @INCLUDES@
-
-noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
-
-libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c \
- safeio.c swap.c uptime.c loadavg.c \
- proclist.c procstate.c procuid.c \
- proctime.c procmem.c procsignal.c \
- prockernel.c procsegment.c procargs.c \
- procopenfiles.c \
- procmap.c netload.c ppp.c procdata.c netlist.c
-
-libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
-libgtop_sysdeps_2_0_la_LIBADD = @DL_LIB@
-
-libgtop_sysdeps_suid_2_0_la_SOURCES = open_suid.c close_suid.c \
- shm_limits.c msg_limits.c sem_limits.c
-
-libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
-
-libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h
-libgtopincludedir = $(includedir)/libgtop-2.0
-
-noinst_HEADERS = glibtop_private.h glibtop_suid.h safeio.h
-
diff --git a/sysdeps/solaris/close.c b/sysdeps/solaris/close.c
deleted file mode 100644
index 03057967..00000000
--- a/sysdeps/solaris/close.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/close.h>
-
-/* Closes pipe to gtop server. */
-
-void
-glibtop_close_s (glibtop *server)
-{ }
diff --git a/sysdeps/solaris/close_suid.c b/sysdeps/solaris/close_suid.c
deleted file mode 100644
index 22717e1c..00000000
--- a/sysdeps/solaris/close_suid.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/close.h>
-
-/* Closes pipe to gtop server. */
-
-void
-glibtop_close_p (glibtop *server)
-{ }
diff --git a/sysdeps/solaris/cpu.c b/sysdeps/solaris/cpu.c
deleted file mode 100644
index 0a54426a..00000000
--- a/sysdeps/solaris/cpu.c
+++ /dev/null
@@ -1,111 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/cpu.h>
-
-#include <assert.h>
-#include <sys/processor.h>
-
-#include <glibtop_private.h>
-
-static const unsigned long _glibtop_sysdeps_cpu_freq =
-(1L << GLIBTOP_CPU_FREQUENCY);
-
-static const unsigned long _glibtop_sysdeps_cpu_all =
-(1L << GLIBTOP_CPU_TOTAL) + (1L << GLIBTOP_CPU_USER) +
-(1L << GLIBTOP_CPU_SYS) + (1L << GLIBTOP_CPU_IDLE) +
-(1L << GLIBTOP_XCPU_TOTAL) + (1L << GLIBTOP_XCPU_USER) +
-(1L << GLIBTOP_XCPU_SYS) + (1L << GLIBTOP_XCPU_IDLE) +
-(1L << GLIBTOP_XCPU_FLAGS) +
-(1L << GLIBTOP_CPU_FREQUENCY);
-
-/* Init function. */
-
-void
-_glibtop_init_cpu_s (glibtop *server)
-{
- server->sysdeps.cpu = _glibtop_sysdeps_cpu_all;
-}
-
-/* Provides information about cpu usage. */
-
-void
-glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
-{
- kstat_ctl_t * const kc = server->machine.kc;
- cpu_stat_t cpu_stat;
- processorid_t cpu;
- int ncpu, found;
-
- memset (buf, 0, sizeof (glibtop_cpu));
-
- buf->frequency = server->machine.ticks;
- buf->flags = _glibtop_sysdeps_cpu_freq;
-
- if(!kc)
- return;
-
- switch(kstat_chain_update(kc))
- {
- case -1: assert(0); /* Debugging purposes, shouldn't happen */
- case 0: break;
- default: glibtop_get_kstats(server);
- }
-
- ncpu = MIN(GLIBTOP_NCPU, server->ncpu);
-
- for (cpu = 0, found = 0; cpu < GLIBTOP_NCPU && found != ncpu; cpu++)
- {
- kstat_t * const ksp = server->machine.cpu_stat_kstat [cpu];
- if (!ksp) continue;;
-
- ++found;
-
- if(p_online(cpu, P_STATUS) == P_ONLINE)
- buf->xcpu_flags |= (1L << cpu);
- else
- continue;
-
- if (kstat_read (kc, ksp, &cpu_stat) == -1) {
- glibtop_warn_io_r (server, "kstat_read (cpu_stat%d)", cpu);
- continue;
- }
-
- buf->xcpu_idle [cpu] = cpu_stat.cpu_sysinfo.cpu [CPU_IDLE];
- buf->xcpu_user [cpu] = cpu_stat.cpu_sysinfo.cpu [CPU_USER];
- buf->xcpu_sys [cpu] = cpu_stat.cpu_sysinfo.cpu [CPU_KERNEL];
- buf->xcpu_total [cpu] = buf->xcpu_idle [cpu] + buf->xcpu_user [cpu] +
- buf->xcpu_sys [cpu];
-
- buf->idle += cpu_stat.cpu_sysinfo.cpu [CPU_IDLE];
- buf->user += cpu_stat.cpu_sysinfo.cpu [CPU_USER];
- buf->sys += cpu_stat.cpu_sysinfo.cpu [CPU_KERNEL];
- }
-
- if(!found)
- return;
-
- buf->total = buf->idle + buf->user + buf->sys;
- buf->flags = _glibtop_sysdeps_cpu_all;
-}
diff --git a/sysdeps/solaris/glibtop_machine.h b/sysdeps/solaris/glibtop_machine.h
deleted file mode 100644
index 71f2d9e4..00000000
--- a/sysdeps/solaris/glibtop_machine.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, March 1999.
-
- 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_MACHINE_H__
-#define __GLIBTOP_MACHINE_H__
-
-#include <sys/param.h>
-#ifdef HAVE_PROCFS_H
-#include <procfs.h>
-#else
-#include <sys/procfs.h>
-#endif
-#include <fcntl.h>
-
-#include <kstat.h>
-#include <kvm.h>
-#include <sys/sysinfo.h>
-
-G_BEGIN_DECLS
-
-typedef struct _glibtop_machine glibtop_machine;
-
-struct _glibtop_machine
-{
- uid_t uid, euid;
- gid_t gid, egid;
- pid_t me; /* Don't ask why we need this */
-
- kvm_t *kd;
-
- kstat_ctl_t *kc;
-
- kstat_t *vminfo_kstat;
- hrtime_t vminfo_snaptime;
- vminfo_t vminfo;
-
- kstat_t *cpu_stat_kstat [64];
-
- kstat_t *system; /* boot_time & avenrun* where needed */
- kstat_t *syspages; /* memory usage */
- kstat_t *bunyip; /* more memory usage */
-
- int pagesize; /* in bits to shift, ie. 2^pagesize gives Kb */
- int ticks; /* clock ticks, as returned by sysconf() */
- unsigned long long boot; /* boot time, although it's ui32 in kstat */
- void *libproc; /* libproc handle */
-#if GLIBTOP_SOLARIS_RELEASE >= 50600
- void (*objname)(void *, uintptr_t, const char *, size_t);
- struct ps_prochandle *(*pgrab)(pid_t, int, int *);
- void (*pfree)(void *);
-#else
- void *filler[3];
-#endif
-};
-
-G_END_DECLS
-
-#endif /* __GLIBTOP_MACHINE_H__ */
diff --git a/sysdeps/solaris/glibtop_private.h b/sysdeps/solaris/glibtop_private.h
deleted file mode 100644
index 68e400d4..00000000
--- a/sysdeps/solaris/glibtop_private.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, March 1999.
-
- 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_PRIVATE_H__
-#define __GLIBTOP_PRIVATE_H__
-
-#include <glibtop.h>
-
-#include <sys/param.h>
-#include <kstat.h>
-#include <fcntl.h>
-#if defined(HAVE_PROCFS_H)
-# include <procfs.h>
-#elif defined(HAVE_SYS_PROCFS_H)
-# include <sys/procfs.h>
-#else
-# error Cannot compile without <procfs.h> or <sys/procfs.h>
-#endif
-
-G_BEGIN_DECLS
-
-#ifdef HAVE_PROCFS_H
-
-/* Read /proc/<pid>/psinfo */
-int glibtop_get_proc_data_psinfo_s(glibtop *, struct psinfo *, pid_t pid);
-
-/* Read /proc/<pid>/status */
-int glibtop_get_proc_status_s(glibtop *, struct pstatus *, pid_t);
-#else
-int glibtop_get_proc_data_psinfo_s(glibtop *, struct prpsinfo *, pid_t);
-int glibtop_get_proc_status_s(glibtop *, struct prstatus *, pid_t);
-#endif
-
-/* Read /proc/<pid>/usage */
-int glibtop_get_proc_data_usage_s(glibtop *, struct prusage *, pid_t);
-
-#if LIBGTOP_VERSION_CODE >= 1001002
-/* Read /proc/<pid>/cred */
-int glibtop_get_proc_credentials_s(glibtop *, struct prcred *, gid_t *, pid_t);
-#endif
-
-/* Reread kstat chains */
-void glibtop_get_kstats(glibtop *);
-
-G_END_DECLS
-
-#endif /* __GLIBTOP_PRIVATE_H__ */
diff --git a/sysdeps/solaris/glibtop_server.h b/sysdeps/solaris/glibtop_server.h
deleted file mode 100644
index 662e3ab4..00000000
--- a/sysdeps/solaris/glibtop_server.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* 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_SERVER_H__
-#define __GLIBTOP_SERVER_H__
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_SUID_CPU 0
-#define GLIBTOP_SUID_MEM 0
-#define GLIBTOP_SUID_SWAP 0
-#define GLIBTOP_SUID_UPTIME 0
-#define GLIBTOP_SUID_LOADAVG 0
-#define GLIBTOP_SUID_SHM_LIMITS (1L << GLIBTOP_SYSDEPS_SHM_LIMITS)
-#define GLIBTOP_SUID_MSG_LIMITS (1L << GLIBTOP_SYSDEPS_MSG_LIMITS)
-#define GLIBTOP_SUID_SEM_LIMITS (1L << GLIBTOP_SYSDEPS_SEM_LIMITS)
-#define GLIBTOP_SUID_PROCLIST 0
-#define GLIBTOP_SUID_PROC_STATE 0
-#define GLIBTOP_SUID_PROC_UID 0
-#define GLIBTOP_SUID_PROC_MEM 0
-#define GLIBTOP_SUID_PROC_TIME 0
-#define GLIBTOP_SUID_PROC_SIGNAL 0
-#define GLIBTOP_SUID_PROC_KERNEL 0
-#define GLIBTOP_SUID_PROC_SEGMENT 0
-#define GLIBTOP_SUID_PROC_ARGS 0
-#define GLIBTOP_SUID_PROC_MAP 0
-#define GLIBTOP_SUID_NETLOAD 0
-#define GLIBTOP_SUID_NETLIST 0
-#define GLIBTOP_SUID_PPP 0
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/solaris/glibtop_suid.h b/sysdeps/solaris/glibtop_suid.h
deleted file mode 100644
index d11c64cf..00000000
--- a/sysdeps/solaris/glibtop_suid.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/* 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_SUID_H__
-#define __GLIBTOP_SUID_H__
-
-G_BEGIN_DECLS
-
-static inline void glibtop_suid_enter (glibtop *server) {
- setreuid (server->machine.uid, server->machine.euid);
-};
-
-static inline void glibtop_suid_leave (glibtop *server) {
- if (setreuid (server->machine.euid, server->machine.uid))
- _exit (1);
-};
-
-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);
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/solaris/loadavg.c b/sysdeps/solaris/loadavg.c
deleted file mode 100644
index 9c7b6d46..00000000
--- a/sysdeps/solaris/loadavg.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, March 1999.
-
- 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/loadavg.h>
-
-#ifdef HAVE_GETLOADAVG
-#include <sys/loadavg.h>
-#else
-#include <assert.h>
-#include <sys/param.h>
-#include <kstat.h>
-#endif
-
-static const unsigned long _glibtop_sysdeps_loadavg =
-(1L << GLIBTOP_LOADAVG_LOADAVG);
-
-/* Init function. */
-
-void
-_glibtop_init_loadavg_s (glibtop *server)
-{
- server->sysdeps.loadavg = _glibtop_sysdeps_loadavg;
-}
-
-/* Provides load average. */
-
-void
-glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
-{
-#ifndef HAVE_GETLOADAVG
- kstat_ctl_t *kc;
- kstat_t *ksp;
- size_t i;
- static const char avestrings[][14] = { "avenrun_1min",
- "avenrun_5min",
- "avenrun_15min" };
-#endif
- memset (buf, 0, sizeof (glibtop_loadavg));
-
-#ifdef HAVE_GETLOADAVG
- if (getloadavg (buf->loadavg, 3) != 3)
- return;
-
-#else
- if(!(kc = server->machine.kc))
- return;
-
- switch(kstat_chain_update(kc))
- {
- case -1: assert(0); /* Debugging, shouldn't happen */
- case 0: break;
- default: glibtop_get_kstats(server);
- }
-
- if(!(ksp = server->machine.system))
- return;
-
- if(kstat_read(kc, ksp, NULL) < 0)
- return;
-
- for(i = 0; i < 3; ++i) /* Do we have a countof macro? */
- {
- kstat_named_t *kn;
-
- kn = (kstat_named_t *)kstat_data_lookup(ksp, avestrings[i]);
- if(kn)
- buf->loadavg[i] = (double)kn->value.ul / FSCALE;
- }
-#endif /* HAVE_GETLOADAVG */
-
- buf->flags = _glibtop_sysdeps_loadavg;
-}
diff --git a/sysdeps/solaris/mem.c b/sysdeps/solaris/mem.c
deleted file mode 100644
index 0c298fdd..00000000
--- a/sysdeps/solaris/mem.c
+++ /dev/null
@@ -1,133 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/mem.h>
-
-#include <assert.h>
-#include <unistd.h>
-
-#include <glibtop_private.h>
-
-/* Init function. */
-
-void
-_glibtop_init_mem_s (glibtop *server)
-{
- server->sysdeps.mem = (1L << GLIBTOP_MEM_TOTAL)
- | (1L << GLIBTOP_MEM_FREE)
- | (1L << GLIBTOP_MEM_USED)
- | (1L << GLIBTOP_MEM_LOCKED)
- | (1L << GLIBTOP_MEM_SHARED)
- | (1L << GLIBTOP_MEM_BUFFER)
- | (1L << GLIBTOP_MEM_USER);
-}
-
-/* Provides information about memory usage. */
-
-void
-glibtop_get_mem_s (glibtop *server, glibtop_mem *buf)
-{
- kstat_ctl_t * const kc = server->machine.kc;
- kstat_t *ksp;
- kstat_named_t *kn;
-
-#undef PAGESIZE
-#define PAGESIZE (server->machine.pagesize)
-#define PAGESHIFT (PAGESIZE + 10)
-
-#ifdef _LP64
-#define KN_VALUE kn->value.ui64
-#elif !defined(KSTAT_DATA_UINT32)
-#define KN_VALUE kn->value.ul
-#else
-#define KN_VALUE kn->value.ui32
-#endif
-
- memset (buf, 0, sizeof (glibtop_mem));
-
- buf->total = (guint64) sysconf(_SC_PHYS_PAGES) << PAGESHIFT;
- buf->flags = (1 << GLIBTOP_MEM_TOTAL);
-
- if(!kc)
- return;
-
- switch(kstat_chain_update(kc))
- {
- case -1: assert(0); /* Debugging purposes, shouldn't happen */
- case 0: break;
- default: glibtop_get_kstats(server);
- }
-
- if((ksp = server->machine.syspages) && kstat_read(kc, ksp, NULL) >= 0)
- {
- kn = kstat_data_lookup(ksp, "pagesfree");
- if(kn)
- {
- buf->free = (KN_VALUE << PAGESHIFT);
- buf->used = buf->total - buf->free;
- buf->flags |= (1 << GLIBTOP_MEM_FREE);
- buf->flags |= (1 << GLIBTOP_MEM_USED);
- }
-
- kn = kstat_data_lookup(ksp, "pageslocked");
- if(kn)
- {
- buf->locked = (KN_VALUE << PAGESIZE);
- buf->flags |= (1 << GLIBTOP_MEM_LOCKED);
- }
- }
-
- /* Bunyip module provides data in multiples of system page size */
-
- if((ksp = server->machine.bunyip) && kstat_read(kc, ksp, NULL) >= 0)
- {
- kn = kstat_data_lookup(ksp, "pages_exec");
- if(kn)
- {
- buf->shared = (KN_VALUE << PAGESHIFT);
- buf->flags |= (1 << GLIBTOP_MEM_SHARED);
- }
-
- kn = kstat_data_lookup(ksp, "pages_vnode");
- if(kn)
- {
- buf->buffer = (KN_VALUE << PAGESHIFT);
- buf->flags |= (1 << GLIBTOP_MEM_BUFFER);
- }
-
- kn = kstat_data_lookup(ksp, "pages_anon");
- if(kn)
- {
- buf->user = (KN_VALUE << PAGESHIFT);
- buf->flags |= (1 << GLIBTOP_MEM_USER);
- }
- else
- goto user_old_way;
- }
- else /* Bunyip is not available, let's compute buf->user the old way */
- {
- user_old_way:
- buf->user = buf->total - buf->free - buf->cached - buf->buffer;
- buf->flags |= (1 << GLIBTOP_MEM_USER);
- }
-}
diff --git a/sysdeps/solaris/msg_limits.c b/sysdeps/solaris/msg_limits.c
deleted file mode 100644
index 787e8925..00000000
--- a/sysdeps/solaris/msg_limits.c
+++ /dev/null
@@ -1,119 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/msg_limits.h>
-
-#include <kvm.h>
-#include <rctl.h>
-#include <sys/msg.h>
-
-static const struct nlist nlst[] = { {"glibtop_msg_limits"}, {NULL} };
-#if GLIBTOP_SOLARIS_RELEASE < 51000
-static const unsigned long _glibtop_sysdeps_msg_limits =
-#if GLIBTOP_SOLARIS_RELEASE <= 50700
-(1L << GLIBTOP_IPC_MSGMAP) + (1L << GLIBTOP_IPC_MSGSSZ) +
-#endif
-(1L << GLIBTOP_IPC_MSGPOOL) + (1L << GLIBTOP_IPC_MSGMAX) +
-(1L << GLIBTOP_IPC_MSGMNB) + (1L << GLIBTOP_IPC_MSGMNI) +
-(1L << GLIBTOP_IPC_MSGTQL);
-#else
-static const unsigned long _glibtop_sysdeps_msg_limits = 0;
-#endif
-
-
-/* Init function. */
-
-void
-_glibtop_init_msg_limits_p (glibtop *server)
-{
-#if GLIBTOP_SOLARIS_RELEASE < 51000
-
- kvm_t *kd = server->machine.kd;
-
- if(kd && !kvm_nlist(kd, nlst))
- server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits;
- else
- server->sysdeps.msg_limits = 0;
-#endif
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf)
-{
-#if GLIBTOP_SOLARIS_RELEASE < 51000
-
- kvm_t *kd = server->machine.kd;
- glibtop_msg_limits minfo;
-
-
- memset (buf, 0, sizeof (glibtop_msg_limits));
-
- if(!(server->sysdeps.msg_limits))
- return;
- if(kvm_read(kd, nlst[0].n_value, (void *)&minfo,
- sizeof(glibtop_msg_limits)) != sizeof(glibtop_msg_limits))
-
- return;
-
-#if GLIBTOP_SOLARIS_RELEASE <= 50700
- /* These fields don't exist anymore in Solaris 8.
- * Thanks to Laszlo PETER <Laszlo.Peter@ireland.sun.com>. */
- buf->msgmap = minfo.msgmap;
- buf->msgssz = minfo.msgssz;
-#endif
- buf->msgmax = minfo.msgmax;
- buf->msgmnb = minfo.msgmnb;
- buf->msgmni = minfo.msgmni;
- buf->msgtql = minfo.msgtql;
-#endif
-#if GLIBTOP_SOLARIS_RELEASE >= 51000
- rctlblk_t *rblk;
- if ((rblk = malloc(rctlblk_size())) == NULL)
- return;
-
- if (getrctl("project.max-msg-qbytes", NULL, rblk, RCTL_FIRST) == -1)
- return;
- else
- buf->msgmnb = rctlblk_get_value(rblk);
-
- if (getrctl("project.max-msg-ids", NULL, rblk, RCTL_FIRST) == -1)
- return;
- else
- buf->msgmni = rctlblk_get_value(rblk);
-
- if (getrctl("project.max-msg-messages", NULL, rblk, RCTL_FIRST) == -1)
- return;
- else
- buf->msgtql = rctlblk_get_value(rblk);
- /* this is the maximum size of a system V message, which has been obsoleted as a kernel tunable value now */
- /* and it should always be 65535 instead, so I list it here, if needed, can be removed */
- buf->msgmax = 65535;
-
-#endif
-
- buf->msgpool = buf->msgmni * buf->msgmnb >> 10;
- buf->flags = _glibtop_sysdeps_msg_limits;
-
-}
diff --git a/sysdeps/solaris/netlist.c b/sysdeps/solaris/netlist.c
deleted file mode 100644
index a5280f5b..00000000
--- a/sysdeps/solaris/netlist.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/* Copyright (C) 1998-99 Benoît Dejean
- This file is part of LibGTop 2.0.
-
- 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.
-*/
-
-#include <config.h>
-#include <string.h>
-#include <kstat.h>
-
-#include <glibtop/netlist.h>
-
-
-
-static const unsigned long _glibtop_sysdeps_netlist = (1 << GLIBTOP_NETLIST_NUMBER);
-
-/* Init function. */
-
-void
-_glibtop_init_netlist_s (glibtop *server)
-{
- server->sysdeps.netlist = _glibtop_sysdeps_netlist;
-}
-
-
-char**
-glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf)
-{
- GPtrArray *devices;
- kstat_t *ksp;
- kstat_ctl_t *kc;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_NETLIST, 0);
-
- memset (buf, 0, sizeof (glibtop_netlist));
-
- devices = g_ptr_array_new();
-
- kc = kstat_open();
- if (kc == NULL) {
- glibtop_warn_io_r(server, "kstat_open()");
- return NULL;
- }
-
- for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next)
- {
- if (strcmp(ksp->ks_class, "net") != 0)
- continue;
-
- g_ptr_array_add(devices, g_strdup(ksp->ks_name));
- buf->number++;
- }
-
- kstat_close(kc);
-
- buf->flags = _glibtop_sysdeps_netlist;
-
- g_ptr_array_add(devices, NULL);
-
- return (char**) g_ptr_array_free(devices, FALSE);
-}
diff --git a/sysdeps/solaris/netload.c b/sysdeps/solaris/netload.c
deleted file mode 100644
index 0bdf7ade..00000000
--- a/sysdeps/solaris/netload.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/netload.h>
-
-static const unsigned long _glibtop_sysdeps_netload = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_netload_s (glibtop *server)
-{
- server->sysdeps.netload = _glibtop_sysdeps_netload;
-}
-
-/* Provides network statistics. */
-
-void
-glibtop_get_netload_s (glibtop *server, glibtop_netload *buf,
- const char *interface)
-{
- memset (buf, 0, sizeof (glibtop_netload));
-}
diff --git a/sysdeps/solaris/open.c b/sysdeps/solaris/open.c
deleted file mode 100644
index 9d33d650..00000000
--- a/sysdeps/solaris/open.c
+++ /dev/null
@@ -1,242 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/open.h>
-#include <glibtop/cpu.h>
-#include <glibtop/error.h>
-
-#include <unistd.h>
-#include <dlfcn.h>
-#include <sys/types.h>
-#include <sys/processor.h>
-
-#include <glibtop_private.h>
-
-/* We need to call this when kstat_chain_update() returns new KID.
- * In that case all kstat pointers and data are invalid, so we
- * need to reread everything. The condition shouldn't happen very
- * often.
- */
-
-void
-glibtop_get_kstats(glibtop *server)
-{
- kstat_ctl_t *kc = server->machine.kc;
- kstat_t *ksp;
- int nproc_same, new_ncpu;
-
- server->ncpu = new_ncpu = sysconf(_SC_NPROCESSORS_CONF);
-
-
- if(!kc)
- {
- server->ncpu = new_ncpu;
- server->machine.vminfo_kstat = NULL;
- server->machine.system = NULL;
- server->machine.syspages = NULL;
- server->machine.bunyip = NULL;
- return;
- }
-
- do {
-
- ksp = kstat_lookup(kc, "unix", -1, "vminfo");
- server->machine.vminfo_kstat = ksp;
- if(ksp)
- {
- kstat_read(kc, ksp, &server->machine.vminfo);
- /* Don't change snaptime if we only need to reinitialize kstats */
- if(!(server->machine.vminfo_snaptime))
- server->machine.vminfo_snaptime = ksp->ks_snaptime;
- }
-
- /* We don't know why was kstat chain invalidated. It could have
- been because the number of processors changed. The sysconf()
- man page says that values returned won't change during the
- life time of a process, but let's hope that's just an error in
- the documentation. */
-
- if((nproc_same = new_ncpu) == server->ncpu)
- {
- int checked, i;
- char cpu[20];
-
- for(i = 0, checked = 0; i < GLIBTOP_NCPU || checked == new_ncpu; ++i)
- if(!server->machine.cpu_stat_kstat[i])
-
- {
- sprintf(cpu, "cpu_stat%d", i);
- if(!(server->machine.cpu_stat_kstat[i] =
- kstat_lookup(kc, "cpu_stat", -1, cpu)))
- {
- nproc_same = 0;
- break;
- }
- ++checked;
- }
- }
-
- if(!nproc_same)
- {
- processorid_t p;
- int found;
- char cpu[20];
-
- server->ncpu = new_ncpu = MIN(new_ncpu, GLIBTOP_NCPU);
-
- for(p = 0, found = 0; p < GLIBTOP_NCPU && found != new_ncpu; ++p)
- {
- if(p_online(p, P_STATUS) < 0)
- {
- server->machine.cpu_stat_kstat[p] = NULL;
- continue;
- }
- sprintf(cpu, "cpu_stat%d", (int)p);
- server->machine.cpu_stat_kstat[p] =
- kstat_lookup(kc, "cpu_stat", -1, cpu);
- ++found;
- }
- }
-
- server->machine.system = kstat_lookup(kc, "unix", -1, "system_misc");
- server->machine.syspages = kstat_lookup(kc, "unix", -1, "system_pages");
- server->machine.bunyip = kstat_lookup(kc, "bunyip", -1, "mempages");
-
- } while(kstat_chain_update(kc) > 0 &&
- (new_ncpu = sysconf(_SC_NPROCESSORS_CONF)));
-
- /* We'll ignore -1 from kstat_chain_update here, since it really
- shouldn't happen */
-}
-
-void
-glibtop_open_s (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags)
-{
- kstat_ctl_t *kc;
- kstat_t *ksp;
- kstat_named_t *kn;
- int i, page;
- void *dl;
-
- server->name = program_name;
-
- page = sysconf(_SC_PAGESIZE) >> 10;
- for(i = 0; page; ++i, page >>= 1);
- server->machine.pagesize = i - 1;
- server->machine.ticks = sysconf(_SC_CLK_TCK);
- if(server->machine.kc)
- kstat_close(server->machine.kc);
- server->machine.kc = kc = kstat_open ();
-
-#if 0
- for (ksp = server->machine.kc->kc_chain; ksp != NULL; ksp = ksp->ks_next) {
- if (!strcmp (ksp->ks_class, "vm") && !strcmp (ksp->ks_name, "vminfo")) {
- server->machine.vminfo_kstat = ksp;
- kstat_read (server->machine.kc, ksp, &server->machine.vminfo);
- server->machine.vminfo_snaptime = ksp->ks_snaptime;
- continue;
- }
-
- if (!strcmp (ksp->ks_class, "misc") && !strncmp (ksp->ks_name, "cpu_stat", 8)) {
- int cpu;
-
- if ((sscanf (ksp->ks_name+8, "%d", &cpu) != 1) || (cpu > 63))
- continue;
-
- if (cpu >= server->ncpu)
- server->ncpu = cpu+1;
-
- server->machine.cpu_stat_kstat [cpu] = ksp;
- continue;
- }
- }
-
-#endif
-
- if (!kc)
- glibtop_warn_io_r (server, "kstat_open ()");
-
- server->ncpu = -1; /* Force processor detection */
- server->machine.vminfo_snaptime = 0; /* Force snaptime read */
- glibtop_get_kstats(server);
-
- server->machine.boot = 0;
- if((ksp = server->machine.system) && kstat_read(kc, ksp, NULL) >= 0)
- {
- kn = (kstat_named_t *)kstat_data_lookup(ksp, "boot_time");
- if(kn)
- switch(kn->data_type)
- {
-#ifdef KSTAT_DATA_INT32
- case KSTAT_DATA_INT32: server->machine.boot = kn->value.i32;
- break;
- case KSTAT_DATA_UINT32: server->machine.boot = kn->value.ui32;
- break;
- case KSTAT_DATA_INT64: server->machine.boot = kn->value.i64;
- break;
- case KSTAT_DATA_UINT64: server->machine.boot = kn->value.ui64;
- break;
-#else
- case KSTAT_DATA_LONG: server->machine.boot = kn->value.l;
- break;
- case KSTAT_DATA_ULONG: server->machine.boot = kn->value.ul;
- break;
- case KSTAT_DATA_LONGLONG: server->machine.boot = kn->value.ll;
- break;
- case KSTAT_DATA_ULONGLONG: server->machine.boot = kn->value.ull;
- break;
-#endif
- }
- }
-
- /* Now let's have a bit of magic dust... */
-
-#if GLIBTOP_SOLARIS_RELEASE >= 50600
-
- dl = dlopen("/usr/lib/libproc.so", RTLD_LAZY);
- if(server->machine.libproc)
- dlclose(server->machine.libproc);
- server->machine.libproc = dl;
- if(dl)
- {
- void *func;
-
- func = dlsym(dl, "Pobjname"); /* Solaris 8 */
- if(!func)
- func = dlsym(dl, "proc_objname"); /* Solaris 7 */
- server->machine.objname = (void (*)
- (void *, uintptr_t, const char *, size_t))func;
- server->machine.pgrab = (struct ps_prochandle *(*)(pid_t, int, int *))
- dlsym(dl, "Pgrab");
- server->machine.pfree = (void (*)(void *))dlsym(dl, "Pfree");
-
- }
- else
- {
- server->machine.objname = NULL;
- server->machine.pgrab = NULL;
- server->machine.pfree = NULL;
- }
-#endif
- server->machine.me = getpid();
-}
diff --git a/sysdeps/solaris/open_suid.c b/sysdeps/solaris/open_suid.c
deleted file mode 100644
index aaafd600..00000000
--- a/sysdeps/solaris/open_suid.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/init_hooks.h>
-#include <glibtop/error.h>
-#include <glibtop_suid.h>
-
-#include <unistd.h>
-#include <sys/types.h>
-
-/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
-void
-glibtop_init_p (glibtop *server, const unsigned long features,
- const unsigned flags)
-{
- const _glibtop_init_func_t *init_fkt;
-
- if (server == NULL)
- glibtop_error_r (NULL, "glibtop_init_p (server == NULL)");
-
- /* Do the initialization, but only if not already initialized. */
-
- if ((server->flags & _GLIBTOP_INIT_STATE_INIT) == 0) {
- glibtop_open_p (server, "glibtop", features, flags);
-
- for (init_fkt = _glibtop_init_hook_p; *init_fkt; init_fkt++)
- (*init_fkt) (server);
-
- server->flags |= _GLIBTOP_INIT_STATE_INIT;
- }
-}
-
-/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
-void
-glibtop_open_p (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags)
-{
- /* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */
-
- server->name = program_name;
-
- server->machine.uid = getuid ();
- server->machine.euid = geteuid ();
- server->machine.gid = getgid ();
- server->machine.egid = getegid ();
-
-#if GLIBTOP_SOLARIS_RELEASE < 51000
-
- server->machine.kd = kvm_open(NULL, NULL, NULL, O_RDONLY, NULL);
- if(!server->machine.kd)
- glibtop_warn_io_r(server, "kvm_open()");
-
-#endif
-
- /* Drop priviledges; we only become root when necessary.
-
- setreuid (ruid, euid) - set real and effective user id;
- setregid (rgid, egid) - set real and effective group id;
-
- */
-
- if (setreuid (server->machine.euid, server->machine.uid))
- _exit (1);
-
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- /* Our effective uid is now those of the user invoking the server,
- so we do no longer have any priviledges.
- */
-}
diff --git a/sysdeps/solaris/ppp.c b/sysdeps/solaris/ppp.c
deleted file mode 100644
index d7b510ef..00000000
--- a/sysdeps/solaris/ppp.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/ppp.h>
-
-static const unsigned long _glibtop_sysdeps_ppp = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_ppp_s (glibtop *server)
-{
- server->sysdeps.ppp = _glibtop_sysdeps_ppp;
-}
-
-/* Provides PPP/ISDN information. */
-
-void
-glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device)
-{
- memset (buf, 0, sizeof (glibtop_ppp));
-}
diff --git a/sysdeps/solaris/procargs.c b/sysdeps/solaris/procargs.c
deleted file mode 100644
index 6c668def..00000000
--- a/sysdeps/solaris/procargs.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procargs.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_proc_args =
-(1L << GLIBTOP_PROC_ARGS_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_args_s (glibtop *server)
-{
- server->sysdeps.proc_args = _glibtop_sysdeps_proc_args;
-}
-
-/* Provides detailed information about a process. */
-
-char *
-glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len)
-{
-#ifdef HAVE_PROCFS_H
- struct psinfo pinfo;
-#else
- struct prpsinfo pinfo;
-#endif
- unsigned len;
- char *ret, *p;
-
- memset (buf, 0, sizeof (glibtop_proc_args));
-
- if(glibtop_get_proc_data_psinfo_s(server, &pinfo, pid))
- return NULL;
-
- /* strnlen */
- for(len = 0; len < PRARGSZ; ++len)
- if(!(pinfo.pr_psargs[len]))
- break;
-
-
- if(max_len && max_len < len)
- {
- len = max_len;
- }
-
- ret = g_malloc(len + 1);
- memcpy(ret, pinfo.pr_psargs, len);
- ret[len] = 0;
-
- for(p = ret; *p; ++p)
- {
- if(*p == ' ') *p = 0;
- }
-
- buf->size = len;
- buf->flags = _glibtop_sysdeps_proc_args;
-
- return ret;
-}
diff --git a/sysdeps/solaris/procdata.c b/sysdeps/solaris/procdata.c
deleted file mode 100644
index a4a2bb87..00000000
--- a/sysdeps/solaris/procdata.c
+++ /dev/null
@@ -1,274 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop_private.h>
-#include <glibtop/procuid.h>
-#include <glibtop/error.h>
-
-#include <errno.h>
-
-#include "safeio.h"
-
-/*
- * The differences between old and new procfs API are:
- * - old has /proc/<pid> file and ioctl() is used to obtain the data.
- * - new has /proc/<pid>/* files and read() & friends are used to
- * obtain the data.
- * - names of structures and members are different. It's mostly the
- * prefix. Old uses `pr' and new uses `ps'.
- *
- * Since almost every line would be in #ifdef, I think it would
- * be more readable to just copy everything twice. This is not a big
- * file, after all.
- */
-
-#ifdef HAVE_PROCFS_H
-
-/* Read /proc/<pid>/psinfo. */
-
-int
-glibtop_get_proc_data_psinfo_s (glibtop *server, struct psinfo *psinfo, pid_t pid)
-{
- int fd;
- char buffer [BUFSIZ];
-
- sprintf (buffer, "/proc/%d/psinfo", (int) pid);
-
- fd = s_open (buffer, O_RDONLY);
-
- if (fd < 0) {
- glibtop_warn_io_r (server, "open (%s)", buffer);
- return -1;
- }
-
- if (s_pread (fd, psinfo, sizeof (struct psinfo), 0)
- != sizeof (struct psinfo))
- {
- s_close (fd);
- glibtop_warn_io_r (server, "pread (%s)", buffer);
- return -1;
- }
-
- s_close (fd);
- return 0;
-}
-
-int
-glibtop_get_proc_data_usage_s (glibtop *server, struct prusage *prusage, pid_t pid)
-{
- int fd;
- char buffer [BUFSIZ];
-
- sprintf (buffer, "/proc/%d/usage", (int) pid);
-
- fd = s_open (buffer, O_RDONLY);
-
- if (fd < 0) {
- glibtop_warn_io_r (server, "open (%s)", buffer);
- return -1;
- }
-
- if (s_pread (fd, prusage, sizeof (struct prusage), 0)
- != sizeof (struct prusage))
- {
- s_close (fd);
- glibtop_warn_io_r (server, "pread (%s)", buffer);
- return -1;
- }
-
- s_close (fd);
- return 0;
-}
-
-#if LIBGTOP_VERSION_CODE >= 1001002
-int
-glibtop_get_proc_credentials_s(glibtop *server,
- struct prcred *prcred,
- gid_t *groups,
- pid_t pid)
-{
- int fd;
- size_t toread;
- char buffer[BUFSIZ];
-
- sprintf(buffer, "/proc/%d/cred", (int)pid);
-
- if((fd = s_open(buffer, O_RDONLY)) < 0)
- {
- if(errno != EPERM && errno != EACCES)
- glibtop_warn_io_r(server, "open (%s)", buffer);
- return -1;
- }
-
- if(s_pread(fd, prcred, sizeof(struct prcred), 0)
- != sizeof(struct prcred))
- {
- s_close(fd);
- glibtop_warn_io_r(server, "pread (%s)", buffer);
- return -1;
- }
-
- if(prcred->pr_ngroups >= 0)
- {
- toread = MIN(prcred->pr_ngroups, GLIBTOP_MAX_GROUPS) * sizeof(gid_t);
-
- if((size_t) s_pread(fd,groups, toread,
- G_STRUCT_OFFSET(struct prcred, pr_groups))
- != toread)
- prcred->pr_ngroups = 0;
- }
- s_close(fd);
- return 0;
-}
-#endif /* LIBGTOP_VERSION_CODE >= 1001002 */
-
-int
-glibtop_get_proc_status_s(glibtop *server, struct pstatus *pstatus, pid_t pid)
-{
- int fd;
- char buffer[BUFSIZ];
-
- sprintf(buffer, "/proc/%d/status", (int)pid);
- if((fd = s_open(buffer, O_RDONLY)) < 0)
- {
- if(errno != EPERM && errno != EACCES)
- glibtop_warn_io_r(server, "open (%s)", buffer);
- return -1;
- }
- if(s_pread(fd, pstatus, sizeof(struct pstatus), 0)
- != sizeof(struct pstatus))
- {
- s_close(fd);
- glibtop_warn_io_r(server, "pread (%s)", buffer);
- return -1;
- }
- s_close(fd);
- return 0;
-}
-
-#else /* old API */
-
-int
-glibtop_get_proc_data_psinfo_s (glibtop *server,
- struct prpsinfo *psinfo,
- pid_t pid)
-{
- int fd;
- char buffer [BUFSIZ];
-
- sprintf (buffer, "/proc/%d", (int) pid);
- fd = s_open (buffer, O_RDONLY);
- if (fd < 0) {
- if(errno != EPERM && errno != EACCES)
- glibtop_warn_io_r (server, "open (%s)", buffer);
- return -1;
- }
-
- if(ioctl(fd, PIOCPSINFO, psinfo) < 0)
- {
- s_close (fd);
- glibtop_warn_io_r (server, "ioctl(%s, PIOCPSINFO)", buffer);
- return -1;
- }
-
- s_close (fd);
- return 0;
-}
-
-int
-glibtop_get_proc_data_usage_s (glibtop *server,
- struct prusage *prusage,
- pid_t pid)
-{
- int fd;
- char buffer [BUFSIZ];
-
- sprintf (buffer, "/proc/%d", (int) pid);
- fd = s_open (buffer, O_RDONLY);
- if (fd < 0) {
- if(errno != EPERM && errno != EACCES)
- glibtop_warn_io_r (server, "open (%s)", buffer);
- return -1;
- }
-
- if(ioctl(fd, PIOCUSAGE, prusage) < 0)
- {
- s_close (fd);
- glibtop_warn_io_r (server, "ioctl(%s, PIOCUSAGE)", buffer);
- return -1;
- }
-
- s_close (fd);
- return 0;
-}
-
-int
-glibtop_get_proc_credentials_s(glibtop *server,
- struct prcred *prcred,
- gid_t *groups,
- pid_t pid)
-{
- int fd;
- size_t toread;
- char buffer[BUFSIZ];
-
- sprintf(buffer, "/proc/%d", (int)pid);
- if((fd = s_open(buffer, O_RDONLY)) < 0)
- {
- if(errno != EPERM && errno != EACCES)
- glibtop_warn_io_r(server, "open (%s)", buffer);
- return -1;
- }
- if(ioctl(fd, PIOCCRED, prcred) < 0)
- {
- s_close(fd);
- glibtop_warn_io_r(server, "ioctl(%s, PIOCCRED)", buffer);
- return -1;
- }
- s_close(fd);
- return 0;
-}
-
-int
-glibtop_get_proc_status_s(glibtop *server, struct prstatus *pstatus, pid_t pid)
-{
- int fd;
- char buffer[BUFSIZ];
-
- sprintf(buffer, "/proc/%d", (int)pid);
- if((fd = s_open(buffer, O_RDONLY)) < 0)
- {
- if(errno != EPERM && errno != EACCES)
- glibtop_warn_io_r(server, "open (%s)", buffer);
- return -1;
- }
- if(ioctl(fd, PIOCSTATUS, pstatus) < 0)
- {
- s_close(fd);
- glibtop_warn_io_r(server, "ioctl(%s, PIOCSTATUS)", buffer);
- return -1;
- }
- s_close(fd);
- return 0;
-}
-#endif
diff --git a/sysdeps/solaris/prockernel.c b/sysdeps/solaris/prockernel.c
deleted file mode 100644
index f37d8923..00000000
--- a/sysdeps/solaris/prockernel.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/prockernel.h>
-
-static const unsigned long _glibtop_sysdeps_proc_kernel = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_kernel_s (glibtop *server)
-{
- server->sysdeps.proc_kernel = _glibtop_sysdeps_proc_kernel;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf,
- pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_proc_kernel));
-}
diff --git a/sysdeps/solaris/proclist.c b/sysdeps/solaris/proclist.c
deleted file mode 100644
index 52b0a2c6..00000000
--- a/sysdeps/solaris/proclist.c
+++ /dev/null
@@ -1,240 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/proclist.h>
-
-#include "safeio.h"
-#include "glibtop_private.h"
-
-#include <sys/stat.h>
-#include <unistd.h>
-#include <dirent.h>
-#include <ctype.h>
-
-#define GLIBTOP_PROCLIST_FLAGS 3
-
-static const unsigned long _glibtop_sysdeps_proclist =
-(1L << GLIBTOP_PROCLIST_TOTAL) + (1L << GLIBTOP_PROCLIST_NUMBER) +
-(1L << GLIBTOP_PROCLIST_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proclist_s (glibtop *server)
-{
- server->sysdeps.proclist = _glibtop_sysdeps_proclist;
-}
-
-#define BLOCK_COUNT 256
-#define BLOCK_SIZE (BLOCK_COUNT * sizeof (pid_t))
-
-/* Fetch list of currently running processes.
- *
- * IMPORTANT NOTE:
- * On error, this function MUST return NULL and set buf->flags to zero !
- * On success, it returnes a pointer to a list of buf->number elements
- * each buf->size big. The total size is stored in buf->total. */
-
-pid_t*
-glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg)
-{
- DIR *proc;
- struct dirent *entry;
- char buffer [BUFSIZ];
- unsigned count, total, pid = 0, mask;
- pid_t pids [BLOCK_COUNT], *pids_chain = NULL;
- unsigned pids_size = 0, pids_offset = 0, new_size;
- struct stat statb;
- int len, ok;
-
- memset (buf, 0, sizeof (glibtop_proclist));
- mask = which & ~GLIBTOP_KERN_PROC_MASK;
- which &= GLIBTOP_KERN_PROC_MASK;
-
- /* Check if the user wanted only one process */
-
- if(which == GLIBTOP_KERN_PROC_PID)
- {
- if(mask)
- {
-#ifdef HAVE_PROCFS_H
- struct psinfo psinfo;
-#else
- struct prpsinfo psinfo;
-#endif
- if(glibtop_get_proc_data_psinfo_s(server, &psinfo, pid))
- return NULL;
- if(mask & GLIBTOP_EXCLUDE_IDLE && !psinfo.pr_pctcpu)
- return NULL;
- if(mask & GLIBTOP_EXCLUDE_SYSTEM && psinfo.pr_flag & SSYS)
- return NULL;
- if(mask & GLIBTOP_EXCLUDE_NOTTY && psinfo.pr_ttydev == PRNODEV)
- return NULL;
- }
- else
- {
- sprintf(buffer, "/proc/%lld", arg);
- if(s_stat(buffer, &statb) < 0)
- return NULL;
- }
- pids_chain = g_malloc(sizeof(pid_t));
- *pids_chain = pid;
- return pids_chain;
- }
-
- proc = opendir ("/proc");
- if (!proc) return NULL;
-
- /* read every every entry in /proc */
-
- for (count = total = 0, entry = readdir (proc);
- entry; entry = readdir (proc)) {
- ok = 1; len = strlen (entry->d_name);
-
- /* does it consist entirely of digits? */
- /* It does, except for "." and "..". Let's speed up */
-
- if(entry->d_name[0] == '.')
- continue;
-
- /* convert it in a number */
- pid = (unsigned)atol(entry->d_name);
-
-#ifdef HAVE_PROCFS_H
-
- /* Can we skip it based on the request? We have
- RUID and RGID in struct stat. But we can't do it
- like this for LP64 process, because stat() will fail.
- XXX Unimplemented for now */
-
- if(!mask && which == GLIBTOP_KERN_PROC_RUID)
- {
- sprintf (buffer, "/proc/%d", pid);
- if (s_stat (buffer, &statb)) continue;
-
- if (!S_ISDIR (statb.st_mode)) continue;
-
- if(statb.st_uid != arg) continue;
- }
-
- if(mask || which != GLIBTOP_KERN_PROC_ALL)
- {
- struct psinfo psinfo;
-
- if(glibtop_get_proc_data_psinfo_s(server, &psinfo, pid))
- continue;
- if(mask)
- {
- if(mask & GLIBTOP_EXCLUDE_IDLE && !psinfo.pr_pctcpu)
- continue;
- if(mask & GLIBTOP_EXCLUDE_SYSTEM && psinfo.pr_flag & SSYS)
- continue;
- if(mask & GLIBTOP_EXCLUDE_NOTTY
- && psinfo.pr_ttydev == PRNODEV)
- continue;
- }
- switch(which)
- {
- case GLIBTOP_KERN_PROC_PGRP: if(psinfo.pr_pgid != arg)
- continue;
- break;
- case GLIBTOP_KERN_PROC_SESSION: if(psinfo.pr_sid != arg)
- continue;
- break;
- case GLIBTOP_KERN_PROC_TTY: if(psinfo.pr_ttydev != arg)
- continue;
- break;
- case GLIBTOP_KERN_PROC_UID: if(psinfo.pr_euid != arg)
- continue;
- break;
- case GLIBTOP_KERN_PROC_RUID: if(psinfo.pr_uid != arg)
- continue;
- break;
- default: break;
- }
- }
-#endif
- /* Fine. Now we first try to store it in pids. If this buffer is
- * full, we copy it to the pids_chain. */
-
- if (count >= BLOCK_COUNT) {
- /* The following call to g_realloc will be
- * equivalent to g_malloc () if `pids_chain' is
- * NULL. We just calculate the new size and copy `pids'
- * to the beginning of the newly allocated block. */
-
- new_size = pids_size + BLOCK_SIZE;
-
- pids_chain = g_realloc (pids_chain, new_size);
-
- memcpy (pids_chain + pids_offset, pids, BLOCK_SIZE);
-
- pids_size = new_size;
-
- pids_offset += BLOCK_COUNT;
-
- count = 0;
- }
-
- /* pids is now big enough to hold at least one single pid. */
-
- pids [count++] = pid;
-
- total++;
- }
-
- s_closedir (proc);
-
- /* count is only zero if an error occured (one a running Linux system,
- * we have at least one single process). */
-
- if (!count) return NULL;
-
- /* The following call to g_realloc will be equivalent to
- * g_malloc if pids_chain is NULL. We just calculate the
- * new size and copy pids to the beginning of the newly allocated
- * block. */
-
- new_size = pids_size + count * sizeof (pid_t);
-
- pids_chain = g_realloc (pids_chain, new_size);
-
- memcpy (pids_chain + pids_offset, pids, count * sizeof (pid_t));
-
- pids_size = new_size;
-
- pids_offset += BLOCK_COUNT;
-
- /* Since everything is ok now, we can set buf->flags, fill in the
- * remaining fields and return the `pids_chain'. */
-
- buf->flags = _glibtop_sysdeps_proclist;
-
- buf->size = sizeof (pid_t);
- buf->number = total;
-
- buf->total = buf->number * buf->size;
-
- return pids_chain;
-}
diff --git a/sysdeps/solaris/procmap.c b/sysdeps/solaris/procmap.c
deleted file mode 100644
index 85f3ff3b..00000000
--- a/sysdeps/solaris/procmap.c
+++ /dev/null
@@ -1,202 +0,0 @@
-/* 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.
-*/
-
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmap.h>
-
-#include <errno.h>
-
-#include "safeio.h"
-
-
-static const unsigned long _glibtop_sysdeps_proc_map =
-(1L << GLIBTOP_PROC_MAP_NUMBER) + (1L << GLIBTOP_PROC_MAP_TOTAL) +
-(1L << GLIBTOP_PROC_MAP_SIZE);
-static const unsigned long _glibtop_sysdeps_map_entry =
-(1L << GLIBTOP_MAP_ENTRY_START) + (1L << GLIBTOP_MAP_ENTRY_END) +
-(1L << GLIBTOP_MAP_ENTRY_OFFSET) + (1L << GLIBTOP_MAP_ENTRY_PERM);
-static const unsigned long _glibtop_sysdeps_map_device =
-(1L << GLIBTOP_MAP_ENTRY_DEVICE) + (1L << GLIBTOP_MAP_ENTRY_INODE);
-
-
-/* Init function. */
-
-void
-_glibtop_init_proc_map_s (glibtop *server)
-{
- server->sysdeps.proc_map = _glibtop_sysdeps_proc_map;
-}
-
-/* Provides detailed information about a process. */
-
-glibtop_map_entry *
-glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid)
-{
- int fd, i, nmaps, pr_err, heap;
-#if GLIBTOP_SOLARIS_RELEASE >= 50600
- prxmap_t *maps;
- struct ps_prochandle *Pr = NULL;
-#else
- prmap_t *maps;
-#endif
-
- /* A few defines, to make it shorter down there */
-
-#ifdef HAVE_PROCFS_H
-# define OFFSET pr_offset
-#else
-# define OFFSET pr_off
-#endif
-
- glibtop_map_entry *entry;
- struct stat inode;
- char buffer[BUFSIZ];
-
- memset (buf, 0, sizeof (glibtop_proc_map));
-
-#ifdef HAVE_PROCFS_H
- sprintf(buffer, "/proc/%d/xmap", (int)pid);
-#else
- sprintf(buffer, "/proc/%d", (int)pid);
-#endif
- if((fd = s_open(buffer, O_RDONLY)) < 0)
- {
- if (errno != EPERM && errno != EACCES)
- glibtop_warn_io_r(server, "open (%s)", buffer);
- return NULL;
- }
-#ifdef HAVE_PROCFS_H
- if(fstat(fd, &inode) < 0)
- {
- if(errno != EOVERFLOW)
- glibtop_warn_io_r(server, "fstat (%s)", buffer);
- /* else call daemon for 64-bit support */
- s_close(fd);
- return NULL;
- }
- maps = g_alloca(inode.st_size);
- nmaps = inode.st_size / sizeof(prxmap_t);
- if(s_pread(fd, maps, inode.st_size, 0) != inode.st_size)
- {
- glibtop_warn_io_r(server, "pread (%s)", buffer);
- s_close(fd);
- return NULL;
- }
-#else
- if(ioctl(fd, PIOCNMAP, &nmaps) < 0)
- {
- glibtop_warn_io_r(server, "ioctl(%s, PIOCNMAP)", buffer);
- s_close(fd);
- return NULL;
- }
- maps = g_alloca((nmaps + 1) * sizeof(prmap_t));
- if(ioctl(fd, PIOCMAP, maps) < 0)
- {
- glibtop_warn_io_r(server, "ioctl(%s, PIOCMAP)", buffer);
- s_close(fd);
- return NULL;
- }
-#endif
- buf->number = nmaps;
- buf->size = sizeof(glibtop_map_entry);
- buf->total = nmaps * sizeof(glibtop_map_entry);
- entry = g_malloc0(buf->total);
-
-#if GLIBTOP_SOLARIS_RELEASE >= 50600
-
- if(server->machine.objname && server->machine.pgrab &&
- server->machine.pfree)
- Pr = (server->machine.pgrab)(pid, 1, &pr_err);
-#endif
- for(heap = 0,i = 0; i < nmaps; ++i)
- {
- int len;
-
- entry[i].start = maps[i].pr_vaddr;
- entry[i].end = maps[i].pr_vaddr + maps[i].pr_size;
-
-#if GLIBTOP_SOLARIS_RELEASE >= 50600
-
- if(maps[i].pr_dev != PRNODEV)
- {
- entry[i].device = maps[i].pr_dev;
- entry[i].inode = maps[i].pr_ino;
- entry[i].flags |= _glibtop_sysdeps_map_device;
- }
-#endif
- entry[i].offset = maps[i].OFFSET;
- if(maps[i].pr_mflags & MA_READ)
- entry[i].perm |= GLIBTOP_MAP_PERM_READ;
- if(maps[i].pr_mflags & MA_WRITE){
- entry[i].perm |= GLIBTOP_MAP_PERM_WRITE;
- entry[i].size = maps[i].pr_size;
- }
- if(maps[i].pr_mflags & MA_EXEC)
- entry[i].perm |= GLIBTOP_MAP_PERM_EXECUTE;
- if(maps[i].pr_mflags & MA_SHARED)
- entry[i].perm |= GLIBTOP_MAP_PERM_SHARED;
- else
- entry[i].perm |= GLIBTOP_MAP_PERM_PRIVATE;
- entry[i].flags = _glibtop_sysdeps_map_entry;
-
-#if GLIBTOP_SOLARIS_RELEASE >= 50600
-
- if(maps[i].pr_mflags & MA_ANON)
- {
- if(!heap)
- {
- ++heap;
- strcpy(entry[i].filename, "[ heap ]");
- }
- else
- if(i == nmaps - 1)
- strcpy(entry[i].filename, "[ stack ]");
- else
- strcpy(entry[i].filename, "[ anon ]");
- entry[i].flags |= (1L << GLIBTOP_MAP_ENTRY_FILENAME);
- }
- else
- if(Pr)
- {
- server->machine.objname(Pr, maps[i].pr_vaddr, buffer,
- BUFSIZ);
- if((len = resolvepath(buffer, entry[i].filename,
- GLIBTOP_MAP_FILENAME_LEN)) > 0)
- {
- entry[i].filename[len] = 0;
- entry[i].flags |= (1L << GLIBTOP_MAP_ENTRY_FILENAME);
- }
- }
-#endif
- }
-
-#if GLIBTOP_SOLARIS_RELEASE >= 50600
-
- if(Pr)
- server->machine.pfree(Pr);
-#endif
- buf->flags = _glibtop_sysdeps_proc_map;
- s_close(fd);
- return entry;
-}
diff --git a/sysdeps/solaris/procmem.c b/sysdeps/solaris/procmem.c
deleted file mode 100644
index 92aca002..00000000
--- a/sysdeps/solaris/procmem.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procmem.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_proc_mem =
-(1L << GLIBTOP_PROC_MEM_SIZE) + (1L << GLIBTOP_PROC_MEM_VSIZE) +
-(1L << GLIBTOP_PROC_MEM_RESIDENT) + (1L << GLIBTOP_PROC_MEM_RSS);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_mem_s (glibtop *server)
-{
- server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf, pid_t pid)
-{
-#ifdef HAVE_PROCFS_H
- struct psinfo psinfo;
-#else
- struct prpsinfo psinfo;
- int pagesize = server->machine.pagesize;
-#endif
-
- memset (buf, 0, sizeof (glibtop_proc_mem));
-
- if(glibtop_get_proc_data_psinfo_s(server, &psinfo, pid))
- return;
-
-#ifdef HAVE_PROCFS_H
- buf->size = buf->vsize = psinfo.pr_size << 10;
- buf->resident = buf->rss = psinfo.pr_rssize << 10;
-#else
- buf->size = buf->vsize = psinfo.pr_size << pagesize << 10;
- buf->resident = buf->rss = psinfo.pr_rssize << pagesize << 10;
-#endif
- buf->flags = _glibtop_sysdeps_proc_mem;
-}
diff --git a/sysdeps/solaris/procopenfiles.c b/sysdeps/solaris/procopenfiles.c
deleted file mode 100644
index 9f5e8fec..00000000
--- a/sysdeps/solaris/procopenfiles.c
+++ /dev/null
@@ -1,128 +0,0 @@
-/* Copyright (C) 2006 Henry Zhang
- This file is part of LibGTop 2.14.
-
- Contributed by Henry Zhang <hua.zhang@sun.com>, July 2006.
-
- 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procopenfiles.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include <sys/stat.h>
-#include <dirent.h>
-#include <string.h>
-#include <stdio.h>
-
-#include "glibtop_private.h"
-
-static const unsigned long _glibtop_sysdeps_proc_open_files =
-(1L << GLIBTOP_PROC_OPEN_FILES_NUMBER)|
-(1L << GLIBTOP_PROC_OPEN_FILES_TOTAL)|
-(1L << GLIBTOP_PROC_OPEN_FILES_SIZE);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_open_files_s (glibtop *server)
-{
- server->sysdeps.proc_open_files = _glibtop_sysdeps_proc_open_files;
-}
-
-
-
-/* Provides detailed information about a process' open files */
-
-glibtop_open_files_entry *
-glibtop_get_proc_open_files_s (glibtop *server, glibtop_proc_open_files *buf, pid_t pid)
-{
- char filename [BUFSIZ];
- GArray *entries;
- struct dirent *direntry;
- DIR *dir;
- int errno;
-
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_OPEN_FILES, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_open_files));
-
- sprintf (filename, "/proc/%d/fd", pid);
-
- dir = opendir (filename);
- if (!dir) return NULL;
-
- entries = g_array_new(FALSE, FALSE, sizeof(glibtop_open_files_entry));
-
- while((direntry = readdir(dir))) {
- char tgt [BUFSIZ];
- int rv;
- glibtop_open_files_entry entry = {0};
- struct stat statbuf;
-
- if(direntry->d_name[0] == '.')
- continue;
-
- if ((entry.fd = (int) g_ascii_strtoull(direntry->d_name, NULL, 10)) == 0)
- continue;
-
- /* from /path get object name */
- g_snprintf(filename, sizeof filename, "/proc/%d/path/%s",
- pid, direntry->d_name);
-
- rv = readlink(filename, tgt, sizeof(tgt) - 1);
- /* read object, if not have, set it as NULL, but this fd still need to insert into the array */
- if(rv < 0)
- rv = 0;
- tgt[rv] = '\0';
-
- /* from /fd get the stat data */
- g_snprintf(filename, sizeof filename, "/proc/%d/fd/%s",
- pid, direntry->d_name);
-
- if(stat (filename, &statbuf))
- statbuf.st_mode = 0;
-
- switch (statbuf.st_mode & S_IFMT) {
- case S_IFIFO: /* pipe */
- entry.type = GLIBTOP_FILE_TYPE_PIPE;
- break;
- case S_IFSOCK: /* socket */
- /* at solaris, now a little difficult to tell the Socket type, so here I
- give the type 0, it will not impact the existed code. Later will provide
- a patch to tell the type, and get the object name */
- entry.type = 0;
- break;
- default:
- entry.type = GLIBTOP_FILE_TYPE_FILE;
- }
-
- g_strlcpy(entry.info.file.name, tgt, sizeof entry.info.file.name);
-
- g_array_append_val(entries, entry);
- }
-
- closedir (dir);
-
- buf->flags = _glibtop_sysdeps_proc_open_files;
- buf->number = entries->len;
- buf->size = sizeof(glibtop_open_files_entry);
- buf->total = buf->number * buf->size;
-
- return (glibtop_open_files_entry*)g_array_free(entries, FALSE);
-}
diff --git a/sysdeps/solaris/procsegment.c b/sysdeps/solaris/procsegment.c
deleted file mode 100644
index 72e3b45c..00000000
--- a/sysdeps/solaris/procsegment.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procsegment.h>
-
-static const unsigned long _glibtop_sysdeps_proc_segment = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_segment_s (glibtop *server)
-{
- server->sysdeps.proc_segment = _glibtop_sysdeps_proc_segment;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
- pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_proc_segment));
-}
diff --git a/sysdeps/solaris/procsignal.c b/sysdeps/solaris/procsignal.c
deleted file mode 100644
index c80f904d..00000000
--- a/sysdeps/solaris/procsignal.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procsignal.h>
-
-#include <glibtop_private.h>
-
-static const unsigned long _glibtop_sysdeps_proc_signal =
-(1L << GLIBTOP_PROC_SIGNAL_SIGNAL) + (1L << GLIBTOP_PROC_SIGNAL_BLOCKED);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_signal_s (glibtop *server)
-{
- server->sysdeps.proc_signal = _glibtop_sysdeps_proc_signal;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_signal_s (glibtop *server, glibtop_proc_signal *buf,
- pid_t pid)
-{
-#ifdef HAVE_PROCFS_H
- struct pstatus pstatus;
-#else
- struct prstatus pstatus;
-#endif
- int size;
-
- memset (buf, 0, sizeof (glibtop_proc_signal));
-
- if(glibtop_get_proc_status_s(server, &pstatus, pid))
- return;
-
- if(sizeof(buf->signal) < sizeof(sigset_t))
- size = sizeof(buf->signal);
- else
- size = sizeof(sigset_t);
-
- memcpy(buf->signal, &pstatus.pr_sigpend, size);
-#ifdef HAVE_PROCFS_H
- memcpy(buf->blocked, &pstatus.pr_lwp.pr_lwphold, size);
-#else
- memcpy(buf->blocked, &pstatus.pr_lwppend, size);
-#endif
-
- /* Technically, most of this is meaningless on a process level,
- but this should be a good enough approximation. */
-
- buf->flags = _glibtop_sysdeps_proc_signal;
-}
diff --git a/sysdeps/solaris/procstate.c b/sysdeps/solaris/procstate.c
deleted file mode 100644
index 043059a1..00000000
--- a/sysdeps/solaris/procstate.c
+++ /dev/null
@@ -1,101 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procstate.h>
-
-#include <glibtop_private.h>
-
-static const unsigned long _glibtop_sysdeps_proc_state =
-#ifdef HAVE_PROCFS_H
-(1L << GLIBTOP_PROC_STATE_HAS_CPU) + (1L << GLIBTOP_PROC_STATE_PROCESSOR) +
-(1L << GLIBTOP_PROC_STATE_LAST_PROCESSOR) +
-#endif
-(1L << GLIBTOP_PROC_STATE_RUID) + (1L << GLIBTOP_PROC_STATE_RGID) +
-(1L << GLIBTOP_PROC_STATE_CMD) + (1L << GLIBTOP_PROC_STATE_STATE) +
-(1L << GLIBTOP_PROC_STATE_UID) + (1L << GLIBTOP_PROC_STATE_GID);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_state_s (glibtop *server)
-{
- server->sysdeps.proc_state = _glibtop_sysdeps_proc_state;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf, pid_t pid)
-{
-#ifdef HAVE_PROCFS_H
- struct psinfo psinfo;
-#else
- struct prpsinfo psinfo;
-#endif
-
- memset (buf, 0, sizeof (glibtop_proc_state));
-
- if (glibtop_get_proc_data_psinfo_s (server, &psinfo, pid))
- return;
-
- buf->uid = psinfo.pr_euid;
- buf->gid = psinfo.pr_egid;
- buf->ruid = psinfo.pr_uid;
- buf->rgid = psinfo.pr_gid;
-
-#ifdef HAVE_PROCFS_H
- switch(psinfo.pr_lwp.pr_state)
-#else
- switch(psinfo.pr_state)
-#endif
- {
- case SONPROC:
-#ifdef HAVE_PROCFS_H
- buf->has_cpu = 1;
- buf->processor = psinfo.pr_lwp.pr_onpro;
- /* FIXME: fallthrough ? */
-#endif
- case SRUN:
- buf->state = GLIBTOP_PROCESS_RUNNING;
- break;
- case SZOMB:
- buf->state = GLIBTOP_PROCESS_ZOMBIE;
- break;
- case SSLEEP:
- buf->state = GLIBTOP_PROCESS_INTERRUPTIBLE;
- break;
- case SSTOP:
- buf->state = GLIBTOP_PROCESS_STOPPED;
- break;
- case SIDL:
- buf->state = GLIBTOP_PROCESS_UNINTERRUPTIBLE;
- break;
- }
-
-#ifdef HAVE_PROCFS_H
- buf->last_processor = psinfo.pr_lwp.pr_onpro;
-#endif
- g_strlcpy (buf->cmd, psinfo.pr_fname, sizeof buf->cmd);
-
- buf->flags = _glibtop_sysdeps_proc_state;
-}
diff --git a/sysdeps/solaris/proctime.c b/sysdeps/solaris/proctime.c
deleted file mode 100644
index 525a582f..00000000
--- a/sysdeps/solaris/proctime.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/proctime.h>
-
-#include <glibtop_private.h>
-
-static const unsigned long _glibtop_sysdeps_proc_time =
-(1L << GLIBTOP_PROC_TIME_START_TIME) + (1L << GLIBTOP_PROC_TIME_RTIME) +
-(1L << GLIBTOP_PROC_TIME_UTIME) + (1L << GLIBTOP_PROC_TIME_STIME);
-
-/* Init function. */
-
-void
-_glibtop_init_proc_time_s (glibtop *server)
-{
- server->sysdeps.proc_time = _glibtop_sysdeps_proc_time;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf,
- pid_t pid)
-{
- struct prusage prusage;
- GTimeVal time;
-
- memset (buf, 0, sizeof (glibtop_proc_time));
-
- /* Don't do it for scheduler, we don't want to frighten our users */
-
- if(pid)
- {
- if (glibtop_get_proc_data_usage_s (server, &prusage, pid))
- return;
-
- g_get_current_time (&time);
- /* prusage.pr_rtime.tv_sec is the during that the process existed */
- buf->start_time = time.tv_sec - prusage.pr_rtime.tv_sec;
-
- buf->rtime = prusage.pr_rtime.tv_sec * 1E+6 +
- prusage.pr_rtime.tv_nsec / 1E+3;
- buf->utime = prusage.pr_utime.tv_sec * 1E+6 +
- prusage.pr_utime.tv_nsec / 1E+3;
- buf->stime = prusage.pr_stime.tv_sec * 1E+6 +
- prusage.pr_stime.tv_nsec / 1E+3;
- }
-
- buf->flags = _glibtop_sysdeps_proc_time;
-}
diff --git a/sysdeps/solaris/procuid.c b/sysdeps/solaris/procuid.c
deleted file mode 100644
index 5441a493..00000000
--- a/sysdeps/solaris/procuid.c
+++ /dev/null
@@ -1,126 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procuid.h>
-
-#include <glibtop_private.h>
-
-static const unsigned long _glibtop_sysdeps_proc_uid_psinfo =
-(1L << GLIBTOP_PROC_UID_EUID) + (1L << GLIBTOP_PROC_UID_UID) +
-(1L << GLIBTOP_PROC_UID_EGID) + (1L << GLIBTOP_PROC_UID_GID) +
-(1L << GLIBTOP_PROC_UID_PID) + (1L << GLIBTOP_PROC_UID_PPID) +
-(1L << GLIBTOP_PROC_UID_PGRP) + (1L << GLIBTOP_PROC_UID_SESSION) +
-(1L << GLIBTOP_PROC_UID_TTY) + (1L << GLIBTOP_PROC_UID_PRIORITY) +
-(1L << GLIBTOP_PROC_UID_NICE);
-static const unsigned long _glibtop_sysdeps_proc_uid_prcred =
-#if LIBGTOP_VERSION_CODE >= 1001002
-#ifdef HAVE_PROCFS_H
-(1L << GLIBTOP_PROC_UID_GROUPS) +
-#endif
-(1L << GLIBTOP_PROC_UID_SUID) + (1L << GLIBTOP_PROC_UID_SGID) +
-(1L << GLIBTOP_PROC_UID_NGROUPS);
-#else
-0;
-#endif
-/* Init function. */
-
-void
-_glibtop_init_proc_uid_s (glibtop *server)
-{
- server->sysdeps.proc_uid = _glibtop_sysdeps_proc_uid_psinfo +
- _glibtop_sysdeps_proc_uid_prcred;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_uid_s (glibtop *server, glibtop_proc_uid *buf, pid_t pid)
-{
-#if LIBGTOP_VERSION_CODE >= 1001002
- struct prcred prcred;
-#endif
-#ifdef HAVE_PROCFS_H
- struct psinfo psinfo;
-#if LIBGTOP_VERSION_CODE >= 1001002
- gid_t groups[GLIBTOP_MAX_GROUPS];
-#endif
-#else
- struct prpsinfo psinfo;
- gid_t groups[1]; /* dummy for consistent function prototype */
-#endif
-
- memset (buf, 0, sizeof (glibtop_proc_uid));
-
- if (glibtop_get_proc_data_psinfo_s (server, &psinfo, pid))
- return;
-
- buf->euid = psinfo.pr_euid;
- buf->uid = psinfo.pr_uid;
- buf->egid = psinfo.pr_egid;
- buf->gid = psinfo.pr_gid;
-
- buf->pid = psinfo.pr_pid;
- buf->ppid = psinfo.pr_ppid;
-#ifdef HAVE_PROCFS_H
- buf->pgrp = psinfo.pr_pgid;
-#else
- buf->pgrp = psinfo.pr_pgrp;
-#endif
-
- buf->session = psinfo.pr_sid;
- buf->tty = psinfo.pr_ttydev;
-
-#ifdef HAVE_PROCFS_H
- buf->priority = psinfo.pr_lwp.pr_pri;
- buf->nice = psinfo.pr_lwp.pr_nice - NZERO;
-#else
- buf->priority = psinfo.pr_pri;
- buf->nice = psinfo.pr_nice - NZERO;
-#endif
-
- buf->flags = _glibtop_sysdeps_proc_uid_psinfo;
-
-#if LIBGTOP_VERSION_CODE >= 1001002
- if(glibtop_get_proc_credentials_s(server, &prcred, groups, pid))
- return;
-
- buf->suid = prcred.pr_suid;
- buf->sgid = prcred.pr_sgid;
- buf->ngroups = (prcred.pr_ngroups <= GLIBTOP_MAX_GROUPS) ?
- prcred.pr_ngroups : GLIBTOP_MAX_GROUPS;
-
-#ifdef HAVE_PROCFS_H
- if(sizeof(int) == sizeof(gid_t))
- memcpy(buf->groups, &groups, buf->ngroups * sizeof(gid_t));
- else
- {
- int i;
-
- for(i = 0; i < buf->ngroups; ++i)
- buf->groups[i] = groups[i];
- }
-#endif
-#endif
-
- buf->flags += _glibtop_sysdeps_proc_uid_prcred;
-}
diff --git a/sysdeps/solaris/safeio.c b/sysdeps/solaris/safeio.c
deleted file mode 100644
index 456341e1..00000000
--- a/sysdeps/solaris/safeio.c
+++ /dev/null
@@ -1,87 +0,0 @@
-/* Copyright (C) 1999 Drazen Kacar
- This file is part of LibGTop 1.0.
-
- Contributed by Drazen Kacar <dave@srce.hr>, May 1999.
-
- 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.
-*/
-
-#include <config.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <dirent.h>
-#include <errno.h>
-
-#include "safeio.h"
-
-int
-s_open(const char *file, int mode)
-{
- int fd;
-
- do {
- fd = open(file, mode);
- } while(fd < 0 && errno == EINTR);
- return fd;
-}
-
-int
-s_stat(const char *path, struct stat *buf)
-{
- int status;
-
- do {
- status = stat(path, buf);
- } while(status < 0 && errno == EINTR);
- return status;
-}
-
-int
-s_close(int fd)
-{
- int status;
-
- do {
- status = close(fd);
- } while(status < 0 && errno == EINTR);
- return status;
-}
-
-ssize_t
-s_pread(int fd, void *buf, size_t nbytes, off_t offset)
-{
- ssize_t len;
-
- /* Now, why doesn't the pread(2) man page say anything about pread()
- return values? Can it read less bytes than requested? */
-
- do {
- len = pread(fd, buf, nbytes, offset);
- } while(len < 0 && errno == EINTR);
- return len;
-}
-
-int s_closedir(DIR *dirp)
-{
- int status;
-
- do {
- status = closedir(dirp);
- } while(status < 0 && errno == EINTR);
- return status;
-}
diff --git a/sysdeps/solaris/safeio.h b/sysdeps/solaris/safeio.h
deleted file mode 100644
index aa367691..00000000
--- a/sysdeps/solaris/safeio.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Copyright (C) 1999 Drazen Kacar
- This file is part of LibGTop 1.0.
-
- Contributed by Drazen Kacar <dave@srce.hr>, May 1999.
-
- 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_SAFEIO_H__
-#define __GLIBTOP_SAFEIO_H__
-
-#include <glib/gmacros.h>
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <dirent.h>
-
-G_BEGIN_DECLS
-
-int
-s_open(const char *, int);
-
-int
-s_stat(const char *, struct stat *);
-
-int
-s_close(int);
-
-ssize_t
-s_pread(int, void *, size_t, off_t);
-
-int
-s_closedir(DIR *);
-
-G_END_DECLS
-
-#endif /* __GLIBTOP_SAFEIO_H__ */
diff --git a/sysdeps/solaris/sem_limits.c b/sysdeps/solaris/sem_limits.c
deleted file mode 100644
index 81c92f35..00000000
--- a/sysdeps/solaris/sem_limits.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/sem_limits.h>
-
-#include <kvm.h>
-#include <rctl.h>
-#include <sys/sem.h>
-
-static const struct nlist nlst[] = { {"glibtop_sem_limits"}, {NULL} };
-#if GLIBTOP_SOLARIS_RELEASE < 51000
-static const unsigned long _glibtop_sysdeps_sem_limits =
-#if GLIBTOP_SOLARIS_RELEASE <= 50700
-(1L << GLIBTOP_IPC_SEMMAP) +
-#endif
-(1L << GLIBTOP_IPC_SEMMNI) + (1L << GLIBTOP_IPC_SEMMNS) +
-(1L << GLIBTOP_IPC_SEMMNU) + (1L << GLIBTOP_IPC_SEMMSL) +
-(1L << GLIBTOP_IPC_SEMOPM) + (1L << GLIBTOP_IPC_SEMUME) +
-(1L << GLIBTOP_IPC_SEMUSZ) + (1L << GLIBTOP_IPC_SEMVMX) +
-(1L << GLIBTOP_IPC_SEMAEM);
-#else
-static const unsigned long _glibtop_sysdeps_sem_limits = 0;
-#endif
-
-
-/* Init function. */
-
-void
-_glibtop_init_sem_limits_p (glibtop *server)
-{
-#if GLIBTOP_SOLARIS_RELEASE < 51000
-
- kvm_t *kd = server->machine.kd;
-
- if(kd && !kvm_nlist(kd, nlst))
- server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits;
- else
- server->sysdeps.sem_limits = 0;
-#endif
-}
-
-/* Provides information about sysv sem limits. */
-
-void
-glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf)
-{
-#if GLIBTOP_SOLARIS_RELEASE < 51000
- kvm_t *kd = server->machine.kd;
- glibtop_sem_limits sinfo;
-
- memset (buf, 0, sizeof (glibtop_sem_limits));
-
- if(!(server->sysdeps.sem_limits))
- return;
- if(kvm_read(kd, nlst[0].n_value, (void *)&sinfo,
- sizeof(glibtop_sem_limits)) != sizeof(glibtop_sem_limits))
-
- return;
-
-#if GLIBTOP_SOLARIS_RELEASE <= 50700
- /* This field don't exist anymore in Solaris 8.
- * Thanks to Laszlo PETER <Laszlo.Peter@ireland.sun.com>. */
- buf->semmap = sinfo.semmap;
-#endif
- buf->semmni = sinfo.semmni;
- buf->semmns = sinfo.semmns;
- buf->semmnu = sinfo.semmnu;
- buf->semmsl = sinfo.semmsl;
- buf->semopm = sinfo.semopm;
- buf->semume = sinfo.semume;
- buf->semusz = sinfo.semusz;
- buf->semvmx = sinfo.semvmx;
- buf->semaem = sinfo.semaem;
-#endif
-
-#if GLIBTOP_SOLARIS_RELEASE >= 51000
- rctlblk_t *rblk;
- if ((rblk = malloc(rctlblk_size())) == NULL)
- return;
-
- if (getrctl("process.max-sem-ops", NULL, rblk, RCTL_FIRST) == -1)
- return;
- else
- buf->semopm = rctlblk_get_value(rblk);
-
- if (getrctl("process.max-sem-nsems", NULL, rblk, RCTL_FIRST) == -1)
- return;
- else
- buf->semmsl = rctlblk_get_value(rblk);
-
- if (getrctl("project.max-sem-ids", NULL, rblk, RCTL_FIRST) == -1)
- return;
- else
- buf->semmni = rctlblk_get_value(rblk);
- /* there are only 3 fields, the remaining ones have been obsoleted in S10
- and no longer have system-wide limits */
-#endif
- buf->flags = _glibtop_sysdeps_sem_limits;
-
-}
diff --git a/sysdeps/solaris/shm_limits.c b/sysdeps/solaris/shm_limits.c
deleted file mode 100644
index 22e2cace..00000000
--- a/sysdeps/solaris/shm_limits.c
+++ /dev/null
@@ -1,107 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/shm_limits.h>
-
-#include <kvm.h>
-#include <rctl.h>
-#include <sys/shm.h>
-
-static const struct nlist nlst[] = { {"glibtop_shm_limits"}, {NULL} };
-
-#if GLIBTOP_SOLARIS_RELEASE >=51000
-static const unsigned long _glibtop_sysdeps_shm_limits = 0;
-#else
-# if GLIBTOP_SOLARIS_RELEASE < 50900
-static const unsigned long _glibtop_sysdeps_shm_limits =
-(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN);
-
-# else
-static const unsigned long _glibtop_sysdeps_shm_limits =
-(1L << GLIBTOP_IPC_SHMMAX) + (1L << GLIBTOP_IPC_SHMMIN) +
-(1L << GLIBTOP_IPC_SHMMNI) + (1L << GLIBTOP_IPC_SHMSEG);
-# endif
-#endif
-
-/* Init function. */
-
-void
-_glibtop_init_shm_limits_p (glibtop *server)
-{
-#if GLIBTOP_SOLARIS_RELEASE < 51000
-
- kvm_t * const kd = server->machine.kd;
-
- if(kd && !kvm_nlist(kd, nlst))
- server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
- else
- server->sysdeps.shm_limits = 0;
-#endif
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_shm_limits_p (glibtop *server, glibtop_shm_limits *buf)
-{
-#if GLIBTOP_SOLARIS_RELEASE < 51000
-
- kvm_t * const kd = server->machine.kd;
- glibtop_shm_limits sinfo;
-
-
- memset (buf, 0, sizeof (glibtop_shm_limits));
-
- if(!(server->sysdeps.shm_limits))
- return;
-
- if(kvm_read(kd, nlst[0].n_value, (void *)&sinfo,
- sizeof(glibtop_shm_limits)) != sizeof(glibtop_shm_limits))
-
- return;
-
- buf->shmmax = sinfo.shmmax;
- buf->shmmni = sinfo.shmmni;
-#if GLIBTOP_SOLARIS_RELEASE < 50900
- buf->shmmin = sinfo.shmmin;
- buf->shmseg = sinfo.shmseg;
-# endif
-#endif
-#if GLIBTOP_SOLARIS_RELEASE >= 51000
- rctlblk_t *rblk;
- if ((rblk = malloc(rctlblk_size())) == NULL)
- return;
-
- if (getrctl("project.max-shm-memory", NULL, rblk, RCTL_FIRST) == -1)
- return;
- else
- buf->shmmax = rctlblk_get_value(rblk);
-
- if (getrctl("project.max-shm-ids", NULL, rblk, RCTL_FIRST) == -1)
- return;
- else
- buf->shmmni = rctlblk_get_value(rblk);
-
-#endif
- buf->flags = _glibtop_sysdeps_shm_limits;
-}
diff --git a/sysdeps/solaris/siglist.c b/sysdeps/solaris/siglist.c
deleted file mode 100644
index c9ed6818..00000000
--- a/sysdeps/solaris/siglist.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/signal.h>
-
-const glibtop_signame glibtop_sys_siglist [] =
-{ { 1, "SIGHUP", "Hangup" },
- { 2, "SIGINT", "Interrupt" },
- { 3, "SIGQUIT", "Quit" },
- { 4, "SIGILL", "Illegal Instruction" },
- { 5, "SIGTRAP", "Trace/Breakpoint Trap" },
- { 6, "SIGABRT", "Abort" },
- { 7, "SIGEMT", "Emulation Trap" },
- { 8, "SIGFPE", "Arithmetic Exception" },
- { 9, "SIGKILL", "Killed" },
- { 10, "SIGBUS", "Bus Error" },
- { 11, "SIGSEGV", "Segmentation Fault" },
- { 12, "SIGSYS", "Bad System Call" },
- { 13, "SIGPIPE", "Broken Pipe" },
- { 14, "SIGALRM", "Alarm Clock" },
- { 15, "SIGTERM", "Terminated" },
- { 16, "SIGUSR1", "User Signal 1" },
- { 17, "SIGUSR2", "User Signal 2" },
- { 18, "SIGCHLD", "Child Status Changed" },
- { 19, "SIGPWR", "Power-Fail/Restart" },
- { 20, "SIGWINCH","Window Size Change" },
- { 21, "SIGURG", "Urgent Socket Condition" },
- { 22, "SIGPOLL", "Pollable Event" },
- { 23, "SIGSTOP", "Stoped (signal)" },
- { 24, "SIGTSTP", "Stopped (user)" },
- { 25, "SIGCONT", "Continued" },
- { 26, "SIGTTIN", "Stopped (tty input)" },
- { 27, "SIGTTOU", "Stopped (tty output)" },
- { 28, "SIGVTALRM","Virtual Timer Expired" },
- { 29, "SIGPROF", "Profiling Timer Expired" },
- { 30, "SIGXCPU", "Cpu Limit Exceeded" },
- { 31, "SIGXFSZ", "File Size Limit Exceeded" },
- { 32, "SIGWAITING","No runnable lwp" },
- { 33, "SIGLWP", "Inter-lwp signal" },
- { 34, "SIGFREEZE","Checkpoint Freeze" },
- { 35, "SIGTHAW", "Checkpoint Thaw" },
- { 36, "SIGCANCEL","Thread Cancelation" },
- { 37, "SIGLOST", "Resource Lost" },
- { 38, "SIGRTMIN","First Realtime Signal" },
- { 39, "SIGRTMIN+1", "Second Realtime Signal" },
- { 40, "SIGRTMIN+2", "Third Realtime Signal" },
- { 41, "SIGRTMIN+3", "Fourth Realtime Signal" },
- { 42, "SIGRTMAX-3", "Fourth Last Realtime Signal" },
- { 43, "SIGRTMAX-2", "Third Last Realtime Signal" },
- { 44, "SIGRTMAX-1", "Second Last Realtime Signal" },
- { 45, "SIGRTMAX", "Last Realtime Signal" },
- { 0, NULL, NULL }
-};
diff --git a/sysdeps/solaris/swap.c b/sysdeps/solaris/swap.c
deleted file mode 100644
index a2e297f0..00000000
--- a/sysdeps/solaris/swap.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/swap.h>
-
-#include <unistd.h>
-#include <sys/swap.h>
-
-#include <glibtop_private.h>
-
-static const unsigned long _glibtop_sysdeps_swap =
-(1L << GLIBTOP_SWAP_TOTAL) + (1L << GLIBTOP_SWAP_USED) +
-(1L << GLIBTOP_SWAP_FREE);
-
-/* Init function. */
-
-void
-_glibtop_init_swap_s (glibtop *server)
-{
- server->sysdeps.swap = _glibtop_sysdeps_swap;
-}
-
-/* Provides information about swap usage. */
-
-void
-glibtop_get_swap_s (glibtop *server, glibtop_swap *buf)
-{
- swaptbl_t *s = NULL;
- int i, n1, n2;
-
- /* we don't care about ste_path, and we're lazy */
- char shared_path[BUFSIZ]; /* hope this is large enough */
-
- const int pagesize = getpagesize();
-
- memset(buf, 0, sizeof *buf);
-
- switch( (n1 = swapctl(SC_GETNSWP, NULL)) )
- {
- case -1:
- glibtop_warn_r(server, "swapctl: GETNSWP");
- return;
-
- case 0:
- /* no swapfile */
- goto out_no_swap;
-
- default:
- break;
- }
-
- /* RTFM */
- s = g_malloc(sizeof(swaptbl_t)
- + n1 * sizeof(swapent_t));
-
- s->swt_n = n1;
-
- /* initialize string pointers */
- for (i = 0; i < n1; i++)
- {
- s->swt_ent[i].ste_path = shared_path;
- }
-
- if ((n2 = swapctl(SC_LIST, s)) < 0)
- {
- glibtop_warn_r(server, "swapctl: SC_LIST");
- goto out_free;
- }
-
-
- /* #swapfile may have changed between the 2 swapctl() calls
- * we don't care, we just use the smallest #swapfile */
- for (i = 0; i < MIN(n1, n2); i++)
- {
- buf->total += s->swt_ent[i].ste_pages;
- buf->free += s->swt_ent[i].ste_free;
- }
-
- buf->total *= pagesize;
- buf->free *= pagesize;
- buf->used = buf->total - buf->free;
-
- out_no_swap:
- buf->flags = _glibtop_sysdeps_swap;
-
- out_free:
- g_free(s);
-}
diff --git a/sysdeps/solaris/uptime.c b/sysdeps/solaris/uptime.c
deleted file mode 100644
index 2649dba8..00000000
--- a/sysdeps/solaris/uptime.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/uptime.h>
-
-#include <time.h>
-
-static const unsigned long _glibtop_sysdeps_uptime =
-(1L <<GLIBTOP_UPTIME_BOOT_TIME)
-| (1L << GLIBTOP_UPTIME_UPTIME);
-
-/* Init function. */
-
-void
-_glibtop_init_uptime_s (glibtop *server)
-{
- server->sysdeps.uptime = _glibtop_sysdeps_uptime;
-}
-
-/* Provides uptime and idle time. */
-
-void
-glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf)
-{
- memset (buf, 0, sizeof (glibtop_uptime));
-
- if(!(server->machine.boot))
- return;
-
- buf->boot_time = server->machine.boot;
- buf->uptime = time(NULL) - server->machine.boot;
-
- buf->flags = _glibtop_sysdeps_uptime;
-}
diff --git a/sysdeps/stub/ChangeLog b/sysdeps/stub/ChangeLog
deleted file mode 100644
index fef8b03f..00000000
--- a/sysdeps/stub/ChangeLog
+++ /dev/null
@@ -1,47 +0,0 @@
-2005-02-02 Benoît Dejean <TazForEver@dlfp.org>
-
- * procopenfiles.c: Fixed typo. Closes #166090
-
-2004-12-23 Benoît Dejean <tazforever@dlfp.org>
-
- * netlist.c: (glibtop_get_netlist_s): Fixed.
-
-2004-11-13 Benoît Dejean <tazforever@dlfp.org>
-
- * Makefile.am:
- * netlist.c: (glibtop_init_netlist_s), (glibtop_get_netlist_s): Added
- stub for glibtop_get_netlist.
-
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * glibtop_server.h:
- * procargs.c:
- * procmap.c: fixed compilation
-
-2001-10-17 Abel Cheung <maddog@linux.org.hk>
-
- * Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * netload.c: New file.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * procargs.c: New file.
-
-1998-10-25 Martin Baulig <martin@home-of-linux.org>
-
- * ppp.c: New file.
-
-1998-08-24 Martin Baulig <martin@home-of-linux.org>
-
- * *.c: Added initialization functions `glibtop_init_<feature>_s'.
-
- * ChangeLog: New file.
-
diff --git a/sysdeps/stub/Makefile.am b/sysdeps/stub/Makefile.am
deleted file mode 100644
index 24fa7412..00000000
--- a/sysdeps/stub/Makefile.am
+++ /dev/null
@@ -1,16 +0,0 @@
-
-INCLUDES = @INCLUDES@
-
-noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la
-
-libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
- uptime.c loadavg.c shm_limits.c msg_limits.c \
- sem_limits.c proclist.c procstate.c procuid.c \
- proctime.c procmem.c procsignal.c prockernel.c \
- procsegment.c procargs.c procmap.c netload.c \
- ppp.c netlist.c procopenfiles.c
-
-libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
-libgtopinclude_HEADERS = glibtop_server.h
-libgtopincludedir = $(includedir)/libgtop-2.0
diff --git a/sysdeps/stub/close.c b/sysdeps/stub/close.c
deleted file mode 100644
index 03057967..00000000
--- a/sysdeps/stub/close.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/close.h>
-
-/* Closes pipe to gtop server. */
-
-void
-glibtop_close_s (glibtop *server)
-{ }
diff --git a/sysdeps/stub/cpu.c b/sysdeps/stub/cpu.c
deleted file mode 100644
index 7384124c..00000000
--- a/sysdeps/stub/cpu.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/cpu.h>
-
-static const unsigned long _glibtop_sysdeps_cpu = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_cpu_s (glibtop *server)
-{
- server->sysdeps.cpu = _glibtop_sysdeps_cpu;
-}
-
-/* Provides information about cpu usage. */
-
-void
-glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
-{
- memset (buf, 0, sizeof (glibtop_cpu));
-}
diff --git a/sysdeps/stub/glibtop_server.h b/sysdeps/stub/glibtop_server.h
deleted file mode 100644
index 6f4b6576..00000000
--- a/sysdeps/stub/glibtop_server.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* 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_SERVER_H__
-#define __GLIBTOP_SERVER_H__
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_SUID_CPU 0
-#define GLIBTOP_SUID_MEM 0
-#define GLIBTOP_SUID_SWAP 0
-#define GLIBTOP_SUID_UPTIME 0
-#define GLIBTOP_SUID_LOADAVG 0
-#define GLIBTOP_SUID_SHM_LIMITS 0
-#define GLIBTOP_SUID_MSG_LIMITS 0
-#define GLIBTOP_SUID_SEM_LIMITS 0
-#define GLIBTOP_SUID_PROCLIST 0
-#define GLIBTOP_SUID_PROC_STATE 0
-#define GLIBTOP_SUID_PROC_UID 0
-#define GLIBTOP_SUID_PROC_MEM 0
-#define GLIBTOP_SUID_PROC_TIME 0
-#define GLIBTOP_SUID_PROC_SIGNAL 0
-#define GLIBTOP_SUID_PROC_KERNEL 0
-#define GLIBTOP_SUID_PROC_SEGMENT 0
-#define GLIBTOP_SUID_PROC_ARGS 0
-#define GLIBTOP_SUID_PROC_MAP 0
-#define GLIBTOP_SUID_NETLOAD 0
-#define GLIBTOP_SUID_NETLIST 0
-#define GLIBTOP_SUID_PPP 0
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/stub/loadavg.c b/sysdeps/stub/loadavg.c
deleted file mode 100644
index 4037c7d5..00000000
--- a/sysdeps/stub/loadavg.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/loadavg.h>
-
-static const unsigned long _glibtop_sysdeps_loadavg = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_loadavg_s (glibtop *server)
-{
- server->sysdeps.loadavg = _glibtop_sysdeps_loadavg;
-}
-
-/* Provides load averange. */
-
-void
-glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
-{
- memset (buf, 0, sizeof (glibtop_loadavg));
-}
diff --git a/sysdeps/stub/mem.c b/sysdeps/stub/mem.c
deleted file mode 100644
index 764b0cc3..00000000
--- a/sysdeps/stub/mem.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/mem.h>
-
-static const unsigned long _glibtop_sysdeps_mem = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_mem_s (glibtop *server)
-{
- server->sysdeps.mem = _glibtop_sysdeps_mem;
-}
-
-/* Provides information about memory usage. */
-
-void
-glibtop_get_mem_s (glibtop *server, glibtop_mem *buf)
-{
- memset (buf, 0, sizeof (glibtop_mem));
-}
diff --git a/sysdeps/stub/msg_limits.c b/sysdeps/stub/msg_limits.c
deleted file mode 100644
index 08e051ca..00000000
--- a/sysdeps/stub/msg_limits.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/msg_limits.h>
-
-static const unsigned long _glibtop_sysdeps_msg_limits = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_msg_limits_s (glibtop *server)
-{
- server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf)
-{
- memset (buf, 0, sizeof (glibtop_msg_limits));
-}
diff --git a/sysdeps/stub/netlist.c b/sysdeps/stub/netlist.c
deleted file mode 100644
index fce76fd4..00000000
--- a/sysdeps/stub/netlist.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/* This file is part of LibGTop 2.0.
-
- 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/netlist.h>
-
-static const unsigned long _glibtop_sysdeps_netlist = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_netlist_s (glibtop *server)
-{
- server->sysdeps.netlist = _glibtop_sysdeps_netlist;
-}
-
-char**
-glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf)
-{
- memset (buf, 0, sizeof (glibtop_netlist));
-
- return NULL;
-}
diff --git a/sysdeps/stub/netload.c b/sysdeps/stub/netload.c
deleted file mode 100644
index 0bdf7ade..00000000
--- a/sysdeps/stub/netload.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/netload.h>
-
-static const unsigned long _glibtop_sysdeps_netload = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_netload_s (glibtop *server)
-{
- server->sysdeps.netload = _glibtop_sysdeps_netload;
-}
-
-/* Provides network statistics. */
-
-void
-glibtop_get_netload_s (glibtop *server, glibtop_netload *buf,
- const char *interface)
-{
- memset (buf, 0, sizeof (glibtop_netload));
-}
diff --git a/sysdeps/stub/open.c b/sysdeps/stub/open.c
deleted file mode 100644
index 27bff3dc..00000000
--- a/sysdeps/stub/open.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/open.h>
-
-/* Opens pipe to gtop server. Returns 0 on success and -1 on error. */
-
-void
-glibtop_open_s (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags)
-{
- server->name = program_name;
-}
diff --git a/sysdeps/stub/ppp.c b/sysdeps/stub/ppp.c
deleted file mode 100644
index d7b510ef..00000000
--- a/sysdeps/stub/ppp.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/ppp.h>
-
-static const unsigned long _glibtop_sysdeps_ppp = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_ppp_s (glibtop *server)
-{
- server->sysdeps.ppp = _glibtop_sysdeps_ppp;
-}
-
-/* Provides PPP/ISDN information. */
-
-void
-glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device)
-{
- memset (buf, 0, sizeof (glibtop_ppp));
-}
diff --git a/sysdeps/stub/procargs.c b/sysdeps/stub/procargs.c
deleted file mode 100644
index f408bbfa..00000000
--- a/sysdeps/stub/procargs.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procargs.h>
-
-static const unsigned long _glibtop_sysdeps_proc_args = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_args_s (glibtop *server)
-{
- server->sysdeps.proc_args = _glibtop_sysdeps_proc_args;
-}
-
-/* Provides detailed information about a process. */
-
-char *
-glibtop_get_proc_args_s (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len)
-{
- memset (buf, 0, sizeof (glibtop_proc_args));
- return NULL;
-}
diff --git a/sysdeps/stub/prockernel.c b/sysdeps/stub/prockernel.c
deleted file mode 100644
index f37d8923..00000000
--- a/sysdeps/stub/prockernel.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/prockernel.h>
-
-static const unsigned long _glibtop_sysdeps_proc_kernel = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_kernel_s (glibtop *server)
-{
- server->sysdeps.proc_kernel = _glibtop_sysdeps_proc_kernel;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf,
- pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_proc_kernel));
-}
diff --git a/sysdeps/stub/proclist.c b/sysdeps/stub/proclist.c
deleted file mode 100644
index 663d8a5f..00000000
--- a/sysdeps/stub/proclist.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/proclist.h>
-
-#define GLIBTOP_PROCLIST_FLAGS 3
-
-static const unsigned long _glibtop_sysdeps_proclist = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proclist_s (glibtop *server)
-{
- server->sysdeps.proclist = _glibtop_sysdeps_proclist;
-}
-
-/* Fetch list of currently running processes.
- *
- * IMPORTANT NOTE:
- * On error, this function MUST return NULL and set buf->flags to zero !
- * On success, it returnes a pointer to a list of buf->number elements
- * each buf->size big. The total size is stored in buf->total. */
-
-unsigned *
-glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg)
-{
- memset (buf, 0, sizeof (glibtop_proclist));
- return NULL;
-}
diff --git a/sysdeps/stub/procmap.c b/sysdeps/stub/procmap.c
deleted file mode 100644
index 9da252f9..00000000
--- a/sysdeps/stub/procmap.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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.
-*/
-
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmap.h>
-
-static const unsigned long _glibtop_sysdeps_proc_map = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_map_s (glibtop *server)
-{
- server->sysdeps.proc_map = _glibtop_sysdeps_proc_map;
-}
-
-/* Provides detailed information about a process. */
-
-glibtop_map_entry *
-glibtop_get_proc_map_s (glibtop *server, glibtop_proc_map *buf, pid_t pid)
-{
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_MAP, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_map));
-
- return NULL;
-}
diff --git a/sysdeps/stub/procmem.c b/sysdeps/stub/procmem.c
deleted file mode 100644
index e2bd59df..00000000
--- a/sysdeps/stub/procmem.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procmem.h>
-
-static const unsigned long _glibtop_sysdeps_proc_mem = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_mem_s (glibtop *server)
-{
- server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf,
- pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_proc_mem));
-}
diff --git a/sysdeps/stub/procopenfiles.c b/sysdeps/stub/procopenfiles.c
deleted file mode 100644
index deb87c0d..00000000
--- a/sysdeps/stub/procopenfiles.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- Copyright (C) 2004 Nicolás Lichtmaier
- 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.
-*/
-
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procopenfiles.h>
-
-/* Init function. */
-
-void
-_glibtop_init_proc_open_files_s (glibtop *server)
-{
- server->sysdeps.proc_open_files = 0;
-}
-
-/* Provides detailed information about a process. */
-
-glibtop_open_files_entry *
-glibtop_get_proc_open_files_s (glibtop *server, glibtop_proc_open_files *buf, pid_t pid)
-{
- glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_MAP, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_open_files));
-
- return NULL;
-}
diff --git a/sysdeps/stub/procsegment.c b/sysdeps/stub/procsegment.c
deleted file mode 100644
index 72e3b45c..00000000
--- a/sysdeps/stub/procsegment.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procsegment.h>
-
-static const unsigned long _glibtop_sysdeps_proc_segment = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_segment_s (glibtop *server)
-{
- server->sysdeps.proc_segment = _glibtop_sysdeps_proc_segment;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
- pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_proc_segment));
-}
diff --git a/sysdeps/stub/procsignal.c b/sysdeps/stub/procsignal.c
deleted file mode 100644
index 98d2b07e..00000000
--- a/sysdeps/stub/procsignal.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procsignal.h>
-
-static const unsigned long _glibtop_sysdeps_proc_signal = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_signal_s (glibtop *server)
-{
- server->sysdeps.proc_signal = _glibtop_sysdeps_proc_signal;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_signal_s (glibtop *server, glibtop_proc_signal *buf,
- pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_proc_signal));
-}
diff --git a/sysdeps/stub/procstate.c b/sysdeps/stub/procstate.c
deleted file mode 100644
index 2abd4a13..00000000
--- a/sysdeps/stub/procstate.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procstate.h>
-
-static const unsigned long _glibtop_sysdeps_proc_state = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_state_s (glibtop *server)
-{
- server->sysdeps.proc_state = _glibtop_sysdeps_proc_state;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf,
- pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_proc_state));
-}
diff --git a/sysdeps/stub/proctime.c b/sysdeps/stub/proctime.c
deleted file mode 100644
index 15821a02..00000000
--- a/sysdeps/stub/proctime.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/proctime.h>
-
-static const unsigned long _glibtop_sysdeps_proc_time = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_time_s (glibtop *server)
-{
- server->sysdeps.proc_time = _glibtop_sysdeps_proc_time;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf,
- pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_proc_time));
-}
diff --git a/sysdeps/stub/procuid.c b/sysdeps/stub/procuid.c
deleted file mode 100644
index 5f883a28..00000000
--- a/sysdeps/stub/procuid.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procuid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_uid = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_uid_s (glibtop *server)
-{
- server->sysdeps.proc_uid = _glibtop_sysdeps_proc_uid;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_uid_s (glibtop *server, glibtop_proc_uid *buf,
- pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_proc_uid));
-}
diff --git a/sysdeps/stub/sem_limits.c b/sysdeps/stub/sem_limits.c
deleted file mode 100644
index 1b06e31d..00000000
--- a/sysdeps/stub/sem_limits.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/sem_limits.h>
-
-static const unsigned long _glibtop_sysdeps_sem_limits = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_sem_limits_s (glibtop *server)
-{
- server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits;
-}
-
-/* Provides information about sysv sem limits. */
-
-void
-glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
-{
- memset (buf, 0, sizeof (glibtop_sem_limits));
-}
diff --git a/sysdeps/stub/shm_limits.c b/sysdeps/stub/shm_limits.c
deleted file mode 100644
index 53984022..00000000
--- a/sysdeps/stub/shm_limits.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/shm_limits.h>
-
-static const unsigned long _glibtop_sysdeps_shm_limits = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_shm_limits_s (glibtop *server)
-{
- server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
-{
- memset (buf, 0, sizeof (glibtop_shm_limits));
-}
diff --git a/sysdeps/stub/siglist.c b/sysdeps/stub/siglist.c
deleted file mode 100644
index 4fbe84b2..00000000
--- a/sysdeps/stub/siglist.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/signal.h>
-
-const glibtop_signame glibtop_sys_siglist [] =
-{ { 0, NULL, NULL } };
diff --git a/sysdeps/stub/swap.c b/sysdeps/stub/swap.c
deleted file mode 100644
index e743a3e4..00000000
--- a/sysdeps/stub/swap.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/swap.h>
-
-static const unsigned long _glibtop_sysdeps_swap = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_swap_s (glibtop *server)
-{
- server->sysdeps.swap = _glibtop_sysdeps_swap;
-}
-
-/* Provides information about swap usage. */
-
-void
-glibtop_get_swap_s (glibtop *server, glibtop_swap *buf)
-{
- memset (buf, 0, sizeof (glibtop_swap));
-}
diff --git a/sysdeps/stub/uptime.c b/sysdeps/stub/uptime.c
deleted file mode 100644
index 2ca0ac58..00000000
--- a/sysdeps/stub/uptime.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/uptime.h>
-
-static const unsigned long _glibtop_sysdeps_uptime = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_uptime_s (glibtop *server)
-{
- server->sysdeps.uptime = _glibtop_sysdeps_uptime;
-}
-
-/* Provides uptime and idle time. */
-
-void
-glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf)
-{
- memset (buf, 0, sizeof (glibtop_uptime));
-}
diff --git a/sysdeps/stub_suid/ChangeLog b/sysdeps/stub_suid/ChangeLog
deleted file mode 100644
index 2c4199eb..00000000
--- a/sysdeps/stub_suid/ChangeLog
+++ /dev/null
@@ -1,32 +0,0 @@
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * glibtop_machine.h:
- * glibtop_server.h:
- * glibtop_suid.h:
- * open.c:
- * procargs.c:
- * procmap.c: fixed compilation
-
-2001-10-17 Abel Cheung <maddog@linux.org.hk>
-
- * Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * netload.c: New file.
-
-1998-10-26 Martin Baulig <martin@home-of-linux.org>
-
- * procargs.c: New file.
- * procmap.c: New file.
-
-1998-10-25 Martin Baulig <martin@home-of-linux.org>
-
- * ChangeLog: New file.
- * ppp.c: New file.
-
diff --git a/sysdeps/stub_suid/Makefile.am b/sysdeps/stub_suid/Makefile.am
deleted file mode 100644
index e0bb1629..00000000
--- a/sysdeps/stub_suid/Makefile.am
+++ /dev/null
@@ -1,22 +0,0 @@
-
-INCLUDES = @INCLUDES@
-
-noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
-
-libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c
-
-libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
-libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
- uptime.c loadavg.c shm_limits.c msg_limits.c \
- sem_limits.c proclist.c procstate.c procuid.c \
- proctime.c procmem.c procsignal.c prockernel.c \
- procsegment.c procargs.c procmap.c netload.c \
- ppp.c
-
-libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-
-libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h
-libgtopincludedir = $(includedir)/libgtop-2.0
-
-noinst_HEADERS = glibtop_suid.h
diff --git a/sysdeps/stub_suid/close.c b/sysdeps/stub_suid/close.c
deleted file mode 100644
index 03057967..00000000
--- a/sysdeps/stub_suid/close.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/close.h>
-
-/* Closes pipe to gtop server. */
-
-void
-glibtop_close_s (glibtop *server)
-{ }
diff --git a/sysdeps/stub_suid/cpu.c b/sysdeps/stub_suid/cpu.c
deleted file mode 100644
index 9b307622..00000000
--- a/sysdeps/stub_suid/cpu.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/cpu.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_cpu = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_cpu_p (glibtop *server)
-{
- server->sysdeps.cpu = _glibtop_sysdeps_cpu;
-}
-
-/* Provides information about cpu usage. */
-
-void
-glibtop_get_cpu_p (glibtop *server, glibtop_cpu *buf)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_CPU, 0);
-
- memset (buf, 0, sizeof (glibtop_cpu));
-}
diff --git a/sysdeps/stub_suid/glibtop_machine.h b/sysdeps/stub_suid/glibtop_machine.h
deleted file mode 100644
index d9d3da6f..00000000
--- a/sysdeps/stub_suid/glibtop_machine.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* 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_MACHINE_H__
-#define __GLIBTOP_MACHINE_H__
-
-G_BEGIN_DECLS
-
-typedef struct _glibtop_machine glibtop_machine;
-
-struct _glibtop_machine
-{
- uid_t uid, euid; /* Real and effective user id */
- gid_t gid, egid; /* Real and effective group id */
-};
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/stub_suid/glibtop_server.h b/sysdeps/stub_suid/glibtop_server.h
deleted file mode 100644
index 8a7a5028..00000000
--- a/sysdeps/stub_suid/glibtop_server.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* 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_SERVER_H__
-#define __GLIBTOP_SERVER_H__
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU)
-#define GLIBTOP_SUID_MEM (1 << GLIBTOP_SYSDEPS_MEM)
-#define GLIBTOP_SUID_SWAP (1 << GLIBTOP_SYSDEPS_SWAP)
-#define GLIBTOP_SUID_UPTIME (1 << GLIBTOP_SYSDEPS_UPTIME)
-#define GLIBTOP_SUID_LOADAVG (1 << GLIBTOP_SYSDEPS_LOADAVG)
-#define GLIBTOP_SUID_SHM_LIMITS (1 << GLIBTOP_SYSDEPS_SHM_LIMITS)
-#define GLIBTOP_SUID_MSG_LIMITS (1 << GLIBTOP_SYSDEPS_MSG_LIMITS)
-#define GLIBTOP_SUID_SEM_LIMITS (1 << GLIBTOP_SYSDEPS_SEM_LIMITS)
-#define GLIBTOP_SUID_PROCLIST (1 << GLIBTOP_SYSDEPS_PROCLIST)
-#define GLIBTOP_SUID_PROC_STATE (1 << GLIBTOP_SYSDEPS_PROC_STATE)
-#define GLIBTOP_SUID_PROC_UID (1 << GLIBTOP_SYSDEPS_PROC_UID)
-#define GLIBTOP_SUID_PROC_MEM (1 << GLIBTOP_SYSDEPS_PROC_MEM)
-#define GLIBTOP_SUID_PROC_TIME (1 << GLIBTOP_SYSDEPS_PROC_TIME)
-#define GLIBTOP_SUID_PROC_SIGNAL (1 << GLIBTOP_SYSDEPS_PROC_SIGNAL)
-#define GLIBTOP_SUID_PROC_KERNEL (1 << GLIBTOP_SYSDEPS_PROC_KERNEL)
-#define GLIBTOP_SUID_PROC_SEGMENT (1 << GLIBTOP_SYSDEPS_PROC_SEGMENT)
-#define GLIBTOP_SUID_PROC_ARGS (1 << GLIBTOP_SYSDEPS_PROC_ARGS)
-#define GLIBTOP_SUID_PROC_MAP (1 << GLIBTOP_SYSDEPS_PROC_MAP)
-#define GLIBTOP_SUID_NETLOAD (1 << GLIBTOP_SYSDEPS_NETLOAD)
-#define GLIBTOP_SUID_NETLIST 0
-#define GLIBTOP_SUID_PPP (1 << GLIBTOP_SYSDEPS_PPP)
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/stub_suid/glibtop_suid.h b/sysdeps/stub_suid/glibtop_suid.h
deleted file mode 100644
index d11c64cf..00000000
--- a/sysdeps/stub_suid/glibtop_suid.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/* 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_SUID_H__
-#define __GLIBTOP_SUID_H__
-
-G_BEGIN_DECLS
-
-static inline void glibtop_suid_enter (glibtop *server) {
- setreuid (server->machine.uid, server->machine.euid);
-};
-
-static inline void glibtop_suid_leave (glibtop *server) {
- if (setreuid (server->machine.euid, server->machine.uid))
- _exit (1);
-};
-
-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);
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/stub_suid/init.c b/sysdeps/stub_suid/init.c
deleted file mode 100644
index 5f0f7ea8..00000000
--- a/sysdeps/stub_suid/init.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-
-static glibtop _glibtop_global_server;
-glibtop *glibtop_global_server = NULL;
-
-glibtop *
-glibtop_init_r (glibtop **server,
- const unsigned long features,
- const unsigned flags)
-{
- if (*server != NULL)
- return *server;
-
- if (glibtop_global_server == NULL) {
- glibtop_global_server = &_glibtop_global_server;
- glibtop_open (glibtop_global_server, "glibtop",
- features, flags);
- }
-
- return *server = glibtop_global_server;
-}
diff --git a/sysdeps/stub_suid/loadavg.c b/sysdeps/stub_suid/loadavg.c
deleted file mode 100644
index d01ffcf0..00000000
--- a/sysdeps/stub_suid/loadavg.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/loadavg.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_loadavg = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_loadavg_p (glibtop *server)
-{
- server->sysdeps.loadavg = _glibtop_sysdeps_loadavg;
-}
-
-/* Provides load averange. */
-
-void
-glibtop_get_loadavg_p (glibtop *server, glibtop_loadavg *buf)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_LOADAVG, 0);
-
- memset (buf, 0, sizeof (glibtop_loadavg));
-}
diff --git a/sysdeps/stub_suid/mem.c b/sysdeps/stub_suid/mem.c
deleted file mode 100644
index 1ce54b26..00000000
--- a/sysdeps/stub_suid/mem.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/mem.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_mem = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_mem_p (glibtop *server)
-{
- server->sysdeps.mem = _glibtop_sysdeps_mem;
-}
-
-/* Provides information about memory usage. */
-
-void
-glibtop_get_mem_p (glibtop *server, glibtop_mem *buf)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_MEM, 0);
-
- memset (buf, 0, sizeof (glibtop_mem));
-}
diff --git a/sysdeps/stub_suid/msg_limits.c b/sysdeps/stub_suid/msg_limits.c
deleted file mode 100644
index 53e41957..00000000
--- a/sysdeps/stub_suid/msg_limits.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/msg_limits.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_msg_limits = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_msg_limits_p (glibtop *server)
-{
- server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_MSG_LIMITS, 0);
-
- memset (buf, 0, sizeof (glibtop_msg_limits));
-}
diff --git a/sysdeps/stub_suid/netload.c b/sysdeps/stub_suid/netload.c
deleted file mode 100644
index eefacf51..00000000
--- a/sysdeps/stub_suid/netload.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/netload.h>
-
-static const unsigned long _glibtop_sysdeps_netload = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_netload_p (glibtop *server)
-{
- server->sysdeps.netload = _glibtop_sysdeps_netload;
-}
-
-/* Provides Network statistics. */
-
-void
-glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
- const char *interface)
-{
- memset (buf, 0, sizeof (glibtop_netload));
-}
diff --git a/sysdeps/stub_suid/nosuid.c b/sysdeps/stub_suid/nosuid.c
deleted file mode 100644
index cce50933..00000000
--- a/sysdeps/stub_suid/nosuid.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-
-void
-glibtop_open_s (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags)
-{ }
-
-void
-glibtop_close_s (glibtop *server)
-{ }
diff --git a/sysdeps/stub_suid/open.c b/sysdeps/stub_suid/open.c
deleted file mode 100644
index 6a829b08..00000000
--- a/sysdeps/stub_suid/open.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/init_hooks.h>
-
-/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
-void
-glibtop_init_p (glibtop *server, const unsigned long features,
- const unsigned flags)
-{
- const _glibtop_init_func_t *init_fkt;
-
- if (server == NULL)
- glibtop_error_r (NULL, "glibtop_init_p (server == NULL)");
-
- /* Do the initialization, but only if not already initialized. */
-
- if ((server->flags & _GLIBTOP_INIT_STATE_INIT) == 0) {
- glibtop_open_p (server, "glibtop", features, flags);
-
- for (init_fkt = _glibtop_init_hook_p; *init_fkt; init_fkt++)
- (*init_fkt) (server);
-
- server->flags |= _GLIBTOP_INIT_STATE_INIT;
- }
-}
-
-void
-glibtop_open_p (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags)
-{
- /* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */
-
- server->name = program_name;
-
- server->machine.uid = getuid ();
- server->machine.euid = geteuid ();
- server->machine.gid = getgid ();
- server->machine.egid = getegid ();
-
- /* Drop priviledges. */
-
- if (setreuid (server->machine.euid, server->machine.uid))
- _exit (1);
-
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- /* Our effective uid is now those of the user invoking the server,
- * so we do no longer have any priviledges. */
-}
-
diff --git a/sysdeps/stub_suid/ppp.c b/sysdeps/stub_suid/ppp.c
deleted file mode 100644
index 7e7ee1a7..00000000
--- a/sysdeps/stub_suid/ppp.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/ppp.h>
-
-static const unsigned long _glibtop_sysdeps_ppp = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_ppp_p (glibtop *server)
-{
- server->sysdeps.ppp = _glibtop_sysdeps_ppp;
-}
-
-/* Provides PPP/ISDN information. */
-
-void
-glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device)
-{
- memset (buf, 0, sizeof (glibtop_ppp));
-}
diff --git a/sysdeps/stub_suid/procargs.c b/sysdeps/stub_suid/procargs.c
deleted file mode 100644
index 42029eb5..00000000
--- a/sysdeps/stub_suid/procargs.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procargs.h>
-
-static const unsigned long _glibtop_sysdeps_proc_args = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_args_p (glibtop *server)
-{
- server->sysdeps.proc_args = _glibtop_sysdeps_proc_args;
-}
-
-/* Provides detailed information about a process. */
-
-char *
-glibtop_get_proc_args_p (glibtop *server, glibtop_proc_args *buf,
- pid_t pid, unsigned max_len)
-{
- memset (buf, 0, sizeof (glibtop_proc_args));
- return NULL;
-}
diff --git a/sysdeps/stub_suid/procdata.c b/sysdeps/stub_suid/procdata.c
deleted file mode 100644
index a9f81400..00000000
--- a/sysdeps/stub_suid/procdata.c
+++ /dev/null
@@ -1,178 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/procdata.h>
-
-#include <sys/stat.h>
-
-#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z)
-
-#define BIT_SHIFT(x) (1 << (x % 32))
-
-static const unsigned long _glibtop_sysdeps_procdata_0 =
-BIT_SHIFT(GLIBTOP_PROCDATA_CMD) +
-BIT_SHIFT(GLIBTOP_PROCDATA_STATE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_UID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_PID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_PPID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_PGRP) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SESSION) +
-BIT_SHIFT(GLIBTOP_PROCDATA_TTY) +
-BIT_SHIFT(GLIBTOP_PROCDATA_TPGID) +
-BIT_SHIFT(GLIBTOP_PROCDATA_PRIORITY) +
-BIT_SHIFT(GLIBTOP_PROCDATA_NICE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SIGNAL) +
-BIT_SHIFT(GLIBTOP_PROCDATA_BLOCKED) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SIGIGNORE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SIGCATCH) +
-BIT_SHIFT(GLIBTOP_PROCDATA_START_TIME) +
-BIT_SHIFT(GLIBTOP_PROCDATA_UTIME) +
-BIT_SHIFT(GLIBTOP_PROCDATA_STIME) +
-BIT_SHIFT(GLIBTOP_PROCDATA_CUTIME) +
-BIT_SHIFT(GLIBTOP_PROCDATA_CSTIME) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SIZE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_RESIDENT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_SHARE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_TRS) +
-BIT_SHIFT(GLIBTOP_PROCDATA_LRS) +
-BIT_SHIFT(GLIBTOP_PROCDATA_DRS) +
-BIT_SHIFT(GLIBTOP_PROCDATA_DT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_VSIZE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_RSS) +
-BIT_SHIFT(GLIBTOP_PROCDATA_RSS_RLIM) +
-BIT_SHIFT(GLIBTOP_PROCDATA_TIMEOUT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_IT_REAL_VALUE);
-
-static const unsigned long _glibtop_sysdeps_procdata_1 =
-BIT_SHIFT(GLIBTOP_PROCDATA_K_FLAGS) +
-BIT_SHIFT(GLIBTOP_PROCDATA_MIN_FLT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_MAJ_FLT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_CMIN_FLT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_CMAJ_FLT) +
-BIT_SHIFT(GLIBTOP_PROCDATA_START_CODE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_END_CODE) +
-BIT_SHIFT(GLIBTOP_PROCDATA_START_STACK) +
-BIT_SHIFT(GLIBTOP_PROCDATA_KSTK_ESP) +
-BIT_SHIFT(GLIBTOP_PROCDATA_KSTK_EIP) +
-BIT_SHIFT(GLIBTOP_PROCDATA_WCHAN);
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_procdata_s (glibtop *server, glibtop_procdata *buf, pid_t pid)
-{
- char input [BUFSIZ], *tmp;
- struct stat statb;
- int nread;
- FILE *f;
-
- glibtop_init_r (&server, 0, 0);
-
- memset (buf, 0, sizeof (glibtop_procdata));
-
- if (pid == 0) {
- /* Client is only interested in the flags. */
- buf->flags [0] = _glibtop_sysdeps_procdata_0;
- buf->flags [1] = _glibtop_sysdeps_procdata_1;
- return;
- }
-
-
- sprintf (input, "/proc/%d/stat", pid);
-
- if (stat (input, &statb)) return;
-
- buf->uid = statb.st_uid;
-
- f = fopen (input, "r");
- if (!f) return;
-
- nread = fread (input, 1, BUFSIZ, f);
-
- if (nread < 0) {
- fclose (f);
- return;
- }
-
- input [nread] = 0;
-
- /* This is from guile-utils/gtop/proc/readproc.c */
-
- /* split into "PID (cmd" and "<rest>" */
- tmp = strrchr (input, ')');
- *tmp = '\0'; /* replace trailing ')' with NUL */
- /* parse these two strings separately, skipping the leading "(". */
- memset (buf->cmd, 0, sizeof (buf->cmd));
- sscanf (input, "%d (%39c", &buf->pid, buf->cmd);
- sscanf(tmp + 2, /* skip space after ')' too */
- "%c %d %d %d %d %d %lu %lu %lu %lu %lu "
- "%ld %ld %ld %ld %d %d %lu %lu %ld %lu "
- "%lu %lu %lu %lu %lu %lu %lu %d %d %d %d %lu",
- &buf->state, &buf->ppid, &buf->pgrp, &buf->session,
- &buf->tty, &buf->tpgid, &buf->k_flags, &buf->min_flt,
- &buf->cmin_flt, &buf->maj_flt, &buf->cmaj_flt,
- &buf->utime, &buf->stime, &buf->cutime, &buf->cstime,
- &buf->priority, &buf->nice, &buf->timeout,
- &buf->it_real_value, &buf->start_time, &buf->vsize,
- &buf->rss, &buf->rss_rlim, &buf->start_code,
- &buf->end_code, &buf->start_stack, &buf->kstk_esp,
- &buf->kstk_eip, &buf->signal, &buf->blocked,
- &buf->sigignore, &buf->sigcatch, &buf->wchan);
-
- if (buf->tty == 0)
- /* the old notty val, update elsewhere bef. moving to 0 */
- buf->tty = -1;
-
- if (server->os_version_code < LINUX_VERSION(1,3,39)) {
- /* map old meanings to new */
- buf->priority = 2*15 - buf->priority;
- buf->nice = 15 - buf->nice;
- }
- if (server->os_version_code < LINUX_VERSION(1,1,30) && buf->tty != -1)
- /* when tty wasn't full devno */
- buf->tty = 4*0x100 + buf->tty;
-
- fclose (f);
-
- sprintf (input, "/proc/%d/statm", pid);
-
- f = fopen (input, "r");
- if (!f) return;
-
- nread = fread (input, 1, BUFSIZ, f);
-
- if (nread < 0) {
- fclose (f);
- return;
- }
-
- input [nread] = 0;
-
- sscanf (input, "%ld %ld %ld %ld %ld %ld %ld",
- &buf->size, &buf->resident, &buf->share,
- &buf->trs, &buf->lrs, &buf->drs, &buf->dt);
-
- fclose (f);
-
- buf->flags [0] = _glibtop_sysdeps_procdata_0;
- buf->flags [1] = _glibtop_sysdeps_procdata_1;
-}
diff --git a/sysdeps/stub_suid/prockernel.c b/sysdeps/stub_suid/prockernel.c
deleted file mode 100644
index 77f867ab..00000000
--- a/sysdeps/stub_suid/prockernel.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/prockernel.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_kernel = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_kernel_p (glibtop *server)
-{
- server->sysdeps.proc_kernel = _glibtop_sysdeps_proc_kernel;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_kernel_p (glibtop *server, glibtop_proc_kernel *buf,
- pid_t pid)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_KERNEL, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_kernel));
-}
diff --git a/sysdeps/stub_suid/proclist.c b/sysdeps/stub_suid/proclist.c
deleted file mode 100644
index a633f2c6..00000000
--- a/sysdeps/stub_suid/proclist.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/proclist.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proclist = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proclist_p (glibtop *server)
-{
- server->sysdeps.proclist = _glibtop_sysdeps_proclist;
-}
-
-unsigned *
-glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROCLIST, 0);
-
- memset (buf, 0, sizeof (glibtop_proclist));
-
- return NULL;
-}
diff --git a/sysdeps/stub_suid/procmap.c b/sysdeps/stub_suid/procmap.c
deleted file mode 100644
index 490eeab4..00000000
--- a/sysdeps/stub_suid/procmap.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmap.h>
-
-static const unsigned long _glibtop_sysdeps_proc_map = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_map_p (glibtop *server)
-{
- server->sysdeps.proc_map = _glibtop_sysdeps_proc_map;
-}
-
-/* Provides detailed information about a process. */
-
-glibtop_map_entry *
-glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf, pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_proc_map));
- return NULL;
-}
diff --git a/sysdeps/stub_suid/procmem.c b/sysdeps/stub_suid/procmem.c
deleted file mode 100644
index 4d5d5ea8..00000000
--- a/sysdeps/stub_suid/procmem.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procmem.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_mem = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_mem_p (glibtop *server)
-{
- server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
- pid_t pid)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_MEM, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_mem));
-}
diff --git a/sysdeps/stub_suid/procsegment.c b/sysdeps/stub_suid/procsegment.c
deleted file mode 100644
index 5bbbd686..00000000
--- a/sysdeps/stub_suid/procsegment.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procsegment.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_segment = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_segment_p (glibtop *server)
-{
- server->sysdeps.proc_segment = _glibtop_sysdeps_proc_segment;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_segment_p (glibtop *server, glibtop_proc_segment *buf,
- pid_t pid)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_SEGMENT, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_segment));
-}
diff --git a/sysdeps/stub_suid/procsignal.c b/sysdeps/stub_suid/procsignal.c
deleted file mode 100644
index 07cf53bc..00000000
--- a/sysdeps/stub_suid/procsignal.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procsignal.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_signal = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_signal_p (glibtop *server)
-{
- server->sysdeps.proc_signal = _glibtop_sysdeps_proc_signal;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_signal_p (glibtop *server, glibtop_proc_signal *buf,
- pid_t pid)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_SIGNAL, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_signal));
-}
diff --git a/sysdeps/stub_suid/procstate.c b/sysdeps/stub_suid/procstate.c
deleted file mode 100644
index 892a760f..00000000
--- a/sysdeps/stub_suid/procstate.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procstate.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_state = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_state_p (glibtop *server)
-{
- server->sysdeps.proc_state = _glibtop_sysdeps_proc_state;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_state_p (glibtop *server, glibtop_proc_state *buf,
- pid_t pid)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_STATE, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_state));
-}
diff --git a/sysdeps/stub_suid/proctime.c b/sysdeps/stub_suid/proctime.c
deleted file mode 100644
index 9b674197..00000000
--- a/sysdeps/stub_suid/proctime.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/proctime.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_time = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_time_p (glibtop *server)
-{
- server->sysdeps.proc_time = _glibtop_sysdeps_proc_time;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf,
- pid_t pid)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_TIME, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_time));
-}
diff --git a/sysdeps/stub_suid/procuid.c b/sysdeps/stub_suid/procuid.c
deleted file mode 100644
index f5499d4a..00000000
--- a/sysdeps/stub_suid/procuid.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/procuid.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_uid = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_proc_uid_p (glibtop *server)
-{
- server->sysdeps.proc_uid = _glibtop_sysdeps_proc_uid;
-}
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_uid_p (glibtop *server, glibtop_proc_uid *buf,
- pid_t pid)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_PROC_UID, 0);
-
- memset (buf, 0, sizeof (glibtop_proc_uid));
-}
diff --git a/sysdeps/stub_suid/sem_limits.c b/sysdeps/stub_suid/sem_limits.c
deleted file mode 100644
index f3864d50..00000000
--- a/sysdeps/stub_suid/sem_limits.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/sem_limits.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_sem_limits = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_sem_limits_p (glibtop *server)
-{
- server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits;
-}
-
-/* Provides information about sysv sem limits. */
-
-void
-glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_SEM_LIMITS, 0);
-
- memset (buf, 0, sizeof (glibtop_sem_limits));
-}
diff --git a/sysdeps/stub_suid/shm_limits.c b/sysdeps/stub_suid/shm_limits.c
deleted file mode 100644
index 71c2130b..00000000
--- a/sysdeps/stub_suid/shm_limits.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/shm_limits.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_shm_limits = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_shm_limits_p (glibtop *server)
-{
- server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
-}
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_shm_limits_p (glibtop *server, glibtop_shm_limits *buf)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_SHM_LIMITS, 0);
-
- memset (buf, 0, sizeof (glibtop_shm_limits));
-}
diff --git a/sysdeps/stub_suid/siglist.c b/sysdeps/stub_suid/siglist.c
deleted file mode 100644
index 4fbe84b2..00000000
--- a/sysdeps/stub_suid/siglist.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/signal.h>
-
-const glibtop_signame glibtop_sys_siglist [] =
-{ { 0, NULL, NULL } };
diff --git a/sysdeps/stub_suid/swap.c b/sysdeps/stub_suid/swap.c
deleted file mode 100644
index 2f6d4366..00000000
--- a/sysdeps/stub_suid/swap.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/swap.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_swap = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_swap_p (glibtop *server)
-{
- server->sysdeps.swap = _glibtop_sysdeps_swap;
-}
-
-/* Provides information about swap usage. */
-
-void
-glibtop_get_swap_p (glibtop *server, glibtop_swap *buf)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_SWAP, 0);
-
- memset (buf, 0, sizeof (glibtop_swap));
-}
diff --git a/sysdeps/stub_suid/uptime.c b/sysdeps/stub_suid/uptime.c
deleted file mode 100644
index ba6156c8..00000000
--- a/sysdeps/stub_suid/uptime.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/uptime.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_uptime = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_uptime_p (glibtop *server)
-{
- server->sysdeps.uptime = _glibtop_sysdeps_uptime;
-}
-
-/* Provides uptime and idle time. */
-
-void
-glibtop_get_uptime_p (glibtop *server, glibtop_uptime *buf)
-{
- glibtop_init_p (server, GLIBTOP_SYSDEPS_UPTIME, 0);
-
- memset (buf, 0, sizeof (glibtop_uptime));
-}
diff --git a/sysdeps/sun4/ChangeLog b/sysdeps/sun4/ChangeLog
deleted file mode 100644
index 19be1a03..00000000
--- a/sysdeps/sun4/ChangeLog
+++ /dev/null
@@ -1,51 +0,0 @@
-2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
-
- * open.c: (_glibtop_getkval): s/strerror/g_strerror/.
-
-2004-05-25 Benoît Dejean <tazforever@dlfp.org>
-
- * uptime.c: (glibtop_get_uptime_p): Added boot_time.
- Added missing #include.
-
-2004-03-09 Bastien Nocera <hadess@hadess.net>
-
- * open.c: (glibtop_open_p):
- * proclist.c: (glibtop_get_proclist_p): fix g_malloc usage on non-Linux
- platforms (patch by Benoît Dejean <bnet@ifrance.com>)
-
-2003-10-21 Bastien Nocera <hadess@hadess.net>
-
- * Makefile.am: install only one library, libgtop-2.0
- Fix build-time warnings due to the redefinition of guint64
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * glibtop_machine.h:
- * glibtop_server.h:
- * glibtop_suid.h:
- * open.c:
- * proclist.c: fixed compilation
-
-2003-10-20 Bastien Nocera <hadess@hadess.net>
-
- * open.c: (glibtop_open_p):
- * proclist.c: (glibtop_get_proclist_p):
- replace all the xmalloc crap by glib memory management functions
-
-2001-10-17 Abel Cheung <maddog@linux.org.hk>
-
- * Makefile.am: move header to $(includedir)/libgtop-1.0/glibtop.
-
-1998-10-25 Martin Baulig <martin@home-of-linux.org>
-
- * ppp.c: New file.
-
-1998-08-25 Martin Baulig <martin@home-of-linux.org>
-
- * *.c (glibtop_init_p): Using correct `(1 << GLIBTOP_SYSDPES_*)'.
- (<glibtop_suid.h>): Include.
-
- * glibtop_suid.h: New file.
-
- * ChangeLog: New file.
-
diff --git a/sysdeps/sun4/Makefile.am b/sysdeps/sun4/Makefile.am
deleted file mode 100644
index d1aa20e4..00000000
--- a/sysdeps/sun4/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-
-INCLUDES = @INCLUDES@
-
-noinst_LTLIBRARIES = libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
-
-libgtop_sysdeps_2_0_la_SOURCES = nosuid.c siglist.c
-libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-libgtop_sysdeps_2_0_la_LIBADD = -lkvm
-
-libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
- uptime.c loadavg.c shm_limits.c msg_limits.c \
- sem_limits.c proclist.c procstate.c procuid.c \
- proctime.c procmem.c procsignal.c prockernel.c \
- procsegment.c ppp.c
-libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
-libgtop_sysdeps_suid_2_0_la_LIBADD = -lkvm
-
-libgtopinclude_HEADERS = glibtop_server.h glibtop_machine.h
-libgtopincludedir = $(includedir)/libgtop-2.0
-
-noinst_HEADERS = glibtop_suid.h
diff --git a/sysdeps/sun4/close.c b/sysdeps/sun4/close.c
deleted file mode 100644
index 22717e1c..00000000
--- a/sysdeps/sun4/close.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/close.h>
-
-/* Closes pipe to gtop server. */
-
-void
-glibtop_close_p (glibtop *server)
-{ }
diff --git a/sysdeps/sun4/cpu.c b/sysdeps/sun4/cpu.c
deleted file mode 100644
index f0bb372c..00000000
--- a/sysdeps/sun4/cpu.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/cpu.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_cpu =
-(1 << GLIBTOP_CPU_TOTAL) + (1 << GLIBTOP_CPU_USER) +
-(1 << GLIBTOP_CPU_NICE) + (1 << GLIBTOP_CPU_SYS) +
-(1 << GLIBTOP_CPU_IDLE) + (1 << GLIBTOP_CPU_FREQUENCY);
-
-/* Provides information about cpu usage. */
-
-void
-glibtop_get_cpu_p (glibtop *server, glibtop_cpu *buf)
-{
- long cp_time [CPUSTATES], mp_time [NCPU][CPUSTATES];
- int i;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_CPU), 0);
-
- memset (buf, 0, sizeof (glibtop_cpu));
-
- /* !!! THE FOLLOWING CODE RUNS SGID KMEM - CHANGE WITH CAUTION !!! */
-
- glibtop_suid_enter (server);
-
- /* get the cp_time array */
-
- (void) _glibtop_getkval (server, _glibtop_nlist [X_CP_TIME].n_value,
- (int *) cp_time, sizeof (cp_time),
- _glibtop_nlist [X_CP_TIME].n_name);
-
-#ifdef MULTIPROCESSOR
- /* get the mp_time array as well */
-
- if (server->machine.ncpu > 1) {
- (void) _glibtop_getkval (server, _glibtop_nlist [X_MP_TIME].n_value,
- (int *) mp_time, sizeof (mp_time),
- _glibtop_nlist [X_MP_TIME].n_name);
- }
-#endif
-
- glibtop_suid_leave (server);
-
- /* !!! END OF SUID ROOT PART !!! */
-
-#ifdef MULTIPROCESSOR
- /* If we have multiple processors, we add the times for each of them
- * and set frequency to 100 times the number of the processors. */
-
- /* [FIXME]: I had no machine with more than one processor to test
- * this code !!! */
-
- if (server->machine.ncpu > 1) {
- for (i = 0; i < server->machine.ncpu; i++) {
- buf->user += mp_time [i][CP_USER];
- buf->nice += mp_time [i][CP_NICE];
- buf->sys += mp_time [i][CP_SYS];
- buf->idle += mp_time [i][CP_IDLE];
- buf->frequency += 100;
- }
- } else {
- buf->user = cp_time [CP_USER];
- buf->nice = cp_time [CP_NICE];
- buf->sys = cp_time [CP_SYS];
- buf->idle = cp_time [CP_IDLE];
- buf->frequency = 100;
- }
-#else
- buf->user = cp_time [CP_USER];
- buf->nice = cp_time [CP_NICE];
- buf->sys = cp_time [CP_SYS];
- buf->idle = cp_time [CP_IDLE];
- buf->frequency = 100;
-#endif
-
- /* Calculate total time. */
-
- buf->total = buf->user + buf->nice + buf->sys + buf->idle;
-
- /* Now we can set the flags. */
-
- buf->flags = _glibtop_sysdeps_cpu;
-}
diff --git a/sysdeps/sun4/glibtop_machine.h b/sysdeps/sun4/glibtop_machine.h
deleted file mode 100644
index b7cf8bec..00000000
--- a/sysdeps/sun4/glibtop_machine.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/* 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_MACHINE_H__
-#define __GLIBTOP_MACHINE_H__
-
-/* make sure param.h gets loaded with KERNEL defined to get PZERO & NZERO */
-#define KERNEL
-#include <sys/param.h>
-#undef KERNEL
-
-#include <stdio.h>
-#include <kvm.h>
-#include <nlist.h>
-#include <math.h>
-#include <sys/dir.h>
-#include <sys/user.h>
-#include <sys/proc.h>
-#include <sys/dk.h>
-#include <sys/vm.h>
-#include <sys/file.h>
-#include <sys/time.h>
-#include <vm/page.h>
-
-#ifdef solbourne
-#include <sys/syscall.h>
-#endif
-
-#include "loadavg.h"
-
-G_BEGIN_DECLS
-
-/* Older versions of SunOS don't have a typedef for pid_t.
- Hopefully this will catch all those cases without causing other problems.
- */
-#ifndef __sys_stdtypes_h
-typedef int pid_t;
-#endif
-
-/* definitions for indices in the nlist array */
-#define X_AVENRUN 0
-#define X_CCPU 1
-#define X_MPID 2
-#define X_NPROC 3
-#define X_PROC 4
-#define X_TOTAL 5
-#define X_CP_TIME 6
-#define X_PAGES 7
-#define X_EPAGES 8
-#define X_SHMINFO 9
-#define X_MSGINFO 10
-#define X_SEMINFO 11
-
-#ifdef MULTIPROCESSOR
-#define X_NCPU 12
-#define X_MP_TIME 13
-#endif
-
-/* Log base 2 of 1024 is 10 (2^10 == 1024) */
-#define LOG1024 10
-
-typedef struct _glibtop_machine glibtop_machine;
-
-struct _glibtop_machine
-{
- uid_t uid, euid; /* Real and effective user id */
- gid_t gid, egid; /* Real and effective group id */
- int nlist_count; /* Number of symbols in the nlist */
- int ncpu; /* Number of CPUs we have */
- int nproc; /* Number of entries in the process array */
- size_t ptable_size; /* Size of process array. */
- unsigned long ptable_offset; /* Offset of process array in kernel. */
- struct proc *proc_table; /* Process array. */
- unsigned long pages, epages;
- struct page *physpage;
- int bytesize, count;
- int pageshift; /* log base 2 of the pagesize */
- kvm_t *kd;
-};
-
-/* Those functions are used internally in libgtop */
-
-#ifdef _IN_LIBGTOP
-
-extern struct nlist _glibtop_nlist[];
-
-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
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/sun4/glibtop_server.h b/sysdeps/sun4/glibtop_server.h
deleted file mode 100644
index 957b8a4b..00000000
--- a/sysdeps/sun4/glibtop_server.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/* 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_SERVER_H__
-#define __GLIBTOP_SERVER_H__
-
-G_BEGIN_DECLS
-
-#define GLIBTOP_SUID_CPU (1 << GLIBTOP_SYSDEPS_CPU)
-#define GLIBTOP_SUID_MEM (1 << GLIBTOP_SYSDEPS_MEM)
-#define GLIBTOP_SUID_SWAP (1 << GLIBTOP_SYSDEPS_SWAP)
-#define GLIBTOP_SUID_UPTIME (1 << GLIBTOP_SYSDEPS_UPTIME)
-#define GLIBTOP_SUID_LOADAVG (1 << GLIBTOP_SYSDEPS_LOADAVG)
-#define GLIBTOP_SUID_SHM_LIMITS (1 << GLIBTOP_SYSDEPS_SHM_LIMITS)
-#define GLIBTOP_SUID_MSG_LIMITS (1 << GLIBTOP_SYSDEPS_MSG_LIMITS)
-#define GLIBTOP_SUID_SEM_LIMITS (1 << GLIBTOP_SYSDEPS_SEM_LIMITS)
-#define GLIBTOP_SUID_PROCLIST (1 << GLIBTOP_SYSDEPS_PROCLIST)
-#define GLIBTOP_SUID_PROC_STATE (1 << GLIBTOP_SYSDEPS_PROC_STATE)
-#define GLIBTOP_SUID_PROC_UID (1 << GLIBTOP_SYSDEPS_PROC_UID)
-#define GLIBTOP_SUID_PROC_MEM (1 << GLIBTOP_SYSDEPS_PROC_MEM)
-#define GLIBTOP_SUID_PROC_TIME (1 << GLIBTOP_SYSDEPS_PROC_TIME)
-#define GLIBTOP_SUID_PROC_SIGNAL (1 << GLIBTOP_SYSDEPS_PROC_SIGNAL)
-#define GLIBTOP_SUID_PROC_KERNEL (1 << GLIBTOP_SYSDEPS_PROC_KERNEL)
-#define GLIBTOP_SUID_PROC_SEGMENT (1 << GLIBTOP_SYSDEPS_PROC_SEGMENT)
-#define GLIBTOP_SUID_PROC_ARGS 0
-#define GLIBTOP_SUID_PROC_MAP (1 << GLIBTOP_SYSDEPS_PROC_MAP)
-#define GLIBTOP_SUID_NETLOAD 0
-#define GLIBTOP_SUID_NETLIST 0
-#define GLIBTOP_SUID_PPP 0
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/sun4/glibtop_suid.h b/sysdeps/sun4/glibtop_suid.h
deleted file mode 100644
index 59710d8b..00000000
--- a/sysdeps/sun4/glibtop_suid.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/* 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_SUID_H__
-#define __GLIBTOP_SUID_H__
-
-G_BEGIN_DECLS
-
-static inline void glibtop_suid_enter (glibtop *server) {
- setregid (server->machine.gid, server->machine.egid);
-};
-
-static inline void glibtop_suid_leave (glibtop *server) {
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-};
-
-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);
-
-G_END_DECLS
-
-#endif
diff --git a/sysdeps/sun4/loadavg.c b/sysdeps/sun4/loadavg.c
deleted file mode 100644
index 567eb23b..00000000
--- a/sysdeps/sun4/loadavg.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/loadavg.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_loadavg =
-(1 << GLIBTOP_LOADAVG_LOADAVG);
-
-/* Provides load averange. */
-
-void
-glibtop_get_loadavg_p (glibtop *server, glibtop_loadavg *buf)
-{
- load_avg avenrun [3];
- int i;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_LOADAVG), 0);
-
- memset (buf, 0, sizeof (glibtop_loadavg));
-
- /* !!! THE FOLLOWING CODE RUNS SGID KMEM - CHANGE WITH CAUTION !!! */
-
- setregid (server->machine.gid, server->machine.egid);
-
- /* get the load average array */
-
- (void) _glibtop_getkval (server, _glibtop_nlist [X_AVENRUN].n_value,
- (int *) avenrun, sizeof (avenrun),
- _glibtop_nlist [X_AVENRUN].n_name);
-
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-
- /* !!! END OF SGID KMEM PART !!! */
-
- for (i = 0; i < 3; i++) {
- /* Calculate loadavg values from avenrun. */
- buf->loadavg [i] = loaddouble (avenrun [i]);
- }
-
- /* Now we can set the flags. */
-
- buf->flags = _glibtop_sysdeps_loadavg;
-}
diff --git a/sysdeps/sun4/loadavg.h b/sysdeps/sun4/loadavg.h
deleted file mode 100644
index f49541e7..00000000
--- a/sysdeps/sun4/loadavg.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Top - a top users display for Berkeley Unix
- *
- * Defines required to access load average figures.
- *
- * This include file sets up everything we need to access the load average
- * values in the kernel in a machine independent way. First, it sets the
- * typedef "load_avg" to be either double or long (depending on what is
- * needed), then it defines these macros appropriately:
- *
- * loaddouble(la) - convert load_avg to double.
- * intload(i) - convert integer to load_avg.
- */
-
-/*
- * We assume that if FSCALE is defined, then avenrun and ccpu are type long.
- * If your machine is an exception (mips, perhaps?) then make adjustments
- * here.
- *
- * Defined types: load_avg for load averages, pctcpu for cpu percentages.
- */
-#if defined(mips) && !defined(NetBSD)
-# include <sys/fixpoint.h>
-# if defined(FBITS) && !defined(FSCALE)
-# define FSCALE (1 << FBITS) /* mips */
-# endif
-#endif
-
-#ifdef FSCALE
-# define FIXED_LOADAVG FSCALE
-# define FIXED_PCTCPU FSCALE
-#endif
-
-#ifdef ibm032
-# undef FIXED_LOADAVG
-# undef FIXED_PCTCPU
-# define FIXED_PCTCPU PCT_SCALE
-#endif
-
-
-#ifdef FIXED_PCTCPU
- typedef long pctcpu;
-# define pctdouble(p) ((double)(p) / FIXED_PCTCPU)
-#else
-typedef double pctcpu;
-# define pctdouble(p) (p)
-#endif
-
-#ifdef FIXED_LOADAVG
- typedef long load_avg;
-# define loaddouble(la) ((double)(la) / FIXED_LOADAVG)
-# define intload(i) ((int)((i) * FIXED_LOADAVG))
-#else
- typedef double load_avg;
-# define loaddouble(la) (la)
-# define intload(i) ((double)(i))
-#endif
diff --git a/sysdeps/sun4/mem.c b/sysdeps/sun4/mem.c
deleted file mode 100644
index 5de3d271..00000000
--- a/sysdeps/sun4/mem.c
+++ /dev/null
@@ -1,90 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/mem.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_mem =
-(1 << GLIBTOP_MEM_TOTAL) + (1 << GLIBTOP_MEM_USED) +
-(1 << GLIBTOP_MEM_FREE) + (1 << GLIBTOP_MEM_LOCKED);
-
-/* define pagetok in terms of pageshift */
-
-#define pagetok(size) ((size) << server->machine.pageshift)
-
-/* Provides information about memory usage. */
-
-void
-glibtop_get_mem_p (glibtop *server, glibtop_mem *buf)
-{
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_MEM), 0);
-
- memset (buf, 0, sizeof (glibtop_mem));
-
- /* !!! THE FOLLOWING CODE RUNS SGID KMEM - CHANGE WITH CAUTION !!! */
-
- glibtop_suid_enter (server);
-
- /* get the array of physpage descriptors */
-
- (void) _glibtop_getkval (server, server->machine.pages,
- (int *) server->machine.physpage,
- server->machine.bytesize,
- "array _page");
-
- glibtop_suid_leave (server);
-
- /* !!! END OF SGID KMEM PART !!! */
-
-
- { /* sum memory statistics */
- register struct page *pp;
- register int cnt;
- register int inuse;
- register int free;
- register int locked;
-
- /* bop thru the array counting page types */
-
- pp = server->machine.physpage;
- inuse = free = locked = 0;
- for (cnt = server->machine.count; --cnt >= 0; pp++) {
- if (pp->p_free)
- free++;
- else if (pp->p_lock || pp->p_keepcnt > 0)
- locked++;
- else
- inuse++;
- }
-
- /* convert memory stats to Kbytes */
-
- buf->total = pagetok (inuse + free);
- buf->used = pagetok (inuse);
- buf->free = pagetok (free);
- buf->locked = pagetok (locked);
-
- buf->flags = _glibtop_sysdeps_mem;
- }
-}
diff --git a/sysdeps/sun4/msg_limits.c b/sysdeps/sun4/msg_limits.c
deleted file mode 100644
index 81b16d21..00000000
--- a/sysdeps/sun4/msg_limits.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/msg_limits.h>
-
-#include <glibtop_suid.h>
-
-/* #define KERNEL to get declaration of `struct msginfo'. */
-
-#define KERNEL
-
-#include <sys/ipc.h>
-#include <sys/msg.h>
-
-static const unsigned long _glibtop_sysdeps_msg_limits =
-(1 << GLIBTOP_IPC_MSGMAP) + (1 << GLIBTOP_IPC_MSGMAX) +
-(1 << GLIBTOP_IPC_MSGMNB) + (1 << GLIBTOP_IPC_MSGMNI) +
-(1 << GLIBTOP_IPC_MSGSSZ) + (1 << GLIBTOP_IPC_MSGTQL);
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_msg_limits_p (glibtop *server, glibtop_msg_limits *buf)
-{
- struct msginfo msginfo;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_MSG_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_msg_limits));
-
- /* !!! THE FOLLOWING CODE RUNS SGID KMEM - CHANGE WITH CAUTION !!! */
-
- setregid (server->machine.gid, server->machine.egid);
-
- /* get the load average array */
-
- (void) _glibtop_getkval (server, _glibtop_nlist [X_MSGINFO].n_value,
- (int *) &msginfo, sizeof (msginfo),
- _glibtop_nlist [X_MSGINFO].n_name);
-
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-
- /* !!! END OF SGID KMEM PART !!! */
-
- buf->msgmap = msginfo.msgmap;
- buf->msgmax = msginfo.msgmax;
- buf->msgmnb = msginfo.msgmnb;
- buf->msgmni = msginfo.msgmni;
- buf->msgssz = msginfo.msgssz;
- buf->msgtql = msginfo.msgtql;
-
- buf->flags = _glibtop_sysdeps_msg_limits;
-}
diff --git a/sysdeps/sun4/nosuid.c b/sysdeps/sun4/nosuid.c
deleted file mode 100644
index 2fe50de8..00000000
--- a/sysdeps/sun4/nosuid.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/open.h>
-#include <glibtop/close.h>
-
-void
-glibtop_open_s (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags)
-{ }
-
-void
-glibtop_close_s (glibtop *server)
-{ }
diff --git a/sysdeps/sun4/open.c b/sysdeps/sun4/open.c
deleted file mode 100644
index 3daeed96..00000000
--- a/sysdeps/sun4/open.c
+++ /dev/null
@@ -1,309 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glib/gstrfuncs.h>
-#include <errno.h>
-
-#include <glibtop.h>
-#include <glibtop/open.h>
-
-struct nlist _glibtop_nlist[] = {
-#ifdef i386
- { "avenrun" }, /* 0 */
- { "ccpu" }, /* 1 */
- { "mpid" }, /* 2 */
- { "nproc" }, /* 3 */
- { "proc" }, /* 4 */
- { "total" }, /* 5 */
- { "cp_time" }, /* 6 */
- { "pages" }, /* 7 */
- { "epages" }, /* 8 */
- { "shminfo" }, /* 9 */
- { "msginfo" }, /* 10 */
- { "seminfo" }, /* 11 */
-#else
- { "_avenrun" }, /* 0 */
- { "_ccpu" }, /* 1 */
- { "_mpid" }, /* 2 */
- { "_nproc" }, /* 3 */
- { "_proc" }, /* 4 */
- { "_total" }, /* 5 */
- { "_cp_time" }, /* 6 */
- { "_pages" }, /* 7 */
- { "_epages" }, /* 8 */
- { "_shminfo" }, /* 9 */
- { "_msginfo" }, /* 10 */
- { "_seminfo" }, /* 11 */
-#ifdef MULTIPROCESSOR
- { "_ncpu" },
- { "_mp_time" },
-#endif
-#endif
- { 0 }
-};
-
-/* Opens pipe to gtop server. Returns 0 on success and -1 on error. */
-
-/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
-
-void
-glibtop_init_p (glibtop *server, const unsigned long features,
- const unsigned flags)
-{
- if (server == NULL)
- glibtop_error_r (NULL, "glibtop_init_p (server == NULL)");
-
- glibtop_open_p (server, "glibtop", features, flags);
-}
-
-void
-glibtop_open_p (glibtop *server, const char *program_name,
- const unsigned long features, const unsigned flags)
-{
- register int pagesize;
-
- /* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */
-
- server->name = program_name;
-
- server->machine.uid = getuid ();
- server->machine.euid = geteuid ();
- server->machine.gid = getgid ();
- server->machine.egid = getegid ();
-
- /* initialize the kernel interface */
-
- server->machine.kd = kvm_open (NULL, NULL, NULL, O_RDONLY, "libgtop");
-
- if (server->machine.kd == NULL)
- glibtop_error_io_r (server, "kvm_open");
-
- /* get the list of symbols we want to access in the kernel */
-
- server->machine.nlist_count = kvm_nlist
- (server->machine.kd, _glibtop_nlist);
-
- if (server->machine.nlist_count < 0)
- glibtop_error_io_r (server, "nlist");
-
-#ifdef MULTIPROCESSOR
- /* were ncpu and xp_time not found in the nlist? */
-
- if ((server->machine.nlist_count > 0) &&
- (_glibtop_nlist[X_NCPU].n_type == 0) &&
- (_glibtop_nlist[X_MP_TIME].n_type == 0)) {
- /* we were compiled on an MP system but we are not running
- * on one, so we will pretend this didn't happen and set
- * ncpu = 1 */
- server->machine.nlist_count -= 2;
- server->machine.ncpu = 1;
- }
-#endif
-
-#ifdef solbourne
- {
- unsigned int status, type;
-
- /* Get the number of CPUs on this system. */
- syscall(SYS_getcpustatus, &status,
- &server->machine.ncpu, &type);
- }
-#endif
-
- /* Make sure all of the symbols were found. */
-
- if ((server->machine.nlist_count > 0) &&
- (_glibtop_check_nlist (server, _glibtop_nlist) > 0))
- _exit (1);
-
- /* Get process array stuff. */
-
- (void) _glibtop_getkval (server, _glibtop_nlist[X_NPROC].n_value,
- (int *)(&server->machine.nproc),
- sizeof (server->machine.nproc),
- _glibtop_nlist[X_NPROC].n_name);
-
- (void) _glibtop_getkval (server, _glibtop_nlist[X_PROC].n_value,
- (int *)(&server->machine.ptable_offset),
- sizeof (server->machine.ptable_offset),
- _glibtop_nlist[X_PROC].n_name);
-
- server->machine.ptable_size = (unsigned long) server->machine.nproc *
- (unsigned long) sizeof (struct proc);
-
- server->machine.proc_table = g_malloc
- (server, server->machine.ptable_size);
-
- /* This are for the memory statistics. */
-
- (void) _glibtop_getkval (server, _glibtop_nlist[X_PAGES].n_value,
- (int *)(&server->machine.pages),
- sizeof (server->machine.pages),
- _glibtop_nlist[X_PAGES].n_name);
-
- (void) _glibtop_getkval (server, _glibtop_nlist[X_EPAGES].n_value,
- (int *)(&server->machine.epages),
- sizeof (server->machine.epages),
- _glibtop_nlist[X_EPAGES].n_name);
-
- server->machine.bytesize = server->machine.epages -
- server->machine.pages;
- server->machine.count = server->machine.bytesize /
- sizeof (struct page);
-
- server->machine.physpage = (struct page *)
- g_malloc (server->machine.bytesize);
-
- /* get the page size with "getpagesize" and
- * calculate pageshift from it */
-
- pagesize = getpagesize();
-
- server->machine.pageshift = 0;
-
- while (pagesize > 1) {
- server->machine.pageshift++;
- pagesize >>= 1;
- }
-
- /* we only need the amount of log(2)1024 for our conversion */
-
- server->machine.pageshift -= LOG1024;
-
- /* Drop priviledges. */
-
- if (setreuid (server->machine.euid, server->machine.uid))
- _exit (1);
-
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-
- /* !!! END OF SUID ROOT PART !!! */
-
- /* Our effective uid is now those of the user invoking the server,
- * so we do no longer have any priviledges. */
-
- /* NOTE: On SunOS, we do not need to be suid root, we just need to
- * be sgid kmem.
- *
- * The server will only use setegid() to get back it's priviledges,
- * so it will fail if it is suid root and not sgid kmem. */
-}
-
-/* Used internally. Returns number of symbols that cannot be found in
- * the nlist. */
-
-int
-_glibtop_check_nlist (void *server, register struct nlist *nlst)
-{
- register int not_found;
-
- /* check to see if we got ALL the symbols we requested */
- /* this will write one line to stderr for every symbol not found */
-
- not_found = 0;
-
- while (nlst->n_name != NULL) {
-
-#ifdef i386
- if (nlst->n_value == 0) {
- glibtop_error_r (server,
- "kernel: no symbol named `%s'",
- nlst->n_name);
- not_found++;
- }
-#else
- if (nlst->n_type == 0) {
- glibtop_error_r (server,
- "kernel: no symbol named `%s'",
- nlst->n_name);
- not_found++;
- }
-#endif
-
- nlst++;
- }
-
- return not_found;
-}
-
-/* Used internally. Fetches value from kernel. */
-
-int
-_glibtop_getkval (void *void_server, unsigned long offset, int *ptr,
- int size, char *refstr)
-{
- glibtop *server = (glibtop *) void_server;
-
- if (kvm_read (server->machine.kd, offset, ptr, size) != size)
- {
- if (*refstr == '!') return 0;
-
- glibtop_error_r (server, "kvm_read(%s): %s",
- refstr, g_strerror (errno));
- }
-
- return 1;
-}
-
-/* Used internally. Reads process table from kernel. */
-
-void
-_glibtop_read_proc_table (void *void_server)
-{
- glibtop *server = (glibtop *) void_server;
-
- /* !!! THE FOLLOWING CODE RUNS SGID KMEM - CHANGE WITH CAUTION !!! */
-
- setregid (server->machine.gid, server->machine.egid);
-
- /* Read process table from kernel. */
-
- (void) _glibtop_getkval (server, server->machine.ptable_offset,
- (int *) server->machine.proc_table,
- (size_t) server->machine.ptable_size,
- _glibtop_nlist[X_PROC].n_name);
-
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-
- /* !!! END OF SGID KMEM PART !!! */
-}
-
-/* Used internally. Finds pid in process table. */
-
-struct proc *
-_glibtop_find_pid (void *void_server, pid_t pid)
-{
- register struct proc *pp;
- register int i;
-
- glibtop *server = (glibtop *) void_server;
-
- for (pp = server->machine.proc_table, i = 0;
- i < server->machine.nproc; pp++, i++) {
- if ((pp->p_stat != 0) && (pp->p_pid == pid))
- return pp;
- }
-
- return NULL;
-}
diff --git a/sysdeps/sun4/ppp.c b/sysdeps/sun4/ppp.c
deleted file mode 100644
index d7b510ef..00000000
--- a/sysdeps/sun4/ppp.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Copyright (C) 1998-99 Martin Baulig
- This file is part of LibGTop 1.0.
-
- Contributed by Martin Baulig <martin@home-of-linux.org>, October 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/error.h>
-#include <glibtop/ppp.h>
-
-static const unsigned long _glibtop_sysdeps_ppp = 0;
-
-/* Init function. */
-
-void
-_glibtop_init_ppp_s (glibtop *server)
-{
- server->sysdeps.ppp = _glibtop_sysdeps_ppp;
-}
-
-/* Provides PPP/ISDN information. */
-
-void
-glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device)
-{
- memset (buf, 0, sizeof (glibtop_ppp));
-}
diff --git a/sysdeps/sun4/procdata.c b/sysdeps/sun4/procdata.c
deleted file mode 100644
index 824fc19b..00000000
--- a/sysdeps/sun4/procdata.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/procdata.h>
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_procdata_p (glibtop *server, glibtop_procdata *buf, pid_t pid)
-{
- memset (buf, 0, sizeof (glibtop_procdata));
-}
diff --git a/sysdeps/sun4/prockernel.c b/sysdeps/sun4/prockernel.c
deleted file mode 100644
index bcf96a71..00000000
--- a/sysdeps/sun4/prockernel.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/prockernel.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_kernel =
-(1 << GLIBTOP_PROC_KERNEL_K_FLAGS) + (1 << GLIBTOP_PROC_KERNEL_WCHAN);
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_kernel_p (glibtop *server, glibtop_proc_kernel *buf,
- pid_t pid)
-{
- struct proc *pp;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_PROC_KERNEL), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_kernel));
-
- /* Read process table from kernel. */
-
- _glibtop_read_proc_table (server);
-
- /* Find the pid in the process table. */
-
- pp = _glibtop_find_pid (server, pid);
-
- if (pp == NULL) return;
-
- /* Fill in data fields. */
-
- buf->k_flags = pp->p_flag;
- buf->nwchan = (unsigned long) pp->p_wchan;
-
- buf->flags = _glibtop_sysdeps_proc_kernel;
-}
diff --git a/sysdeps/sun4/proclist.c b/sysdeps/sun4/proclist.c
deleted file mode 100644
index 9e3fce05..00000000
--- a/sysdeps/sun4/proclist.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/proclist.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proclist =
-(1 << GLIBTOP_PROCLIST_TOTAL) + (1 << GLIBTOP_PROCLIST_NUMBER) +
-(1 << GLIBTOP_PROCLIST_SIZE);
-
-/* Fetch list of currently running processes.
- *
- * IMPORTANT NOTE:
- * On error, this function MUST return NULL and set buf->flags to zero !
- * On success, it returnes a pointer to a list of buf->number elements
- * each buf->size big. The total size is stored in buf->total. */
-
-unsigned *
-glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
- gint64 which, gint64 arg)
-{
- register struct proc *pp;
- register int i, nproc = 0;
- unsigned *proc_list = NULL;
- size_t proc_size;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_PROCLIST), 0);
-
- memset (buf, 0, sizeof (glibtop_proclist));
-
- /* Read process table from kernel. */
-
- _glibtop_read_proc_table (server);
-
- /* Count number of processes. */
-
- for (pp = server->machine.proc_table, i = 0;
- i < server->machine.nproc; pp++, i++) {
- if (pp->p_stat == 0)
- continue;
- else
- nproc++;
- }
-
- if (nproc == 0) /* Should never happen. */
- return NULL;
-
- /* Allocate space for process list. */
-
- proc_size = nproc * sizeof (unsigned);
-
- proc_list = g_malloc (proc_size);
-
- /* Write process list. */
-
- for (pp = server->machine.proc_table, i = 0, nproc = 0;
- i < server->machine.nproc; pp++, i++) {
- if (pp->p_stat == 0)
- continue;
- proc_list [nproc++] = pp->p_pid;
- }
-
- /* Since everything is ok now, we can set buf->flags, fill in the remaining fields
- and return proc_list. */
-
- buf->flags = _glibtop_sysdeps_proclist;
-
- buf->size = sizeof (unsigned);
- buf->number = nproc;
-
- buf->total = nproc * sizeof (unsigned);
-
- return proc_list;
-}
diff --git a/sysdeps/sun4/procmem.c b/sysdeps/sun4/procmem.c
deleted file mode 100644
index f30259e4..00000000
--- a/sysdeps/sun4/procmem.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop/procmem.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_mem =
-(1 << GLIBTOP_PROC_MEM_SIZE) + (1 << GLIBTOP_PROC_MEM_RSS) +
-(1 << GLIBTOP_PROC_MEM_RSS_RLIM);
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
- pid_t pid)
-{
- struct proc *pp;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_PROC_MEM), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_mem));
-
- /* Read process table from kernel. */
-
- _glibtop_read_proc_table (server);
-
- /* Find the pid in the process table. */
-
- pp = _glibtop_find_pid (server, pid);
-
- if (pp == NULL) return;
-
- /* Fill in data fields. */
-
- buf->size = (pp)->p_tsize + (pp)->p_dsize + (pp)->p_ssize;
-
- buf->rss = pp->p_rssize;
- buf->rss_rlim = pp->p_maxrss;
-
- buf->flags = _glibtop_sysdeps_proc_mem;
-}
diff --git a/sysdeps/sun4/procsegment.c b/sysdeps/sun4/procsegment.c
deleted file mode 100644
index e0850ff2..00000000
--- a/sysdeps/sun4/procsegment.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procsegment.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_segment =
-(1 << GLIBTOP_PROC_SEGMENT_TEXT_RSS) +
-(1 << GLIBTOP_PROC_SEGMENT_DATA_RSS);
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_segment_p (glibtop *server, glibtop_proc_segment *buf,
- pid_t pid)
-{
- struct proc *pp;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_PROC_SEGMENT), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_segment));
-
- /* Read process table from kernel. */
-
- _glibtop_read_proc_table (server);
-
- /* Find the pid in the process table. */
-
- pp = _glibtop_find_pid (server, pid);
-
- if (pp == NULL) return;
-
- /* Fill in data fields. */
-
- buf->text_rss = pp->p_tsize;
- buf->data_rss = pp->p_dsize;
-
- buf->flags = _glibtop_sysdeps_proc_segment;
-}
diff --git a/sysdeps/sun4/procsignal.c b/sysdeps/sun4/procsignal.c
deleted file mode 100644
index 50c35f7d..00000000
--- a/sysdeps/sun4/procsignal.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procsignal.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_signal =
-(1 << GLIBTOP_PROC_SIGNAL_SIGNAL) + (1 << GLIBTOP_PROC_SIGNAL_BLOCKED) +
-(1 << GLIBTOP_PROC_SIGNAL_SIGIGNORE) + (1 << GLIBTOP_PROC_SIGNAL_SIGCATCH);
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_signal_p (glibtop *server, glibtop_proc_signal *buf,
- pid_t pid)
-{
- struct proc *pp;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_PROC_SIGNAL), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_signal));
-
- /* Read process table from kernel. */
-
- _glibtop_read_proc_table (server);
-
- /* Find the pid in the process table. */
-
- pp = _glibtop_find_pid (server, pid);
-
- if (pp == NULL) return;
-
- /* Fill in data fields. */
-
- buf->signal [0] = pp->p_sig;
- buf->blocked [0] = pp->p_sigmask;
- buf->sigignore [0] = pp->p_sigignore;
- buf->sigcatch [0] = pp->p_sigcatch;
-
- buf->flags = _glibtop_sysdeps_proc_signal;
-}
diff --git a/sysdeps/sun4/procstate.c b/sysdeps/sun4/procstate.c
deleted file mode 100644
index 16aac557..00000000
--- a/sysdeps/sun4/procstate.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procstate.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_state =
-(1 << GLIBTOP_PROC_STATE_STATE) + (1 << GLIBTOP_PROC_STATE_UID);
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_state_p (glibtop *server, glibtop_proc_state *buf,
- pid_t pid)
-{
- struct proc *pp;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_PROC_STATE), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_state));
-
- /* Read process table from kernel. */
-
- _glibtop_read_proc_table (server);
-
- /* Find the pid in the process table. */
-
- pp = _glibtop_find_pid (server, pid);
-
- if (pp == NULL) return;
-
- /* Fill in data fields. */
-
- buf->state = pp->p_stat;
- buf->uid = pp->p_uid;
-
- buf->flags = _glibtop_sysdeps_proc_state;
-}
diff --git a/sysdeps/sun4/proctime.c b/sysdeps/sun4/proctime.c
deleted file mode 100644
index 22961207..00000000
--- a/sysdeps/sun4/proctime.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/proctime.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_time =
-(1 << GLIBTOP_PROC_TIME_START_TIME) + (1 << GLIBTOP_PROC_TIME_UTIME);
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf,
- pid_t pid)
-{
- struct proc *pp;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_PROC_TIME), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_time));
-
- /* Read process table from kernel. */
-
- _glibtop_read_proc_table (server);
-
- /* Find the pid in the process table. */
-
- pp = _glibtop_find_pid (server, pid);
-
- if (pp == NULL) return;
-
- /* Fill in data fields. */
-
- buf->start_time = pp->p_time;
- buf->utime = pp->p_cpticks;
-
- buf->flags = _glibtop_sysdeps_proc_time;
-}
diff --git a/sysdeps/sun4/procuid.c b/sysdeps/sun4/procuid.c
deleted file mode 100644
index ab8283c9..00000000
--- a/sysdeps/sun4/procuid.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/procuid.h>
-
-#include <glibtop_suid.h>
-
-static const unsigned long _glibtop_sysdeps_proc_uid =
-(1 << GLIBTOP_PROC_UID_UID) + (1 << GLIBTOP_PROC_UID_EUID) +
-(1 << GLIBTOP_PROC_UID_EGID) + (1 << GLIBTOP_PROC_UID_PID) +
-(1 << GLIBTOP_PROC_UID_PPID) + (1 << GLIBTOP_PROC_UID_PGRP) +
-(1 << GLIBTOP_PROC_UID_TPGID) + (1 << GLIBTOP_PROC_UID_PRIORITY) +
-(1 << GLIBTOP_PROC_UID_NICE);
-
-/* Provides detailed information about a process. */
-
-void
-glibtop_get_proc_uid_p (glibtop *server, glibtop_proc_uid *buf,
- pid_t pid)
-{
- struct proc *pp;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_PROC_UID), 0);
-
- memset (buf, 0, sizeof (glibtop_proc_uid));
-
- /* Read process table from kernel. */
-
- _glibtop_read_proc_table (server);
-
- /* Find the pid in the process table. */
-
- pp = _glibtop_find_pid (server, pid);
-
- if (pp == NULL) return;
-
- /* Fill in data fields. */
-
- buf->uid = pp->p_uid;
- buf->euid = pp->p_suid;
- buf->egid = pp->p_sgid;
- buf->pid = pp->p_pid;
- buf->ppid = pp->p_ppid;
- buf->pgrp = pp->p_pgrp;
- buf->tpgid = pp->p_pgrp;
- buf->priority = pp->p_pri;
- buf->nice = pp->p_nice;
-
- buf->flags = _glibtop_sysdeps_proc_uid;
-}
diff --git a/sysdeps/sun4/sem_limits.c b/sysdeps/sun4/sem_limits.c
deleted file mode 100644
index e85293b7..00000000
--- a/sysdeps/sun4/sem_limits.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/sem_limits.h>
-
-#include <glibtop_suid.h>
-
-/* #define KERNEL to get declaration of `struct seminfo'. */
-
-#define KERNEL
-
-#include <sys/ipc.h>
-#include <sys/sem.h>
-
-static unsigned long _glibtop_sysdeps_sem_limits =
-(1 << GLIBTOP_IPC_SEMMAP) + (1 << GLIBTOP_IPC_SEMMNI) +
-(1 << GLIBTOP_IPC_SEMMNS) + (1 << GLIBTOP_IPC_SEMMNU) +
-(1 << GLIBTOP_IPC_SEMMSL) + (1 << GLIBTOP_IPC_SEMOPM) +
-(1 << GLIBTOP_IPC_SEMUME) + (1 << GLIBTOP_IPC_SEMUSZ) +
-(1 << GLIBTOP_IPC_SEMVMX) + (1 << GLIBTOP_IPC_SEMAEM);
-
-/* Provides information about sysv sem limits. */
-
-void
-glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf)
-{
- struct seminfo seminfo;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_SEM_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_sem_limits));
-
- /* !!! THE FOLLOWING CODE RUNS SGID KMEM - CHANGE WITH CAUTION !!! */
-
- setregid (server->machine.gid, server->machine.egid);
-
- /* get the load average array */
-
- (void) _glibtop_getkval (server, _glibtop_nlist [X_SEMINFO].n_value,
- (int *) &seminfo, sizeof (seminfo),
- _glibtop_nlist [X_SEMINFO].n_name);
-
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-
- /* !!! END OF SGID KMEM PART !!! */
-
- buf->semmap = seminfo.semmap;
- buf->semmni = seminfo.semmni;
- buf->semmns = seminfo.semmns;
- buf->semmnu = seminfo.semmnu;
- buf->semmsl = seminfo.semmsl;
- buf->semopm = seminfo.semopm;
- buf->semume = seminfo.semume;
- buf->semusz = seminfo.semusz;
- buf->semvmx = seminfo.semvmx;
- buf->semaem = seminfo.semaem;
-
- buf->flags = _glibtop_sysdeps_sem_limits;
-}
diff --git a/sysdeps/sun4/shm_limits.c b/sysdeps/sun4/shm_limits.c
deleted file mode 100644
index c69b950f..00000000
--- a/sysdeps/sun4/shm_limits.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/shm_limits.h>
-
-#include <glibtop_suid.h>
-
-/* #define KERNEL to get declaration of `struct shminfo'. */
-
-#define KERNEL
-
-#include <sys/ipc.h>
-#include <sys/shm.h>
-
-static unsigned long _glibtop_sysdeps_shm_limits =
-(1 << GLIBTOP_IPC_SHMMAX) + (1 << GLIBTOP_IPC_SHMMIN) +
-(1 << GLIBTOP_IPC_SHMMNI) + (1 << GLIBTOP_IPC_SHMSEG) +
-(1 << GLIBTOP_IPC_SHMALL);
-
-/* Provides information about sysv ipc limits. */
-
-void
-glibtop_get_shm_limits_p (glibtop *server, glibtop_shm_limits *buf)
-{
- struct shminfo shminfo;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_SHM_LIMITS), 0);
-
- memset (buf, 0, sizeof (glibtop_shm_limits));
-
- /* !!! THE FOLLOWING CODE RUNS SGID KMEM - CHANGE WITH CAUTION !!! */
-
- setregid (server->machine.gid, server->machine.egid);
-
- /* get the load average array */
-
- (void) _glibtop_getkval (server, _glibtop_nlist [X_SHMINFO].n_value,
- (int *) &shminfo, sizeof (shminfo),
- _glibtop_nlist [X_SHMINFO].n_name);
-
- if (setregid (server->machine.egid, server->machine.gid))
- _exit (1);
-
- /* !!! END OF SGID KMEM PART !!! */
-
- buf->shmmax = shminfo.shmmax;
- buf->shmmin = shminfo.shmmin;
- buf->shmmni = shminfo.shmmni;
- buf->shmseg = shminfo.shmseg;
- buf->shmall = shminfo.shmall;
-
- buf->flags = _glibtop_sysdeps_shm_limits;
-}
diff --git a/sysdeps/sun4/siglist.c b/sysdeps/sun4/siglist.c
deleted file mode 100644
index b2d7bd8e..00000000
--- a/sysdeps/sun4/siglist.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/signal.h>
-
-const glibtop_signame glibtop_sys_siglist [] =
-{ { 1, "SIGHUP", N_("Hangup") },
- { 2, "SIGINT", N_("Interrupt") },
- { 3, "SIGQUIT", N_("Quit") },
- { 4, "SIGILL", N_("Illegal instruction") },
- { 5, "SIGTRAP", N_("Trace trap") },
- { 6, "SIGABRT", N_("Abort") },
- { 7, "SIGEMT", N_("EMT error") },
- { 8, "SIGFPE", N_("Floating-point exception") },
- { 9, "SIGKILL", N_("Kill") },
- { 10, "SIGBUS", N_("Bus error") },
- { 11, "SIGSEGV", N_("Segmentation violation") },
- { 12, "SIGSYS", N_("Bad argument to system call") },
- { 13, "SIGPIPE", N_("Broken pipe") },
- { 14, "SIGALRM", N_("Alarm clock") },
- { 15, "SIGTERM", N_("Termination") },
- { 16, "SIGURG", N_("Urgent condition on socket") },
- { 17, "SIGSTOP", N_("Stop") },
- { 18, "SIGTSTP", N_("Keyboard stop") },
- { 19, "SIGCONT", N_("Continue") },
- { 20, "SIGCHLD", N_("Child status has changed") },
- { 21, "SIGTTIN", N_("Background read from tty") },
- { 22, "SIGTTOU", N_("Background write to tty") },
- { 23, "SIGIO", N_("I/O now possible") },
- { 24, "SIGXCPU", N_("CPU limit exceeded") },
- { 25, "SIGXFSZ", N_("File size limit exceeded") },
- { 26, "SIGVTALRM", N_("Virtual alarm clock") },
- { 27, "SIGPROF", N_("Profiling alarm clock") },
- { 28, "SIGWINCH", N_("Window size change") },
- { 29, "SIGINFO", N_("Information request") },
- { 30, "SIGUSR1", N_("User defined signal 1") },
- { 31, "SIGUSR2", N_("User defined signal 2") },
- { 0, NULL, NULL },
-};
diff --git a/sysdeps/sun4/swap.c b/sysdeps/sun4/swap.c
deleted file mode 100644
index 52df748b..00000000
--- a/sysdeps/sun4/swap.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/swap.h>
-
-#include <glibtop_suid.h>
-
-/* Provides information about swap usage. */
-
-void
-glibtop_get_swap_p (glibtop *server, glibtop_swap *buf)
-{
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_SWAP), 0);
-
- memset (buf, 0, sizeof (glibtop_swap));
-}
diff --git a/sysdeps/sun4/uptime.c b/sysdeps/sun4/uptime.c
deleted file mode 100644
index a83bff96..00000000
--- a/sysdeps/sun4/uptime.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/* 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.
-*/
-
-#include <config.h>
-#include <glibtop.h>
-#include <glibtop/cpu.h>
-#include <glibtop/uptime.h>
-
-#include <glibtop_suid.h>
-
-#include <time.h>
-
-static const unsigned long _glibtop_sysdeps_uptime =
-(1 << GLIBTOP_UPTIME_UPTIME) + (1 << GLIBTOP_UPTIME_IDLETIME);
-
-/* Provides uptime and idle time. */
-
-void
-glibtop_get_uptime_p (glibtop *server, glibtop_uptime *buf)
-{
- glibtop_cpu cpu;
-
- glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_UPTIME), 0);
-
- /* Get currect cpu usage. */
-
- glibtop_get_cpu_p (server, &cpu);
-
- /* Make sure all required fields are present. */
-
- if (((cpu.flags & (1 << GLIBTOP_CPU_TOTAL)) == 0) ||
- ((cpu.flags & (1 << GLIBTOP_CPU_IDLE)) == 0) ||
- ((cpu.flags & (1 << GLIBTOP_CPU_FREQUENCY)) == 0) ||
- (cpu.frequency == 0))
- return;
-
- /* Simply calculate uptime and idle time from
- * cpu usage. */
-
- buf->uptime = (double) cpu.total / (double) cpu.frequency;
- buf->idletime = (double) cpu.idle / (double) cpu.frequency;
- buf->boot_time = (guint64) time(NULL) - (guint64) buf->uptime;
-
- buf->flags = _glibtop_sysdeps_uptime;
-}