aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Implement the O modifier. The O modifier sorts the words in aMarcel Moolenaar2003-09-181-1/+51
| | | | | | | | | | variable. The implementation is based upon the patch sent to arch@, but modified to be compatible with NetBSD. The modifier that does a reverse sort has been dropped for now, but the ability to add one later has been preserved. Notes: svn path=/head/; revision=120184
* Fix a `cast to pointer from integer of different size' warning.Marcel Moolenaar2003-09-171-1/+1
| | | | | | | | | | usage() has been made a (non-void) function so that it can be used in a pointer expression (see macro `next'). Widen the implied integer return type of usage() so that we can cast to a pointer without warnings. Notes: svn path=/head/; revision=120148
* Get rid of duplicates.Ruslan Ermilov2003-09-142-6/+7
| | | | Notes: svn path=/head/; revision=120054
* - Cut out the code that caches the "." directory out of Dir_Init()Ruslan Ermilov2003-09-144-67/+87
| | | | | | | | | | | | | into a separate function, Dir_InitDot(). - Postpone the current and object directories detection (and caching of the "." directory) until after all command line arguments are parsed. This makes the -C option DTRT. PR: bin/47149 Notes: svn path=/head/; revision=120053
* Make the description of the connect, get, and put commands clearer.Simon L. B. Nielsen2003-09-131-34/+43
| | | | | | | | | | | Reported by: Gary W. Swearingen <underway@comcast.net> Submitted by: Jim Brown <jpb@sixshooter.v6.thrupoint.net> (original version) Reviewed by: ru PR: docs/36459 MFC after: 3 weeks Notes: svn path=/head/; revision=120042
* Remove symorder. It's almost useless now that we have ELF kernels andTim J. Robbins2003-09-114-462/+0
| | | | | | | no a.out toolchain. Notes: svn path=/head/; revision=119980
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-082-4/+4
| | | | Notes: svn path=/head/; revision=119893
* Finish the reversion of rev. 1.52.Ruslan Ermilov2003-09-081-3/+2
| | | | Notes: svn path=/head/; revision=119892
* Command line variables take precedence over global variables.Ruslan Ermilov2003-09-081-1/+1
| | | | | | | | | | | | | | | | | Make this true in the .for loops too. The following fragment, FOO= foo bar all: .for f in ${FOO} @echo ${f} .endfor when run as "make FOO=xxx" should print "xxx". (OpenBSD had this bug fixed for some time.) Notes: svn path=/head/; revision=119876
* Do not print the result of strftime() in case of failure, the content isPhilippe Charnier2003-09-071-5/+3
| | | | | | | | | indeterminate in such a case. The correct value for 2nd argument is sizeof(buf). Do not NUL-terminate the result string, strftime() will do it for us. Notes: svn path=/head/; revision=119854
* Add FBSDID. Do not \n terminate warnx() argument. fprint() -> warnx().Philippe Charnier2003-09-072-11/+6
| | | | Notes: svn path=/head/; revision=119852
* Introduce arguments the standard way. In .Ar command ..., ... is not anPhilippe Charnier2003-09-071-4/+4
| | | | | | | argument, command is. Notes: svn path=/head/; revision=119851
* Remove duplicate #include. Do not \n terminate errx() arg.Philippe Charnier2003-09-071-2/+3
| | | | Notes: svn path=/head/; revision=119850
* Add FBSDID. Use errx() instead of fprintf()/exit(). Call exit() at the endPhilippe Charnier2003-09-071-92/+44
| | | | | | | of usage() and make the code aware of that. Notes: svn path=/head/; revision=119849
* The .Fn function. Dot terminate sentences. Use .Bd/.Ed instead of .Ar toPhilippe Charnier2003-09-071-25/+35
| | | | | | | emphasize examples of source definition file. Notes: svn path=/head/; revision=119848
* Use KERN_PROC_PROC instead of KERN_PROC_ALL when enumerating processes soTim J. Robbins2003-09-071-7/+4
| | | | | | | | that we kill each process once, not once for every thread it owns. This avoids "No such process" warnings when killing threaded processes. Notes: svn path=/head/; revision=119834
* Keep up with minor changes to NetBSD. Consider a variable empty whenWarner Losh2003-09-071-1/+1
| | | | | | | | | not define. Obtained From: NetBSD (rev 1.18; sjg) Notes: svn path=/head/; revision=119818
* Baud rate capability is `br', not `ba'.Hiten Pandya2003-09-061-1/+1
| | | | | | | | PR: docs/56426 Submitted by: FUJISHIMA Satsuki <sf@FreeBSD.ORG> Notes: svn path=/head/; revision=119808
* Removed another spurious semicolon forgotten in the previous commit.Jens Schweikhardt2003-09-061-1/+1
| | | | Notes: svn path=/head/; revision=119795
* Removed two spurious semicolons after function definitions.Jens Schweikhardt2003-09-061-5/+5
| | | | | | | | | | | Removed three spurious tabs on lines by themselves. PR: bin/56492 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> MFC after: 6 weeks Notes: svn path=/head/; revision=119794
* Finish the deorbital burn of the i386-only a.out toolchain.David E. O'Brien2003-09-0610-936/+0
| | | | Notes: svn path=/head/; revision=119791
* #include <runetype.h> directly for the definition of _CACHED_RUNES, neededTim J. Robbins2003-09-051-0/+1
| | | | | | | | | by ldef.h, rather than relying on GCC-specific pollution from <ctype.h>. Noticed by: Stefan Farfeleder Notes: svn path=/head/; revision=119776
* Change /dev/rsa0 and /dev/rwt0 references to sa0 and wt0.Peter Pentchev2003-09-052-4/+4
| | | | | | | | | PR: 55925 Submitted by: Michael L. Squires <mikes@siralan.org> MFC after: 1 month Notes: svn path=/head/; revision=119774
* Fix typo: c89, not c88.Tim J. Robbins2003-09-051-1/+1
| | | | Notes: svn path=/head/; revision=119758
* Removed unused macro definitionDiomidis Spinellis2003-09-041-1/+1
| | | | | | | | Approved by: schweikh (mentor - blanket) MFC after: 6 weeks Notes: svn path=/head/; revision=119747
* Eliminate last three uses of varargs.h in the tree. These three filesAlexander Kabaev2003-09-011-1/+0
| | | | | | | | were including varargs.h file but did not use any of its macros, so they escaped the clean-up before. Notes: svn path=/head/; revision=119632
* Typo in last commit.Poul-Henning Kamp2003-08-301-1/+1
| | | | | | | Spotted by: tjr Notes: svn path=/head/; revision=119568
* Introduce more knobs to slim down FreeBSD userlandPoul-Henning Kamp2003-08-291-6/+17
| | | | | | | | | | NO_TOOLCHAIN skips Compilers and Binutils NO_USB skips USB stuff NO_VINUM skips Vinum stuff NO_ACPI skips ACPI stuff Notes: svn path=/head/; revision=119553
* - Document gencat(1)Diomidis Spinellis2003-08-221-2/+2
| | | | | | | | | | - Fix grammar error and rationale for not using the command Approved by: schweikh (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=119319
* Big cleanup. Remove unused stuff, make closer to style(9).Mark Murray2003-08-221-183/+79
| | | | | | | OK'ed by: peter (long time ago) Notes: svn path=/head/; revision=119316
* Warns fixes. Mainly unused headers/params/vars removal, but alsoMark Murray2003-08-227-28/+19
| | | | | | | some malloc cleanup. Notes: svn path=/head/; revision=119312
* In case of zero span data supress the histogram plot.Poul-Henning Kamp2003-08-181-0/+6
| | | | Notes: svn path=/head/; revision=119067
* Tidy up usage message.Tim J. Robbins2003-08-172-6/+6
| | | | Notes: svn path=/head/; revision=119025
* Tidy up synopsis.Tim J. Robbins2003-08-171-3/+1
| | | | Notes: svn path=/head/; revision=119024
* Tidy up usage message.Tim J. Robbins2003-08-171-2/+2
| | | | Notes: svn path=/head/; revision=119023
* Add my birthday to calendarMathieu Arnold2003-08-151-0/+1
| | | | | | | Approved by: demon (mentor) Notes: svn path=/head/; revision=118943
* Add my birthday to the calendar.Alexander Nedotsukov2003-08-151-0/+1
| | | | | | | Approved by: marcus (mentor) Notes: svn path=/head/; revision=118939
* Removed check of st_rdev changing in the -F support. st_rdev for regularDavid Greenman2003-08-141-1/+0
| | | | | | | | | | | | | | files is usually the first direct block pointer. Since FreeBSD does automatic block reallocation to reduce filesystem fragmentation, the file being tailed can be relocated to different blocks 'on-the-fly', making the check for st_rdev unreliable. The result of this bug is tail -F pseudo-randomnly thinking the file was rotated when it wasn't, and as a result, spews out the entire file trying to catch up. MFC after: 3 days Notes: svn path=/head/; revision=118900
* Add Alfred Hitchcock's birthday.Murray Stokely2003-08-131-0/+1
| | | | | | | Inspired by: google.com Notes: svn path=/head/; revision=118877
* A small statistics tool for gauging the statistical significancePoul-Henning Kamp2003-08-135-0/+621
| | | | | | | | | | | of data from benchmarks etc. Implements "Student's t" for various confidence levels, defaults to 95%. If your benchmarks are not significant at the 95% confidence level, we don't want to hear about it. Notes: svn path=/head/; revision=118856
* Add GB18030 and GBK to the list of encodings. Cross-reference theTim J. Robbins2003-08-101-1/+10
| | | | | | | new manual pages for the Big5, GB18030, GBK, and MSKanji encodings. Notes: svn path=/head/; revision=118727
* Fix sign-extension bug for 32 and 64-bit values. For 64-bit valuesMarcel Moolenaar2003-08-091-39/+27
| | | | | | | | | | | | | | this involves the sign-extension of the high and low "word". Both of which are 32-bit. The bug is especially harmful on ia64, where 0x9fffffffe0000000 is a common address (base of register stack). This was invariably displayed as 0xffffffffe0000000. The sign-extension is fixed by using {b|l}e{16|32|64}dec() where applicable. Since elfdump(1) is not a bootstrap tool, dependency on these functions is not a problem. Notes: svn path=/head/; revision=118680
* 1. Add support for printing PIM-related statistics withJeffrey Hsu2003-08-075-1/+136
| | | | | | | | | | | | netstat -s -p pim 2. Print information about the bandwidth meters installed in the kernel with netstat -g Submitted by: Pavlin Radoslavov <pavlin@icir.org> Notes: svn path=/head/; revision=118627
* Add Jonathan Postel's year of birth.Greg Lehey2003-08-061-1/+1
| | | | Notes: svn path=/head/; revision=118517
* send() and recv() are just wrappers, not actual syscalls.Dag-Erling Smørgrav2003-08-051-4/+0
| | | | Notes: svn path=/head/; revision=118505
* * Use sysctlbyname(3) to print statistics about the MFC andJeffrey Hsu2003-08-051-6/+24
| | | | | | | | | | | | | | | | | multicast VIF tables. This change is needed for consistency with the rest of the netstat/mroute.c implementation, and because in some cases "netstat -g" may fail to report the multicast forwarding information (e.g., if we run a multicast router on PicoBSD). * Remove "DVMRP" from the head comment of file netstat/mroute.c, because the printed multicast-related statistics are not DVMRP-specific anymore. Submitted by: Pavlin Radoslavov <pavlin@icir.org> Notes: svn path=/head/; revision=118502
* Add recv(2), recvfrom(2), send(2) and sendfrom(2).Dag-Erling Smørgrav2003-08-051-2/+10
| | | | Notes: svn path=/head/; revision=118483
* Back out [:upper:] and [:lower:] classes sorting, it is not requiredAndrey A. Chernov2003-08-051-6/+3
| | | | | | | by POSIX and gains nothing with current code. Notes: svn path=/head/; revision=118475
* Clarify upper/lower conversion description more.Andrey A. Chernov2003-08-051-7/+4
| | | | Notes: svn path=/head/; revision=118474
* Remove redundant declarations.David Schultz2003-08-051-2/+0
| | | | Notes: svn path=/head/; revision=118465