aboutsummaryrefslogtreecommitdiff
path: root/libps
Commit message (Collapse)AuthorAgeFilesLines
...
* .Miles Bader1996-07-181-0/+4
|
* (ps_tty_abbrevs): Add an entry for /dev/comX -> cX.Miles Bader1996-07-181-4/+5
|
* *** empty log message ***Michael I. Bushnell1996-07-182-1/+5
|
* *** empty log message ***Michael I. Bushnell1996-07-182-849/+0
|
* *** empty log message ***Michael I. Bushnell1996-07-182-0/+849
|
* Initial revisionRoland McGrath1996-07-171-0/+747
|
* (set_procinfo_flags): Don't use fake "*" wait value if there's no msgport.Miles Bader1996-07-111-1/+2
|
* (_ps_stream_write_field): If a field is truncatable (MAX_WIDTH >= 0), takeMiles Bader1996-07-091-0/+4
| | | | some of our spacing deficit out of it.
* (proc_stat_set_flags):Miles Bader1996-07-021-1/+1
| | | | Pass PS->task_events_info to task_info, not its address.
* (proc_stat_list_clone): New function.Miles Bader1996-06-271-4/+28
|
* (_fmt_create): Set NEW_FMT->src_len. Use strdup.Miles Bader1996-06-271-5/+36
| | | | (ps_fmt_clone): New function.
* (struct ps_fmt): Add SRC_LEN field.Miles Bader1996-06-271-0/+9
| | | | (proc_stat_list_clone, ps_fmt_clone): New declarations.
* (LCLHDRS): Add common.h.Michael I. Bushnell1996-06-271-1/+1
|
* (ps_emit_wait): Never truncate what we write.Miles Bader1996-06-031-2/+2
|
* (merge_procinfo):Miles Bader1996-06-031-60/+72
| | | | | | | | | | | | | | | Take a struct proc_stat as an arg, not all the individual fields. Correctly set old_pi_hdr. Correctly calculate REALLY_NEED. (set_procinfo_flags): Use new calling merge_procinfo calling convention. (proc_stat_set_flags): Try mallocing a buffer for PS->args. Move second call to set_procinfo_flags after msgport suppress test. Add TEST_MSGPORT_FLAGS variable, & use it. Be more picky about when we call set_procinfo_flags. (_proc_stat_free): Use explicit VM_ALLOCED flag for MFREEMEM.
* (struct proc_stat): Add PROC_INFO_VM_ALLOCED, THREAD_WAITS_VM_ALLOCED, andMiles Bader1996-06-031-0/+5
| | | | ARGS_VM_ALLOCED fields.
* (ps_user_passwd): Check return value of install_passwd correctly (it's an ↵Miles Bader1996-06-031-1/+1
| | | | error_t).
* (struct ps_fmt_specs): The EXPANSIONS field now points to a structMiles Bader1996-06-021-2/+1
| | | | ps_fmt_spec_block. Delete EXPANSIONS_ALLOCED field.
* (struct ps_fmt_spec_block): New type.Miles Bader1996-06-021-28/+31
| | | | | | (specs_add_alias): Use a linked list of ps_fmt_spec_blocks instead of reallocing a block of specs. (ps_fmt_specs_find): Change searching accordingly.
* (set_procinfo_flags): New function.Miles Bader1996-06-021-199/+246
| | | | | | | | | | | (proc_stat_set_flags): Use it, to get msgport validity testing right. (merge_procinfo): Take and return HAVE instead of using a reference parameter. Do mem allocation more efficiently and correctly. (fetch_procinfo): Do conversion for PI_SIZE from/to units of sizeof (int), so no one else has to deal with it. (PROCINFO_MALLOC_SIZE, WAITS_MALLOC_SIZE): New macros. (MFREEMEM): New macro combining MFREEM & MFREEVM. (MFREEM, MFREEVM): Macros deleted.
* (proc_stat_set_flags): After fetching number of threads to guess whether weMiles Bader1996-05-311-14/+38
| | | | | | | | need wait info, put it in PS->num_threads. (merge_procinfo): Avoid vm_allocing a procinfo buffer each time if we can help it. Correctly reflect newly fetched info. (PSTAT_PROCINFO_MERGE, PSTAT_PROCINFO_REFETCH): New macros.
* (MP_MGET): Only disable msgport on timeout.Miles Bader1996-05-291-15/+12
| | | | | | | (get_thread_wait): Decrement N in loop. (get_thread_wait): Use strnlen instead of memchr. (PSTAT_PROCINFO): Typo: PSTAT_THREAD_WAIT --> PSTAT_THREAD_WAITS. (PSTAT_USES_MSGPORT): Add PSTAT_THREAD_WAIT.
* Renumber PSTAT_ values to remove dup.Miles Bader1996-05-291-16/+16
|
* (merge_procinfo): Don't die if WAITS == 0.Miles Bader1996-05-291-16/+32
| | | | | | | (summarize_thread_waits): Correctly advance NEXT_WAIT. Skip threads marked `itimer'. (proc_stat_set_flags): Consider processes with less than 4 threads to be candidates for a meaningful process wait status.
* (_fmt_create): Make NAME termination work for posix-mode.Miles Bader1996-05-281-16/+23
|
* (ps_fmt_write_proc_stat): Call the output function correctly.Miles Bader1996-05-281-8/+4
| | | | (_fmt_create): Get FIELD's precision, not width, from its spec.
* (merge_procinfo): And update *HAVE with PSTAT_PROC_INFO fromMichael I. Bushnell1996-05-241-1/+2
| | | | REALLY_HAVE here.
* (fetch_procinfo): Always turn on PSTAT_PROC_INFO if proc_getprocinfoMichael I. Bushnell1996-05-241-0/+1
| | | | returns successfully.
* (_fmt_create):Miles Bader1996-05-231-17/+21
| | | | | Increment SRC when reading modifiers. Recognize '^' modifier.
* (PSTAT_PROCINFO, PSTAT_PROCINFO_THREAD): Add PSTAT_THREAD_WAITS.Miles Bader1996-05-131-27/+69
| | | | | | | | | (proc_stat_set_flags): Be more careful about when we fetch thread_wait information, and synthesize a process-summary thread_wait value for lots of threads. (summarize_thread_waits): Only give a real summary if there's but a single user thread. (fetch_procinfo): Use PSTAT_THREAD_WAITS instead of PSTAT_THREAD_WAIT.
* (PSTAT_THREAD_WAITS): New macro.Miles Bader1996-05-131-2/+10
|
* (merge_procinfo, fetch_procinfo): Change HAVE to be an input/output parameter.Miles Bader1996-05-121-30/+40
| | | | | (proc_stat_set_flags): Change accordingly. (get_thread_wait): Correctly advance WAIT.
* (get_thread_wait): Correctly advance WAIT.Miles Bader1996-05-121-1/+5
|
* (specs): Give runtime specs 2 fraction digits by default.Miles Bader1996-05-121-3/+3
|
* Frob comment.Miles Bader1996-05-121-1/+3
|
* (fetch_procinfo): Pass a reference to PI_FLAGS in call toMichael I. Bushnell1996-05-091-1/+1
| | | | fetch_procinfo.
* (add_preconditions, proc_stat_set_flags): Remove references to exec_flags.Miles Bader1996-05-071-6/+1
|
* (ps_user_uname_create, ps_user_passwd_create): New declarations.Miles Bader1996-05-071-30/+62
| | | | | | | | | | | | (ps_fmt_set_output_width): New declaration. (struct ps_fmt_spec): Add precision & flags fields. Change args to OUTPUT_FN. (struct ps_fmt_field): Add precision & flags fields. (ps_fmt_squash): Call FN on the field, not the spec. (ps_fmt_create, ps_fmt_creation_error): Add POSIX arg. (PS_FMT_FIELD_AT_MOD, PS_FMT_FIELD_COLON_MOD, PS_FMT_FIELD_KEEP, PS_FMT_FIELD_UPCASE_TITLE): New macros. (struct proc_stat): Remove exec_flags field. (PSTAT_EXEC_FLAGS): Macro removed.
* (ps_emit_user_name): New function.Miles Bader1996-05-071-106/+140
| | | | | | | (specs_add_alias): Pass on flags field. (specs): Add precision & flags fields. (FG): New macro. (ps_emit_*): Take FIELD argument instead of WIDTH.
* (_fmt_create):Miles Bader1996-05-071-122/+202
| | | | | | | | | | | Change syntax of fields. Add support for precision and `@', `:', `?', & `!' modifiers. Add POSIX argument, and support for posix-style format strings. When using the field name as the title, use the defn, not the user's. (ps_fmt_write_titles): Implement PS_FMT_FIELD_UPCASE_TITLE. (ps_fmt_squash): Call FN with the field, not the field's spec. (ps_fmt_squash_flags): Appropiately modify the function we use. (ps_fmt_create, ps_fmt_creation_error): Add POSIX argument.
* Add some const decls.Miles Bader1996-05-071-3/+3
|
* (install_passwd): New function.Miles Bader1996-05-071-36/+81
| | | | | (ps_user_passwd): Use it. (ps_user_uname_create, ps_user_passwd_create): New functions.
* (ps_fmt_creation_error): new declaration.Miles Bader1996-05-021-0/+5
|
* (ps_emit_past_time): Implement.Miles Bader1996-05-011-3/+14
| | | | | (ps_emit_seconds): Use new args to fmt_seconds. (ps_emit_minutes): Use new args to fmt_minutes.
* (_fmt_create): New function (was ps_fmt_create).Miles Bader1996-05-011-8/+34
| | | | | (ps_fmt_create): Call _fmt_create. (ps_fmt_creation_error): New function.
* (PSTAT_STATE_P_ATTRS): Fix names of individual flags.Miles Bader1996-04-231-5/+5
|
* (state_shadows): If a process has no parent don't show various processMiles Bader1996-04-231-2/+6
| | | | attributes (that are likely to be noise).
* (MIGCOMUFLAGS): Delete variable.Michael I. Bushnell1996-04-111-1/+0
|
* (ps_emit_past_time): Return zero.Michael I. Bushnell1996-04-111-1/+1
|
* (msg-MIGUFLAGS, term-MIGUFLAGS): Add a user prefix of `ps_'.Miles Bader1996-03-271-5/+8
|