summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Add a cross-reference to pkill(1), now that pkill is hooked up to the build.gad2004-03-271-0/+1
|
* bde also tells me that he is confident that P_SYSTEM will not workgad2004-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.
* Hook `pkill' (and thus `pgrep') to the standard buildworld.gad2004-03-271-0/+1
| | | | Reviewed by: freebsd-arch
* Some style(9)-ish improvements, courtesy of bde.gad2004-03-271-6/+6
| | | | Noticed by: bde
* Remove the _PATH_DEVNULL setting for "swapf". From the kvm_open(3)gad2004-03-261-3/+3
| | | | | | man page: The swapfile argument is currently unused. Noticed by: ru
* Remove the NEED_KMEM support meant for FreeBSD 3.x. This base-systemgad2004-03-261-9/+1
| | | | | | version isn't going to be committed to that branch... Noticed by: des
* Switch to checking P_KTHREAD instead of P_SYSTEM when deciding whatgad2004-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.
* Properly document the -M and -N options.ru2004-03-262-9/+19
|
* Correct the description of the -N option.ru2004-03-261-2/+2
|
* Avoid the manpage layering violation and low-level implementationru2004-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).
* Correct the description of options -N and -M to match reality.ru2004-03-261-4/+4
|
* Apply style.Makefile(5).ru2004-03-261-6/+4
|
* Send those -Debug messages to stderr, not stdout...gad2004-03-261-2/+2
|
* Add a debugging option, as I don't understand something that I'm seeing.gad2004-03-261-2/+18
| | | | (this is a probably temporary option, and is not to be documented)
* Remove a redundant check against mypid (the check is done later, ingad2004-03-261-1/+1
| | | | | | the "Take the appropriate action" section). Obtained from: the sysutils/pkill port
* Add a cast to get this to compile with WARNS=5 on sparc64. This isgad2004-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.
* Fixes so this will compile with WARNS=5 on i386.gad2004-03-261-19/+22
|
* Fix two cosmetic style(9) issues.gad2004-03-251-2/+2
|
* Add a comment for when these utilities were added to FreeBSD, and addgad2004-03-251-0/+3
| | | | a cross-reference to killall(1).
* Add `-M' and `-N' options to `pkill' and `pgrep', similar togad2004-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
* Use the correct type for some casts, thus avoiding a few warning messagesgad2004-03-251-4/+4
| | | | | | | when compiling with WARNS=3 Written by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> Obtained from: the sysutils/pkill port
* Change some routine and variable names to match the FreeBSD system.gad2004-03-252-35/+55
| | | | | Written by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> Obtained from: the sysutils/pkill port
* Add the `pkill' and `pgrep' commands from NetBSD. This is the sourcegad2004-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)
* Respect decimal flag when dumping USER type records.phk2004-03-251-1/+4
|
* Sort SRCS in Makefile and document -g option additions.bms2004-03-252-2/+3
| | | | Nudged by: ru
* Output style: Get rid of an unnecessary newline.bms2004-03-251-1/+0
|
* Teach netstat(1) how to print the multicast group memberships presentbms2004-03-254-2/+154
| | | | | | within the running system. Sponsored by: Ralf the Wonder Llama
* Add -u option to ipcs(1) and document it in ipcs.1bmilekic2004-03-242-3/+39
| | | | | | | It allows you to list IPC facilities owned by username/uid. Submitted by: Christian S.J. Peron <maneo@bsdpro.com> PR: bin/63463
* Remove doscmd from the base system now that it lives in the ports tree.des2004-03-2370-25635/+0
|
* Add support for decoding Timespec, Timeval, Itimerval, Pollfd,dwmalone2004-03-232-3/+179
| | | | | | | | | | | | | | | | | Fd_set and Sigaction structures. Use these for printing the arguments to sigaction(), nanosleep(), select(), poll(), gettimeofday(), clock_gettime(), recvfrom(), getitimer() and setitimer(). This is based on Dan's patch from the PR but I've hacked it for style and some other issues. While Dan has checked this patch, any goofs are probably my fault. (The PR also contains support for the dual return values of pipe(). These will follow once I've ported that support to platforms other than i386.) PR: 52190 Submitted by: Dan Nelson <dnelson@allantgroup.com>
* Use pread to implement pread, rather than taking a detour throug stdio.dwmalone2004-03-231-16/+2
| | | | | PR: 52190 Submitted by: Dan Nelson <dnelson@allantgroup.com>
* decode mprotect args while i'm here.alfred2004-03-231-0/+2
|
* decode fcntl and mmap arguments.alfred2004-03-233-2/+66
|
* Use fseeko() to properly support large files.tjr2004-03-221-3/+3
|
* Use errc().tjr2004-03-221-4/+2
|
* 1. Use socklen_t instead of intcperciva2004-03-211-4/+4
| | | | | | 2. Compare socket(2) return code to -1, not <= 0. Obtained from: OpenBSD rev. 1.9
* Support C-style comments in profile.des2004-03-211-3/+18
|
* More cleanups:ru2004-03-181-20/+20
| | | | | | | | - 0 should have been -1 in previous commit (just to stay consistent), - Spell null pointers as NULL, not 0, - Fixed the comment about pr_usesysctl to not confuse it with boolean. Pointed by: bde
* NULL -> 0.ru2004-03-171-1/+1
|
* Improved incorrect usage diagnostics.ru2004-03-171-2/+6
|
* Trust bsd.prog.mk to set SRCS correctly.ru2004-03-171-1/+0
|
* GC unnecessary include file.ru2004-03-172-38/+0
|
* Approved by: mat (mentor).thierry2004-03-161-0/+1
|
* Catch up with the removal of the wt(4) driver.ru2004-03-141-16/+0
|
* Add multiple inclusion guards. Mostly this is for extern.h, which wasjmallett2004-03-143-1/+10
| | | | | | | included twice by lprint.c, which included both finger.h and extern.h. finger.h, in turn, includes extern.h. The redundant include of extern.h was removed from lprint.c, as part of this change, but the include guards were added anyway out of spite.
* Fixed misspellings of 0 as NULL. Fixed some nearby style bugs.bde2004-03-141-1/+2
|
* Fixed a misspelling of 0 as NULL.bde2004-03-142-2/+2
|
* With the passing of the asc driver, the sasc prograqm is no longerimp2004-03-146-374/+0
| | | | necessary.
* Do not print a warning about net.inet.pim.stats if errno isdes2004-03-121-1/+2
| | | | | | | ENOENT, because that means we do not have PIM in the kernel. Submitted by: hmp MFC after: 1 week
* Fixed a misspelling of 0 as NULL.bde2004-03-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Fixed a nearby bug. The "play it safe" code in dosysctl() was unsafe because it overran the buffer by 1 if sysctl() filled all of the buffer. Fixed a nearby style bug in output. Not just 1, but 2 extra newlines were printed at the end by "vmstat -m" and "vmstat -z". Don't print any newlines explicitly. This depends on 2 of the many formatting bugs in the corresponding sysctls. First, the sysctls return an extra newline at the end of the strings. This also messes up output from sysctl(8). Second, the sysctls return an extra newline at the beginning of the strings. This is good for separating the 2 tables output by "vmstat -mz" and for starting the header on a new line in plain sysctl output, but gives a bogus extra newline at the beginning for "vm -[m | z]" and "sysctl -n [kern.malloc | vm.zone]". Fixed some nearby style bugs in the source code: - the same line that misspelled 0 as NULL also spelled NULL as 0. - the size was doubled twice in the realloc loop. - the "play it safe" comment was misleading. Terminating the buffer is bogus because dosysctl() is only meant to work with sysctls that return strings and the terminator is part of a string. However, the kern.malloc sysctl has more than style bugs. It also doesn't return a string. Termination is needed to work around this bug.
OpenPOWER on IntegriCloud