Commit Graph

248746 Commits

Author SHA1 Message Date
christos
e78ea23712 Use strncpy here because we need to be portable, and we have the +1 byte
to save us :-)
2017-02-08 17:47:36 +00:00
maya
fefc5fa8d9 Make paccept a weak symbol in preparation for using it in another function 2017-02-08 17:30:27 +00:00
rin
47e6c13bb2 switch to __empty 2017-02-08 16:56:56 +00:00
christos
f0dfa8e226 remove comment in comment 2017-02-08 16:26:19 +00:00
christos
58acfeb884 use __empty 2017-02-08 16:23:24 +00:00
christos
023e088128 need FILESBUILD_ 2017-02-08 16:21:24 +00:00
christos
e3abb3c383 don't define __empty. 2017-02-08 16:14:08 +00:00
christos
9aa43b8677 __empty is defined in <sys/cdefs.h> 2017-02-08 16:13:40 +00:00
christos
da41caee7e add __empty 2017-02-08 16:13:04 +00:00
rin
43be14da29 Switch to x_fsck_ffs and x_newfs. Fix floppy image overflow. 2017-02-08 16:12:59 +00:00
rin
ccc9d98e52 Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where
support for Endian-Independent FFS and Apple UFS is disabled unless FFS_EI=1
and APPLE_UFS=1 are added to CRUNCHENV, respectively.

This reduces the size of ramdisk image for atari by over 15KB.

Thanks tsutsui and christos for their useful comments.
2017-02-08 16:11:39 +00:00
christos
b4ccad3ff2 gut const for now. 2017-02-08 16:00:30 +00:00
kamil
cf07270509 Add new entry in TODO.ptrace
Added:
    add PT_SET_SIGMASK and PT_GET_SIGMASK - used by checkpointing software

Example software: gdb, criu
2017-02-08 14:53:50 +00:00
kre
2f69950939 Time waro (thanks Kamil) 2017-02-08 14:47:55 +00:00
kre
c2bea2ceaa Ammend previous, mention compat/amd64/i386/lib/libc as well. 2017-02-08 13:54:39 +00:00
riastradh
adfa6ca875 Omit duplicate text. 2017-02-08 13:31:36 +00:00
kre
d51e3abf8d Note libc update build issue after change from arch/exect.S to exect.c
(The build system really should be able to cope with changes like this
one without obj dir fiddling or clean builds)
2017-02-08 10:56:12 +00:00
maxv
6d5f205475 Remove gdt_reload_cpu. GDTR takes a VA as base, and in our x86
implementation this VA is per-cpu and does not change; there is therefore
no need to remotely reload GDTR.
2017-02-08 10:08:26 +00:00
msaitoh
9b00ab122f ixv(4): Add Intel 10G Ethernet virtual function driver. 2017-02-08 09:58:42 +00:00
maxv
e6ed7762a4 Localify, add a comment and merge some others. 2017-02-08 09:39:32 +00:00
msaitoh
8e8e0ed94f Print CPU number correctly. 2017-02-08 09:00:37 +00:00
msaitoh
f7261b64b9 - Fix aprint_*()s in ixv_allocate_msix().
- Style fix. Reduce diff against ixgbe.c. No functional change.
2017-02-08 08:30:16 +00:00
msaitoh
752517e5d3 Call IFQ_SET_MAXLEN() even if TX multiqueue is used. ALTQ uses it. 2017-02-08 08:13:53 +00:00
msaitoh
a1cede5a70 Enable TX multiqueue by default on both ixg(4) and ixv(4). 2017-02-08 04:32:43 +00:00
msaitoh
09ccad5238 Enable multiqueue. 2017-02-08 04:28:53 +00:00
msaitoh
8d2035c595 Use dmat64 if available. Same as ixgbe.c rev. 1.60. 2017-02-08 04:24:44 +00:00
msaitoh
5bb96b04e2 Fix a bug that 1Gbps is printed even if the phyiscal media is at 100Mbps. 2017-02-08 04:20:29 +00:00
christos
859ed859bc Don't track /etc/nsd/nsd.conf and /etc/unbound/unbound.conf 2017-02-08 04:18:42 +00:00
msaitoh
b878b1dab4 Fix detach path:
- Call softint_disestablish() and pci_intr_disestablish() for all queues
   correctly.
 - Add missing sysctl_teardown() to delete sysctl entries.
 - Call pci_intr_release(). Now NETBSD_MSI_OR_MSIX is completely deleted.
