Age | Commit message (Collapse) | Author |
|
* pids.c (add_fn_pids): unsigned -> size_t
* w.c (add_utmp_procs): Likewise.
* login.c (add_canonical_host): Likewise.
* ps.c (main): Likewise.
* login.c (add_entry, main): Likewise.
* settrans.c (main): int -> size_t
* showtrans.c (main): Likewise.
* fsysopts.c (main): Likewise.
* vmstat.c (main): Use int for FWIDTHS.
* ping.c (main): size_t -> socklen_t
* fakeauth.c (S_auth_getids, S_auth_makeauth,
S_auth_server_authenticate): u_int -> size_t
* showtrans.c (main): Cast field width/precision args to int.
|
|
* storecat.c: Include <stdlib.h> for decls.
* w.c: Include <time.h> for decls.
|
|
* w.c (add_utmp_procs): Ignore entries whose ut_type is not
LOGIN_PROCESS or USER_PROCESS, or whose ut_line is empty.
|
|
* w.c (fetch_boot_time): New function. Use libps to get
task_basic_info for PID 1 (init); its creation_time is "boot time".
(uptime): Use it, instead of stat'ing /var/run/uptime.
|
|
|
|
* ps.c (main): Fix return type to int, and use return.
* ids.c (main): Likewise.
* w.c (main): Likewise.
* login.c (main): Likewise.
* settrans.c (main): Likewise.
* showtrans.c (main): Likewise.
* fsysopts.c (main): Likewise.
* storeinfo.c (main): Likewise.
* w.c (main): Avoid warning from `while (a = b)'.
|
|
Remove DEFAULT_OUTPUT variable.
|
|
Support USER... args.
(add_utmp_procs):
Ignore unused utmp entries.
|
|
|
|
Don't use strlen on it if *HOST is 0.
|
|
Use utmp.h functions for reading utmp.
(read_utmp_procs):
Function removed.
|
|
Supply new TOP arg to psout.
|
|
|
|
New declarations.
(DEFAULT_FMT_STRING):
Add %pid.
(_w_specs):
Use ps_cmp_unames for `Name'.
Use ps_nominal_string for `Name' and `From'.
|
|
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.
|
|
|
|
|
|
(OPT_FMT, OPT_SORT): Macros removed.
|
|
|
|
|
|
Don't use utmp buffer sizes for field widths, as they can be very large.
|
|
|
|
|
|
(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.
|
|
|
|
(...various...): Use real types instead of old ps typedefs.
|
|
|
|
|
|
|
|
|