Commit Graph

10258 Commits

Author SHA1 Message Date
dholland
1fc98979b6 Use pid_t for the result of fork and wait. PR 38031 from Ryan Stutsman. 2009-02-22 07:33:00 +00:00
yamt
99b23c11d2 on errors, output whatever we have before bailing out. 2009-02-20 15:28:21 +00:00
yamt
7abbdb7a0c -1 -> (size_t)-1 for return values of iconv. 2009-02-20 15:27:08 +00:00
yamt
288c135080 u_int32_t -> uint32_t 2009-02-20 15:25:31 +00:00
cube
723938ea23 Bump date. 2009-02-20 05:26:51 +00:00
cube
083c47ad52 Remove mentions that a kernel configuration file must support at least one
file-system because it's no longer true.
2009-02-20 05:22:59 +00:00
cube
46251c8d6e Ignore line starting with # in Makefile.${arch}. It might be valid make(1)
syntax to have a line that starts with # that is not comment, but well,
let's just say it's not valid syntax for Makefile.${arch}.

Breakage on a couple archs reported by he@.
2009-02-20 05:20:25 +00:00
njoly
2cbc1f6d44 Do not overwrite COPTS, but append to it. 2009-02-19 10:33:03 +00:00
wiz
73ff6fdf20 Mark up author with An and Aq. 2009-02-19 10:08:15 +00:00
christos
a5e73ebace adjust patch to current. 2009-02-18 21:06:47 +00:00
christos
ca9294c412 CID 5044: Protect against NULL deref. 2009-02-18 20:08:32 +00:00
christos
032602ef32 - long -> size_t
- don't allocate memory before the negative check is done CID 4722
2009-02-18 20:04:43 +00:00
christos
e60db6c82e coverity CID 515: Use assert. 2009-02-18 20:00:32 +00:00
yamt
314bfbb3be remove BUGS section. this has been changed to use arc4random while ago. 2009-02-18 13:42:06 +00:00
yamt
a95bc3c403 fix "make cleandir" 2009-02-18 13:26:15 +00:00
mrg
c68299d5ba link in fmt_scaled.c 2009-02-17 04:07:30 +00:00
mrg
4ee81f134c add mux.c to the link. 2009-02-17 04:03:18 +00:00
dogcow
06804711a0 Fix an embarrassing mistake regarding moving down log files. Reported by
(and fix included in) PR bin/40635 from Jukka Salmi.
2009-02-17 02:56:43 +00:00
wiz
4a8dbf1acb Add Xref to pmap(9), from Anon Ymous.
Prepare for HTML output.
2009-02-15 22:49:37 +00:00
dholland
606b73cdb5 Skip over the ":0" entries that gdm, kdm, and unpatched versions of xdm
(ours is patched to not do this) leave in utmp. PR 26168.

I'm doing this by testing for ^:[0-9] in the line field of utmp(x),
rather than by attempting to stat the device name corresponding to the
entry as in Martin's patch, because (1) no valid tty should ever have
a name beginning with a colon, and (2) this way we don't silently skip
over real ttys that should be there but for some reason have disappeared.

(I suppose this might conceivably fail to catch entries for displays
connected via XDCMP; however, ~nobody does that any more and XDCMP is
a security hole anyhow. If anyone's really concerned about this, let
me know.)

