Commit Graph

247040 Commits

Author SHA1 Message Date
abhinav 842412540f Update the description of the -t option to bring it in sync with IEEE 1003.1 -2008.
The .SS field of the datetime argument of -t option can have range from 0 to 60
as per the 1003.1 2008 standard. POSIX has removed all mentions of double leap
seconds, therefore the allowed range of seconds is now [0,60].

Also, add an ENVIRONMENT section, as the interpretation of the datetime
argument in -t option depends on the TZ environment variable.

Add an xref for parsedate(3) in SEE ALSO.

ok wiz@
2016-12-24 15:49:18 +00:00
kamil 60b1976a76 Revert introduction of FIXME_PR_51139
This change introduced ABI incompatible change with older versions shipped
on NetBSD. This back out code that is currently not working correctly due
to TLS-based std::call_once implementation in GNU libstdc++.

Error when starting gnuchash:

/usr/pkg/lib/libwebkitgtk-1.0.so.0: Undefined symbol "_ZSt15__once_callable" (symnum = 1705)

PR 51139

Reported by <wiz>
2016-12-24 15:48:26 +00:00
riastradh 766531b9dd Guarantee no zero-size uao/kmem allocations via ttm.
It may be that all callers guarantee no zero-size ttm objects, but I
can't prove that in five minutes of browsing callers.  Rather than
add a KASSERT, lacking proof, we'll add a warning message so that if
it does happen then it happens noisily, but we'll also prevent the
bad consequences of passing zero into uao_create by rounding up to a
harmless nonzero allocation.

XXX pullup-7
2016-12-24 15:46:50 +00:00
maya ab54d6b920 as a stopgap fix make all of uvm_physseg.h kernel-only. this file uses
paddr_t which isn't available to userland, breaking builds that use uvm
headers, like devel/libuv on pkgsrc.

pointed out by Carsten Kunze on pkgsrc-users.

ok riastradh
2016-12-24 15:42:05 +00:00
maya 177f6a3a05 don't use systm.h header, it's not available to userland.
as a side effect, this fixes the evbarm64 build, which was failing due
to a declaration of psize_t physmem in systm.h, while psize_t is
kernel-only.

ok riastradh
2016-12-24 15:23:06 +00:00
abhinav 9e3eb1e837 Add a missing .El, which is causing the rest of the text being
rendered indented. Patch provided by fox on IRC.

While there, remove a .Pp before .Bl.
2016-12-24 14:04:10 +00:00
skrll eeb9bdf31e Call cv_broadcast with interlock held as per condvar(9) 2016-12-24 11:51:33 +00:00
skrll fac99052c8 Fix VERBOSE_INIT_ARM build 2016-12-24 09:19:23 +00:00
abhinav 93422f00ef Remove xref to signal(7).
As noted by wiz, it is probably not a good idea to mention signal(7) in SEE ALSO
every time a signal name is used in a man page.
2016-12-24 08:26:57 +00:00
wiz 5aed204344 Fix SYNOPSIS. Fix xref. Avoid Xr for itself. 2016-12-24 08:05:47 +00:00
abhinav d2ed5b2faa Fix a sentence
Make some makrup improvments to make mandoc -Tlint happy
Sort xrefs in SEE ALSO
2016-12-24 07:22:41 +00:00
mrg e640aa5924 create sysmon nodes, so wdogctl works. 2016-12-24 07:07:06 +00:00
macallan a8b2582939 avoid accessing condition variables which belong to a scsibus before actually
attaching the scsibus
now my SS20 boots again
2016-12-24 06:04:50 +00:00
kamil 38743855a4 Add new entry in TODO.ptrace
New entry:
 - add ATF tests for SIGCHLD
2016-12-24 05:43:31 +00:00
abhinav 96415509bf Fix a sentence. 2016-12-24 05:40:49 +00:00
abhinav a4dca42e82 As per C99 the range of values for the %S format specifier is [0,60]
rather than [0,61]. The standard has removed mention of double leap seconds.
The standard has give the following rationale in the time.h man page:

