summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add my birthday to the list. Apparently, I share a birthday with dwhite.gordon2002-05-171-0/+1
| | | | | Reviewed by: jake Approved by: jake
* Fix a tiny bug in shlib support of ldd(1); if dlopen(lib, RTLD_TRACE)knu2002-05-171-4/+5
| | | | | | | | | | | | | | returns, exit gracefully with 0. This fixes the behavior you see when you specify libc.so. It occurs because ldd(1) itself is linked with libc.so. $ ldd /usr/lib/libc.so /usr/lib/libc.so: ldd: /usr/lib/libc.so: (null) /usr/lib/libc.so: exit status 1 Reviewed by: silence of audit@
* Get byte swapping primitives from sys/endian.h now that they are exportedjake2002-05-171-5/+1
| | | | to userland. This makes elf2aout work as a cross tool.
* Group the output chunks differently, to try to match BSD/OS output. Switchjmallett2002-05-171-3/+6
| | | | | | | to using arithmatic to determine buffer sizes to encode into. Diane Bruce pointed out to me that BSD/OS did MIME too, so I want to match their output, too, since my decision of 8 output groups was wholly arbitrary.
* Revert part of the previous revision. Changing exit() to return() in main()jmallett2002-05-171-1/+1
| | | | | | | | | | | is wrong, even though our C compiler doesn't understand that exit() eats control of the program, and as such can sometimes complain that main() reaches the bottom of its body without an explicit return(). Aside from that, the functional usefulness of changing it is effectively nil, so back it out. Submitted by: mike
* Make the output tidier when multiple integer formats are requested bytjr2002-05-171-3/+3
| | | | | | attempting to line up values into columns. Obtained from: NetBSD (idea)
* Simplify prerun() in the case where there are no arguments. Can't do -I or -Jjmallett2002-05-171-1/+1
| | | | | substitution if `utility' is not specified and we're using the buildin echo; It has no arguments for us to abuse.
* Overhaul hexdump's od syntax code to handle the -s -A -j -N -t options thattjr2002-05-175-87/+425
| | | | | | SUSv3 requires and give od a proper manual page. PR: 36783
* Declare variables that were extern'd in multiple places in hexdump.h.tjr2002-05-174-9/+3
| | | | PR: 36783
* Add support for printing long doubles.tjr2002-05-173-1/+12
| | | | PR: 36783
* Print signed single-byte decimal integers correctly instead of implicitlytjr2002-05-171-1/+1
| | | | | | converting them to unsigned bytes. PR: 36783
* Un-deprecate od(1): rename the `deprecated' variable to `odmode', remove thetjr2002-05-174-14/+7
| | | | | | | | | deprecation warning from the utility and manual page. Since this utility is required by POSIX, it's not likely to be removed any time soon. This is leading up to the addition of the P1003.1-2001 -s -A -j -N -t options. PR: 36783
* Clean up malloc(3)'s argument. Remove casts which do nothing when we'rejmallett2002-05-176-24/+24
| | | | | | | using sizeof() anyway. Use slightly more consistent (per-file) error reporting for malloc(3) returning NULL. If "malloc failed" was being printed, don't use err(3). If a NULL format is being used, use err(3). In one case errx(3) was being used with strerror(3), so just use err(3).
* Remove spurious casts in malloc(3)'s argument.jmallett2002-05-171-3/+3
| | | | Use `return' instead of `exit' at the bottom of main().
* Add a Standards section, and note that compress(1) and uncompress(1) nowtjr2002-05-171-1/+8
| | | | conform to P1003.1-2001.
* As required by SUSv3, a file argument of "-" causes standard inputtjr2002-05-172-3/+13
| | | | to be compressed/decompressed to standard output.
* Compression ratio statistics should be written to stderr instead of stdout.tjr2002-05-171-4/+5
|
* Use exit status 2 to indicate that the file was not compressed becausetjr2002-05-172-0/+8
| | | | its size would not be reduced (SUSv3).
* Process and user ID arguments must be treated as decimal integers,tjr2002-05-161-1/+1
| | | | | | | not octal or hex. This is the way it was before revision 1.10. PR: 36950 Submitted by: Peter Avalos <pavalos@theshell.com>
* Accept decimal user IDs with -u option as well as usernames.tjr2002-05-162-6/+8
| | | | PR: 36950
* Diagnostic messages belong on stderr, not stdout. SUSv3 specifies thattjr2002-05-161-1/+2
| | | | renice may not use stdout at all.
* OOPS! rev 1.16 accidently changed the default outfile from stderr topeter2002-05-161-1/+1
| | | | | | | | stdout. Unfortunately, DES mfc'ed this change in 1.15.2.1 (this part probably should not have been) so it is broken there too. truss is documented to use stderr, and other implementations use stderr. Submitted by: Arne Dag Fidjestøl <adf@idi.ntnu.no>
* Handle the case where a negative offset in a regular expression matchtjr2002-05-161-0/+2
| | | | is larger than the number of lines in the overflow file.
* Correct synopsis and usage(): pattern arguments are not optional.tjr2002-05-162-2/+2
|
* More consistancy. file system > filesystemtrhodes2002-05-1616-21/+21
|
* Add the SUSv3 -l option to at. This is an alias for atq. Allow job idstjr2002-05-163-6/+62
| | | | | | | to be specified on the command line for which information should be reported. Submitted by: Joe Halpin <joe.halpin@attbi.com> Reviewed by: mike
* Report errors properly if wait() fails.fanf2002-05-151-1/+2
| | | | | | PR: 30543 Approved by: dwmalone (mentor) MFC after: 3 weeks
* Upgrade unifdef:fanf2002-05-154-545/+997
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * It now knows about the existence of #elif which would have caused it to produce incorrect results in some situations. * It can now process #if and #elif lines according to the values of symbols that are specified on the command line. The expression parser is only a simple subset of what C allows but it should be sufficient for most real-world code (it can cope with everything it finds in xterm). * It has an option for printing all of the symbols that might control #if processing. The unifdefall script uses this option along with cpp -dM to strip all #ifs from a file. * It has much larger static limits. * It handles nested #ifs much more completely. There have also been many style improvements: KNF; ANSI function definitions; all global stuff moved to the top of the file; use stdbool instead of h0h0bool; const-correctness; err(3) instead of fprintf(stderr, ...); enum instead of #define; commentary. I used NetBSD's unifdef as the basis of this since it has received the most attention over the years. PR: 37454 Reviewed by: markm, dwmalone Approved by: dwmalone (mentor) MFC after: 3 weeks
* Build the asa(1) utility.tjr2002-05-151-0/+1
| | | | | PR: 36130 Reviewed by: mike
* #include <unistd.h> for getopt() and friends.tjr2002-05-151-0/+1
| | | | | PR: 36130 Approved by: mike
* Use getopt() to reject options (asa has none), and to the "--" end of optionstjr2002-05-152-21/+38
| | | | | | | | marker. Exit non-zero if we cannot open one of the input files. Update standards conformance and exit status statements in manual page. PR: 36130 Approved by: mike
* Remove __P,tjr2002-05-151-7/+3
| | | | | | | | | Don't prototype main(), C89-style function declarations, char **argv -> char *argv[] for main() PR: 36130 Approved by: mike
* style(9): remove space between function name and opening parentheses,tjr2002-05-151-23/+21
| | | | | | | | sort variables, NULL is the null-pointer constant, remove unnecessary braces. PR: 36130 Approved by: mike
* Add the POSIX.2 asa utility, which interprets FORTRAN carriage-controltjr2002-05-153-0/+221
| | | | | | | | characters. PR: 36130 Approved by: mike Obtained from: NetBSD
* o Clean up tmp file usage a little by using mkstemp(3) instead ofgreen2002-05-141-5/+6
| | | | | | | mktemp(3). It would be amazingly unlikely, but the former method could result in a symlink attack. A better solution would use ${TMPDIR}, though. o Make sed not overwrite old backup files with no warning.
* Fix a "tiny and squeeby and little" markup mistake.jmallett2002-05-141-1/+1
| | | | Submitted by: fenner
* Make a link from fr_FR.ISO8859-1 to fr_FR.ISO8859-15.dwmalone2002-05-131-0/+5
| | | | Submitted by: wollman
* If we can't change the scheduling priority, warn but still executetjr2002-05-131-3/+3
| | | | | | | | the requested utility. This is how nice(1) traditionall behaved, and the behaviour required by SUSv3 and POSIX.2 UPE. Submitted by: Peter Avalos <pavalos@theshell.com> (partially) Reviewed by: mike
* Support the SUSv3 -n option and the "--" end of options marker.tjr2002-05-122-51/+61
| | | | | | | | | Replace "command" with "utility" in the manual page & source to be more consistent with the terminology used in the standard, and to hint that shell builtin commands won't work. Submitted by: Peter Avalos <pavalos@theshell.com> (partially) Approved by: mike
* Added new bsd.incs.mk which handles installing of header filesru2002-05-121-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | via INCS. Implemented INCSLINKS (equivalent to SYMLINKS) to handle symlinking include files. Allow for multiple groups of include files to be installed, with the powerful INCSGROUPS knob. Documentation to follow. Added standard `includes' and `incsinstall' targets, use them in Makefile.inc1. Headers from the following makefiles were not installed before (during `includes' in Makefile.inc1): kerberos5/lib/libtelnet/Makefile lib/libbz2/Makefile lib/libdevinfo/Makefile lib/libform/Makefile lib/libisc/Makefile lib/libmenu/Makefile lib/libmilter/Makefile lib/libpanel/Makefile Replaced all `beforeinstall' targets for installing includes with the INCS stuff. Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS, and for compatibility with NetBSD. Similarly for INCOWN, INCGRP, and INCMODE. Consistently use INCLUDEDIR instead of /usr/include. gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes were only lightly tested due to the missing contrib/libstdc++-v3. I fully tested the pre-WIP_GCC31 version of this patch with the contrib/libstdc++.295 stuff. These changes have been tested on i386 with the -DNO_WERROR "make world" and "make release".
* Fixed 5 style bugs in VCS ids.bde2002-05-121-5/+7
|
* Finish converting the rest of the function declaration and prototypesmike2002-05-122-17/+17
| | | | to ANSI C. Use new source ID scheme.
* Fixed printing the the strip binary's name in error messages.bde2002-05-121-1/+1
|
* To perform even basic error checking, one must have an exit code thatbsd2002-05-122-4/+8
| | | | | | | | indicates that not everything worked as expected. Exit non-zero if we timed out while transmitting or receiving a file or if the file did not exist, etc. MFC After: 3 days (re@ willing)
* Add support for stripping non-native object files by using anmarcel2002-05-111-1/+5
| | | | | | environment variable that specifies the name of the strip(1) program to use. The envvar is "STRIPBIN". The more natural choice would be "STRIP", but that one is taken already.
* unbreak build:alfred2002-05-112-6/+2
| | | | | K&R style main() makes gcc emit a warning about missing prototypes so switch to ANSI.
* #include <stdlib.h> for exit(3) prototype.jedgar2002-05-111-0/+1
|
* BWK awk appears to work for world builds just fine now. We want to makeobrien2002-05-101-2/+0
| | | | | sparc64 the same as the other platforms -- so do it by moving the other platforms toward the sparc64.
OpenPOWER on IntegriCloud