summaryrefslogtreecommitdiff
path: root/utils/w.c
AgeCommit message (Collapse)Author
2015-12-29fix compiler warnings in hurd/utilsFlavio Cruz
utils: Fix compiler warnings. * utils/rpcscan.c (setup_extract_target): Remove name variable. * utils/rpcscan.c (setup_extract_target): Fix bad initializer. * utils/rpctrace.c (new_send_wrapper, wrap_all_threads, wrap_new_thread, wrap_new_task, traced_spawn): Fix format strings. * utils/rpctrace.c (trace_and_forward): Cast to unsigned int. * utils/rpctrace.c (trace_and_forward): Use memcmp instead of pointer dereferencing to compare structures. * utils/rpctrace.c (wrap_all_threads): Cast to vm_address_t. * utils/rpctrace.c (main): Fix bad initializer. * utils/shd.c (run): Initialize save0. * utils/vminfo.c: Fix format strings. * utils/vmstat.c: Remove PSEP macro and expand the code. * utils/w.c (add_utmp_procs): Remove unused pos variable.
2011-08-20fix common misspellingsJonathan Neuschäfer
* Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
2002-05-282002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
2001-02-262001-02-25 Roland McGrath <roland@frob.com>Roland McGrath
* storecat.c: Include <stdlib.h> for decls. * w.c: Include <time.h> for decls.
1999-09-211999-09-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* w.c (add_utmp_procs): Ignore entries whose ut_type is not LOGIN_PROCESS or USER_PROCESS, or whose ut_line is empty.
1999-05-291999-05-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* 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.
1998-10-20Add braces to silence gcc warnings.Roland McGrath
1998-07-201998-07-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* 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)'.
1997-09-29(main):Miles Bader
Remove DEFAULT_OUTPUT variable.
1997-03-02(main):Miles Bader
Support USER... args. (add_utmp_procs): Ignore unused utmp entries.
1997-02-20(argp_program_version): Make const.Miles Bader
1997-02-06(w_get_host):Miles Bader
Don't use strlen on it if *HOST is 0.
1996-11-16(main):Miles Bader
Use utmp.h functions for reading utmp. (read_utmp_procs): Function removed.
1996-10-17(main):Miles Bader
Supply new TOP arg to psout.
1996-10-09(w_fetch): Use tty st_atime for idle time.Miles Bader
1996-10-09(ps_cmp_unames, ps_nominal_string):Miles Bader
New declarations. (DEFAULT_FMT_STRING): Add %pid. (_w_specs): Use ps_cmp_unames for `Name'. Use ps_nominal_string for `Name' and `From'.
1996-10-08(w_deps):Miles Bader
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.
1996-09-05*** empty log message ***Thomas Bushnell
1996-08-27(doc): Add program description.Miles Bader
1996-08-01(options, main): Change --fmt to --format/-F and --sort to --sort/-s.Miles Bader
(OPT_FMT, OPT_SORT): Macros removed.
1996-07-29(main): Correctly parse the -w/--width option.Miles Bader
1996-07-06(argp_program_version): New variable.Miles Bader
1996-07-01(_w_specs):Miles Bader
Don't use utmp buffer sizes for field widths, as they can be very large.
1996-05-11(parse_opt): Use ARGP_ERR_UNKNOWN instead of EINVAL.Miles Bader
1996-05-09(uptime): Cast arg to localtime appropriately.Michael I. Bushnell
1996-05-07(w_get_uname): Renamed from w_get_user.Miles Bader
(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.
1996-05-01(_w_specs): Use ps_emit_past_time to show login times.Miles Bader
1996-03-29(uptime): Correctly calculate uptime.Miles Bader
(...various...): Use real types instead of old ps typedefs.
1996-03-23(uptime): Add a temporary hack to pretend to show uptime.Miles Bader
1996-03-19(main): Pass new arg to argp_parse.Miles Bader
1996-02-21(uptime): Use %.2f format for load average numbers.Roland McGrath
1996-02-18Initial revisionMiles Bader