aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/pkill
Commit message (Collapse)AuthorAgeFilesLines
* Use KERN_PROC_PROC instead of KERN_PROC_ALL on the call to kvm_getprocs(),Garance A Drosehn2004-03-301-1/+5
| | | | | | | | | so we get one line per process instead of one for each kernel-thread. Noticed by: ache & tjr Notes: svn path=/head/; revision=127622
* bde also tells me that he is confident that P_SYSTEM will not workGarance A Drosehn2004-03-271-8/+1
| | | | | | | | any better on 4.x than it does on 5.2. If that's true then there is no point to the __FreeBSD_version check that I had added. Notes: svn path=/head/; revision=127472
* Some style(9)-ish improvements, courtesy of bde.Garance A Drosehn2004-03-271-6/+6
| | | | | | | Noticed by: bde Notes: svn path=/head/; revision=127470
* Remove the _PATH_DEVNULL setting for "swapf". From the kvm_open(3)Garance A Drosehn2004-03-261-3/+3
| | | | | | | | | man page: The swapfile argument is currently unused. Noticed by: ru Notes: svn path=/head/; revision=127462
* Remove the NEED_KMEM support meant for FreeBSD 3.x. This base-systemGarance A Drosehn2004-03-261-9/+1
| | | | | | | | | version isn't going to be committed to that branch... Noticed by: des Notes: svn path=/head/; revision=127457
* Switch to checking P_KTHREAD instead of P_SYSTEM when deciding whatGarance A Drosehn2004-03-261-3/+10
| | | | | | | | | "system processes" to always ignore. Based on my testing with `-D', I am pretty sure this is what we want for 5.x-current. If my thinking is wrong, this also makes it easier to switch to a different check. Notes: svn path=/head/; revision=127456
* Avoid the manpage layering violation and low-level implementationRuslan Ermilov2004-03-261-3/+2
| | | | | | | | details of libkvm, and just tell what the getbootfile(3) function will return, by using the text from netstat(1) and dmesg(8). Notes: svn path=/head/; revision=127445
* Correct the description of options -N and -M to match reality.Ruslan Ermilov2004-03-261-4/+4
| | | | Notes: svn path=/head/; revision=127444
* Apply style.Makefile(5).Ruslan Ermilov2004-03-261-6/+4
| | | | Notes: svn path=/head/; revision=127437
* Send those -Debug messages to stderr, not stdout...Garance A Drosehn2004-03-261-2/+2
| | | | Notes: svn path=/head/; revision=127434
* Add a debugging option, as I don't understand something that I'm seeing.Garance A Drosehn2004-03-261-2/+18
| | | | | | | (this is a probably temporary option, and is not to be documented) Notes: svn path=/head/; revision=127433
* Remove a redundant check against mypid (the check is done later, inGarance A Drosehn2004-03-261-1/+1
| | | | | | | | | the "Take the appropriate action" section). Obtained from: the sysutils/pkill port Notes: svn path=/head/; revision=127432
* Add a cast to get this to compile with WARNS=5 on sparc64. This isGarance A Drosehn2004-03-262-2/+3
| | | | | | | | | needed because off_t == __int64_t, while size_t == __uint64_t. This also compiles with WARNS=5 on amd64, but I haven't tested the other platforms yet. Notes: svn path=/head/; revision=127431
* Fixes so this will compile with WARNS=5 on i386.Garance A Drosehn2004-03-261-19/+22
| | | | Notes: svn path=/head/; revision=127430
* Fix two cosmetic style(9) issues.Garance A Drosehn2004-03-251-2/+2
| | | | Notes: svn path=/head/; revision=127429
* Add a comment for when these utilities were added to FreeBSD, and addGarance A Drosehn2004-03-251-0/+3
| | | | | | | a cross-reference to killall(1). Notes: svn path=/head/; revision=127428
* Add `-M' and `-N' options to `pkill' and `pgrep', similar toGarance A Drosehn2004-03-252-6/+35
| | | | | | | | | | | | | | | what are supported in `ps': -M Extract values associated with the name list from the specified core instead of the default /dev/kmem. -N Extract the name list from the specified system instead of the default /kernel. Written by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> Obtained from: the sysutils/pkill port Notes: svn path=/head/; revision=127427
* Use the correct type for some casts, thus avoiding a few warning messagesGarance A Drosehn2004-03-251-4/+4
| | | | | | | | | | when compiling with WARNS=3 Written by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> Obtained from: the sysutils/pkill port Notes: svn path=/head/; revision=127426
* Change some routine and variable names to match the FreeBSD system.Garance A Drosehn2004-03-252-35/+55
| | | | | | | | Written by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> Obtained from: the sysutils/pkill port Notes: svn path=/head/; revision=127425
* Add the `pkill' and `pgrep' commands from NetBSD. This is the sourceGarance A Drosehn2004-03-253-0/+752
straight from NetBSD (except to add the RCS-ID lines for FreeBSD). These will probably require a few updates before they are added to the FreeBSD buildworld. I might MFC these to 4.x-stable after 4.10. Discussed on: freebsd-arch Obtained from: NetBSD (and OpenBSD also has these) Notes: svn path=/head/; revision=127412