tls
54aef6aada
Rename "csh.a" (the appendix of the document) to csh.ap: the .a suffix
...
is a bit of a nuisance when using cvs import and export and, of course,
clashes with .a for library archive as well.
2007-10-18 18:26:31 +00:00
ragge
8b19d01fcd
Needs errno.h if !gcc.
2007-09-15 14:33:05 +00:00
christos
b79c2ef26a
no need to have cshbool; just make them int
2007-07-16 18:26:09 +00:00
christos
ec01a4a425
PR/36650: Michael van Elst: Get rid of bool, because csh uses bool as a small
...
int.
2007-07-16 14:07:00 +00:00
dogcow
593a9183f0
Rename bool -> cshbool; despite the name, bool actually holds values other
...
than 0 or 1. Fixes PR/36650.
2007-07-16 02:26:50 +00:00
dogcow
7b060c43f2
exposure of bool elsewhere in the code requires the addition of stdbool;
...
in addition, proc.c cleverly has a variable that was initially defined "int",
but had in the actual declaration "bool". oops.
2007-07-10 00:30:23 +00:00
msaitoh
8ce1f4fff2
fix typos
2007-04-29 20:23:34 +00:00
matt
271dc0c3c3
No functional changes. Cleanup time printing code so it can be used
...
elsewhere in the tree.
2007-02-24 21:29:13 +00:00
christos
88e26c5a37
sprinkle volatile
2006-10-15 23:57:21 +00:00
mrg
334f3f5949
apply a little -O0 with GCC4 and vax...
2006-07-01 05:54:35 +00:00
christos
a7679aa75e
Fix two uninitialized variables with XXX: GCC.
2006-05-14 01:05:42 +00:00
christos
2701e5b9be
Coverity CID 3330: Initialize uninitialized variable.
2006-05-13 21:22:32 +00:00
christos
78b76e5792
Coverity CID 3331: Remove impossible test.
2006-05-13 21:18:57 +00:00
mrg
4d375f236f
rename exp2() to csh_exp2(). (bah, we don't even have an exp2())
2006-05-10 21:14:48 +00:00
snj
a640fe8c43
It's "its."
2006-04-24 19:00:29 +00:00
christos
0346684a3d
save the home directory.
2006-04-05 23:10:16 +00:00
christos
0c6d11b6a4
Coverity CID 2736: Remove 16 bit int compat code.
2006-03-21 16:46:44 +00:00
christos
3cf8c179a3
Coverity CID 1763: Plug memory leak.
2006-03-18 07:09:08 +00:00
christos
e889898c95
Coverity CID 1766: Plug memory leak.
2006-03-18 07:02:16 +00:00
christos
f3ffb9c969
Coverity CID 1760: Plug memory leak.
2006-03-18 06:54:46 +00:00
christos
4d7c6251da
Coverity CID 1228: protect against calling close with negative value.
2006-03-18 06:29:21 +00:00
christos
dcfc467f4d
Coverity CID 872: Possible NULL deref.
2006-03-18 06:24:26 +00:00
christos
5653b43bfd
Coverity CID 1226: Remove bogus close call.
2006-03-17 22:48:10 +00:00
christos
1006977549
Coverity CID 1324: Check adrof return; not really possible.
2006-03-17 22:38:44 +00:00
christos
b807e41c56
Coverity CID 1762. Fix resource leak.
2006-03-17 22:24:28 +00:00
christos
94f9c01465
Coverity CID 610: Dead code
2006-03-17 22:20:31 +00:00
dmcmahill
3ebb7ce790
Correct a check for an index being in bounds for a static array.
2006-03-17 00:02:30 +00:00
christos
6310b59691
sprinkle a little const, and now everything compiles with WARNS=3
2005-06-26 19:10:48 +00:00
xtraeme
06bca8b1ce
Kill __P().
2005-02-17 16:07:53 +00:00
christos
d12e6436f9
Don't forget to FIOCLEX the internal copies of stdout,stderr,stddiag when
...
we invoke a subshell. Otherwise the executed command gets invoked with
17,18,19 open.
2004-09-28 16:07:01 +00:00
christos
287d684b47
Deal with RESCUE
2004-08-19 22:31:38 +00:00
christos
626d1a4171
Keep track of the while level, when popping loops because of a breaksw.
...
This is nasty...
2004-05-13 15:25:58 +00:00
christos
d24b172c21
avoid overflow in strcpy.
2004-05-10 19:11:31 +00:00
jschauma
9bb0acaf30
The correct syntax for csh's pushd with a numeric argument is
...
pushd +n
not
pushd n
2004-04-20 01:43:03 +00:00
wiz
ae25ed4085
Document rlimit sbsize; case consistency; bump date.
2004-04-17 15:45:08 +00:00
christos
6acf809e53
understand rlimit sbsize
2004-04-17 15:40:12 +00:00
christos
c8fc596cbc
Simplify previous; if F_CLOSEM fails, just fall back doing the old thing.
...
Calling stderror here is not safe, because we might have not setjmp()'ed
yet.
2004-01-06 00:20:16 +00:00
jmmv
b635f565e7
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
...
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
christos
62a68c898b
use F_CLOSEM if it is available.
2004-01-05 23:12:30 +00:00
christos
9a77f16705
Handle breaksw inside while loop (from tcsh)
...
Really: test commits on new cvs binary.
2003-12-17 17:32:16 +00:00
lukem
130ab7336b
Rework how MAKEVERBOSE operates:
...
* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.
* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem
ddff99b7f4
rework to use the newer _MKMSGCREATE (et al) macros
2003-10-19 04:45:01 +00:00
lukem
046b9ab451
support MAKEVERBOSE
2003-10-19 00:14:16 +00:00
itojun
c747caaab9
make signal range check consistent.
2003-09-19 05:31:11 +00:00
agc
b5b2954259
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
lukem
a93ea220fc
Rework how dependency generation is performed:
...
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.
* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx
* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES
* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}
* Deprecate the (short lived) DEPENDSRCS
Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.
Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
lukem
d2fa162324
move ${DEPENDSRCS} target to after .include <bsd.*.mk>
2003-07-29 01:34:16 +00:00
lukem
eb51573bd7
Use ${DEPENDSRCS} as a target instead of .depend, now that
...
<bsd.dep.mk> builds .depend from .dep files.
2003-07-28 15:25:02 +00:00
wiz
3013c9b400
cpu -> CPU.
2003-07-14 08:58:12 +00:00
itojun
032ed69f9a
strlcpy
2003-07-12 13:23:55 +00:00
lukem
001c68bd94
Rename a large chunk of the make(1) variables which refer to a
...
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC
For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo
Document all of these in bsd.README.
This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
wiz
dcc13ddb7d
Some grammar and punctuation fixes from jmc@openbsd.
2003-05-01 13:50:58 +00:00
wiz
ef0b6f6662
Bump date for last.
2003-04-05 09:14:01 +00:00
fair
eb1f0e9546
Additional text & formatting for the csh "limit" command;
...
hopefully this satisfies PR 11658
2003-04-05 00:59:20 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
christos
3532c35bc6
use strtol() for better error handling in builtin kill (Peter Jeremy)
2003-02-08 19:40:30 +00:00
christos
a7c23d8731
remove maxitems limit (from Todd Miller)
2003-02-08 19:05:19 +00:00
perry
1f4ad37fe3
"Utilize" has exactly the same meaning as "use," but it is more
...
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-05 00:02:24 +00:00
kleink
b3df6303a9
Rename `sigset' locals to avoid symbol shadowing warning.
2003-01-16 09:38:37 +00:00
wiz
a2278794f4
descriptor, not decriptor.
2003-01-06 13:19:51 +00:00
pooka
732f4c9fa5
Add ${MACROS} to ${ROFF} usage to make output readable
...
from jbernard@mines.edu in misc/19685
2003-01-05 12:24:22 +00:00
provos
32b88027c7
use readlink with bufsize - 1; approved thorpej.
2002-10-19 20:33:17 +00:00
wiz
14dfaa4b03
New policy: New sentences start on a new line.
...
Patches by Robert Elz <kre at munnari oz au>, with minimal changes by me.
2002-09-25 15:18:36 +00:00
lukem
146a774973
Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
2002-08-19 09:56:00 +00:00
itojun
c3ca2a9ab6
calloc() arg mistake. it's (nelem, size). from openbsd
2002-08-12 02:37:26 +00:00
wiz
98c072db3b
Fix a typo in a comment. moritz@jodeit.org via OpenBSD.
2002-07-10 22:22:29 +00:00
wiz
1da7ff99f7
Since we have rlim_t, use it.
...
Approved by kleink.
2002-05-28 22:12:25 +00:00
wiz
1815854042
__STDC__ is always defined on NetBSD.
2002-05-25 23:29:16 +00:00
christos
971f33821d
% set verbose echo
...
% echo foo >& bar
% cat bar
guess what you get:
echo foo
foo
2002-03-08 17:15:30 +00:00
christos
5d5763b4f5
Fix:
...
% set N2=`echo 1; echo 2; \
? echo 3`
% echo $N2
1 2
so that
% echo $N2
1 2 3
2002-03-08 16:37:45 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
ross
0271045b3e
type in ^ directly, instead of \(ua which isn't in all the fonts
2002-02-06 12:51:13 +00:00
christos
d1fe293a6b
stderror does not return.
2002-01-30 20:53:33 +00:00
itohy
6ba4cdcf16
Fix problem where
...
% echo $20000000000
Segmentation fault (core dumped)
2002-01-30 07:02:01 +00:00
wiz
3ebcdc5e43
Whitespace nits.
2001-12-20 19:31:48 +00:00
christos
8c43d5ed6d
make sure that rlim_cur >= rlim_max in all the setrlimit(2) cases.
2001-12-17 16:38:12 +00:00
wiz
3fc2bda98b
Document set time variables, and the format strings recognized.
...
Based on the patch provided by Jonathan Perkins in PR 14465.
2001-12-12 13:10:44 +00:00
lukem
537f55c6b7
fix WARNS=2
2001-11-03 13:35:39 +00:00
wiz
98af901532
Whitespace, punctuation fixes. Sort sections.
2001-10-17 21:50:57 +00:00
wiz
8e36d79b4f
Use setprogname. Patch by Petri Koistinen.
2001-09-16 12:20:33 +00:00
wiz
b771e65ba1
ANSIfication and KNF improvements by Petri Koistinen in bin/13689,
...
with some fixes by me.
2001-09-14 14:03:59 +00:00
wiz
0a600be867
receive, not recieve
2001-06-12 15:17:10 +00:00
fair
7f36bd20e2
Add references to getrlimit(2) and setrlimit(2) under the csh built-in
...
"limit" command, so as to more completely document the workings of this
command, per PR 11658.
2001-03-16 08:45:33 +00:00
christos
5aaa548267
echo;echo;echo; should echo
2001-03-14 18:01:22 +00:00
christos
51b56986d6
eliminate nested extern decls.
2001-01-06 23:56:26 +00:00
simonb
39096410f1
Need alvec global variable now.
2000-12-14 00:13:07 +00:00
scw
a1dfcb96e7
Sprinkle some `extern' qualifiers for initialised globals.
2000-12-13 22:29:41 +00:00
lukem
091dffc1a7
fix borken Xr
2000-11-07 01:45:04 +00:00
christos
12bd7d8870
Correct stupid cast problem. Pointed out by simon burge.
2000-11-03 02:27:35 +00:00
christos
e5dfea2ff4
Avoid turning into a random file writing tool when using here-doc's.
...
Reported to BUGTRAQ by proton <proton@ENERGYMECH.NET>.
2000-10-31 16:53:10 +00:00
is
dde594130e
Format string auditing by Bill Sommerfeld.
2000-10-08 09:33:31 +00:00
ad
5b09090e8e
insure -> ensure
2000-10-05 12:35:33 +00:00
christos
3d0237efed
fix globbing problem when importing $PATH from environment. Reported by
...
Michael Shalayeff.
2000-09-04 17:48:14 +00:00
christos
0bf6fd0c59
decouple us from stdio's BUFSIZ and boost BUFSIZE to 4K
2000-05-31 22:48:44 +00:00
mason
fccb8467cd
Improved style: "For definiteness" becomes "For example".
2000-05-21 00:48:45 +00:00
tron
64aaf6d18b
Avoid segmenation fault if an external command is invoked in parse only
...
mode. Problem noted by Josh Lynch PR bin/8732.
1999-11-02 19:35:44 +00:00
bouyer
d406538de6
xref sysctl(8) (for proc.<pid>.rlimits)
1999-09-28 14:54:41 +00:00
hubertf
c684000231
Document csh's -m switch.
...
Patch submitted in PR 5802 by Greg A. Woods <woods@planix.com>
1999-07-30 01:08:12 +00:00
kleink
cb603a5d83
Remove a bogus whitespace match in the builtin kill(1)'s `-s' parsing;
...
noticed by Chris Demetriou.
1999-05-19 14:37:05 +00:00
cgd
75f8cf07ab
fix incorrect operation caused by the previous checkin.
1999-05-09 00:00:20 +00:00