summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* xargs.c,v 1.33 broke the upgrade path from old versions of 4.x and 5.0.ru2002-05-102-1/+13
|
* Cast the uc_mcontext member to regcontext *, not the whole ucontext_t.tg2002-05-101-2/+3
| | | | | PR: 35449 Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
* Fix wrong bitmask.tg2002-05-101-3/+3
|
* According to POSIX, exit status must be 127 if the requested utility was nottjr2002-05-102-5/+15
| | | | | | | | found, 126 if the execvp() failed for any other reason. Similar to rev. 1.6 to src/usr.bin/env/env.c Reviewed by: mike
* Reimplement the who(1) utility to add some features required by SUSv3:tjr2002-05-092-122/+270
| | | | | | | | | | | -H option (show column headings), -T (show mesg(1) state), -m (same as "am I"), -u (show idle time), -q (quick mode; list names in columns). PR: 36128 Reviewed by: mike
* Replace /kernel with /boot/kernel/kernel.joe2002-05-098-16/+16
| | | | | PR: docs/37757 Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
* Back out part of previous commit - K&R doesn't have const.des2002-05-091-1/+1
|
* Make _msgout take a const char * rather than a char *.des2002-05-081-2/+2
| | | | Sponsored by: DARPA, NAI Labs
* Change whtespace indent in format string to fit new output form ofkuriyama2002-05-081-2/+2
| | | | | | timestamp. Reviewed by: markm
* These files haven't been used in a while.des2002-05-083-480/+0
|
* Use libutil and libypclnt for all passwd manipulation and NIS needs.des2002-05-0811-1216/+317
| | | | Sponsored by: DARPA, NAI Labs
* Really include <paths.h> (it seems it was brought in indirectly)des2002-05-081-0/+1
|
* Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits.des2002-05-085-45/+18
| | | | Sponsored by: DARPA, NAI Labs
* Oops, update usage() to have -i.jmallett2002-05-071-2/+2
|
* Add handling for any nil-length string passed to -i for the backup extension.jmallett2002-05-072-2/+21
| | | | Add a note that this is kinda-sorta dangerous to the manual page.
* Un-shadow the `fname' variable.jmallett2002-05-071-9/+9
|
* Add a -i option to sed(1) to do inplace editing, to give us an alternative tojmallett2002-05-072-3/+77
| | | | | | | | | | | | | | | | | | Perl for such things. The key difference to Perl is that a backup extension *MUST* be specified, because on one hand it isn't recommended to have options which optionally take a parameter, and on the other hand, it'd be slightly unpleasent to implement proper handling for that. The difference between this and the version posted to developers@ is that it does handle multiple files in argv after the getopt(3) handling "correctly", in that the inplace editing-specific code has been moved out to a function, and that function is used beyond the first file in our linked list. This option has been documented as FreeBSD-specific in the manpage. Reviewed by: developers@ (got feedback from: des, fanf, sobomax, roberto, obrien) MFC after: 1 week
* Add myself.fanf2002-05-071-0/+1
| | | | Reviewed by: dwmalone (mentor)
* Make sure the file in Attic is really "dead".ru2002-05-071-91/+0
| | | | Problem found by: ken
* Affect the first of stdin, stdout and stderr that is attached to a terminal.tjr2002-05-062-17/+28
| | | | | | | | | | Write status information to stdout instead of stderr. Exit status when an error occurs musn't be 1, that is reserved for indicating that messages are disabled. These changes bring mesg(1) up to SUSv3 conformance. Reviewed by: mike
* -I and -J both set the same variable, replstr, to the string to replace withjmallett2002-05-061-0/+2
| | | | | a line of input, and both work differently, so prevent them from both being passed to xargs(1).
* - Properly initialize the count_win when the user turns the info windowmp2002-05-061-1/+4
| | | | | | | | | back on (and count_win is recreated). - Create info_win as the same size for all invocations. PR: 37552 Submitted by: Mark Valentine <mark@thuvia.demon.co.uk> MFC after: 1 week
* Fix make(1) behaviour regarding SysV-style substitution when given a niljmallett2002-05-051-0/+6
| | | | | | | | left-hand-side. PR: bin/5297 Submitted by: "Matthew Emmerton" <matt@gsicomp.on.ca> MFC after: 1 week
* Modify the -p implementation to use a user's locale, so they can respond tojmallett2002-05-052-13/+63
| | | | | | | | | | | | the prompt in their native language. Also make the prompt fit what POSIX asks for (?...). This should not affect use of -p with yes(1) [as every locale I know of matches 'y' as YESEXPR as well], but that's what -t is for anyway. -p is meant to be really used interactively. Submitted by: tjr, jmallett
* Fix a typo.jmallett2002-05-051-2/+3
| | | | | | Submitted by: Carl Schmidt <cschmidt@slackerbsd.org> Wrap an obscenely long line while I'm here.
* In an effort to make this utility easier to work with at a source level, movejmallett2002-05-051-141/+154
| | | | | | | | | | | | | | out the parse loop to a seperate function, and move local variables around as is needed. To keep the state of some variables and keep from having huge arg lists to functions, make a bunch global. Change use of err(3) in situations where malloc(3) will be setting errno to errx(3) since assuming malloc(3) sets errno is non-portable, and provides no more useful information in the context of FreeBSD. Submitted by: bde (err/errx), Carl Schmidt <cschmidt@slackerbsd.org> (some of the movement of the input loop to a function) Approved by: src/tools/regression/usr.bin/xargs
* Document the fact that at(1) is run through cron(8) and that this affectsasmodai2002-05-041-0/+14
| | | | | | the granularity of the at queue runs. Submitted by: mux
* Add myself.mini2002-05-041-0/+1
| | | | Approved by: alfred
* Grouping changes.jmallett2002-05-041-2/+2
| | | | Submitted by: Carl Schmidt <cschmidt@slackerbsd.org>
* Don't use pointers as booleans.jmallett2002-05-041-3/+3
|
* Replace calloc(3) with malloc(3), and set the tail of thejmallett2002-05-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | argument list to NULL, to terminate the arguments passed to execvp(2). Thanks to: bde (for pointing out some missing parens) And with apologies to Ozzy Osbourne: On his way to dinner It took him by surprise When an email from bde Said his code was full of lies Style (indentation) And his bracing were all wrong He casted to size_t When he should have cast to long I don't mind Single letter identifiers Unwrapped Line Over 80 chars Far over 80 chars Who can we get to send diffs We need Bruce D. Evans Shows you comparason to his We need Bruce D. Evans again
* Rename `eqrelval' which was renamed from `eqrel' to quiet a shadow warningjmallett2002-05-031-3/+3
| | | | | | | to `op' as suggested by Bruce, as this is used to store the operator between vl and vr. Submitted by: bde
* Fix a bug whereby we were getting ~0 and comparing it to maxsize, i.e. ifjmallett2002-05-031-1/+1
| | | | | | | s1 was 0 length, and replstr was 0 length, etc., we would end up subtracting one from zero and seeing if it was greater than the size_t (unsigned) var maxsize... This would cause us to return a string consisting of essentially only match, which is not the right behaviour if we have 0 length inpline.
* Move substitution out to a function, prerun(), and replace use of run() withjmallett2002-05-031-85/+78
| | | | | | | it. It handles everything (right now) that needs done before run(), except the -J case, because while that would be easy, I don't quite understand -J. Reviewed by: src/tools/regression/usr.bin/xargs
* Get rid of bogus holder for realloc(3).jmallett2002-05-031-6/+5
|
* Rewrite the loop that handles substitution in the -I case, and try to makejmallett2002-05-031-15/+75
| | | | | | | | | it easier to understand. Making it easy to understand isn't all that easy, so litter the code with comments so some other poor soul can come along some day and work on this if they see fit to do so. Avoid calling strlen(3) to check for a nil-string, when we can just check for *str=='\0'. Approved by: src/tools/regression/usr.bin/xargs/
* Rename `lflag' to `Lflag' to match the option's case.jmallett2002-05-031-6/+6
|
* Revert revision 1.22. I incorrectly modified the Berkeley identifiers.jmallett2002-05-031-3/+12
| | | | Requested by: bde, mike
OpenPOWER on IntegriCloud