gad
cd436d6b80
Add a '-v' option to `env', to make it easier to discover exactly what steps
...
it is doing, and what order it does them. This will be much more useful as
more options are added.
Approved by: re (blanket `env')
2005-06-20 03:06:54 +00:00
alfred
5f6df97a58
Decode chroot(2) args.
...
Approved by: re
2005-06-14 21:51:08 +00:00
ru
19aa3916e2
Markup and wording fixes.
...
Approved by: re (blanket)
2005-06-14 11:50:53 +00:00
des
d8145c4b62
Don't free(sock) before it's even allocated.
...
Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de>
MFC after: 1 week
2005-06-10 06:36:03 +00:00
des
2bb8de20fe
Remove kludges intended to support src trees with partial obj trees.
...
Discussed with: ru
2005-06-10 06:12:53 +00:00
csjp
c7b82f2db4
Append a newline character to the usage string.
...
MFC after: 3 days
2005-06-05 23:49:35 +00:00
gad
1d64a7af31
Use the ki_udata field that was recently-added to kinfo_proc, instead of
...
stealing ki_spare[0] to hold a pointer.
2005-06-04 23:40:09 +00:00
eivind
4587fc275c
Back out revision 1.19 and 1.20 until I find mental clarity to deal with
...
issues bde pointed out.
2005-06-01 20:34:06 +00:00
brd
785e5d3c15
Add myself as a new committer.
...
Approved by: ceri (mentor)
2005-06-01 18:29:50 +00:00
maxim
e8b16ba229
o Teach login(1) to respect "hushlogin" and "nocheckmail" attributes
...
defined in user's $HOME/.login_conf.
PR: bin/75001
Submitted by: Rostislav Krasny
MFC after: 2 weeks
2005-06-01 12:23:06 +00:00
obrien
e9f9f6481f
Don't use a patch w/in /usr/src. Programmatically change files when needed.
2005-05-31 22:16:49 +00:00
stefanf
e73616b51f
Move #ident into #if 0.
2005-05-31 20:00:29 +00:00
charnier
6cd34f4d90
Reduce compiler warning: variable might be used uninitialized, by giving
...
an initial value.
2005-05-29 16:04:46 +00:00
charnier
00bccc99ec
Move variable initialization to reduce compiler warning.
2005-05-29 15:52:48 +00:00
charnier
45f96a1a02
Reduce compiler warning: variable might be used uninitialized, by giving
...
an initial value.
2005-05-29 15:49:53 +00:00
charnier
3d484d1c7a
Move FreeBSD Id outside of copyright. Initialize variable.
2005-05-29 15:47:31 +00:00
rwatson
f5b0199972
Modify vmstat(8)'s domem() routine, which is responsible for extracting
...
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.
2005-05-29 13:40:00 +00:00
rwatson
8cf16b63df
dd a '-n' option to ministat, which causes it to display only summary
...
statistics, not graph and statistical test output. Useful for automated
processing.
2005-05-27 17:52:56 +00:00
eivind
bf8bf9051e
Remove an errno reset that became unnecessary.
...
Noticed by: juli
2005-05-26 22:49:08 +00:00
alfred
67f16567dc
decode utimes, lutimes, futimes, chflags, lchflags.
2005-05-26 22:49:06 +00:00
eivind
64e1569cd3
Document a couple of gotchas.
2005-05-26 22:30:12 +00:00
eivind
1a8a2d84cd
We are past 4.4BSD - use our new-found stat flags for pipes and fifos.
2005-05-26 22:14:37 +00:00
alfred
2754f60f30
decode mkdir args.
2005-05-26 20:06:57 +00:00
keramida
dd13f28b17
Interlink systat(1), iostat(8) and vmstat(8) through their SEE ALSO
...
sections, so that users of one can learn about the others easily.
2005-05-26 17:54:16 +00:00
thompsa
572561b265
Add myself to the calendar.
...
Approved by: bms (mentor)
2005-05-26 03:21:16 +00:00
harti
ec3ee28e7c
Under certain conditions the condition parser would go one past end of
...
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.
2005-05-25 16:06:14 +00:00
harti
0a769c1e2e
Document why there is a dependency of certain object files from the
...
Makefile.
Requested by: ru
2005-05-25 08:46:31 +00:00
csjp
377408df64
If sysctlbyname fails for kernel related reasons, tag the errno
...
string to the end of the error message. I think we used errx()
there when we really wanted an err().
MFC after: 1 week
2005-05-24 23:42:09 +00:00
harti
dd5f450e83
The caller of Var_Value() should not change the variable value. Make
...
this clear by constifying the return value.
Obtained from: DragonFlyBSD
2005-05-24 16:05:51 +00:00
harti
79613308dc
Get rid of the third argument to Var_Value() the pointer it pointed
...
to has always been set to NULL for some time now.
Obtained from: DragonFlyBSD
2005-05-24 15:58:35 +00:00
harti
910dc606b9
Make shell.o dependend on the Makefile just in case someone changes
...
the default shell in the Makefile.
2005-05-24 15:48:10 +00:00
harti
145a7e51b4
Bump the warning level to 6.
2005-05-24 15:46:50 +00:00
harti
def2e7bba0
Fix a 64-bit warning by casting an int64_t to intmax_t and printing it
...
with %jd.
2005-05-24 15:45:11 +00:00
harti
30f40a9f33
Factor out ProcExec() into its own file and rename it to Proc_Exec() for
...
consistency with the rest of make.
Obtained from: DragonFlyBSD (except for the rename)
2005-05-24 15:41:34 +00:00
harti
a5cd5bc554
Factor out all the .SHELL parsing related stuff into its own file and
...
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)
2005-05-24 15:30:03 +00:00
harti
b6ff4ff920
Use the name of the default shell instead of a numeric index to select
...
the default shell.
Idea from: DragonFlyBSD
2005-05-24 13:19:40 +00:00
harti
6c1f15aa0b
Another shell attribute 'unsetenv' that will cause to unsetenv("ENV")
...
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.
2005-05-24 13:14:24 +00:00
harti
e6576c2ddf
Describe the meta and builtins attributes for the .SHELL special
...
target.
2005-05-24 10:59:08 +00:00
harti
8cf013ca66
Describe the -x option and the .WARN pseudo-target.
2005-05-24 10:55:00 +00:00
harti
37b9e8f42f
Before doing any parsing parse the builtin shell specifications and
...
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.
2005-05-24 09:14:46 +00:00
harti
cd8de662c8
Allow the .SHELL target to specify the list of shell meta characters and
...
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.
2005-05-24 07:45:49 +00:00
harti
6e1ae33f12
Make the ArgArray_Init() function visible to the rest of make.
...
It will soon be needed for the .SHELL parsing code.
2005-05-23 13:27:52 +00:00
ru
8b6774c605
Sync program's usage() with manpage's SYNOPSIS.
2005-05-21 10:14:11 +00:00
ru
0491ba1f63
Sync program's usage() with manpage's SYNOPSIS.
2005-05-21 09:55:10 +00:00
harti
e6b2d317a9
Get rid of global variables for argument vectors produced by brk_string()
...
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
2005-05-18 14:50:35 +00:00
keramida
dec56f1548
(1) Revert unnecessary indentation changes I committed as part of the
...
last version and (2) remove a disabled debugging fprintf() that I
accidentally committed here.
Noticed by: simon (2)
2005-05-18 13:42:51 +00:00
keramida
0f9725e09b
Merge the CPU and WCPU columns in a single %6.2f column, add a new 'C'
...
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)
2005-05-18 13:30:08 +00:00
harti
94c62408e0
Get rid of the ReturnStatus obscuration that was anyway used only
...
in two places. While here don't bother returning anything from
Lst_Replace - nobody ever checks the return code.
Suggested by: jmallet
2005-05-18 06:50:39 +00:00
kan
dbfc528c1e
Unbreak r1.11 by delhij. Blind change from unsigned to signed char
...
pointer causes problems with sign extension and leads to compress(1)
dumping core on any non-trivial incoming data.
2005-05-18 05:24:08 +00:00
ru
7727dbb6af
Add temporary patches to make one-true-awk respect locale's collating order
...
in [a-z] bracket expressions, until a more complete fix (like handing BREs)
is ready.
Prodded by: ache
OK'ed by: tjr
2005-05-17 14:54:33 +00:00