DragonFly BSD
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

From: Chris Pressey <cpressey@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 6 Jan 2005 14:37:46 -0800 (PST)

cpressey    2005/01/06 14:37:46 PST

DragonFly src repository

  Modified files:
    usr.bin/pkill        pkill.c 
  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


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]