Powered by Apache

CVS log for nsh/who.c

[BACK] Up to [local] / nsh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 4 02:49:46 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
CVS Tags: HEAD
Diff to previous 1.2 (colored)

Destroy inappropriate use of CMP_ARG and rename it to MIN_ARG since is
is really only for comparing that an argument matches a minimum of the
characters supplied to the second position in the macro.

Next move from using half-assed minimum-matching/ambiguous proof to
being truly table driven by using genget everywhere.  This is done by
eliminating chains of if (CMP_ARG){...; return;} and using structs
which genget loops around to determine the shortest non-ambiguous
prefix.  This doesn't buy command completion yet!  But, by using
table driven command sets, it moves in the right direction.

Also replace use of CMP_ARG in places that are not table-driven to
isprefix() (it was already in genget.c) which does matching in the
opposite order, so nsh can know that an argument is "interface"
and match i, in, int, inte, ... but not match iff or other mis-spelled
arguments.  (CMP_ARG was just matching against the minimum non-
ambiguous part of the argument as compiled into nsh at any given
time, poor form)

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jan 29 06:17:35 2008 UTC (4 years, 3 months ago) by chris
Branch: MAIN
Diff to previous 1.1 (colored)

use (int argc, char **argv) for all show commands, and start introducing
show bgp commands

Revision 1.1 / (download) - annotate - [select for diffs], Thu Dec 27 22:19:39 2007 UTC (4 years, 4 months ago) by chris
Branch: MAIN

Add show user/who support, basically a skeleton of usr.bin/who/who.c
with some format changes.  Also add 'flush line' (like 'clear line' from
ciscoworld.) which uses pkill to destroy everything related to the user's
pty.  We still need to sanity check the flush line argument.  When we go
to a privsep model, pkill will be called the privileged parent.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>