summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Groff 1.18.1 comes in with ANSI color support, enabled by default.ru2002-10-111-1/+1
| | | | | | | | | | | | | | In "nroff" mode, italic font renders as an underlined text, which makes it indistinguishable from the bold text on color monitors (cons25 terminal type), yet it requires the less(1)'s -R option. (Refer to the new grotty(1) manpage for details.) So turn off the color support for now (when generating catpages), until we figure out what do we do with this new feature. I have a patch for grotty(1) that tells it to use the "reverse video" attribute to render the italic font. Once this is accepted, we can turn color support back on (if there won't be any objections from the community).
* Move utilitarian routines to util.c, which isn't the same as the oldjmallett2002-10-104-234/+288
| | | | | | compatability-geared util.c. These are things like message printers and the PrintAddr function for traversing lists. Other general-purpose utilities inside make(1) can go here, in time.
* Convert make(1) to use ANSI style function declarations. Variablejmallett2002-10-0915-771/+340
| | | | | | | | | | | documentation already adequatedly existed in the description in most cases. Where it did not, it was added. If no documentation existed beforehand, then none was added. Some unused dummies for use in the traversal functions were marked as __unused during the conversion. Occasionally, local style fixes were applied to lines already being modified or influenced. Now make(1) should always build with WARNS=3.
* Use __FBSDID in the lst.lib files, to match to main make(1) files. It isjmallett2002-10-0926-26/+26
| | | | | defined to __RCSID when bootstrapping, by the Makefile, but this change is for consistency
* Remove extern declarations from functions and source files where they wouldjmallett2002-10-094-3/+4
| | | | happily fit into headers.
* Remove unused local-locals, where upper-level locals may safely be used.jmallett2002-10-091-8/+8
|
* Reference the correct local variable in all parts of a for loop, so wejmallett2002-10-081-1/+1
| | | | | | operate on the correct data (properly). Tracked down by: Dan Nelson
* Re-add the code which maps POSIX standard library names into the onestjr2002-10-081-4/+49
| | | | FreeBSD uses; f.e. -lpthread -> -pthread, -lxnet -> nothing.
* Add the c99(1) utility, which is nothing more than a synonym fortjr2002-10-074-0/+277
| | | | | | cc -std=iso9899:1999 -pedantic, and is required by SUSv3. PR; 36087
* Use strlcpy() instead of strcpy() to not overflow static buffers.kris2002-10-061-2/+6
|
* Don't depend on <signal.h> to include <sys/time.h>, instead includemike2002-10-062-0/+2
| | | | | <sys/time.h> directly. This is mostly bogus since CLOCK_REALTIME should be defined in <time.h>, which these files already include.
* Give make(1) the ability to use KQUEUE to wait for worker processesphk2002-10-043-1/+57
| | | | | | | | | instead of polling for them. Unfortunately we cannot enable it yet because it panics the kernel somewhere in kqueue. Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
* Fix off-by-one error processing the line after an empty line when thetjr2002-10-041-0/+1
| | | | | | | -a option is not specified. Submitted by: schweikh MFC after: 1 week
* Actually implement gzip's -c option. minigzip now also doublesjohan2002-10-031-2/+9
| | | | | | | | | | | as zcat properly. PR: 13043 Submitted by: Toshihiko ARAI <toshi@jp.freebsd.org> Jonathan Towne <jontow@twcny.rr.com> Approved by: peter, sheldonh (mentor) MFC After: 2 weeks
* In lieu of a good way to prevent every possible looping in make(1), stopjmallett2002-10-031-0/+21
| | | | | | | | | there from being more than 500 processes forked by make(1), to prevent a forkbomb from happening, in a dumb and mechanical way. PR: alane Submitted by: bin/42772 MFC after: 2 weeks
* Catch up to SMTX -> SLOCK changes.jhb2002-10-021-5/+5
|
* Code that has been #if0'd with the comment "WHY" since revision 1.1 canjmallett2002-10-021-8/+1
| | | | disappear.
* Remove 6-years-stale #if0, the behaviour isn't ever going to be limited tojmallett2002-10-021-5/+1
| | | | compatible mode, as far as I know, since we use it...
* Teach ncal(1) about month names specified on the command line.roam2002-10-022-3/+24
| | | | | | Reviewed by: -audit Approved by: silence on -audit MFC after: 3 weeks
* Remove some #if 0'd code. After this, a "make unifdef" here producesdd2002-10-021-41/+0
| | | | | | no changes (against crypto telnet). Reviewed by: MD5
* Merge from crypto telnet: permit the argument to -s to be a hostname.dd2002-10-021-1/+0
|
* Fix spurious three-space indentation in a four-space indentation file.jmallett2002-09-291-2/+2
|
* Fix ability to use csh(1) as the make(1) shell.jmallett2002-09-291-1/+3
| | | | Sponsored by: Bright Path Solutions
* Make make(1) WARNS=6 clean except for const issues. This mostly involvesjmallett2002-09-287-69/+69
| | | | | | | | | | | renaming variables to not shadow libc functions or greater scope locals. Kinda makes one wonder if the extern ones weren't meant in some of these places :) The only thing I'd still like to do WRT this is possibly combine rstat and status in compat.c -- that should be fine, as I do not think the codepaths will want both around at once. Sponsored by: Bright Path Solutions
* Fix merge error in previous commit.jmallett2002-09-281-1/+1
| | | | Sponsored by: Bright Path Solutions
* Add empty default cases where they should be, remove non-local execution stuffjmallett2002-09-289-14/+36
| | | | | | | | | | in compat.c which doesn't even have preprocessor-conditional-hidden support code, and add a debugging statement where we might end up with a nil list somehow, but where I doubt it. First confirmed userland kill for Flexelint. Sponsored by: Bright Path Solutions
* Rename struct specinfo to the more appropriate struct cdev.phk2002-09-271-2/+2
| | | | Agreed on: jake, rwatson, jhb
* Document the parsing bug.ru2002-09-271-1/+13
|
* Remove a semicolon that appears to be a lie.jmallett2002-09-261-1/+1
| | | | | Spotted by: SPARC64 make WARNS=3 Sponsored by: Rachel Hestilow <rachel@jerkcity.com>
* When formatting the time for a target, use %H instead of %k, which is mostlyjmallett2002-09-261-1/+1
| | | | | | the same, but uses a non-extension option. Sponsored by: Rachel Hestilow <rachel@jerkcity.com>
* Don't declare things as extern when they will be static.jmallett2002-09-261-1/+6
| | | | Sponsored by: Rachel Hestilow <rachel@jerkcity.com>
* Unifdef(1) the crypto telnet sources.markm2002-09-256-8/+8
|
* The spec says that unifdefall removes all #ifs, and this now requiresfanf2002-09-241-2/+2
| | | | the -k flag to unifdef.
* The readability is improved by reducing the use of the passive voice.fanf2002-09-241-10/+10
| | | | No changes to the meaning are made.
* It is probably a bad idea to unconditionally process directives withfanf2002-09-242-10/+41
| | | | | | | | | | constant controlling expressions: in particular, removing #if 0 sections is considered "rude". This commit changes the default so that such things are passed through unchanged, and the old behaviour can be had with the -k "kill konsts" flag. Suggested by: markm MFC after: 3 weeks
* Make it work with POSIX sort (POS arg).ache2002-09-241-1/+3
| | | | All old sorts understand -k too.
* Make it work with POSIX sort (POS arg)ache2002-09-241-2/+2
| | | | All old sorts understand -k too.
* Use some macro evil to create the functions for using sysctl(3) to get eachjmallett2002-09-231-83/+38
| | | | | | | | variable natively. It should allow you to use any sysctl mib set, but due to limitations of what I can do with macros, right now it's limited to two, which is all this program used anyway. Sponsored by: Bright Path Solutions
* Check to see if we should print a space, rather than using the annoyingjmallett2002-09-231-12/+12
| | | | | | prefix methodology. Adjust nearby style. Sponsored by: Bright Path Solutions
* - Add the -i option to read in a saved ktr file output by KTR_ALQ.jeff2002-09-221-13/+41
|
* Update equinoxes and solstices.grog2002-09-221-2/+2
| | | | PR: bin/43166
* Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the structwollman2002-09-211-2/+2
| | | | | | | | | | | | | | | | hack, thereby allowing future extensions to the structure (e.g., for extended attributes) without rebreaking the ABI. FTSENT now contains a pointer to the parent stream, which fts_compar() can then take advantage of, avoiding the undefined behavior previously warned about. As a consequence of this change, the prototype of the comparison function passed to fts_open() has changed to reflect the required amount of constness for its use. All callers in the tree are updated to use the correct prototype. Comparison functions can now make use of the new parent pointer to access the new stream-specific private data pointer, which is intended to assist creation of reentrant library routines which use fts(3) internally. Not objected to in spirit by: -arch
* Initialize a variable in order to fix when faced with picky compilers.eric2002-09-201-0/+2
| | | | Sponsored by: Apple
* Update for FILE v3.39.ru2002-09-192-17/+21
|
* Bootstrapping aid for systems without <stdint.h>.ru2002-09-191-0/+4
| | | | (Needed to build mkmagic in build-tools.)
* Completely revamp the way getconf(1) works, for better adherence to thewollman2002-09-1910-189/+457
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | intent of the Standard. - Make getconf able to distinguish between configuration variables which are entirely unknown and those which are merely not defined in the compilation environment. The latter now get a more appropriate "undefined\n" result rather than a diagnostic. This may not be exactly right, but it's closer to the intent of the Standard than the previous behavior. - Support ``programming environments'' by validating that the environment requested with the `-v' flag is the one-and-only execution environment. (If more environments are supported for some platforms in the future, multiple getconf(1) executables will be required, but a simple edit in progenv.gperf will enable automatic support for it.) Document POSIX standard programming environments. - Add all of the 1003.1-2001 configuration variables. FreeBSD does not support all of these (including some that are mandatory); getconf will later be fixed to break the world should a required variable not be defined. As a result of all these changes, gperf is no longer adequate. Keep the overall format and names of the files for now, to preserve revision history. Use an awk script to process the .gperf files into C source, which does a few things that gperf, as a more general tool, cannot do. The keyword recognition function is no longer a perfect hash function. This may obviate the need for gperf in the source tree. - Add a small compile-time regression test to break the build if any of the .gperf files declare conflicting token sets. (gperf itself would have done this for the simple case of duplicate tokens in the same input file.)
* Update the usage string in the limits(1) manpage to include -b forgreen2002-09-182-5/+6
| | | | | | sbsize. Also, correct the format string in getopt(3) usage to reflect that -b takes an argument, and correct another case of RLIMIT_SBSIZE having been forgotten.
* Make the DEBUGF() macro portable by (ugh) adding a Debug() function, whichjmallett2002-09-1814-141/+163
| | | | | is merely printf() but to stderr. This takes care of the caveat which lead to the use of a vararg macro -- getting everything to stderr.
* ARIN has annoyingly started using caps when referencingmike2002-09-181-1/+3
| | | | | | | | | whois.apnic.net. To properly receive hints for recursive IP searches, we convert a buffer to lowercase before searching for magic words. PR: 42834 Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> (mostly) X-MFC-After: re approval
* Mostly rewrite the flag handling of uname(1) to be overridable, such as:jmallett2002-09-182-70/+171
| | | | | | | | | freefall% uname -s FreeBSD freefall% env UNAME_s=Linnex ./uname -s Linnex MFC after: 1 month
OpenPOWER on IntegriCloud