summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* - Convert NO_INSTALLLIB option to a new syntax: makefiles shouldru2007-10-201-0/+2
| | | | | | | | | | | test MK_INSTALLLIB, users can set WITHOUT_INSTALLLIB. The old NO_INSTALLLIB is still supported as several makefiles set it. - While here, fix an install when instructed not to install libs (usr.bin/lex/lib/Makefile). PR: bin/114200 Submitted by: Henrik Brix Andersen
* Add a -z flag to nfsstat which zeros the NFS statistics after displayingjhb2007-10-182-24/+48
| | | | | | | | them. MFC after: 1 week Requested by: ps Submitted by: ps (6 years ago)
* Teach makewhatis.c to treat .SS with the same severity as .SH.edwin2007-10-181-0/+2
| | | | | | | | | | | | | | | | | | | | At least one port (net-mgmt/net-snmp) creates man-pages which are in the format: .SH NAME The Net-SNMP agent \- The snmp agent responds to SNMP queries from management stations. .PP .SS "Modules" At this moment, makewhatis determines the end of the .SH NAME section as where it finds .SH again, but there is none here, is it "terminated" by the .SS. PR: bin/116706 Submitted by: edwin@ Approved by: re (Ken Smith), grog (mentor) MFC after: 1 week
* The upper while loop has already recycled child process, so the ifdavidxu2007-10-181-3/+1
| | | | | | statement has never executed as expected, fix it. MFC after: 3 days
* Prevent strange crashes in fmt with absurd goal lengths introduced by thejmallett2007-10-171-0/+2
| | | | | | | | | | | | | | support for wide characters. If the sizeof (wchar_t) times max_length would yield a value beyond representation in a size_t, exit with a usage error up front, rather than strange errors down the line from trying to malloc (well, realloc) with a size of 0. This is perhaps not the optimal behaviour - a clamp may be more appropriate as we clamp the value of max_length now anyway, but this is at least better than segfaulting or worse. On systems which are friendly to malloc with a value of 0 the results could end up being strange corruption of the output.
* Fix incorrect string formats for netstat/srrs2007-10-171-48/+48
| | | | | | PR: 117175 Obtained from: Weongyo Jeong (weongyo.jeong@gmail.com) MFC after: 1 week
* Fix various memory leaks.kib2007-10-171-3/+13
| | | | | | Submitted by: rdivacky Obtained from: OpenBSD MFC after: 1 week
* The previous version included too many file system types in the scan,se2007-10-172-3/+9
| | | | | | | | | | | | | | | | | | since "local" includes also synthetic file systems (e.g. /dev, /proc) and loopback mounts. This version uses lsvfs to identify file system types that are local and additionally not synthetik, loopback mounts, or read-only. This has been suggested by Craig Rodrigues half a year ago. The patch that has been committed is based on his suggestion, but slightly modified. The comments in locate.rc have been updated to reflect the change and o include zfs and xfs in the example file system parameter that can be used to override the default outlined above. PR: 114101 Submitted by: rodrigc at crodrigues dot org (Craig Rodrigues) MFC: 2 weeks
* Make the updatedb script installed as /usr/libexec/locate.updatedbse2007-10-151-1/+1
| | | | | | | | | | inspect all local file systems, not only ufs and ext2fs. A number of local file systems has been added over time, and at least zfs has the potential to become a popular choice. Without this change a ZFS root file system causes the script to ignore all file-systems and leads to an empty locate db. (An alternative is to add all the relevant file systems individually, which means that at least zfs, xfs, ntfs, ntfs-3g, msdosfs should be added, probably more).
* Backout sensors framework.netchild2007-10-155-278/+1
| | | | | Requested by: phk Discussed on: cvs-all
OpenPOWER on IntegriCloud