Commit Graph

13150 Commits

Author SHA1 Message Date
riastradh feb61835e6 __diagused, not __unused -- used in an assert. 2016-04-07 23:29:59 +00:00
gson 4efe3992f9 Fully avoid the nonstandard types u_char, u_int, and u_long, which
were only used inconsistently in a few places anyway.
2016-04-06 09:57:00 +00:00
sjg f5cd368fff Skip looking for .MAKE.JOBS if either of compatMake or forceJob is true.
If -B compatMake will be true and should be honored.
If -j forceJobs will be true and the command line supplied .MAKE.JOBS
should be respected - for consistency with other usage.
2016-04-05 04:25:43 +00:00
christos 7a955c4ce5 PR/49872:Yorick Hardy: sed functions 'i' and 'a' discard leading white space
FIxed as suggested, behavior now matches gnu-sed.
2016-04-05 00:13:03 +00:00
christos b1bf748a07 PR/51043: Yorick Hardy: ftp(1) should use the port number for CONNECT 2016-04-04 23:59:41 +00:00
ozaki-r 09973b35ac Separate nexthop caches from the routing table
By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
  - sysctl(NET_RT_DUMP) doesn't return them
  - If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
  - RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
  - It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
  - -[no]cloning remains because it seems there are users
  - -[no]connected is introduced and recommended
    to be used instead of -[no]cloning
- route show/netstat -r drops some flags
  - 'L' and 'c' are not seen anymore
  - 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
  a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
  http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html
2016-04-04 07:37:07 +00:00
knakahara 11bfe22fab ' != " so make the condition actually work. (same as r1.30) 2016-04-01 07:23:15 +00:00
alnsn 38047b2736 Don't enter infinite loop on big ktr_len values.
Fixes PR 49460.
2016-03-27 21:51:20 +00:00
christos f3a6400cd0 sprinkle more volatile (distribution build with gcc-5.3) 2016-03-18 18:42:25 +00:00
christos 0f160f0ea7 match the updated <sys/types.h> definition 2016-03-18 15:05:49 +00:00
christos e5012983f9 CID 1356387: Wrong sizeof 2016-03-16 21:01:28 +00:00
matthias 6c56f993ef honor setting .MAKE.JOBS from the makefile. That way one can e.g. do:
CPUS!=sysctl -n hw.ncpuonline
.MAKE.JOBS?=$(CPUS)
2016-03-16 16:04:44 +00:00
sjg 2271de011e Fix syntax 2016-03-16 00:19:01 +00:00
matthias 5c97c6933e Another small change to make archive member rules work. With this change
archive member rules seem to work as expected again.
2016-03-15 18:30:14 +00:00
matthias 7215e4a264 dynamic dependencies for library member targets are working again. 2016-03-15 06:25:14 +00:00
wiz 8abecf66a7 Be more precise. 2016-03-14 09:53:37 +00:00
matthias 00a4845b58 make $@ an alias for $! in archive member rules (compatibility with
other makes).
2016-03-14 07:42:15 +00:00
dholland 18a2ad4d42 Mark the shared files with where they're used, like we do in pkgsrc. 2016-03-13 00:33:12 +00:00
dholland d9047ae69b Use functions instead of preprocessor abuse. 2016-03-13 00:32:09 +00:00
dholland a4df8c35e0 a couple minor fixes 2016-03-12 22:37:32 +00:00
dholland 710ed66d56 Use execl() correctly. 2016-03-12 22:28:04 +00:00
dholland 1bdc2bf3d4 Add some additional BUGS. 2016-03-12 22:17:23 +00:00
dholland 84481ccbd0 Rework for clarity. 2016-03-12 22:07:48 +00:00
dholland dde5a5b4ad Minor tidyups. 2016-03-12 21:20:17 +00:00
dholland a4db6377a4 NetBSD does actually support flat-panel displays. Even for systat(1).
(noted by tnn)
2016-03-12 02:39:01 +00:00
christos 9c2b425841 PR/50953: David Binderman: Fix misplaced paren 2016-03-11 18:39:03 +00:00
matthias d405a55bc6 $% is $(.MEMBER) and not $(.ARCHIVE), $! is $(.ARCHIVE) and not $(.MEMBER) 2016-03-11 15:12:39 +00:00
matthias 449c0b7d1f make parsing of library member targets work. So
lib.a(member.o): something
	cp something member.o
	ar r lib.a member.o
	rm member.o

