DragonFly commits List (threaded) for 2005-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/usr.bin/pkill pkill.c
cpressey 2005/01/06 14:37:46 PST
DragonFly src repository
Modified files:
usr.bin/pkill pkill.c
Log:
Clarify/clean up code, make fewer assumptions about types:
- Store pids/gids/uids/devs in a union instead of casting to a long;
- Don't use the nonspecific LT_GENERIC list type;
- Add a more specific LT_PPID list type for parent pids;
- Use NODEV to indicate the lack of a specified device;
- Make the makelist() function more straightforward:
- use only one switch statement instead of two cascading ones;
- introduce a helper function parse_pid() to parse pids;
- No functional changes.
Revision Changes Path
1.6 +57 -40 src/usr.bin/pkill/pkill.c
http://www.dragonflybsd.org/cvsweb/src/usr.bin/pkill/pkill.c.diff?r1=1.5&r2=1.6&f=u
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]