In the long run we should look into ways of getting "tty" messages to
users logged in with an X session and no terminal windows open, as
that's probably fairly common for the desktop.
2009-02-15 06:06:55 +00:00
enami
2c8977b0b4 Fix compiler warning. 2009-02-15 03:45:44 +00:00
cube
016c56ea2f - Allow substition of options values in the generated Makefile using the
syntax %OPTION%.
- Make it possible to specify a syntax version information in the Makefile.
- Bump version to 20090214.
2009-02-15 01:39:54 +00:00
abs
46ffce41c5 Build fdformat on a MACHINE_ARCH not MACHINE basis 2009-02-14 22:46:05 +00:00
cube
0367057be6 Error out if one f the mkxxx() prints an error. 2009-02-14 21:28:58 +00:00
uebayasi
febab96b71 Comment out CFLAGS+=-g. 2009-02-14 14:05:58 +00:00
abs
515e52158b Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
wiz
3ca38c6b62 Sort option descriptions, and options in usage.
Covers PR 40627.
2009-02-14 11:08:17 +00:00
uebayasi
a6533b8fed Comment out CFLAGS+=-g. 2009-02-13 16:02:05 +00:00
lukem
998789a8d9 this code isn't -Wsign-compare friendly -- drop the WARNS to 3. 2009-02-13 01:27:43 +00:00
christos
71735a83f7 add missing , 2009-02-11 19:22:22 +00:00
christos
26114345a6 don't print warnings about can't find termcap entry. 2009-02-11 19:10:08 +00:00
wiz
b58ce07c49 Fix typo in usage. 2009-02-11 06:42:31 +00:00
christos
cc146168bb forgot to commit this. 2009-02-11 03:04:52 +00:00
christos
bb0dd61478 Add RFC 2045 MIME Quoted-Printable support. 2009-02-10 23:06:31 +00:00
plunky
aead030e15 if HCI commands fail (CommandComplete status != 0) then indicate
ENODEV "Operation Not Supported by Device" rather than random errno.
2009-02-09 12:44:32 +00:00
sjg
55d9c66506 Update expected results to match recent changes! 2009-02-03 23:11:12 +00:00
mrg
e53a76c628 rework the main loop and handlers:
- open() and close() the file in the main loop
- pass the fd down into the handlers
- use _rtld_error() in ELFNAME(ldd)

this fixes PR#40543 and also makes error messages look better.
2009-02-03 03:01:02 +00:00
dsl
efe788379e Rename all the members of 'enum Token' to TOK_FOO.
Makes it rather more obvious wherethey belong - especially since
two of them were 'True' and 'False' (and not 1 and 0 either).
2009-01-30 23:07:17 +00:00
dsl
9c773fc1c6 Treat .ifdef ${foo} as .if defined(${foo}) not .if "${foo}" != "".
(and similarly for the other .ifxxx).
Do comparison against "" or 0 for .if "foo" and .if <numeric> directly
instead of faking up the operator string.
Rename error: to done: and use it for more exit paths.
Elucidate and correct some comments.

Fixes problems with makefiles that do:
.for var in var_1 var_2
.ifdef ${var}
...
which used to check whether var_1 was defined - because the .ifdef saw the
literal var_1, not a variable expansion due to the way .for loop variables
were substituted.
2009-01-30 22:35:10 +00:00
dholland
7f999162b5 Fix flagrantly wrong printf formats in compat strftime. 2009-01-29 09:03:04 +00:00
enami
ca3f8e6df1 Avoid infinite loop. 2009-01-29 07:48:39 +00:00
dsl
530cac2556 Allow for () in the argument to .ifdef et al.
Save/restore current values of global data across expression evaluation
to give ${foo:? ...} a change of working inside another .if.
2009-01-28 21:38:12 +00:00
wiz
c63e1c5ce5 Bump date for previous. 2009-01-28 09:11:16 +00:00
lukem
afa4cb0e7f Rework how reading keys functions so that key lookups from hash databases
works again.  (I accidentally broke that in rev 1.15)
Fixes problem noted by Masao Uebayashi.
2009-01-28 05:48:49 +00:00
lukem
1a5f8e0d09 update documentation to reflect reality:
* read mode supports -D for btree
* all modes support -U
2009-01-28 05:31:18 +00:00
christos
f6ce57fa5b fix typo. 2009-01-27 16:53:42 +00:00
christos
49d8963a92 we have memcpy and port.h needs it. 2009-01-27 16:22:58 +00:00
lukem
1742612d3c sign-compare fix for amd64 2009-01-25 14:07:18 +00:00
lukem
d4bbf23d28 sign-compare fixes 2009-01-25 14:06:00 +00:00
dsl
b294f6c2a3 Fix sense of MAKE_NATICE test. 2009-01-24 23:19:50 +00:00
dsl
4802ea584f Add #ifndef MAKE_NATIVE around __RCSID 2009-01-24 23:07:48 +00:00
skrll
51241d8bac Mention -c. Hi Matt. 2009-01-24 15:00:55 +00:00
dsl
97347d2cbb Fixes to includes of make_malloc.h to that it actually builds when
USE_EMALLOC is undefined.
Fixes earlier fixes :-)
2009-01-24 14:43:28 +00:00
cegger
9fde1a673e buildfixes for OSX:
- include <sys/types> for size_t
- progname is undeclared
- include <string.h> for string functions like strlen()
- include <errno.h> for errno
2009-01-24 13:06:16 +00:00
wiz
6942778bea Sort sections. Fix typo (last line). 2009-01-24 13:02:33 +00:00
cegger
e6227c556c buildfix: remove RCSID. It conflicts with the definition in the .c files. 2009-01-24 12:59:51 +00:00
dsl
4fb693c12c Move the bmake_malloc() functions into their own .c and .h files.
Include instead of make.h in a few places.
2009-01-24 11:59:39 +00:00
dsl
5d04927c08 Correct the definition of the :? modifier - in particular the modifier
applies to the variable name, not its value!
Remove the set of examples that were recently added that failed to
explain why some worked and some didn't.
Add a not to the compatability section about the change in .for loop
substitution post 5.0.
Add a BUGS section.
XXX the BUGS section needs more entries :-)
2009-01-24 11:56:41 +00:00
dsl
a1e84ff783 Don't cast 'time_t' to 'void *' and back it will lose precision. 2009-01-24 10:59:09 +00:00
dsl
86df0d691f Sprinkle some const.
In particular for Lst_Find() and Lst_FindFrom().
Remove some unneeded casts and some now-undeeded UNCONST().
2009-01-23 21:58:27 +00:00
dsl
0cbb4ab551 Change 'ClientData' to 'void *' so that relevant parameters can
be made 'const void *'.
2009-01-23 21:26:30 +00:00
dsl
d6c81d7cf1 There is no point in saving the last character of a NUL-terminated
string in order to overwrite with a NUL, then restore the original value!
Remove and simplify the CondDoFoo() functions.
2009-01-23 20:22:50 +00:00
christos
e350c8475d Don't hard-code AMD_SUPPORT. 2009-01-21 13:13:26 +00:00
tron
31faff7381 Include "bsd.own.mk" to get the definition of "NETBSDSRCDIR" via
"/etc/mk.conf". This fixes manual use of "make cleandir".
2009-01-20 22:49:29 +00:00
drochner
d767912be3 Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.
2009-01-20 18:20:47 +00:00
jmmv
0cdcf7cea6 Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it.  0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.
2009-01-19 07:08:14 +00:00
apb
53ee7761e4 Integer values, no matter what their width, are cast to int64_t or
uint64_t for printing.  Because of this, parse.c:rewrite() should use
PRI[diouxX]64 as the printf format; the previous revision which used
"lld" and friends was a temporary measure.  We assume that PRId64 ends
with 'd', PRIx64 ends with 'x', etc.

