Commit Graph

12793 Commits

Author SHA1 Message Date
matt
2a4267c6e4 #include <sys/exec_elf.h> for ksyms 2015-05-20 07:16:15 +00:00
matt
cac6d59cc3 Use :Q instead of " to quote make vars DBG and LDSTATIC 2015-05-16 02:33:12 +00:00
ozaki-r
6011d36bd6 Fix rump.{netstat,route} shows host's interface names in link local addresses
Interface names of IPv6 link local addresses are resolved
by getnameinfo(3). So we need to rump-ify it as well as
if_indextoname and getifaddrs.
2015-05-15 06:58:59 +00:00
joerg
1d5828794c Mark error as dead. 2015-05-13 20:13:21 +00:00
christos
cd5bb2fe49 handle compound literals with a trailing comma 2015-05-11 17:20:06 +00:00
dholland
5a52d2d51f Remove pointless casts. 2015-05-09 23:29:51 +00:00
dholland
90a10bbb8a Make error() printflike instead of using sprintf before calling it. 2015-05-09 23:28:43 +00:00
dholland
98fbb52a77 Use proper (enough) parentheses in macro expansion. 2015-05-09 23:19:34 +00:00
dholland
86f52a859f Use errx when malloc fails, and also don't cast the return value of
malloc/realloc.
2015-05-09 23:16:51 +00:00
dholland
d4e3de0b16 one crash -> errx Christos missed 2015-05-09 23:14:22 +00:00
dholland
ceecfabaa7 Polish the error messages.
Don't use warn/err to print error messages about the input, as
prepending the program name to those both isn't helpful and confuses
programs that try to parse compile logs.
2015-05-09 23:12:57 +00:00
dholland
d1ac143f58 #if 0 code should still compile :-) 2015-05-09 22:58:22 +00:00
christos
8cde9e3d9b modernize:
- make crash() called atexit
	- use err/errx
	- remove __P
2015-05-09 21:44:47 +00:00
dholland
a9ad5ddc08 Also check the other emitted getrlimit call for failure. 2015-05-09 18:48:14 +00:00
christos
bb21fbff87 CID 1225082: Check getrlimit() return 2015-05-09 15:12:12 +00:00
sjg
ca0319bf7c When evaluating condtionals from .if we want to require
that the lhs is a variable reference, a number or a quoted string.
This helps avoid subtle bugs caused by typos.

When conditionals are being evaluated during variable expansion
we cannot be as strict becuase lhs will already have been expanded.

We therefor pass a boolean to Cond_EvalExpression to tell it how
lhs should be treated.

Add unit-tests/cond2.mk to test the above

Reviewed by: christos, joerg
2015-05-05 21:51:09 +00:00
lukem
ee0aef00c4 Add -x xferbufsize to set xferbuf size.
Implement  -x xferbufsize  set the socket send and receive buffer size,
as per 'xferbuf' in interactive mode.

Patch from Nicholas Mills (via private mail), with minor adjustment by me.
2015-04-23 23:31:23 +00:00
snj
68a743c9eb Update for 2015 dates. From Jeff Woodall in PR misc/49587, with
a typo fixed in Election Day (and the "even years" bit removed).
2015-04-23 06:19:10 +00:00
joerg
0057d0442d Explain what max is and handle i reaching it again. 2015-04-16 13:31:03 +00:00
joerg
e2d874fb89 Don't use memcpy for overlapping ranges. Simplify, memmove is good
enough to skip empty ranges.
2015-04-16 11:39:23 +00:00
pooka
6ee4aeae8e Accept 0 size for -d type=reg, it grows dynamically anyway.
(though perhaps there should be some way to limit that)
2015-04-16 10:05:43 +00:00
christos
d6eaf99167 Coverity CID 1264915, Via FreeBSD (Xin Li)
When reading in the original file name from gzip header, we read
in PATH_MAX + 1 bytes from the file.  In r281500, strrchr() is
used to strip possible path portion of the file name to mitigate
a possible attack.  Unfortunately, strrchr() expects a buffer
that is NUL-terminated, and since we are processing potentially
untrusted data, we can not assert that be always true.