will work now.
2016-03-11 13:54:47 +00:00
sjg 6067bdd115 Handle missing file for Read the same as for Write, since if it
is Deleted we don't care.

Patch from Bryan Drewery.
2016-03-11 07:01:21 +00:00
joerg 7682402b4b Unbreak tools build. 2016-03-10 11:32:10 +00:00
christos e37f4314dd PR/50932: David Binderman: use emalloc/erealloc/ecalloc 2016-03-09 20:02:33 +00:00
chs 8da07e54f6 in find_idle_and_ttywrite(), initialize idletime and writable to 0
when stat() fails.  this prevents a coredump later in stimeprint()
due to gmtime() returning NULL for an uninitialized idletime.
2016-03-09 16:12:14 +00:00
christos f6295e9141 PR/50914: David Binderman: Fix memory leaks.
While here, fix error handling too.
2016-03-08 20:13:44 +00:00
martin 212399f8da Gcc, please shut up with those stupid warnings! 2016-03-07 22:16:38 +00:00
christos e46a288cba str2Lst_Append tokenizes the string and uses it in the list so we can't
free the string afterwards. Keep a copy of it and cleanup at the end.
2016-03-07 21:45:43 +00:00
sjg ab15168ea5 For :ts numeric escapes \x* is hex, anything else is octal. 2016-03-07 20:20:35 +00:00
martin cb0ca8dd7b Try to fix build on 32bit architectures. 2016-03-07 08:59:00 +00:00
plunky e01e653371 use correct offset for channel in SDP record 2016-03-06 21:12:07 +00:00
christos e33113ab6d Work around gcc on sparc64 bug 2016-03-06 18:01:28 +00:00
christos fd89278a5f PR/50897: David Binderman: fix memory leaks. While here, modernize error
handling, and types.
2016-03-06 16:13:21 +00:00
martin bf186f94c5 David Binderman in PR bin/50897: fix memory leak. 2016-03-06 15:44:06 +00:00
mrg 35f210138a if opening the audio device fails, try opening again with write-only.
this allows my playback-only usb device to be listed and tested.
2016-03-05 22:10:39 +00:00
dholland 6d1844cb1e Don't try to use stdin after clobbering it with a failed freopen().
Prevents an extra "Bad file descriptor" message when trying to hexdump
a single nonexistent file.

The intended behavior seems to have been to read from stdin if there
was one filename given and it wasn't valid. But this seems like a bad
idea, so prevent that case instead of hacking it up so it works.
2016-03-04 03:02:52 +00:00
dholland 7228911ac6 Don't use one function for two different things. Two functions is the
ticket.
2016-03-04 02:54:38 +00:00
dholland 63eec2f2f9 use "static" 2016-03-04 02:46:19 +00:00
christos bad095e351 PR/50872: David Binderman: Use logical and instead of arithmetic 2016-02-29 18:21:15 +00:00
christos bfc1db599b PR/50873: David Binderman: use logical or instead of arithmetic 2016-02-29 18:19:46 +00:00
christos 08b8c76dab Add visibility and weak 2016-02-27 21:37:14 +00:00
christos 64f5cd70a3 CID 1354295: Array overrun. 2016-02-27 16:31:31 +00:00
christos f3a4188b98 CID 1025009: Fix wrong code (NULL deref) 2016-02-27 16:20:06 +00:00