Commit Graph

247769 Commits

Author SHA1 Message Date
christos
0480186ded PR/51815: Ngie Cooper: don't leak dlopen'ed handle 2017-01-10 15:34:49 +00:00
christos
149b98196c PR/51813: Ngie Cooper: don't leak fd :ttyname_err 2017-01-10 15:33:40 +00:00
christos
91da771057 PR/51812: Ngie Cooper: According to ToG gettimeofday() needs <sys/time.h> 2017-01-10 15:32:46 +00:00
christos
5ab764b7d2 PR/51811: Ngie Cooper: Fix include file portability. 2017-01-10 15:31:11 +00:00
christos
ace355e4b5 PR/51810: Ngie Cooper: don't leak buf 2017-01-10 15:20:44 +00:00
christos
894b1b2f4d PR/51809: Ngie Cooper: fix file descriptor leak 2017-01-10 15:19:52 +00:00
christos
d78006e887 PR/51808: Ngie Cooper: fix leaks, sort includes, check returns 2017-01-10 15:19:00 +00:00
christos
473b6e44f3 PR/51807: Ngie Cooper: disable core file generation in :assert_false,
:assert_true
2017-01-10 15:17:57 +00:00
christos
55dbe9a7ba PR/51806: Ngie Cooper: Only run the vis locale test if VIS_NOLOCALE is defined 2017-01-10 15:16:57 +00:00
christos
92841acfb9 PR/51805: Ngie Cooper: Fix file descriptor leaks 2017-01-10 15:15:09 +00:00
christos
e76b723bff PR/51804: Ngie Cooper: Sort headers; include <sys/stat.h>. On NetBSD,
<sys/stat.h> gets side-loaded from <sys/fcntl.h>. Should be fixed.
2017-01-10 15:13:56 +00:00
christos
29c143f657 include <unistd.h> for close, pipe, dup2 etc. 2017-01-10 13:53:26 +00:00
christos
ce41637aeb Build magic.h before all objs. 2017-01-10 13:51:36 +00:00
skrll
6093e5eae2 binutils 2.26 is no more. 2017-01-10 13:47:18 +00:00
joerg
1230251f55 Bump image size a bit for the clang build. 2017-01-10 13:35:44 +00:00
roy
545dbcc586 When doupdate is called, check for typeahead input after N lines changed
instead of aborting really early.

This allows some screen update when holding the page down key for example.
2017-01-10 10:33:49 +00:00
roy
25445577c0 Implement POSIX curses function ripoffline(3). 2017-01-10 10:13:24 +00:00
cherry
94ed870bbb While reserving memory at boot time via uvm_physseg_unplug(9),
in the case of a disappearing segment (due to a segment sized msgbuf)
make sure segment offsets are read off before the segment disappears.

This should fix some of the recent boot time hard resets reported on
i386 recently.

Thanks to kre@ for pointing this out to me.


CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: please use "PR category/123" to have the commitmsg appended to PR 123
CVS:
CVS: Please evaluate your changes and consider the following.
CVS: Abort checkin if you answer no.
CVS: => For all changes:
CVS: Do the changed files compile?
CVS: Has the change been tested?
CVS: => If you are not completely familiar with the changed components:
CVS: Has the change been posted for review?
CVS: Have you allowed enough time for feedback?
CVS: => If the change is major:
CVS: => If the change adds files to, or removes files from $DESTDIR:
CVS: => If you are changing a library or kernel interface:
CVS: Have you successfully run "./build.sh release"?
2017-01-10 09:48:22 +00:00
roy
5714904ce2 Test for __ISPASTEOL when moving the cursor and it hasn't moved.
Unset __ISPASTEOL when moving the cursor during refresh.
2017-01-10 09:32:01 +00:00
msaitoh
3370e40e09 remove debug printf(). 2017-01-10 08:57:39 +00:00
msaitoh
c1c625981d Fix previous. The last code wasn't called. 2017-01-10 08:56:02 +00:00
ozaki-r
7f1388a5d2 Add softnet_lock to if_link_state_change_si
Fix
  panic: lock error: Mutex: mutex_vector_exit: assertion failed:
  MUTEX_OWNER(mtx->mtx_owner) == curthread
