summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Sync with upstream version:fanf2002-05-231-67/+88
| | | | | | | | * Ensure we work within the array bounds when parsing command-line options; * Replace h0h0getopt with getopt(3); * Use consistent whitespace style in the function declarations. Revieweded by: dwmalone (mentor)
* Handle numeric keys by checking a "default" file. Handle number-less keysjmallett2002-05-231-1/+17
| | | | | | by failing, since comparing up to the length of the key (0) against the begin line for a key in the help file will always succeed, and print what is wholly bogus output.
* Set the MAKEFILE variable to the value passed to ReadMakefile(), not the fulljmallett2002-05-231-2/+5
| | | | path to it. Use the full path only for parsing it.
* Make my style consistent.jmallett2002-05-231-5/+5
| | | | | | Remove two includes. Fix a typo (semicolon instead of period at EOL).
* Taking a leap of faith, tie the help command in to the build.jmallett2002-05-221-0/+1
|
* Add my PD implementation of the SCCS help command, which prints help fromjmallett2002-05-222-0/+146
| | | | | files in the format used by SCCS, given a key. It behaves exactly like the ``proper'' SCCS help command, from what testing I can do.
* Tie sccs(1) in to the build, as it now does one thing right: sccs whatjmallett2002-05-221-0/+1
|
* Remove mention of the GNU version of ptx, it is dead.jmallett2002-05-221-1/+1
|
* Add a usage().jmallett2002-05-221-2/+19
| | | | | Print usage() if right before executing the specified command, it comes to be that *argv is NULL (i.e. a flag was specified without a command being given).
* Remove #ifndef's on V6.jmallett2002-05-221-4/+0
|
* Put braces around the command table properly.jmallett2002-05-221-36/+36
|
* Use what(1) here, in /usr/bin/what. It doesn't print error 26 correctly, butjmallett2002-05-221-1/+1
| | | | | neither does the pd sccs(1) implementation I have around, so there's no loss for now.
* str_concat() doesn't really take const arguments.jmallett2002-05-222-4/+4
| | | | | Submitted by: bde Pointy hat to: jmallett
* Do not run shell from /bin, run it from $PATH.ru2002-05-225-7/+29
| | | | Bump MAKE_VERSION to 5200205221.
* Added the MAKE_VERSION global that could be useful in determiningru2002-05-222-0/+7
| | | | | | | | | | | | if a given make(1) is feature-compatible with a set of makefiles. When merged, this will be used to replace the ugly upgrade_checks hacks in src/Makefile. Version has the RYYYYMMDDX format, where R is from RELENG_<R> and X allows for 10 distinguishable changes per day. Discussed with: bde
* Format internal commands properly.jmallett2002-05-221-8/+8
| | | | | | | | Kill a bit of trailing whitespace. Fix a path format. Submitted by: mdoc(7) police (ru)
* Clean up the manual page by leaps and bounds in terms of formatting.jmallett2002-05-221-110/+101
| | | | | | | Ruslan's version took away the '.Nm' for some commands, but not others, so I chose to go with leaving '.Nm'. Submitted by: ru
* Make the guarded string functions take a const "from" addr, and make thejmallett2002-05-221-8/+8
| | | | | | | function that prints when a botched guarded string operation occurs take two const arguments. XXX Should we use strlcat/strlcpy instead and hope for the best?
* Remove register qualifier.jmallett2002-05-221-29/+29
|
* Use function prototypes.jmallett2002-05-221-95/+71
|
* Clean up formatting.jmallett2002-05-221-9/+11
|
* Replace the evil that is __DECONST() with (void *). This is one of the leastjmallett2002-05-221-2/+2
| | | | | | evil things we can do involving the const qualifier and a pointer. Submitted by: bde, ru
* Make sccs(1) compile cleanly by fixing syntax errors such as #endif followedjmallett2002-05-221-9/+14
| | | | | by a token, and by including headers to get prototypes for many things, and also by spelling the type of structure readdir(3) returns as "dirent".
* Unroff all forms of \f and \*, and the simplest form of \s.ru2002-05-221-8/+14
| | | | | Submitted by: fenner, ru Reviewed by: ru, fenner
* Revive the SCCS front-end, sccs(1), back from the Attic, since it's somethingjmallett2002-05-226-0/+3700
| | | | | | | SUS wants (they want the entire suite of SCCS commands, we don't have them, but we *had* the frontend, so we can have it again, and now). Add $FreeBSD$ where appropriate, don't revive PSD.doc/spell.ok.
* Build pathchk(1).tjr2002-05-221-0/+1
|
* Add the pathchk utility, which checks pathnames for validity ortjr2002-05-223-0/+321
| | | | | | portability between POSIX systems. Submitted by: Chuck Rouillard (manpage, initial implementation)
* Make ReadMakefile() operate using the realpath(3) name for the file handed tojmallett2002-05-211-3/+7
| | | | | | | | | | | | | | | | | | it, which means that relative paths will be expanded to absolute paths, and filenames without a path will end up with their absolute path included as well. This aids tremendously in debugging a build using our make(1) with multiple Makefile's, such as when there is a syntax error in a file in a sub-directory as per <bsd.subdir.mk>. Normally we'd end up with just "Makefile" known about the Makefile in question, which means that an error would be useless for someone trying to debug their build system, now we end up with a complete real pathname for the Makefile. So mostly this is useful in a debugging context, but possibly others too (I haven't thought of them yet, but they probably are more useful if you make Dir_FindFile use realpath(3), but that's another story). Reviewed by: -current MFC after: 2 weeks
* Reword a small part of the uniq(1) manual page to help reduce wordtrhodes2002-05-211-3/+3
| | | | | | | | duplication (ie: fields fields). PR: 38161 Reviewed by: keramida MFC after: 3 days
* Mark argc as __unused to silence GCC.tjr2002-05-211-1/+1
|
* Build the tabs(1) utility.tjr2002-05-211-0/+1
| | | | PR: 36126
* Add an implementation of the tabs(1) utility, as required by SUSv3.tjr2002-05-213-0/+388
| | | | PR: 36126
* Style.ru2002-05-201-3/+2
|
* Bootstrap elf2aout(1) for sparc64; used to build sys/boot/sparc64/boot1.ru2002-05-201-1/+29
|
* Kill the stray #include line.ru2002-05-201-1/+0
|
* s/u_int/u_int32_t/ru2002-05-201-8/+9
|
* Mark a warning as such. Without this, it isn't obvious whetherdd2002-05-201-2/+2
| | | | | killall stopped after failing to kill one process or whether it kept going.
* Fix a late-night buglet in MLINKS ordering.jmallett2002-05-191-1/+1
| | | | Submitted by: Szilveszter Adam <sziszi@bsd.hu>
* Synch usage() and manpage for b64encode/b64decode.jmallett2002-05-193-3/+11
| | | | Make uudecode's usage more like that of other programs.
* Add b64decode & b64encode as synonyms for uudecode and uuencode -m,jmallett2002-05-194-2/+29
| | | | | | respectively, for convenience when encoding or decoding base64 files. As requested by various users.
* elf2aout can be useful to have on all platformsobrien2002-05-181-4/+1
|
* Don't build getconf if you don't have a full C++ installation.obrien2002-05-181-1/+1
|
* Fix markup.ru2002-05-181-11/+19
| | | | | Give Wolfram a credit for writing the original version in Perl like in killall(1).
* More whitespace fixes.ru2002-05-181-1/+3
|
* Remove Perl and TCL/TK bits, neither of which are in the base systemmarkm2002-05-181-94/+1
| | | | (anymore).
* Fixed spacing.ru2002-05-181-0/+1
|
* Look into machine specific subdirs.ru2002-05-182-1/+13
|
* Add C rewrites of catman and makewhatis. These aren't quite asmarkm2002-05-187-0/+2035
| | | | | | | the submitter supplied them, as I did some WARNS=n fixups (mostly const-ification). Submitted by: John Rochester <john@jrochester.org>
* WARNS 6 this.obrien2002-05-182-0/+2
|
* Add a perl wrapper. mergmaster(8) is broken with out it.obrien2002-05-182-0/+68
| | | | Submitted by: DES
OpenPOWER on IntegriCloud