Age | Commit message (Collapse) | Author |
|
(options, main): Add -o/--posix-fmt option. -A is an alias.
"psout.h": New include.
|
|
Add posix_fmt arg.
Use ps_fmt_creation_error to find out in detail why ps_fmt_create fails.
(nominal):
Take a field, not a spec.
Honor PS_FMT_FIELD_KEEP.
|
|
(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.
|
|
|
|
|
|
|
|
(include ../Makeconf): Place before all dependencies.
($(targets)): Each separate target should depend on its own .o.
|
|
don't filtered out non-parented processes.
|
|
(SRCS): Add devprobe.c.
|
|
|
|
Change meaning of --translate's argument, in preparation for other changes.
(options, main):
Add, but don't really implement, --search option.
|
|
|
|
(main): Rearrange meanings of arguments somewhat.
|
|
(ps_specs): Make non-const.
(...various...): Use real types instead of old ps typedefs.
|
|
(...various...): Use real types instead of old ps typedefs.
|
|
(port_info, ports_info, xlated_port_info, xlated_ports_info,
name_xlator_create, name_xlator_free, name_xlator_xlate):
Functions removed (renamed and put in libshouldbeinlibc).
(parse_task): Use strtoul instead of atoi so pid 0 works.
|
|
|
|
|
|
|
|
|
|
"common.h": Don't include this anymore.
|
|
(struct name_xlator): New structure.
(name_xlator_create, name_xlator_free, name_xlator_xlate): New functions.
(xlated_port_info, xlated_ports_info): New functions.
(main): Use xlated_port_info / xlated_ports_info.
|
|
Add portinfo & portinfo.c.
Remove clri & clri.c.
|
|
|
|
|
|
|
|
|
|
|
|
(_STRINGIFY): New macro. Ick.
|
|
(SRCS): Add uptime.sh.
|
|
|
|
|
|
|
|
|
|
|
|
(add_pid): Complain about non-existant processes.
(parse_opt): Don't turn quoted args into options.
(parse_numlist): Correctly handle NULL hook functions.
(main): Update calls to changed proc_stat_list_add_* functions.
(psout): New declaration.
|
|
|
|
|
|
(main): Pass ARGP_IN_ORDER to argp_parse (it's no longer the default), and
deal with the fallout.
|
|
(FVAL): New macro.
|
|
Slightly decrease the space for numbers in the verbose output format.
Twiddle the widths of the terse fields to make sure there's room
for typical numbers.
(fields, options): Make const.
|
|
|
|
Don't ask for a password unecessarily.
When the user is specified as the first argument, always add it as both
effective, real, and saved ids, even if there are others already.
Only chown the tty if NO_LOGIN isn't set.
Avoid duplicating the old real id when keeping the old ids.
|
|
(SRCS): Add vmstat.c
|
|
|
|
|
|
|
|
|
|
|
|
Put LOGNAME in the environ even if it was already.
Try to set the default path using confstr().
Call setlogin().
Turn on RETRY when the -h option is specified.
(options, main):
Change the -R/--retry option so that the optional argument is an argument
to add to those passed to login when retrying, and remove all the hardwired
arguments (except propagating -h/--via).
(main, default_args):
Replace the BACKUP_SHELL param with BACKUP_SHELLS, which is a list of
things to try. The default includes both bash and the /bin/sh.
(default_args, options, main):
Get rid of the -n/--nobody option and variables, making it an additional
login parameter.
(add_utmp_entry): Get rid of declaration for login().
(copied_args): Add "USER".
(default_args, default_env): Make the default path just /bin.
|