at callout_halt <= arp_dad_stop <= in_if_link_down.
2017-01-10 08:45:45 +00:00
nonaka
828cd2070c check LAR support in NVM for 8260/4165. 2017-01-10 08:40:27 +00:00
knakahara
5e94416e6b sc->sc_core_stopping must be checked with holding sc_core_lock.
pointed out by ozaki-r@n.o, thanks.
2017-01-10 08:22:43 +00:00
knakahara
23e409fe79 avoid double rtcache_unref().
reviewed by ozaki-r@n.o.
2017-01-10 07:39:52 +00:00
nonaka
e82ddf504e Add apmg_wake_up_wa support from DragonFly BSD. 2017-01-10 07:34:04 +00:00
abhinav
fe8fae7920 Add missing word. 2017-01-10 06:28:46 +00:00
ozaki-r
e23687f598 Test netstat -i -a and ifmcstat 2017-01-10 05:55:34 +00:00
ozaki-r
d6b5ca395c Test dumping states before destroying interfaces 2017-01-10 05:55:10 +00:00
nonaka
de8f7f2d15 iwm(4): 8260 works now. 4165 may works too. 2017-01-10 05:54:03 +00:00
ozaki-r
26e6c607e9 Don't give up just because inet6 sysctl knobs aren't available
It can happen normally, for example run a kernel without INET6 or
run a rump_server without librumpnet_netinet6.so.
2017-01-10 05:43:27 +00:00
ozaki-r
a94a205118 Enable some sysctl knobs on rump kernels for ifmcstat 2017-01-10 05:42:34 +00:00
ozaki-r
9ac3cb6dea Replace adaptive mutex for ethercom with spin one
Unfortunately even wm(4) doesn't allow adaptive mutex because wm(4)
tries to hold it with holding its own spin mutex.
2017-01-10 05:40:59 +00:00
kamil
6f12d81bf6 Add new test siginfo6 in t_ptrace_wait{,3,6,6,id,pid} for ports with PT_STEP
siginfo6:
    Verify single PT_STEP call with signal information check

Sponsored by <The NetBSD Foundation>
2017-01-10 05:08:24 +00:00
nonaka
cbfc1fcaf0 regen 2017-01-10 05:05:09 +00:00
nonaka
54fcf2a2c7 Add Intel Dual Band Wireless 8265 entry. 2017-01-10 05:04:31 +00:00
kamil
52678ac6a4 Adapt funopen(3) call after switch to new zlib(3)
In the prototype of the gzclose() function of changed from:

  typedef struct gzFile_s *gzFile;    /* semi-opaque gzip file descriptor */

to:

  typedef voidp gzFile;

This caused type mismatch when calling funopen(3) as:
   'int (*)(void *)' != 'int (*)(struct gzFile_s *)'

Cast gzclose to (int (*)(void *)) when used in funopen(3).
2017-01-10 04:42:20 +00:00
kamil
2fe964ca6f Include <unistd.h> for R_OK W_OK STDOUT_FILENO access(2)
These symbols are undefined after switch to new zlib.
2017-01-10 04:34:07 +00:00
nonaka
d8b884b552 set NULL after free. 2017-01-10 04:27:04 +00:00
kamil
1eec2c6197 Include missing header <unistd.h> for write(2) read(2) close(2)
These functions are undefined after switch to new zlib.
2017-01-10 04:27:02 +00:00
kamil
5098b85c3f ptrace(2): Add new si_code value of SIGTRAP: TRAP_CHLD
Sponsored by <The NetBSD Foundation>
2017-01-10 01:53:25 +00:00
christos
2cfb67c03e PR/51803: Ngie Cooper: CID 978321: Don't leak openpty() fd. 2017-01-10 01:31:40 +00:00
christos
e02b8049db new zlib 2017-01-10 01:29:31 +00:00
christos
93f630910e Adapt to new zlib 2017-01-10 01:28:03 +00:00
christos
6db8c6e988 merge conflicts 2017-01-10 01:27:41 +00:00
kamil
b84f96bdde Welcome to NetBSD 7.99.57!
Added for SIGTRAP new si_code: TRAP_CHLD
This interface is part of <sys/siginfo.h>

Sponsored by <The NetBSD Foundation>
2017-01-10 01:02:23 +00:00
kamil
d7bca94546 Add new test siginfo5 in t_ptrace_wait{,3,4,6,id,pid}
siginfo5:
    Verify that fork(2) is intercepted by ptrace(2) with EVENT_MASK
    set to PTRACE_FORK and reports correct signal information

Sponsored by <The NetBSD Foundation>
2017-01-10 00:54:22 +00:00
kamil
189ca4b8c7 Document TRAP_CHLD in siginfo(2)
The SIGTRAP signal is thrown from the kernel if EVENT_MASK (ptrace_event)
enables PTRACE_FORK. This new si_code helps debuggers to distinguish the
exact source of signal delivered for a debugger.

Another purpose of TRAP_CHLD is to retain the same behavior inside the
NetBSD kernel for process child traps and have an interface to monitor it.

Retrieving exact event and extended properties of process child trap is
available with PT_GET_PROCESS_STATE.

There is no behavior change for existing software.

This si_code value is NetBSD extension.

Sponsored by <The NetBSD Foundation>
2017-01-10 00:51:56 +00:00
pgoyette
5a30768de5 Rework the sysctl initialization to avoid creating new nodes from
within the helper function.  This should avoid the "locking against
myself" error reported earlier.
2017-01-10 00:50:57 +00:00
kamil
687ff8a6ad Introduce new si_code for SIGTRAP: TRAP_CHLD - process child trap
The SIGTRAP signal is thrown from the kernel if EVENT_MASK (ptrace_event)
enables PTRACE_FORK. This new si_code helps debuggers to distinguish the
exact source of signal delivered for a debugger.

Another purpose of TRAP_CHLD is to retain the same behavior inside the
NetBSD kernel for process child traps and have an interface to monitor it.

Retrieving exact event and extended properties of process child trap is
available with PT_GET_PROCESS_STATE.

There is no behavior change for existing software.

This si_code value is NetBSD extension.

Sponsored by <The NetBSD Foundation>
2017-01-10 00:48:37 +00:00