"The range [0,60] seconds allows for positive or negative leap seconds.
The formal definition of UTC does not permit double leap seconds, so all
mention of double leap seconds has been removed, and the range shortened
from the former [0,61] seconds seen in previous versions of POSIX."
2016-12-24 05:33:51 +00:00
wiz 891f77d746 openssh-7.4 out. 2016-12-23 23:17:57 +00:00
christos 41f4de4258 Don't attempt to shorten resolved path names (via realpath) because it could
lead to inconsistencies between different builds.
2016-12-23 21:11:45 +00:00
nat 264caa09e9 Simplify. Handle draining of vc[0] differently.
Addresses PR kern/51710 audio playback works only once.
2016-12-23 21:01:00 +00:00
mrg 75ff26e817 note mips64 n64 binary fixes. 2016-12-23 20:49:02 +00:00
scole 3ac5d95c18 make kernel compilable after recent uvm changes 2016-12-23 17:26:43 +00:00
cherry b94dbe7b54 balloon(4) can now use uvm_hotplug(9)
Do this.
2016-12-23 17:01:10 +00:00
maya 31a42b23da add SCTP_DEBUG to ALL kernels 2016-12-23 11:27:10 +00:00
maya 4a3120403d Remove extraneous parentheses. no functional change
Appeases clang
2016-12-23 11:11:28 +00:00
maya 90e99e5963 more psize_t physmem fallout. remove conflicting types. 2016-12-23 10:48:12 +00:00
mrg 0537635d0c for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl.  systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.
2016-12-23 10:19:57 +00:00
skrll 8e2dc22e79 Fix uvm_page_physget_freelist so that it actually performs the two passes
it mentions.
2016-12-23 09:36:55 +00:00
maya 5aa4cebe72 Use PRIxPSIZE when printing psize_t.
Fixes i386 kernels build.
2016-12-23 09:24:57 +00:00
skrll 1547d2d3eb PRIxPHYSMEM -> PRIxPHYSSEG to fix the build 2016-12-23 09:18:02 +00:00
skrll b9250ac781 PHYSMEM -> PHYSSEG to fix build 2016-12-23 09:16:46 +00:00
skrll cee8cc2148 Whitespace 2016-12-23 08:53:56 +00:00
maya 6e0b406276 remove conflicting declarations of physmem. we want it to be psize_t 2016-12-23 08:09:54 +00:00
cherry a9cac8fa8f Omitted assigning handle return value for the case:
(VM_PHYSSEG_STRAT == VM_PSTRAT_RANDOM)

Fix this.
2016-12-23 07:42:32 +00:00
maya f08e73106c Remove conflicting declaration of physmem 2016-12-23 07:40:05 +00:00
cherry 3b1622fa3c "Make NetBSD great again!"
Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.
2016-12-23 07:15:27 +00:00
mrg 20c21f9f52 in getpcblist_sysctl() if sysctlnametomib() fails, return NULL and
set *len = 0, rather than bailing.  now "netstat" doesn't give up
early on kernels without INET6.
2016-12-23 06:22:00 +00:00
abhinav 93864c5433 Complete a sentence
and replace full stop with a comma at one place as the sentence wasn't finished
2016-12-23 06:01:41 +00:00
mrg 65d0ad5f99 add the member name to an error string so we know what object failed
while being requested.
2016-12-22 22:41:02 +00:00
kamil b837326c3b The cgd(4) module requires des and blowfish symbols
This has been exposed with the MODULAR kernel.

kobj_checksyms, 979: [cgd]: linker error: symbol `BF_set_key' not found
kobj_checksyms, 979: [cgd]: linker error: symbol `des_key_sched' not found
kobj_checksyms, 979: [cgd]: linker error: symbol `des_ede3_cbc_encrypt' not found
WARNING: module error: unable to affix module `cgd', error 8

Reviewed by <riastradh>
2016-12-22 20:57:33 +00:00
abhinav 6672db53ac Remove trailing comma at the end of the last .Nm entry in the NAME section 2016-12-22 17:39:28 +00:00
abhinav d52ecd3afc Grammar fixes at few places
Also, don't use .D1 inside .Bd (mandoc -Tlint was complaining)
Remove whitespace at the end of a sentence
2016-12-22 17:27:02 +00:00
maya b6407b6ab6 add new header (uvm_physseg.h) to set list. 2016-12-22 16:32:31 +00:00
bouyer ad7eb753d3 Xen doens't need lapic so don't allocate a lapic VA/PA for Xen.
As a side effect this makes XEN3PAE boot again but I don't know why ...
2016-12-22 16:29:05 +00:00
cherry 3a405f030d physmem should be of type psize_t
Also, use PRIxPSIZE when printf(9)ing physmem.
2016-12-22 16:05:14 +00:00
cherry d24c42c87d Turn off uvm_hotplug option selection until we actually have it.
Should fix the build.
2016-12-22 15:54:35 +00:00
cherry e08917ef90 switch all ports to use uvm_init.c:uvm_md_init()
uvm_setpagesize() is now subsumed within this funciton.
2016-12-22 14:47:53 +00:00
mlelstv 46f58a90c6 When balancing threads over multiple CPUs, use fixpoint arithmetic
for averages. Otherwise the decisions can be heavily biased by rounding
errors.

Add sysctl kern.sched_average_weight to change the weight of
historical data, the default is 50%.
2016-12-22 14:11:58 +00:00
mlelstv 8a03ce05bd Fix race condition in dksubr, where a dk_start from another thread
or interrupt was ignored while the queue was processed.

Bump kernel revision for changed dk_softc.
2016-12-22 13:42:14 +00:00
cherry 8af61ebf0c Use uvm_physseg.h:uvm_page_physload() instead of uvm_extern.h
For this, include uvm_physseg.h in the build and include tree, make a
cosmetic modification to the prototype for uvm_page_physload().
2016-12-22 13:26:24 +00:00
maya 0805fb3a53 fix release build after the addition of uvm_hotplug man9 page
by adding it to the set lists.
2016-12-22 12:57:18 +00:00