summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Replace <iostream.h> with <iostream> to remove annoying warningjosef2004-03-111-13/+13
| | | | | | | | | of using deprecated header. Approved by: dwhite, simon(mentor) Reviewed by: mlaier Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> PR: bin/63781
* Fixed a misspelling of '\0' as NULL.bde2004-03-111-1/+1
|
* Fixed misspellings of 0 as NULL.bde2004-03-111-3/+3
|
* Fixed misspellings of '\0' as NULL.bde2004-03-111-4/+4
|
* Fixed a misspelling of 0 as NULL.bde2004-03-111-1/+1
|
* Reworked the fix to print the useful line number on error inru2004-03-103-89/+79
| | | | | | | | | | | the .for loop: - Replaced four global variables in parse.c with one. - Made Parse_FromString() accept the "lineno" as an argument. - Fixed line numbering when there are escaped newlines in the body of the .for loop. Adopted from: NetBSD
* Another April Fool signs up.peadar2004-03-101-0/+1
|
* Make it possible to ``.undef ${VAR}'' (expanding VAR to getru2004-03-091-0/+1
| | | | | | the variable name to undef). Submitted by: Cyrille Lefevre
* Fix the easy warnings:dwmalone2004-03-096-40/+27
| | | | | | | | | 1) Avoid shadowing index. 2) Constness. 3) Missing prototype for ifcmd. 4) Missing include of string.h. 5) Avoid shadowing error function. 6) ANSI definition for main.
* Misc fixes brought to light by WARNS=6:dwmalone2004-03-091-14/+17
| | | | | | | | 1) Constness, unusedness and size_tness. 2) Don't clobber the value returned by hid_report_size in the daemon case. 3) Don't misspell "sizeof buf" as 100. 4) Don't run off the end of a buffer if the pid is about a google. 5) Avoid shadowing the usage function.
* Fixed line numbering inside the .for loops.ru2004-03-091-1/+3
| | | | Submitted by: Cyrille Lefevre
* These aren't all binary options.mikeh2004-03-091-1/+1
|
* Make it possible for the %[eEfgG] formats to not result in an errorcperciva2004-03-071-1/+1
| | | | | | | | | | being reported by /usr/bin/printf. This bug has been around for 22 months... either nobody uses printf with floating-point values, or people are forgetting to check their return codes. Approved by: rwatson (mentor)
* Fix markup.des2004-03-061-7/+6
| | | | Submitted by: ru
* Hook logins(1) up to the build.des2004-03-061-0/+1
|
* Add a logins(1) utility similar to that found in SVr4 derivatives. Thisdes2004-03-063-0/+519
| | | | particular implementation is based on the Solaris logins(1) man page.
* Assign checkmode boolean earlier to handle the goto jump.mikeh2004-03-061-1/+1
| | | | Might fix PR bin/63769.
* Use getopt instead of hand-rolled argument parsing. Usage remainswes2004-03-051-72/+15
| | | | | | | | the same, no man page changes required. PR: bin/48313 Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org> Reviewed by: joe@
* Update URL of GCC status page to GCC 3.3josef2004-03-041-1/+1
| | | | | | Approved by: simon(mentor) Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> PR: docs/63370
* Typo fix.blackend2004-03-031-1/+1
| | | | | | PR: docs/63677 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> MFC after: 1 week
* Elf_Phdr.p_type 7 is "PT_TLS".jake2004-03-021-1/+1
|
* Add the -e (mail presence test), -H (header summary mode), and -Fmikeh2004-02-296-14/+183
| | | | | | | | (message save as first recipient) options for standards conformance. Submitted by: Wartan Hachaturow <wart@tepkom.ru> (with some changes) PR: standards/61934
* Fix grammar bogon.schweikh2004-02-291-1/+1
|
* Fixed style bugs in previous commit (.ifndef instead of .if defined(),bde2004-02-291-3/+2
| | | | | | and tab lossage). Garbage-collected NEED_LIBNAMES.
* Update the find manual page:trhodes2004-02-271-1/+14
| | | | | | | | | | 1: Document -follow under COMPATIBILITY. 2: Update an example to be a little more 'safe'. 3: Use '/' in place of '.' for an example; similar to other manual pages. PR: 40196 (1), 39532 (2, 3) Submitted by: Marc Silver <marcs@draenor.org> (2 and 3) Discussed with: des (1)
* I am a moron.des2004-02-271-1/+1
|
* Re-add the setuid bit, conditional on NO_SETUID_LOGIN being undefined.des2004-02-271-0/+5
|
OpenPOWER on IntegriCloud