In display.c:display(), change some u_intNN_t types to C99 standard
uintNN_t types, and consistently cast to [u]int64_t when printing
integer values (even in two cases where it's not really necessary but it
makes the code look more consistent).
2009-01-18 21:34:32 +00:00
dsl
60ec4ca26f Revert previous - cause grief with .ifdef (foo)
Instead return False for exists(), defined(), make() etc when the
argument has length zero.
2009-01-18 17:30:19 +00:00
dsl
bae3fcc0c3 Only terminate a conditional function argument on ')' if we expect the
argument to be exclosed in (...).
'.if exists()' is parsed as '.ifdef exists()' and the ')' must not be
left over at the end.
I have no idea why any of my recent changes have affected this.
But pkgsrc/mk/compiler/gcc.mk (line 488) does .if exists(${FCPATH})
even though FCPATH is only set when the file exists.
2009-01-18 12:50:15 +00:00
lukem
c493aef500 fix -Wsign-compare issues 2009-01-18 07:11:45 +00:00
lukem
7e973711c3 fix -Wsign-compare issues. minor knf 2009-01-18 07:08:30 +00:00
lukem
af17a5d8f3 fix -Wsign-compare issues 2009-01-18 07:05:53 +00:00
lukem
a09351730c fix -Wsign-compare issues 2009-01-18 01:34:30 +00:00
lukem
ab93b4bc61 fix -Wsign-compare issues 2009-01-18 01:31:12 +00:00
lukem
c172e3b989 fix -Wsign-compare issues 2009-01-18 01:29:57 +00:00
lukem
0449f26fed fix -Wsign-compare issues 2009-01-18 01:02:41 +00:00
lukem
aadf5fe187 Fix -Wsign-compare issues:
* Provide our own TOKEOF enum, rather than using stdio's EOF (which is signed)
* Use tokid_t instead of int where appropriate
2009-01-18 01:02:31 +00:00
lukem
fb103c5334 fix -Wsign-compare issues 2009-01-18 00:37:53 +00:00
hans
ec644bbf21 Use ll instead of non-standard q as length modifier in format strings.
Makes this work on Solaris. OK by apb.
2009-01-17 23:24:30 +00:00
wiz
714b5c355f Improve description in NAME section:
"serial terminal emulator"

