summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Back out revision 1.19 and 1.20 until I find mental clarity to deal witheivind2005-06-011-1/+7
| | | | issues bde pointed out.
* Add myself as a new committer.brd2005-06-011-0/+1
| | | | Approved by: ceri (mentor)
* o Teach login(1) to respect "hushlogin" and "nocheckmail" attributesmaxim2005-06-011-2/+7
| | | | | | | | defined in user's $HOME/.login_conf. PR: bin/75001 Submitted by: Rostislav Krasny MFC after: 2 weeks
* Don't use a patch w/in /usr/src. Programmatically change files when needed.obrien2005-05-312-25/+3
|
* Move #ident into #if 0.stefanf2005-05-319-18/+9
|
* Reduce compiler warning: variable might be used uninitialized, by givingcharnier2005-05-291-3/+5
| | | | an initial value.
* Move variable initialization to reduce compiler warning.charnier2005-05-291-2/+2
|
* Reduce compiler warning: variable might be used uninitialized, by givingcharnier2005-05-292-0/+2
| | | | an initial value.
* Move FreeBSD Id outside of copyright. Initialize variable.charnier2005-05-291-2/+4
|
* Modify vmstat(8)'s domem() routine, which is responsible for extractingrwatson2005-05-291-7/+38
| | | | | | | malloc(9) statistics from kernel memory or a kernel coredump, to catch up with recent changes to adopt per-CPU malloc(9) statistics. The new routines walk the per-CPU statistics pools and coalesce them for presentation to the user.
* dd a '-n' option to ministat, which causes it to display only summaryrwatson2005-05-271-9/+17
| | | | | statistics, not graph and statistical test output. Useful for automated processing.
* Remove an errno reset that became unnecessary.eivind2005-05-261-1/+0
| | | | Noticed by: juli
* decode utimes, lutimes, futimes, chflags, lchflags.alfred2005-05-261-0/+10
|
* Document a couple of gotchas.eivind2005-05-261-1/+7
|
* We are past 4.4BSD - use our new-found stat flags for pipes and fifos.eivind2005-05-261-6/+1
|
* decode mkdir args.alfred2005-05-261-0/+2
|
* Interlink systat(1), iostat(8) and vmstat(8) through their SEE ALSOkeramida2005-05-262-0/+2
| | | | sections, so that users of one can learn about the others easily.
* Add myself to the calendar.thompsa2005-05-261-0/+1
| | | | Approved by: bms (mentor)
* Under certain conditions the condition parser would go one past end ofharti2005-05-251-1/+1
| | | | | | the string. Until now this caused no harm, because the buffer code used to tack two NULs onto buffers. With the new, soon to come, parsing code this isn't the case anymore in all cases, so fix this.
* Document why there is a dependency of certain object files from theharti2005-05-251-0/+6
| | | | | | Makefile. Requested by: ru
* If sysctlbyname fails for kernel related reasons, tag the errnocsjp2005-05-241-1/+1
| | | | | | | string to the end of the error message. I think we used errx() there when we really wanted an err(). MFC after: 1 week
* The caller of Var_Value() should not change the variable value. Makeharti2005-05-245-14/+15
| | | | | | this clear by constifying the return value. Obtained from: DragonFlyBSD
* Get rid of the third argument to Var_Value() the pointer it pointedharti2005-05-248-65/+26
| | | | | | to has always been set to NULL for some time now. Obtained from: DragonFlyBSD
* Make shell.o dependend on the Makefile just in case someone changesharti2005-05-241-1/+1
| | | | the default shell in the Makefile.
* Bump the warning level to 6.harti2005-05-241-1/+1
|
* Fix a 64-bit warning by casting an int64_t to intmax_t and printing itharti2005-05-241-1/+2
| | | | with %jd.
* Factor out ProcExec() into its own file and rename it to Proc_Exec() forharti2005-05-244-123/+193
| | | | | | consistency with the rest of make. Obtained from: DragonFlyBSD (except for the rename)
* Factor out all the .SHELL parsing related stuff into its own file andharti2005-05-247-477/+588
| | | | | | | rename the function to be consistent with the naming scheme in the rest of make. No functional changes. Obtained from: DragonFlyBSD (idea and most of shell.h)
* Use the name of the default shell instead of a numeric index to selectharti2005-05-243-8/+4
| | | | | | the default shell. Idea from: DragonFlyBSD
* Another shell attribute 'unsetenv' that will cause to unsetenv("ENV")harti2005-05-242-8/+18
| | | | | | before executing the shell. Until now this was done when the default shell was the ksh. This failed if the default shell was sh or csh and the user switched to ksh.
* Describe the meta and builtins attributes for the .SHELL specialharti2005-05-241-0/+14
| | | | target.
* Describe the -x option and the .WARN pseudo-target.harti2005-05-241-0/+33
|
* Before doing any parsing parse the builtin shell specifications andharti2005-05-243-178/+204
| | | | | | | | | | | | | | | | | | | | set the current shell to DEFSHELL. Put all these specifications into a list. Add user specified new shells to this list. If the user just selects one of the already know shells just pick the right one off the list. This let's one do something like: # Full specification of the user's shell. This also selects the shell. .SHELL: name=myshell path=/somewhere/foo echo=loud ... FOO != bar # use myshell here .SHELL: name=sh BAR != baz # use /bin/sh here .SHELL: name=myshell # no need for full spec here. # continue to use the user's special shell.
* Allow the .SHELL target to specify the list of shell meta characters andharti2005-05-241-289/+305
| | | | | | | | | | | | | | the list of shell builtins. Both of these are needed for the compat mode where make directly executes commands if the command line contains neither a shell meta character nor a shell builtin. The list of builtins is not changed, but csh has '@' added as a meta-character. Initialize the default shell by parsing a string as one would specify to the .SHELL target. So we get rid of the CShell clone of struct Shell which just contained const char * where struct Shell had char *. Add a debugging function for dumping a parsed shell description to stdout.
* Make the ArgArray_Init() function visible to the rest of make.harti2005-05-232-1/+2
| | | | It will soon be needed for the .SHELL parsing code.
* Sync program's usage() with manpage's SYNOPSIS.ru2005-05-211-1/+1
|
* Sync program's usage() with manpage's SYNOPSIS.ru2005-05-2139-61/+62
|
* Get rid of global variables for argument vectors produced by brk_string()harti2005-05-187-211/+263
| | | | | | | | introduce a struct that holds all the information about an argument vector and pass that around. Author: Max Okumoto <okumoto@ucsd.edu> Obtained from: DragonFlyBSD
* (1) Revert unnecessary indentation changes I committed as part of thekeramida2005-05-181-11/+9
| | | | | | | last version and (2) remove a disabled debugging fprintf() that I accidentally committed here. Noticed by: simon (2)
* Merge the CPU and WCPU columns in a single %6.2f column, add a new 'C'keramida2005-05-181-17/+23
| | | | | | | | | | | command that toggles between the two and update the ORDER_PCTCPU() macro to sort correctly by the visible "cpu" value. This saves 6 more columns in 80-column terminals, making things a lot better for the COMMAND column. Tested on: i386, sparc64 (panther), amd64 (sledge) Approved by: davidxu (in principle)
* Get rid of the ReturnStatus obscuration that was anyway used onlyharti2005-05-188-45/+32
| | | | | | | in two places. While here don't bother returning anything from Lst_Replace - nobody ever checks the return code. Suggested by: jmallet
* Unbreak r1.11 by delhij. Blind change from unsigned to signed charkan2005-05-181-2/+2
| | | | | pointer causes problems with sign extension and leads to compress(1) dumping core on any non-trivial incoming data.
* Add temporary patches to make one-true-awk respect locale's collating orderru2005-05-174-0/+103
| | | | | | | | in [a-z] bracket expressions, until a more complete fix (like handing BREs) is ready. Prodded by: ache OK'ed by: tjr
* Correct the script name to be "zless.sh". This avoids an extra cp/chmodru2005-05-171-1/+1
| | | | (from the sys.mk rule) while still installing it under the "zless" name.
* Add a zless script which invokes less using the lesspipe script. This isdes2005-05-172-3/+11
| | | | | | | | | similar to the zmore script that comes with gzip (and in fact, in most Linux distros, zless is a symlink to that very same zmore script) but has the advantage that you get the correct file name on the less status line, and can use :n and :p to navigate back and forth between multiple files. MFC after: 1 week
* Handle presumably uncompressed files with cat; exec the handlers.des2005-05-171-3/+9
| | | | MFC after: 1 week
* Hardcode username to 8 characters. This makes top(1) output sane whenobrien2005-05-161-7/+7
| | | | | | | | | there are users on the system (even if not running a single process) with a login > 8 chars. I'm not all that happy limiting the username width like this, but it restores sanity to top(1) output. Discussed with: keramida
* Make <runefile.h> internal to libc.ru2005-05-162-2/+2
| | | | Suggested by: phantom
* o Add option -n. The -n option takes a count and breaks the linemarcel2005-05-153-31/+90
| | | | | | | | | after that many values have been printed. The line length is not considered anymore. o Add option -x. The -x option will cause the byte values to be printed in hexadecimal instead of decimal. o Bump WARNS to 6. o Update the manpage accordingly.
* Reindent and improve style(9) comformance.marcel2005-05-151-26/+26
|
OpenPOWER on IntegriCloud