From a99011fd5c5c38dec184a99eabe7f3ff596f333d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Sat, 19 May 2007 19:40:33 +0000 Subject: [PATCH] Small API change. get_proclist returns pid_t instead of unsigned for MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2007-05-19 Benoît Dejean * 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. svn path=/trunk/; revision=2595 --- ChangeLog | 9 +++++++++ features.def | 2 +- include/glibtop/proclist.h | 8 ++++---- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 80bc48b4..2385c82d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2007-05-19 Benoît Dejean + + * 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 * configure.in: diff --git a/features.def b/features.def index 0936c98f..64e578ec 100644 --- a/features.def +++ b/features.def @@ -6,7 +6,7 @@ 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) -unsigned *|proclist|ulong(number,size,total)|long(which,arg) +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) diff --git a/include/glibtop/proclist.h b/include/glibtop/proclist.h index ebd00c18..7859fe08 100644 --- a/include/glibtop/proclist.h +++ b/include/glibtop/proclist.h @@ -60,7 +60,7 @@ struct _glibtop_proclist guint64 size; /* GLIBTOP_PROCLIST_SIZE */ }; -unsigned * +pid_t* glibtop_get_proclist(glibtop_proclist *buf, gint64 which, gint64 arg); #if GLIBTOP_SUID_PROCLIST @@ -69,20 +69,20 @@ glibtop_get_proclist(glibtop_proclist *buf, gint64 which, gint64 arg); #define glibtop_get_proclist_r glibtop_get_proclist_s #endif -unsigned * +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); -unsigned * +pid_t* glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf, gint64 which, gint64 arg); #else void _glibtop_init_proclist_s (glibtop *server); -unsigned * +pid_t* glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf, gint64 which, gint64 arg); #endif