Commit Graph

245285 Commits

Author SHA1 Message Date
abhinav
961fb352ab Move information about exit values from DESCRIPTION to EXIT STATUS section.
ok wiz@
2016-10-02 21:06:18 +00:00
abhinav
40e3a09c63 kill(1) is a utility, not a function. 2016-10-02 21:00:54 +00:00
jdolecek
c7b1f4eb42 change scsipi_execute_xs() to default to simple tags for !XS_CTL_URGENT
if not specified by caller; this is mostly for documentation purposes
only, as sd(4) and cd(4) explicitly use simple tags already
2016-10-02 19:40:35 +00:00
christos
da90486716 more MFREE -> m_free 2016-10-02 19:26:46 +00:00
christos
44548039a1 use __func__ and print the filesystem we are printing the message for. 2016-10-02 19:02:57 +00:00
kamil
40eb0908ed libc: Add <stdalign.h> and <stdnoreturn.h>.
These headers conform C1x (ISO/IEC 9899:201x).
2016-10-02 17:28:57 +00:00
kamil
7db6ba3b08 Import <stdalign.h>
This header conforms to the C11 standard
Reference: ISO/IEC 9899:201x 7.15 Alignment <stdalign.h>

According to ISO/IEC 9899:201x (draft) 7.15 Alignment <stdalign.h> defines
four macros:
 - alignas which expands to _Alignas
 - alignof which expands to _Alignof
 - __alignas_is_defined and __alignof_is_defined which both expand to 1

The _Alignas declaration appears as one of the type specifiers to modify
the alignment requirement of the object being declared.

The _Alignof operator is used to query the alignment requirement of its
operand type.

ISO/IEC N3242=11-0012 (C++1x) and ISO/IEC N3797 (C++1y) both note a header
<cstdalign> which defines only __alignas_is_defined and shall not define
the alignas macro. It misses the alignof case as it's probably based on an
older C1x draft, which defined only alignas. Assume that this is a bug in
the standard and treat alignof the same way as alignas in C++11.

Allow to define alignas and alignof in C++ prior the C++11 standard. It
might be broken but a nonstandard C++ compiler might support C11-like
_Alignas and _Alignof. Note that it's fatal for g++(1) v.5.4.
2016-10-02 17:19:00 +00:00
jdolecek
9e58801f20 drop wl_mtx mutex during call to pool_get() with PR_WAITOK
pointed out by riastradh
2016-10-02 16:52:27 +00:00
jdolecek
407be399a4 fix off-by-one in wapbl_write_revocations() - when exiting the write loop,
wd gets set to next unwritten record, not last written one as code assumed;
'lost head!' KASSERT is not triggered any more
2016-10-02 16:44:02 +00:00
kre
5c162fef83 This test works fine on real hardware, but due to PR kern/43997 (qemu
timing problems) fails when run under qemu.   Attempt to compensate
for that (by skipping the problematic test case) when running in qemu.

This should be reverted when the PR gets fixed (either in qemu or in
the NetBSD kernel).
2016-10-02 15:27:32 +00:00
jdolecek
c69152bd80 wapbl_write_revocations(): fix use-after-free when writing more then one
block worth of revocations, introduced in previous commit; discovered by
Brad Harder on current-users
2016-10-02 14:38:46 +00:00
christos
9c7db92f68 MFREE -> m_free 2016-10-02 14:16:02 +00:00
kamil
7798b8a775 Import <stdnoreturn.h>
This header conforms to the C11 standard
Reference: ISO/IEC 9899:201x 7.23 _Noreturn <stdnoreturn.h>

According to ISO/IEC 9899:201x (draft) <stdnoreturn.> defines the
noreturn macro which expands to _Noreturn.

The _Noreturn keyword appears in a function declaration and specifies
that the function does not return by reaching the end of the function
body.

Design choices:
 - don't implicitly break C++ code including this header with #error
   C++11 offers [[noreturn]] which conflicts with C11 _Noreturn

 - don't check for __STDC_VERSION__, everybody is free to reuse it with
   a nonstandard compiler not conforming to C11 but supporting _Noreturn

   gcc(1) and clang(1) support _Noreturn in -std=c99 and older standards

   this follows <stdbool.h> choice for not checking for C99

 - follow <stdbool.h> and declare the __noreturn_is_defined guard

 - use a standard header guard (_STDNORETURN_H_), similar to <stdbool.h>

Reviewed by <pgoyette> and <joerg>
2016-10-02 13:09:24 +00:00
maya
4b2f24ad42 Simplify. LOONGSON2 and MIPSNNR2 not possible. 2016-10-02 09:06:35 +00:00
kre
0e8fe63eab More adaptation to changed ifconfig output format. 2016-10-02 04:46:07 +00:00
kre
076ee4f8af More adaptation to new ifconfig output format - prefix length is now
appended to the address, rather than a second parameter, so needs to be
deleted if just the bare address is what we want (which it is here).
2016-10-02 04:29:25 +00:00
kre
1b0c0c88db Don't expect ping to complain about sending to a local address
assigned to an interface that's down - instead it just attempts
to send, and the interface never responds (as it would if it were
a remote address).
2016-10-01 22:15:04 +00:00
mrg
dfe5471eae use 4-byte style accesses, should hopefully fix PR#37787. 2016-10-01 21:51:52 +00:00
kre
902f3d8946 Return to printing explicit "netmask 0x...." in the case that the
mask set is non-contiguous.   We don't prohibit setting such things
(even if they are basically useless) so they can be set by accident.
	ifconfig ifN 10.0.0.1 netmask 225.0.0.0
produced
	ifN .. inet 10.0.0.1/8
with the previous form (since 225 is 0xE1), now it produces
	ifN ... inet 10.0.0.1 netmask 0xe1000000