2017-02-08 04:14:05 +00:00
christos
db38a065ef Don't store random (from ASLR) pointers into the superblock. Should be the
last (famous last words) problem with reproducible builds!
2017-02-08 04:08:53 +00:00
msaitoh
3ad5d456c5 Add queue number into interrupt name. 2017-02-08 04:05:13 +00:00
kamil
393a1d913c pthread_dbg(3): Removed from the base distribution. 2017-02-08 04:01:44 +00:00
msaitoh
3f9b0f98e1 Set ifm_active to IFM_NONE when the physical interface's link is down.
Now ifconfig shows "media: Ethernet autoselect '(none)'".
2017-02-08 03:59:12 +00:00
kamil
0892a29a1a libpthread_dbg(3) deletion from the base distribution
libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>
2017-02-08 03:44:40 +00:00
christos
7450df85ed no, this is wrong. 2017-02-08 02:23:45 +00:00
christos
86c77ab60f zero out the superblock so that it does not contain random stuff in the
spare fields.
2017-02-08 02:20:35 +00:00
kamil
77d313fc36 Detach libpthread_dbg(3) from gdb(1) and gdbtui (gdb.old)
libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

pthread_dbg(3) is going to be removed from the base distribution and moved
to pkgsrc.

Patch reviewed by <christos>

Sponsored by <The NetBSD Foundation>
2017-02-08 01:32:37 +00:00
kamil
e361313d33 Detach libpthread_dbg(3) from gdb(1) and gdbtui
libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

pthread_dbg(3) is going to be removed from the base distribution and moved
to pkgsrc.

Patch reviewed by <christos>

Sponsored by <The NetBSD Foundation>
2017-02-07 22:53:19 +00:00
christos
ecb1597c64 add config files as examples 2017-02-07 22:37:18 +00:00
christos
8c4b80eae5 don't overwrite etc files. 2017-02-07 22:34:37 +00:00
christos
9e972dfc78 add nsd and unbound example dirs 2017-02-07 22:31:29 +00:00
christos
4251f87df7 PR/51958: Ngie Cooper: ESRCH error description in hcreate(3) contains typo
for action
2017-02-07 22:25:25 +00:00
christos
3048692a87 Kernel build objdirs have a kernel name after the objdir. Use a regex for
that. Note that debug-prefix-map and debug-regex-map insert entries in a
linked list in reverse order.
2017-02-07 21:19:13 +00:00
christos
2f4a483dfc Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir
2017-02-07 21:18:05 +00:00
christos
fa1ea25f42 use the logical path for -C if correct. 2017-02-07 21:16:31 +00:00
kamil
5acf460d25 Mark exect(3) obsolete and bind it to plain execve(2) on all platforms
The original exect(2) from BSD4.2 was enabling bit for tracing
(single-step mode) and calling execve(2). The purpose of it was to generate
a signal for a tracer once the application will change its image to a new
program.

This approach no longer works as:
 - exect(2) traces (single-steps) libc and it requires hundreds or
   thousands steps before entering a new image
 - it's vax and x86 specific code
 - this functionality has been moved to the kernel - once a process is
   traced it will generate SIGTRAP with si_code TRAP_EXEC and route it to
   its debugger
 - the side effects and unportability make this interface unusable
 - there are no known users of this interface
 - it apparently never worked better since day0 of NetBSD ("day0 bug")

Users are requested to move to other execve(2) variants. Calling current
execve(2) as it is the most similar behavior to this one from BSD4.2.

Discussed several times on mailing lists and in PR/51700.

Add warning to exect(3) telling about marking this function obsolete.

This function is prepared to be removed in next libc major bump.

Sponsored by <The NetBSD Foundation>
2017-02-07 19:29:39 +00:00
rin
44fe74158a Define NOMAN before including bsd.own.mk to set MKMAN=no appropriately. 2017-02-07 16:49:40 +00:00
kamil
edc4b9f5d5 Update TODO.ptrace
Note PT_WATCHPOINT change to PT_*ETDBREGS.
Remove GDB and LLDB related entries from generic ptrace(2) TODO.
Note need for TRAP_SCE and TRAP_SCX si_codes in PT_SYSCALL*.
Note removal request of pthread_dbg(3).

Sponsord by <The NetBSD Foundation>
2017-02-07 16:15:05 +00:00
rin
872902e1dd Do not compile in progress.c when SMALLPROG is defined. 2017-02-07 16:14:47 +00:00
kamil
c58abbea19 Document in libc's shlib_version request for exect(3) removal
This functionality has been moved long time to the kernel. Kernel exec()
emits SIGTRAP under a debugger (unless PT_SYSCALL traced).
2017-02-07 15:33:25 +00:00