aboutsummaryrefslogtreecommitdiff
path: root/utils/w.c
Commit message (Collapse)AuthorAgeFilesLines
* (main):Miles Bader1997-03-021-1/+31
| | | | | | Support USER... args. (add_utmp_procs): Ignore unused utmp entries.
* (argp_program_version): Make const.Miles Bader1997-02-201-1/+1
|
* (w_get_host):Miles Bader1997-02-061-2/+2
| | | | Don't use strlen on it if *HOST is 0.
* (main):Miles Bader1996-11-161-29/+8
| | | | | | Use utmp.h functions for reading utmp. (read_utmp_procs): Function removed.
* (main):Miles Bader1996-10-171-1/+1
| | | | Supply new TOP arg to psout.
* (w_fetch): Use tty st_atime for idle time.Miles Bader1996-10-091-1/+1
|
* (ps_cmp_unames, ps_nominal_string):Miles Bader1996-10-091-4/+5
| | | | | | | | | New declarations. (DEFAULT_FMT_STRING): Add %pid. (_w_specs): Use ps_cmp_unames for `Name'. Use ps_nominal_string for `Name' and `From'.
* (w_deps):Miles Bader1996-10-081-15/+32
| | | | | | | | | | | New function. (main): Initialize dependencies field of USER_HOOKS to w_deps. (_w_specs): Add PS_FMT_FIELD_COLON_MOD to Idle's flags. (w_fetch): Set HAVE bits even if the values are `nominal'. Correctly propagate PS->inapp bits.
* *** empty log message ***Thomas Bushnell1996-09-051-1/+2
|
* (doc): Add program description.Miles Bader1996-08-271-1/+1
|
* (options, main): Change --fmt to --format/-F and --sort to --sort/-s.Miles Bader1996-08-011-8/+4
| | | | (OPT_FMT, OPT_SORT): Macros removed.
* (main): Correctly parse the -w/--width option.Miles Bader1996-07-291-0/+1
|
* (argp_program_version): New variable.Miles Bader1996-07-061-0/+2
|
* (_w_specs):Miles Bader1996-07-011-4/+4
| | | | Don't use utmp buffer sizes for field widths, as they can be very large.
* (parse_opt): Use ARGP_ERR_UNKNOWN instead of EINVAL.Miles Bader1996-05-111-1/+2
|
* (uptime): Cast arg to localtime appropriately.Michael I. Bushnell1996-05-091-1/+2
|
* (w_get_uname): Renamed from w_get_user.Miles Bader1996-05-071-14/+29
| | | | | | | | | | | | (w_uname_getter): Renamed from w_user_getter. (w_user_getter): New function. (w_get_user): New function. (w_fetch): Implement W_PSTAT_USER. (struct w_hook): Add user field. (_w_specs): Add "Name" entry. Add precision & flags fields. (DEFAULT_FMT_STRING): Use new field syntax. (main): Update call to psout. "psout.h": New include.
* (_w_specs): Use ps_emit_past_time to show login times.Miles Bader1996-05-011-2/+2
|
* (uptime): Correctly calculate uptime.Miles Bader1996-03-291-19/+19
| | | | (...various...): Use real types instead of old ps typedefs.
* (uptime): Add a temporary hack to pretend to show uptime.Miles Bader1996-03-231-5/+10
|
* (main): Pass new arg to argp_parse.Miles Bader1996-03-191-1/+1
|
* (uptime): Use %.2f format for load average numbers.Roland McGrath1996-02-211-8/+8
|
* Initial revisionMiles Bader1996-02-181-0/+420