Solve this by reading in one less byte (now PATH_MAX) and
explicitly terminate the buffer after the read size with NUL.
2015-04-15 02:29:12 +00:00
sjg
545bddb17b Use separate vars to track cwd and last dir a process read. 2015-04-11 05:24:30 +00:00
sjg
c6534f45d3 export-all.mk should be including export.mk
sadly some shells do not grok named signals.
2015-04-10 20:41:59 +00:00
tron
d1aa912cef Fix casts which are inconsistent with *printf() formats and remove the
use of a non-standard type in the process.
2015-04-10 09:34:43 +00:00
wiz
2690505034 It's 2015. 2015-04-10 08:43:32 +00:00
wiz
302cc6cfe4 Remove trailing whitespace. 2015-04-10 08:43:16 +00:00
uebayasi
c59f84ea6d Typo in previous. 2015-04-10 03:51:44 +00:00
uebayasi
e29416eeae More about attribute -> bus, and child configuration. 2015-04-10 03:30:09 +00:00
sjg
baa0bd3c22 Forgot to tweak date 2015-04-09 18:22:08 +00:00
sjg
065f2cad03 jobs mode handles '-' very differently to compat mode, but this is not
reflected in make.1
Also fix handling to match the behavior described in the comment
of JobPrintCommand (only matters if shell sets hasErrCtl).

A better long term solution is needed since the current behavior
is sub-optimal wrt '-' and different from all other makes.

Reviewed by: christos
2015-04-09 18:21:01 +00:00
christos
4e91feb5e1 remove ancient dup. 2015-04-07 17:49:40 +00:00
plunky
312b53dde5 change _whatdb => _mandb as that is the correct keyword here,
and move it to the correct position in the list.
2015-04-07 10:17:21 +00:00
wiz
75bbcb9aa1 Document xz decompression support better. From Joachim Henke on netbsd-docs. 2015-04-06 21:41:17 +00:00
christos
27de1fdbf3 build ops.h first, because trying to build dependencies and ops.h at the
same time leads to spurious failures.
2015-04-04 19:32:06 +00:00
christos
60a029958d accept typenames in param decls. 2015-04-03 21:40:04 +00:00
sjg
73c21af432 Close child's reference to meta file. 2015-04-01 01:03:55 +00:00
sjg
f15792411b Move initialization of savederr to the block where it is used
to avoid spurious warning from gcc 5
2015-03-26 22:20:42 +00:00
roy
a37502b2b6 Add RTF_BROADCAST to mark routes used for the broadcast address when
they are created on the fly. This makes it clear what the route is for
and allows an optimisation in ip_output() by avoiding a call to
in_broadcast() because most of the time we do talk to a host.
It also avoids a needless allocation for the storage of llinfo_arp and
thus vanishes from arp(8) - it showed as incomplete anyway so this
is a nice side effect.

Guard against this and routes marked with RTF_BLACKHOLE in
ip_fastforward().
While here, guard against routes marked with RTF_BLACKHOLE in
ip6_fastforward().
RTF_BROADCAST is IPv4 only, so don't bother checking that here.
2015-03-23 18:33:17 +00:00
mrg
99baa91ed3 if not playing (-q mode), don't call ioctl() or try to use the results.
now -q mode works.
2015-03-22 22:47:43 +00:00
plunky
e8fd30eb55 parse and print the HIDLANGIDBaseList attribute 2015-03-16 19:10:48 +00:00
christos
cefb10afe1 The latest refactoring changes broke sed -i:
cd /tmp; echo foo > test; sed -i.orig s,fo,ba, test
Back them out until they are fixed.
2015-03-12 12:40:41 +00:00
jnemeth
71db0be446 note birth and death of Douglas Adams 2015-03-11 17:35:16 +00:00
mlelstv
170fbd6544 Resolve names of datagram services correctly. 2015-03-08 06:46:51 +00:00
christos
b52075bfab add flag that let's you not wait for all the processes specified. 2015-03-04 16:36:12 +00:00
christos
ee9a5a1870 PR/49716: Henning Petersen: Use false and true on bool, fix sign in printf
formats.
2015-03-04 13:34:49 +00:00
christos
dacc247666 PR/49714: Henning Petersen: Change NULL in EV_SET to 0. 2015-03-04 13:31:53 +00:00
christos
1fddf0eec4 Add a timeout parameter. 2015-03-03 19:59:48 +00:00
christos
c7da06e6d1 there is no more makewhatis; it has been replaced by makemandb 2015-03-03 17:59:32 +00:00
christos
90298a02bf add pwait 2015-03-02 21:54:13 +00:00