From nick@openbsd via jmc@openbsd.
2009-01-17 20:59:01 +00:00
dsl
18e81da746 __predict_false() isn't defined if we aren't netbsd, stub out. 2009-01-17 13:55:42 +00:00
dsl
462d090d0f Change 'Buffer' so that it is the actual struct, not a pointer to it.
Saves having to malloc/free a fixed size structure.
Buf_Init() now takes ptr to Buffer to initialiase.
Change Buf_Destroy() to return ptr to string when not freed.
Remove large number of casts to (Byte) and (Byte *) - 'Byte' is 'char' here.
Buf_AddByte[s] guarantees that the data is 0 termininated, so never add '\0'.
Keep 'count' not 'left' and 'inPtr', code is simplier with only one update.
Fix fallou, no functional change.
2009-01-17 13:29:37 +00:00
dsl
d020c6ab24 Allocate string vector in chunks, instead of calling realloc()
every time something is added.
2009-01-16 21:15:34 +00:00
dsl
74a68f7259 Debug print improvements. 2009-01-16 21:14:30 +00:00
dsl
cd6806d831 Send output of Error() to debug_file (unless stderr/stdout). 2009-01-16 21:13:13 +00:00
dsl
e9eac4d91e Parse_Error() really doesn't need to cruft up a dummy structure for curFile.
It only needs the 'fname' and 'lineno' fields - so just use NULL/0 when
curFile is NULL.
2009-01-16 20:50:24 +00:00
christos
52f56a8c21 Support amd unmounts, from Anon-Ymous. Not turned on yet because we need
to patch amd for this to work.
2009-01-16 17:31:22 +00:00
hira
796ac4ad75 Fix off-by-one. 2009-01-16 13:30:07 +00:00
uebayasi
547b81ca4c Better whitespace in ioconf.c output. 2009-01-16 09:43:41 +00:00
lukem
c402ba6fb6 appease -Wsign-compare 2009-01-15 03:18:30 +00:00
dsl
ac3b504aef Contrary to my previous thoughts, .for loop variable values do contain
variable references - eg ${.TARGET} since that can't be expanded earlier.
Also the variable gets re-expanded before modifiers are applied.
All this means that we do need to let :U expand variables and must not
just escape $.
2009-01-14 22:54:10 +00:00
christos
a127d189ed style fixes and pass WARNS=4 and lint from Anon Ymous 2009-01-14 15:47:23 +00:00
dsl
be588a30bc When substituting .for control variables (as ${:U...}) escape '$' and '\'
as well as ':' and '}' or ')'.
The parameters have just been expanded (and will be expanded again) later
so don't need expanding as part of the :U process.
Seems to fix pkgsrc breakage at line 34 of bsd.pkginstall.mk doing:
.for i in ${PKG_USERS}
_PKG_VARS.pkginstall+=  PKG_UID.${u} PKG_GECOS.${u} PKG_HOME.${u} PKG_SHELL.${u}
.endfor
when PKG_USERS = ${AVAHI_USER}:${AVAHI_GROUP}::Avahi\ user:/nonexistent
(set at line 41 of the ahavi Makefile)
I really dont think the above has the desired effect!
2009-01-13 18:30:00 +00:00
dsl
54d6432069 Sprinkle a const. (arg of Main_ParseArgLine()) 2009-01-13 18:22:34 +00:00
dholland
dbfa1570e7 Fix blatantly wrong exposition of .WAIT example.
PR bin/40372 from Gao Ya'nan.
2009-01-12 09:28:10 +00:00
dsl
40aa52653a Instead of stashing the body of every iteration of a .for loop, pass
Parse_SetInput() the name of a function to get the loop data blocks.
This should only be a change to the program logic.
2009-01-11 15:50:06 +00:00
christos
2567980901 another bsd.own.mk missing 2009-01-11 05:01:34 +00:00
christos
da0b5ebdeb need bsd.own.mk for $NETBSDSRCDIR 2009-01-11 03:50:50 +00:00
christos
379d921ced resolve conflict. 2009-01-11 03:05:41 +00:00
christos
50728e7823 merge christos-time_t 2009-01-11 02:57:17 +00:00