summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Add the ability to clean up all shared memory segments which areedwin2007-12-257-214/+468
| | | | | | | | | | | | | | | | | | | | | unused in one go. From the original PR: I've observed that linux apps running under the linuxulator have a habit of leaving behind shared memory segments which are unused, but which eventually cause the system to run out of free segments and these apps will stop working. ipcrm(1) currently only allows removal of unused message queues, shared memory segments and semaphores on an individual basis, or those having a matching (non-zero) key. However it would often be convenient to just do a complete cleanup of everything, usually as root. PR: bin/118292 Submitted by: Callum Gibson <callumgibson@optusnet.com.au> Not reviewed by: grog@ Approved by: grog@
* usbhidctl appears to not report features and write size correctlyimp2007-12-211-4/+4
| | | | | | | | This turns out to be due to an argument botch for hid_report_size. The PR contained patches to fix the argument botch. Submitted by: Maurice Castro PR: usb/118915
* Fix disorder introduced in previous commit.ru2007-12-201-1/+1
|
* Pull ministat into the installed system and write it a man-page.phk2007-12-203-1/+131
| | | | (Repocopied from src/tools/tools/ministat)
* Fix printing of the number of syncache entries added.ru2007-12-181-2/+2
|
* Stylify ipcs/ipcs.c and ipcrm/ipcrm in preparation of the upcomingedwin2007-12-182-384/+470
| | | | | | | | | changes as proposed in bin/118292. Feel free to mention any I have missed, there is much to learn with regarding to style(9). Approved by: grog@
* o Fix a holiday to reflect a reality.maxim2007-12-171-1/+1
| | | | | Submitted by: Andrey V. Elsukov MFC after: 1 week
* Give a better description when a install of multiple files failsedwin2007-12-141-1/+6
| | | | | | | | | | because of the absence of a destination directory or if the "destination directory" is not a directory. PR: bin/11826 Submitted by: Denis Eremenko <moonshade@pnhz.kz> Approved by: grog@ X-MFC after: various freezes
* Add the -H, -h and -P flags to vmstat. -P causes per-cpu output ofpeter2007-12-133-20/+207
| | | | | | user/system/idle stats. -h feeds the memory column through humanize_number() to reduce the amount of column overflowing. -H turns this off. -h is turned on by default if stdout is a tty.
* Add 'COMM' column to a few more output modes of procstat(1). The onlyrwatson2007-12-104-20/+29
| | | | | one it's missing from is the VM display, where there's really not room, and the file output display is looking quite cramped.
* Use a clever definition of __FBSDID to allow building on !FreeBSD systems.imp2007-12-091-2/+5
|
* Add several missing comma's in the fancy syscall parsing case beforejhb2007-12-061-0/+12
| | | | | | some arguments that are parsed (e.g., semctl command names). MFC after: 3 days
* Display per-thread command line in TDNAME field for -k and -t; ifrwatson2007-12-032-21/+71
| | | | | | | | | no per-thread name is available or the name is identical to the process name, display "-" instead. Very slightly shrink the COMM entry to make a bit more room, although this doesn't help with stack traces much. Suggested by: thompsa
* Connect procstat(1) to the build.rwatson2007-12-021-0/+1
|
* Add procstat(1), a process inspection utility. This provides both somerwatson2007-12-0212-0/+1459
| | | | | | | | | | | | | | | | | | | of the missing functionality from procfs(4) and new functionality for monitoring and debugging specific processes. procstat(1) operates in the following modes: -b Display binary information for the process. -c Display command line arguments for the process. -f Display file descriptor information for the process. -k Display the stacks of kernel threads in the process. -s Display security credential information for the process. -t Display thread information for the process. -v Display virtual memory mappings for the process. Further revision and modes are expected. Testing, ideas, etc: cognet, sam, Skip Ford <skip at menantico dot com> Wesley Shields <wxs at atarininja dot org>
* Add a cross-reference to newgrp(1).philip2007-11-301-0/+1
| | | | | | | Every time I need newgrp, I forget its name but I remember it's like login for groups - newgrp(1) already cross-references login(1). MFC after: 2 days
* Remove _SOLARIS_C_SOURCE now that it doesn't do anything in FreeBSDjb2007-11-281-1/+0
| | | | | | headers. All OpenSolaris compatibility comes via the set of specific compatibility headers in src/compat/opensolaris and src/sys/compat/opensolaris.
* Fix -jX when makefiles are remade.fjoe2007-11-251-0/+16
|
* Nuking the temporary pointer once it is properly tracked in local storage.avatar2007-11-221-0/+1
| | | | | | | | | | | | | This should fix the double free() bug where there's no tailing newline(\n) character: current# echo -n test | tail testAssertion failed: (run->magic == ARENA_RUN_MAGIC), function arena_dalloc, file /usr/src/lib/libc/stdlib/malloc.c, line 2448. Abort (core dumped) Reviewed by: kib MFC after: 3 days
* These are the things that the tinderbox has problems with because itjb2007-11-201-0/+1
| | | | | | | | doesn't use the default CFLAGS which contain -fno-strict-aliasing. Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again.
* Generate code that doesn't fail gcc 4.2's strict aliasing test.jb2007-11-201-4/+10
|
* Reduce the WARNS levels in a couple of places so that we can enablejb2007-11-181-1/+1
| | | | -Werror at higher WARNS levels like we did before gcc4 was imported.
* Use variable types which match the function prototypes.jb2007-11-172-2/+4
|
* Resolve conflicts; Update defines.h to reflect latest change.delphij2007-11-161-0/+9
|
* Fix (uncritical) potential buffer overflow: the length of "buf" was notse2007-11-151-1/+1
| | | | | extended when "jaiL" was added to fmt_flags(). MFC after: 1 week
* - Steal short description from POSIX; it's more technical and wasru2007-11-131-4/+4
| | | | | easier to translate. - Fix some markup nits.
* write(1) needs to strip off the leading /dev/ from the tty name for thejhb2007-11-121-3/+2
| | | | | | | | | | | | | current tty as returned from ttyname(3) so it can try to avoid writing to the current tty if possible. Previously, it did this by trimming off any leading directory (effectively performing a basename(3) on the path returned from ttyname(3)). However, this chopped off too much of the path for ttys who have directories in their name such as pts(4). Instead, just strip off the leading /dev/ from the path returned by ttyname(3). This fixes write(1) when using pts(4). MFC after: 1 week Reported by: rwatson
* Fix a typo.ru2007-11-091-1/+1
|
* - Fix documentation to match code. Specifically, -c doesn't haveru2007-11-091-21/+15
| | | | | | | to be specified together with either -u or -t to have an effect, and exit status of 2 is not possible after a Perl->C conversion. - While here, fix markup.
* Fix numerous bugs when parsing options and arguments.ru2007-11-091-9/+19
|
* Use static storage-class specifier where appropriate.dds2007-11-084-10/+10
| | | | Found by: CScout
* Make function's definition follow its declared visibility.dds2007-11-081-1/+1
| | | | Found by: CScout
* Fix visibility of "inplace".dds2007-11-081-1/+1
| | | | Found by: CScout
* setenv(3) sets errno on failure, use warn() insteadkevlo2007-11-081-3/+3
| | | | Pointed out by: ru
* - Include runefile.h for _CACHED_RUNESrafan2007-11-071-0/+1
|
* Markup nits.ru2007-11-071-2/+5
|
* Fix markup.ru2007-11-071-29/+31
|
* Check return value for setenv()kevlo2007-11-061-3/+7
|
* - Add ZFS-support to fstat(1). This allows ZFS-filsystems to be including inlulf2007-11-056-0/+321
| | | | | | | | | | | the open file-listing. It is added as a separate source file, so it can respect WITH_/WITHOUT_CDDL as compile-flags. - The warnlevel of the Makefile was decreased to quell solaris #pragma warnings. - Expect that fstat(1) doesn't work with kernel compiled with DEBUG_VFS_LOCKS/DEBUG_LOCKS for now. Approved by: pjd (mentor)
* initialize variables, WARNS=6 compliantcharnier2007-11-023-1/+3
|
* Markup revision.ru2007-11-021-12/+16
|
* Add my birthday to the calendar.brix2007-11-011-0/+1
| | | | Approved by: erwin (mentor)
* Also fix a "blank line" issue that sneaked in from rev. 1.19.ru2007-10-311-1/+1
| | | | Submitted by: John Hein
* Give more details on the following topics:yar2007-10-311-7/+77
| | | | | o How global, command-line, and environment variables relate. o What peculiarities the -f option has WRT ${MAKEFLAGS}.
* Remove newly acquired hard sentence breaks.ru2007-10-301-2/+4
|
* Apply style(9) to usage(), fix markup of the manpage.ru2007-10-302-7/+5
|
* Never use getenv("HOME") without checking for NULL and non-zerokevlo2007-10-302-3/+11
| | | | Obtained from: OpenBSD
* Introduce a way to make pure kernal threads.julian2007-10-261-48/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | kthread_add() takes the same parameters as the old kthread_create() plus a pointer to a process structure, and adds a kernel thread to that process. kproc_kthread_add() takes the parameters for kthread_add, plus a process name and a pointer to a pointer to a process instead of just a pointer, and if the proc * is NULL, it creates the process to the specifications required, before adding the thread to it. All other old kthread_xxx() calls return, but act on (struct thread *) instead of (struct proc *). One reason to change the name is so that any old kernel modules that are lying around and expect kthread_create() to make a process will not just accidentally link. fix top to show kernel threads by their thread name in -SH mode add a tdnam formatting option to ps to show thread names. make all idle threads actual kthreads and put them into their own idled process. make all interrupt threads kthreads and put them in an interd process (mainly for aesthetic and accounting reasons) rename proc 0 to be 'kernel' and it's swapper thread is now 'swapper' man page fixes to follow.
* - Add my birthday to the calendar.lulf2007-10-251-0/+1
| | | | Approved by: kib (mentor)
* The AWK 23-Oct-2007 release includes fixes for FreeBSD PR's bin/104795obrien2007-10-253-50/+1
| | | | and bin/100443.
OpenPOWER on IntegriCloud