/[hurd]/hurd/libps/ps.h
ViewVC logotype

Diff of /hurd/libps/ps.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.33 by roland, Mon Dec 31 23:54:28 2001 UTC revision 1.34 by roland, Wed May 8 09:22:33 2002 UTC
# Line 1  Line 1 
1  /* Routines to gather and print process information.  /* Routines to gather and print process information.
2    
3     Copyright (C) 1995,96,99,2001 Free Software Foundation, Inc.     Copyright (C) 1995,96,99,2001,02 Free Software Foundation, Inc.
4    
5     Written by Miles Bader <miles@gnu.org>     Written by Miles Bader <miles@gnu.org>
6    
# Line 257  struct proc_stat Line 257  struct proc_stat
257    /* The process's argv, as a string with each element separated by '\0'.  */    /* The process's argv, as a string with each element separated by '\0'.  */
258    char *args;    char *args;
259    /* The length of ARGS.  */    /* The length of ARGS.  */
260    unsigned args_len;    size_t args_len;
261    
262    /* Virtual memory statistics for the process, as returned by task_info;    /* Virtual memory statistics for the process, as returned by task_info;
263       see <mach/task_info.h> for a description of task_events_info_t.  */       see <mach/task_info.h> for a description of task_events_info_t.  */
264    task_events_info_t task_events_info;    task_events_info_t task_events_info;
265    task_events_info_data_t task_events_info_buf;    task_events_info_data_t task_events_info_buf;
266    unsigned task_events_info_size;    size_t task_events_info_size;
267    
268    /* Flags showing whether a field is vm_alloced or malloced.  */    /* Flags showing whether a field is vm_alloced or malloced.  */
269    unsigned proc_info_vm_alloced : 1;    unsigned proc_info_vm_alloced : 1;
# Line 300  struct proc_stat Line 300  struct proc_stat
300    /* The process's envp, as a string with each element separated by '\0'.  */    /* The process's envp, as a string with each element separated by '\0'.  */
301    char *env;    char *env;
302    /* The length of ENV.  */    /* The length of ENV.  */
303    unsigned env_len;    size_t env_len;
304  };  };
305    
306  /* Proc_stat flag bits; each bit is set in the FLAGS field if that  /* Proc_stat flag bits; each bit is set in the FLAGS field if that
# Line 915  error_t proc_stat_list_merge (struct pro Line 915  error_t proc_stat_list_merge (struct pro
915     returned in them.  */     returned in them.  */
916  error_t proc_stat_list_add_all (struct proc_stat_list *pp,  error_t proc_stat_list_add_all (struct proc_stat_list *pp,
917                                  struct proc_stat ***proc_stats,                                  struct proc_stat ***proc_stats,
918                                  unsigned *num_procs);                                  size_t *num_procs);
919    
920  /* Add to PP entries for all processes in the login collection LOGIN_ID at  /* Add to PP entries for all processes in the login collection LOGIN_ID at
921     its context.  If an error occurs, the system error code is returned,     its context.  If an error occurs, the system error code is returned,
# Line 924  error_t proc_stat_list_add_all (struct p Line 924  error_t proc_stat_list_add_all (struct p
924  error_t proc_stat_list_add_login_coll (struct proc_stat_list *pp,  error_t proc_stat_list_add_login_coll (struct proc_stat_list *pp,
925                                         pid_t login_id,                                         pid_t login_id,
926                                         struct proc_stat ***proc_stats,                                         struct proc_stat ***proc_stats,
927                                         unsigned *num_procs);                                         size_t *num_procs);
928    
929  /* Add to PP entries for all processes in the session SESSION_ID at its  /* Add to PP entries for all processes in the session SESSION_ID at its
930     context.  If an error occurs, the system error code is returned, otherwise     context.  If an error occurs, the system error code is returned, otherwise
# Line 933  error_t proc_stat_list_add_login_coll (s Line 933  error_t proc_stat_list_add_login_coll (s
933  error_t proc_stat_list_add_session (struct proc_stat_list *pp,  error_t proc_stat_list_add_session (struct proc_stat_list *pp,
934                                      pid_t session_id,                                      pid_t session_id,
935                                      struct proc_stat ***proc_stats,                                      struct proc_stat ***proc_stats,
936                                      unsigned *num_procs);                                      size_t *num_procs);
937    
938  /* Add to PP entries for all processes in the process group PGRP at its  /* Add to PP entries for all processes in the process group PGRP at its
939     context.  If an error occurs, the system error code is returned, otherwise     context.  If an error occurs, the system error code is returned, otherwise
# Line 941  error_t proc_stat_list_add_session (stru Line 941  error_t proc_stat_list_add_session (stru
941     resulting entries is returned in them.  */     resulting entries is returned in them.  */
942  error_t proc_stat_list_add_pgrp (struct proc_stat_list *pp, pid_t pgrp,  error_t proc_stat_list_add_pgrp (struct proc_stat_list *pp, pid_t pgrp,
943                                   struct proc_stat ***proc_stats,                                   struct proc_stat ***proc_stats,
944                                   unsigned *num_procs);                                   size_t *num_procs);
945    
946  /* Try to set FLAGS in each proc_stat in PP (but they may still not be set  /* Try to set FLAGS in each proc_stat in PP (but they may still not be set
947     -- you have to check).  If a fatal error occurs, the error code is     -- you have to check).  If a fatal error occurs, the error code is

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26