summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Don't depend on namespace pollution from <netinet/in_pcb.h>.des2002-08-011-0/+2
| | | | Submitted by: bde
* Implement the -l and -c options, which I'd forgotten.des2002-08-011-6/+17
|
* Rewrite sockstat(1) in C.des2002-07-314-257/+596
| | | | Sponsored by: DARPA, NAI Labs
* Fix some bugs in in-place editing:fanf2002-07-301-28/+26
| | | | | | | | (1) errors from freopen were not reported correctly (2) large files were not handled correctly (3) read-only files broke things MFC after: 1 week
* Ignore leading semicolons on commands; required by SUSv3.tjr2002-07-301-2/+8
| | | | Obtained from: NetBSD (kleink, Aymeric Vincent)
* When translating and -C is specified, behave as if the complemented set wastjr2002-07-291-0/+26
| | | | in the locale collating order as required by SUSv3.
* When translating and the -c option is specified, handle the case where thetjr2002-07-291-6/+11
| | | | | second string argument is more than one character in length in the way required by SUSv3 (and the way GNU textutils and SVR4 do it).
* Drop support for COPY, -c has been the default mode of install(1)ru2002-07-296-10/+10
| | | | | | for a long time now. Approved by: bde
* Ignore -C, -p, and -S options of install(1) when used with the -dru2002-07-291-1/+1
| | | | | | | option. Warn about COPY being phased out. Restore the old method of always comparing before installing: INSTALL="install -C". Requested by: bde
* fetch(1) is WARNS-5 clean (tested on i386 and Alpha)des2002-07-281-0/+1
|
* Use strtol(3) instead of a home-grown version, and fix a "possiblydes2002-07-281-36/+24
| | | | unitialized variable" warning.
* Add enough consts to keep everyone happy.dwmalone2002-07-281-1/+1
|
* Don't reuse a const char * when we really want a char *.dwmalone2002-07-281-5/+7
|
* Improve WARNS situation for kdump:dwmalone2002-07-281-45/+58
| | | | | | | | | | | | | 1) Define _KERNEL while including sys/time.h to get some function prototypes. 2) Add prototypes and ANSIify definitions. 3) Constness changes. 4) Remove register keyword. 5) Actually return a sensible value from main. 6) Make fread_tail take a void * instead of a char *. 7) Avoid a signedness warning by casting to a size_t. Should be safe enough 'cos we also check for nonnegativity. 8) Be extra chummy with sigset_t rather than passing a struct to printf and pretending it is an int.
* ANSIify function definitions to avoid a warning.dwmalone2002-07-289-54/+31
|
* The return value of snprintf should be always nonnegative, so it shoulddwmalone2002-07-281-1/+1
| | | | be safe to cast it to a size_t before comparing it to a sizeof().
* ANSIify function definitions to avoid a warning.dwmalone2002-07-282-39/+14
|
* ANSIify function definitions to avoid a warning.dwmalone2002-07-281-14/+7
| | | | Minor constness changes.
* ANSify function definitions to avoid a warning.dwmalone2002-07-281-10/+7
|
* ANSIify function definitions to avoid a warning.dwmalone2002-07-281-6/+3
|
* ANSIify function definitions to avoid a warning.dwmalone2002-07-281-4/+2
| | | | | PR: 38930 Submitted by: keramida
* ANSIify function definitions to avoid a warning.dwmalone2002-07-2810-46/+18
|
* ANSIify function definitions to avoid some warnings.dwmalone2002-07-281-11/+5
| | | | Include stdlib.h for exit.
* ANSIify function definitions to avoid a warning.dwmalone2002-07-281-30/+16
| | | | Minor constness changes.
* ANSIify function definitions to avoid a warning.dwmalone2002-07-281-7/+4
|
* Search the include path for the argument to -f, to make lives easier forjmallett2002-07-281-6/+13
| | | | | | | | | those of us who want to figure out how old Jim Mock is, but only want to type 'calendar -f calendar.freebsd'. This is done in a way that should be totally backwards compatible with no noticable differences, at all. Reviewed by: mux MFC after: 4 weeks
* Add a -v option that prevents switching virtual terminals while thisdd2002-07-282-13/+47
| | | | | terminal is locked. This permits the user to easily lock the entire console from a single terminal.
* Print a warning when we are given two scripts for one target. This is neitherjmallett2002-07-281-0/+4
| | | | | | | as wide-reaching nor intensive as NetBSD's similar, but the warning uses the same text. Inspired by: NetBSD
* Clarify J.S. Bach's life: he was only born once, and he died in Leipzig.grog2002-07-281-3/+3
| | | | Add entry for Antonio Vivaldi's death.
* Back out jmallett's realpath changes. They break a set of makefiles thatimp2002-07-261-0/+28
| | | | | | | | | we use in sublte ways with relative paths. Until they can be resolved, back out these changes and put a big comment about why using realpath is busted. Approved by: jmallett MFC After: 100 millifortnights
* Use sigaction(2) instead of signal(3) to avoid the signal handler beingtjr2002-07-261-3/+10
| | | | re-entered.
* Define all paths in pathnames.hjohan2002-07-252-2/+6
| | | | Approved by: joerg, sheldonh (mentor)
* Give an example showing how to change the mesg status of terminalstjr2002-07-251-0/+10
| | | | | | other than the default one. PR: 13073
* style(9): - Put a space after the 'return' keyword.robert2002-07-241-5/+7
| | | | - Wrap lines longer than 80 characters.
* Use an ANSI-C function definition rather than arobert2002-07-241-3/+1
| | | | K&R one to avoid a warning.
* - Add a COMPATIBILITY section explaining that the defaultrobert2002-07-241-2/+12
| | | | | | | | | | behaviour of obtaining the affected terminal has changed. - Refer to the user's terminal instead of the current terminal session. - Tell the reader what the utility does when it is invoked without arguments. Submitted by: johan
* Allow selection of the affected terminal using redirectionrobert2002-07-242-1/+10
| | | | | | of standard input or standard output, like mesg(1) does. Suggested by: sheldonh
* Teach whereis(1) about games.johan2002-07-243-5/+9
| | | | Approved by: joerg, sheldonh (mentor)
* Widen struct sockbuf's sb_timeo member to int from short. Withjdp2002-07-248-13/+13
| | | | | | | | | | | | | non-default but reasonable values of hz this member overflowed, breaking NFS over UDP. Also, as long as I'm plowing up struct sockbuf ... Change certain members from u_long/long to u_int/int in order to reduce wasted space on 64-bit machines. This change was requested by Andrew Gallatin. Netstat and systat need to be rebuilt. I am incrementing __FreeBSD_version in case any ports need to change.
* Revert previous delta for cut(1) and calendar(1) as they were not appliedtrhodes2002-07-232-3/+11
| | | | correctly. My fault, forgot that -current was checked out.
* Remove duplicate __FBSDID() - spotted by trying to build with a non-GNUjmallett2002-07-231-3/+0
| | | | compiler.
* Dependencies are delimited by space not tab.ru2002-07-231-2/+2
|
* Handle directories correctly.eric2002-07-231-3/+6
| | | | | PR: 40801 MFC after: 5 days
* Revert last commit. Sorry for breaking thingstrhodes2002-07-221-10/+10
|
* MFC: Fix some grammar, greater reduce diffs to HEADtrhodes2002-07-223-21/+13
|
* add -4 and -6 option to be able to specify an address family.ume2002-07-223-4/+22
| | | | | Requested by: matusita MFC after: 1 week
* - Use MAXLOGNAME - 1 rather than UT_NAMESIZE.robert2002-07-221-3/+2
| | | | - Remove the inclusion of <utmp.h>.
* - Use MAXLOGNAME - 1 instead of UT_NAMESIZE.robert2002-07-221-11/+5
| | | | - Do not pretend there is something like '/etc/utmp'.
* Correct syntax error, remove the unescaped newline between "||" and thetjr2002-07-221-4/+2
| | | | | | | command it is intended to test. pdksh and bash caught this syntax error, sh(1) did not behave as intended. PR: 40386
* Fixed improper SCRIPTS assignment that broke `clean'.ru2002-07-211-1/+1
|
OpenPOWER on IntegriCloud