If the "netmask" form ever appears in ifconfig output, it (now)
means that the netmask is non-contig, which should make that case
obvious (whther intended, or set by accident)
2016-10-01 20:59:49 +00:00
kre
dc63df36ca Compensate for the new world order of ifconfig output format,
and the new default netmask for point to point links.
2016-10-01 20:18:06 +00:00
roy
de8590571b Default netmask to /32 for INET on POINTOPOINT links if not specified. 2016-10-01 17:17:20 +00:00
roy
d1f35c1abb Adjust tests to new output. Wait for DaD to finish before pinging. 2016-10-01 15:35:22 +00:00
flxd
18cc5a59d9 Add tcu (MI). OK skrll@ 2016-10-01 15:24:35 +00:00
roy
5174f725c2 Modernise the output for the address to address/prefix instead
of differring outputs for INET and INET6.
The hex string of the INET netmask was particulary hard to read.
2016-10-01 15:10:58 +00:00
christos
6ca166beb3 deal with PIE and SSP 2016-10-01 13:57:44 +00:00
christos
684d040da8 remove unused variable. 2016-10-01 13:46:52 +00:00
jdolecek
16c7d9d735 allocate wapbl dealloc registration structures via pool, so that there is more
flexibility with limit handling
2016-10-01 13:15:45 +00:00
jdolecek
8de0ca1330 wapbl_remove_log(): add missing break; harmless, fallthrough just printed
extra debug message
2016-10-01 13:06:20 +00:00
flxd
558b195f60 Add myself 2016-10-01 12:32:35 +00:00
mlelstv
8f96d6f598 Ignore completed transfers when detaching. This avoids a race condition
where the detach code has already freed the xfer structures.
2016-10-01 11:09:12 +00:00
mlelstv
4420de0cb1 Use pointer passed as argument. This is not really a change as
data->xfer is supposed to be the same.
2016-10-01 11:07:30 +00:00
mlelstv
da8283ba36 Use splusb() like the other drivers instead of splnet(). 2016-10-01 07:23:40 +00:00
mlelstv
60767f1d18 mcs is a 16bit value. 2016-10-01 07:21:45 +00:00
christos
c0e5049c21 Require exact credential match; this way even if we su to the original user
that created the session, we won't match his credentials.
2016-10-01 04:42:54 +00:00
christos
4b39133eee Weaken the test a bit to still allow non-root to use TIOCSTI; we need to have
the same creds as the session leader process for the tty session.
2016-10-01 03:46:00 +00:00
roy
b5123ad110 Remove the alias keyword from ifconfig output as it serves no purpose. 2016-09-30 16:52:17 +00:00
roy
d55c25711c ifaddrs has more data than just the address.
Use it instead of making pointless ioctl calls.
2016-09-30 16:47:56 +00:00
skrll
07838e6706 Increment resident_count if we're remapping onto new PA as
pmap_remove -> pmap_pte_remote will decrement it
2016-09-30 12:10:40 +00:00
dholland
8536f06c47 Be more careful about preserving errno. Might conceivably be related
to PR 51432.
2016-09-30 06:22:21 +00:00
dholland
48faaeec69 Be consistent about returning -1 on error. Don't return random errnos
instead.
2016-09-30 06:16:47 +00:00
christos
f08a5ec0bf Only allow root to use TIOCSTI. Don't eat the kauth error number.
It is unexpected for an unprivileged process to gain privs by
typing to root's tty:

$ cat installer
#!/bin/sh
whoami
/usr/sbin/sti /dev/tty whoami\\n

$ su unprivileged -c ./installer
unprivileged
$ whoami
root
2016-09-29 21:46:32 +00:00
kre
f6bb854fd7 Added /usr/share/zoneinfo/Asia/Yangon for tzdata2016g 2016-09-29 20:47:18 +00:00
kre
5591d9b51d Note tzdata update to 2016g 2016-09-29 20:44:06 +00:00
kre
8744da7208 Merge tzdata2016g 2016-09-29 20:41:33 +00:00
kre
87963c4046 Import tzdata2016g from ftp://ftp.iana.org/tz/releases/tzdata2016g.tar.gz
Summary of changes in tzdata2016g (2016-09-13 08:56:38 -0700):
	Timezone switch in Turkey (summer time becomes standard time)
	Transition time corrections for historic timestamps in
		America/Los_Angeles
		zones using USSR rules in early 20th century
	Some (more) time zone abbreviations converted to numeric form
	Asia/Rangoon becomes Asia/Yangon (with backward compat link)
2016-09-29 20:40:55 +00:00
christos
e771ba939e Introduce and use PROC_PTRSZ() to handle differing pointer size 64->32
emulation.
2016-09-29 20:40:53 +00:00
kre
36f0250a07 Import tzdata2016g from ftp://ftp.iana.org/tz/releases/tzdata2016g.tar.gz
Summary of changes in tzdata2016g (2016-09-13 08:56:38 -0700):
	Timezone switch in Turkey (summer time becomes standard time)
	Transition time corrections for historic timestamps in
		America/Los_Angeles
		zones using USSR rules in early 20th century
	Some (more) time zone abbreviations converted to numeric form
	Asia/Rangoon becomes Asia/Yangon (with backward compat link)
2016-09-29 20:40:49 +00:00
uwe
c3674760a3 Run configure with MAKE=${TOOL_GMAKE:Q} - otherwise "checking
dependency style" test fails on non-netbsd hosts where nbmake can't
find share/mk.

Ok phone@
2016-09-29 20:08:25 +00:00
christos
600f58d691 don't change the loop counts; noted by mrg@ 2016-09-29 19:08:48 +00:00
christos
99a48913f4 fix more driver lossage 2016-09-29 18:58:27 +00:00