6 hours agodrm/linux: Add two ktime_xxx functions master
François Tigeot [Sun, 14 Feb 2016 16:53:48 +0000 (17:53 +0100)]
drm/linux: Add two ktime_xxx functions

10 hours agotools/tcp_stream: Fix building on linux
Sepherosa Ziehau [Sun, 14 Feb 2016 12:38:55 +0000 (20:38 +0800)]
tools/tcp_stream: Fix building on linux

And white space clean up.

25 hours agokernel/acpi: Use hint.acpi.0.rsdp to get the RSDP table physical address.
Imre Vadász [Thu, 11 Feb 2016 21:58:09 +0000 (22:58 +0100)]
kernel/acpi: Use hint.acpi.0.rsdp to get the RSDP table physical address.

hint.acpi.0.rsdp isn't set by the legacy BIOS bootloader at the moment,
but it will be be used with the EFI bootloader.

25 hours agokernel/pc64: Add support for efi memory map parsing. Add sys/sys/efi.h.
Imre Vadasz [Wed, 10 Feb 2016 22:01:03 +0000 (23:01 +0100)]
kernel/pc64: Add support for efi memory map parsing. Add sys/sys/efi.h.

Taken-From: FreeBSD

25 hours agoSync ACPICA with Intel's version 20160212.
Sascha Wildner [Sat, 13 Feb 2016 21:31:03 +0000 (22:31 +0100)]
Sync ACPICA with Intel's version 20160212.

* ACPI specification 6.1 support.

* Ensure \_SB_._INI is executed before any _REG methods are executed.

* Reverted a change made in version 20151218 which enabled method
  invocations to be targets of various ASL operators (SuperName and
  Target grammar elements). Also, disallow this in iASL (flagged as
  errors now) in preparation for ACPI 6.2.

* Completed full support for the ACPI 6.0 External() AML opcode.

* In iASL, implemented support for an optional cross-reference
  output file.

For a more detailed list, please see sys/contrib/dev/acpica/changes.txt.

33 hours ago<sys/un.h>: Use a standard type for sockaddr_un's sun_len.
Sascha Wildner [Sat, 13 Feb 2016 14:01:14 +0000 (15:01 +0100)]
<sys/un.h>: Use a standard type for sockaddr_un's sun_len.

33 hours ago<sys/un.h>: Whitespace adjustments (no functional change).
Sascha Wildner [Sat, 13 Feb 2016 14:00:07 +0000 (15:00 +0100)]
<sys/un.h>: Whitespace adjustments (no functional change).

33 hours agolibedit: Restore installation of the editrc(5) manual page.
Sascha Wildner [Sat, 13 Feb 2016 13:59:16 +0000 (14:59 +0100)]
libedit: Restore installation of the editrc(5) manual page.

Removal of manual pages for the library privatization affects only
section 3 manual pages (for the functions in the library which is
now private). editrc.5 describes the ~/.editrc file that has an
effect on all things linked against the privatized edit library
too, so we want to ship documentation for it.

33 hours agolibssh: Restore installation of the moduli(5) manual page.
Sascha Wildner [Sat, 13 Feb 2016 13:45:29 +0000 (14:45 +0100)]
libssh: Restore installation of the moduli(5) manual page.

Removal of manual pages for the library privatization affects only
section 3 manual pages (for the functions in the library which is
now private). moduli.5 describes the /etc/ssh/moduli file as we
deliver it in base so its documentation has to be delivered too.

33 hours ago<netinet/in.h>: Use standard types.
Sascha Wildner [Sat, 13 Feb 2016 13:38:14 +0000 (14:38 +0100)]
<netinet/in.h>: Use standard types.

33 hours ago<netinet/in.h>: Whitespace adjustments (no functional change).
Sascha Wildner [Sat, 13 Feb 2016 13:37:19 +0000 (14:37 +0100)]
<netinet/in.h>: Whitespace adjustments (no functional change).

38 hours ago<unistd.h>: Use types which we actually have.
Sascha Wildner [Sat, 13 Feb 2016 09:02:08 +0000 (10:02 +0100)]
<unistd.h>: Use types which we actually have.

This is dead code at the moment because <unistd.h> includes
<sys/types.h>, leading to these types being already defined
at this point. This commit prepares for the day when we
remove <sys/types.h> from all headers which do not actually
need it.

We should probably have __gid_t and __uid_t.

38 hours agokqueue/signal: Send kevent even if the signal is masked
Sepherosa Ziehau [Sat, 13 Feb 2016 08:25:33 +0000 (16:25 +0800)]
kqueue/signal: Send kevent even if the signal is masked

This kinda follows FreeBSD's signal kqueue filter semantic, though
FreeBSD seems to send kevent even if no pending signal will be

Reported-by: ftigeot@
Tested-by: ftigeot@
2 days agokqueue: Rework timer expiration
Sepherosa Ziehau [Fri, 12 Feb 2016 12:46:59 +0000 (20:46 +0800)]
kqueue: Rework timer expiration

So that a being processed timer knote will not be activated.

While I'm here, factor out function to reset timer knote callout.

2 days agokqueue: Remove unused global kqueue token
Sepherosa Ziehau [Fri, 12 Feb 2016 11:46:30 +0000 (19:46 +0800)]
kqueue: Remove unused global kqueue token

2 days agoUnbreak VKERNEL64 build.
zrj [Fri, 12 Feb 2016 10:53:06 +0000 (12:53 +0200)]
Unbreak VKERNEL64 build.

After a05cac6 removal of MAKEBOOTDEV and B_ flags from sys/reboot.h
(that is not the place for such things) I broken the VKERNEL64 build.

This is a quick fix before someone with basic motoric functions
and a heart beat will take a better look (I lack the latter).

Not sure if disabling FFS_ROOT breaks anything, but it is better
than having build errors on vkernel/x86_64/autoconf.c

Also it gave me an oportunity to finally go through procedure
described in vkernel(7) to test it out for the first time!
So far no side effects on both X86_64_NON_GENERIC and VKERNEL64
except for no longer printed "no B_DEVMAGIC (bootdev=0)" in dmesg.

I should have guarded MAKEBOOTDEV and B_ flags with __i386__ in
sys/platform/pc64/include/bootinfo.h cause there is no platform/pc32
and I'm pretty sure thats a i386 thing only.

2 days agoifconfig: Fix inet6 address deletion
Sepherosa Ziehau [Fri, 12 Feb 2016 10:54:52 +0000 (18:54 +0800)]
ifconfig: Fix inet6 address deletion

Submitted-by: ygrossel
Dragonfly-bug: http://bugs.dragonflybsd.org/issues/2888

4 days agolibstand: Change sbrk() in libstand to take an intptr_t like libc's.
Sascha Wildner [Wed, 10 Feb 2016 20:58:11 +0000 (21:58 +0100)]
libstand: Change sbrk() in libstand to take an intptr_t like libc's.

4 days agosys/boot: Simplify MAKEBOOTDEV macro
zrj [Wed, 10 Feb 2016 13:44:40 +0000 (15:44 +0200)]
sys/boot: Simplify MAKEBOOTDEV macro

Treat slice as a single part of bootdev.
Previous implementation artificially slit it into
adaptor and controller fields.

No functional change intended.
Taken-from: FreeBSD

4 days agolibstand: Add dos_readdir() function, to make ls work on Fat Filesystems.
Imre Vadász [Tue, 9 Feb 2016 21:25:11 +0000 (22:25 +0100)]
libstand: Add dos_readdir() function, to make ls work on Fat Filesystems.

Taken-From: FreeBSD

4 days agolibstand: Spin the twiddle in dosfs to give visual feedback for disk I/O.
Imre Vadász [Tue, 9 Feb 2016 18:50:51 +0000 (19:50 +0100)]
libstand: Spin the twiddle in dosfs to give visual feedback for disk I/O.

Taken-From: FreeBSD

4 days agogpt.h: Add few more GPT GUIDs
zrj [Wed, 10 Feb 2016 12:28:32 +0000 (14:28 +0200)]
gpt.h: Add few more GPT GUIDs

While there, add few GPT_ENT_ATTR_BOOT attributes,
that will be used by boot-loader.

Taken-from: FreeBSD

4 days agodocs: Move trek(6) USD papers into share/doc
zrj [Thu, 28 Jan 2016 17:01:10 +0000 (19:01 +0200)]
docs: Move trek(6) USD papers into share/doc

4 days agodocs: Move rogue(6) USD papers into share/doc
zrj [Thu, 28 Jan 2016 16:59:08 +0000 (18:59 +0200)]
docs: Move rogue(6) USD papers into share/doc

4 days agodocs: Move rsc(1) PSD papers into share/doc
zrj [Thu, 28 Jan 2016 16:56:38 +0000 (18:56 +0200)]
docs: Move rsc(1) PSD papers into share/doc

4 days agodocs: Use -Thtml to generate papers.
zrj [Thu, 28 Jan 2016 16:40:45 +0000 (18:40 +0200)]
docs: Use -Thtml to generate papers.

unroff doesn't work.

There is some issues with png generation and cleanup.

4 days agodocs: Partially sync bsd.docs.mk with FreeBSD
zrj [Thu, 28 Jan 2016 16:14:52 +0000 (18:14 +0200)]
docs: Partially sync bsd.docs.mk with FreeBSD


4 days agodocs: Sync SMM/PSD/USD papers with FreeBSD
zrj [Thu, 28 Jan 2016 15:52:34 +0000 (17:52 +0200)]
docs: Sync SMM/PSD/USD papers with FreeBSD

4 days agodocs/papers: Sync with FreeBSD
zrj [Thu, 28 Jan 2016 15:33:14 +0000 (17:33 +0200)]
docs/papers: Sync with FreeBSD

4 days agodocs/IPv6: Sync paper with FreeBSD
zrj [Thu, 28 Jan 2016 15:13:03 +0000 (17:13 +0200)]
docs/IPv6: Sync paper with FreeBSD

4 days agodocs: Prune stale nqnfs papers.
zrj [Thu, 28 Jan 2016 15:04:37 +0000 (17:04 +0200)]
docs: Prune stale nqnfs papers.

No code in DragonFly.

4 days agodocs: Prune VAX 11.780 Berkeley pascall implementation papers.
zrj [Thu, 28 Jan 2016 14:57:52 +0000 (16:57 +0200)]
docs: Prune VAX 11.780 Berkeley pascall implementation papers.

Have only historical meaning.

4 days agodocs: Fix builds
zrj [Thu, 28 Jan 2016 11:43:37 +0000 (13:43 +0200)]
docs: Fix builds

Partially-taken-from: FreeBSD

4 days agodocs: Recover 19.memmacros 20.mereg USD papers
zrj [Thu, 28 Jan 2016 10:11:00 +0000 (12:11 +0200)]
docs: Recover 19.memmacros 20.mereg USD papers

This one was lost in 478302f4f55e751abdc2d8e52cb385f9c68658a1
"Get rid of the old groff."

Adapt to have paper in non contrib directory,
still relies on contrib/groff/VERSION

4 days agodocs: Recover 10.exref 11.vitut 12.vi 13.viref USD papers
zrj [Thu, 28 Jan 2016 09:54:25 +0000 (11:54 +0200)]
docs: Recover 10.exref 11.vitut 12.vi 13.viref USD papers

This one was lost in d5e9c9d216ca3960deda6a41fc110ceacac0c1e5
"Remove nvi/ files from contrib (replaced by nvi2/)"

With-changes-from: FreeBSD

4 days agodocs: Recover 18.groff PSD paper
zrj [Thu, 28 Jan 2016 08:58:50 +0000 (10:58 +0200)]
docs: Recover 18.groff PSD paper

This one was lost in c9e065d383e21ab9bb636ce06152982597b83587
"BSD gprof/4: Remove old gprof versions from code base"

BSD groff was replaced by GNU groff.
FreeBSD still kept the paper.

4 days agodocs: Recover 12.make PSD paper
zrj [Thu, 28 Jan 2016 08:45:43 +0000 (10:45 +0200)]
docs: Recover 12.make PSD paper

This one was lost in c9e065d383e21ab9bb636ce06152982597b83587
"usr.bin/make: Remove legacy make files"

Almost all info still applies to bmake from NetBSD

4 days agodocs: Prune stale 28.cvs
zrj [Wed, 27 Jan 2016 11:24:23 +0000 (13:24 +0200)]
docs: Prune stale 28.cvs

4 days agodocs: Trim trailing whitespaces in PSD/SMM.
zrj [Thu, 28 Jan 2016 08:20:52 +0000 (10:20 +0200)]
docs: Trim trailing whitespaces in PSD/SMM.

No functional chagne.

4 days agodocs: Move rpc(3) PSD papers into share/doc
zrj [Wed, 27 Jan 2016 11:17:57 +0000 (13:17 +0200)]
docs: Move rpc(3) PSD papers into share/doc

4 days agodocs: Move mail(1) USD papers into share/doc
zrj [Wed, 27 Jan 2016 10:10:08 +0000 (12:10 +0200)]
docs: Move mail(1) USD papers into share/doc

While there, remove date tag.

Taken-from: FreeBSD

4 days agodocs: Move bc(1) USD papers into share/doc
zrj [Wed, 27 Jan 2016 09:57:17 +0000 (11:57 +0200)]
docs: Move bc(1) USD papers into share/doc

While there add mis usage of ms(7) macros.

Taken-from: FreeBSD

4 days agodocs: Move dc(1) USD papers into share/doc
zrj [Wed, 27 Jan 2016 09:49:58 +0000 (11:49 +0200)]
docs: Move dc(1) USD papers into share/doc

4 days agodocs: Move csh(1) USD papers into share/doc
zrj [Wed, 27 Jan 2016 09:34:42 +0000 (11:34 +0200)]
docs: Move csh(1) USD papers into share/doc

4 days agodocs: Move timed(8) SMM papers into share/doc
zrj [Wed, 27 Jan 2016 09:19:26 +0000 (11:19 +0200)]
docs: Move timed(8) SMM papers into share/doc

4 days agodocs: Move lpd(8) SMM papers into share/doc
zrj [Wed, 27 Jan 2016 08:56:49 +0000 (10:56 +0200)]
docs: Move lpd(8) SMM papers into share/doc

4 days agodocs: Move fsck(8) SMM papers into share/doc
zrj [Wed, 27 Jan 2016 08:34:39 +0000 (10:34 +0200)]
docs: Move fsck(8) SMM papers into share/doc

4 days agodocs: Move config(8) SMM papers into share/doc
zrj [Wed, 27 Jan 2016 08:25:44 +0000 (10:25 +0200)]
docs: Move config(8) SMM papers into share/doc

6 days agoAdd support for the pei-x86-64 target in binutils; Needed for UEFI support.
Imre Vadasz [Sun, 7 Feb 2016 15:21:23 +0000 (16:21 +0100)]
Add support for the pei-x86-64 target in binutils; Needed for UEFI support.

6 days agoMerge branch 'vendor/BINUTILS225'
Imre Vadász [Mon, 8 Feb 2016 09:19:59 +0000 (10:19 +0100)]
Merge branch 'vendor/BINUTILS225'

7 days ago<cpu/limits.h>: Adjust visibility of various *_{MIN,MAX} constants.
Sascha Wildner [Sun, 7 Feb 2016 19:35:53 +0000 (20:35 +0100)]
<cpu/limits.h>: Adjust visibility of various *_{MIN,MAX} constants.

This commit just affects POSIX environments (to reduce namespace
pollution), not our default one where all of this is visible. No
dports breakage was observed in my tests, as is expected because
this change is...

Taken-from: FreeBSD

7 days ago<cpu/limits.h>: Minor whitespace fixes.
Sascha Wildner [Sun, 7 Feb 2016 19:25:02 +0000 (20:25 +0100)]
<cpu/limits.h>: Minor whitespace fixes.

7 days ago<grp.h>: Include <machine/stdint.h> instead of the whole of <sys/types.h>.
Sascha Wildner [Sun, 7 Feb 2016 19:22:18 +0000 (20:22 +0100)]
<grp.h>: Include <machine/stdint.h> instead of the whole of <sys/types.h>.

It is only needed for __uint32_t.

After this commit, namespace pollution for <grp.h> is considerably lower.

7 days ago<grp.h>: Minor whitespace fixes.
Sascha Wildner [Sun, 7 Feb 2016 19:19:04 +0000 (20:19 +0100)]
<grp.h>: Minor whitespace fixes.

7 days agoImport missing sources needed for UEFI application support. vendor/BINUTILS225
Imre Vadász [Sun, 7 Feb 2016 13:16:43 +0000 (14:16 +0100)]
Import missing sources needed for UEFI application support.

7 days agotools/tcp_stream: Kill netperf children proactively upon SIGINT
Sepherosa Ziehau [Sun, 7 Feb 2016 11:56:37 +0000 (19:56 +0800)]
tools/tcp_stream: Kill netperf children proactively upon SIGINT

TCP_MAERTS test traps the first SIGINT, so use SIGKILL to terminate
them, if we are about to die.

7 days agotools/tcp_stream: Add dual side test support
Sepherosa Ziehau [Sun, 7 Feb 2016 11:21:30 +0000 (19:21 +0800)]
tools/tcp_stream: Add dual side test support

7 days agodrm/linux: Sync linux/math64.h with FreeBSD
François Tigeot [Sun, 7 Feb 2016 10:49:07 +0000 (11:49 +0100)]
drm/linux: Sync linux/math64.h with FreeBSD

Removing 32-bit inline functions.

7 days agotools/tcp_stream: Allow performing test to multiple hosts
Sepherosa Ziehau [Sun, 7 Feb 2016 10:15:28 +0000 (18:15 +0800)]
tools/tcp_stream: Allow performing test to multiple hosts

7 days agoRemove FreeBSD OS/ABI from raid driver blobs.
Imre Vadász [Sat, 6 Feb 2016 19:46:55 +0000 (20:46 +0100)]
Remove FreeBSD OS/ABI from raid driver blobs.

This fixes kgdb issues when the kernel was linked with ld.gold.

The problem was caused by ld.gold's behaviour of setting the OS/ABI in
the output binary to FreeBSD when any of the input objects is tagged
with the FreeBSD OS/ABI.

The hpt27xx, hptmv and hptrr raid-drivers are using binary blobs, with
the FreeBSD OS/ABI flag, so we should just set the OS/ABI of these
objects to none after uudecode-ing them.

7 days agotools/tcp_stream: Set message size on both send and receive sides
Sepherosa Ziehau [Sun, 7 Feb 2016 08:44:13 +0000 (16:44 +0800)]
tools/tcp_stream: Set message size on both send and receive sides

7 days agotools/tcp_stream: Move sockbuf string to the main stack
Sepherosa Ziehau [Sun, 7 Feb 2016 05:56:01 +0000 (13:56 +0800)]
tools/tcp_stream: Move sockbuf string to the main stack

7 days agotools/tcp_stream: Compile on Linux and add option for sockbuf size
Sepherosa Ziehau [Sun, 7 Feb 2016 03:58:17 +0000 (11:58 +0800)]
tools/tcp_stream: Compile on Linux and add option for sockbuf size

8 days agolinux/kref.h: Add kref_put_mutex()
François Tigeot [Sat, 6 Feb 2016 14:11:36 +0000 (15:11 +0100)]
linux/kref.h: Add kref_put_mutex()

8 days agoetc/rc.d: Update rtsold
Markus Pfeiffer [Sat, 6 Feb 2016 12:17:16 +0000 (12:17 +0000)]
etc/rc.d: Update rtsold

* Remove precmd, it did not work because autocmd does not exist
* Add postcmd, taken from FreeBSD head

8 days ago{msg,sem,shm}*.2: Some mdoc improvements (mainly adding .Dv).
Sascha Wildner [Sat, 6 Feb 2016 11:12:12 +0000 (12:12 +0100)]
{msg,sem,shm}*.2: Some mdoc improvements (mainly adding .Dv).

9 days ago<libgen.h>: Clean up whitespace and some #if 0'd code.
Sascha Wildner [Wed, 3 Feb 2016 19:28:54 +0000 (20:28 +0100)]
<libgen.h>: Clean up whitespace and some #if 0'd code.

9 days agoMakefile_upgrade.inc: Don't remove manpages which we have to keep.
Sascha Wildner [Fri, 5 Feb 2016 12:55:12 +0000 (13:55 +0100)]
Makefile_upgrade.inc: Don't remove manpages which we have to keep.

They were not part of the library privatization (which can only
affect section 3 manual pages). Those tools are consumers of
privatized libs but of course they must keep their documentation.

9 days agoMakefile_upgrade.inc: Add missing files from the lib privatization.
Sascha Wildner [Fri, 5 Feb 2016 12:52:33 +0000 (13:52 +0100)]
Makefile_upgrade.inc: Add missing files from the lib privatization.

9 days agoMakefile_upgrade.inc: Expand all wildcards from the lib privatization.
Sascha Wildner [Fri, 5 Feb 2016 12:51:54 +0000 (13:51 +0100)]
Makefile_upgrade.inc: Expand all wildcards from the lib privatization.

We want to see exactly what we remove, not just approximately.
'make upgrade' changes are a pain to review when everything is
muddled with patterns. And it gets worse over time because
without a not yet upgraded system one has no choice but to
restore a world from the time and replaying the 'make upgrade'
to see what was going on.

Also, if we ever need to bring back one file which is covered
by a pattern later on (and we've had such cases), no one will
know what the rest of the wildcard was covering aside from
that file.

9 days agoMakefile_upgrade.inc: Sort lib privatization entries per commit.
Sascha Wildner [Fri, 5 Feb 2016 12:48:14 +0000 (13:48 +0100)]
Makefile_upgrade.inc: Sort lib privatization entries per commit.

9 days agoMakefile_upgrade.inc: Add many missing '.gz'.
Sascha Wildner [Fri, 5 Feb 2016 12:47:44 +0000 (13:47 +0100)]
Makefile_upgrade.inc: Add many missing '.gz'.

9 days ago<unistd.h>: Use #if 0 for _POSIX_SAVED_IDS. Update some comments.
Sascha Wildner [Fri, 5 Feb 2016 12:14:51 +0000 (13:14 +0100)]
<unistd.h>: Use #if 0 for _POSIX_SAVED_IDS. Update some comments.

9 days agokernel: Use POSIX constants for pathconf defaults (no functional change).
Sascha Wildner [Fri, 5 Feb 2016 07:56:27 +0000 (08:56 +0100)]
kernel: Use POSIX constants for pathconf defaults (no functional change).

11 days ago<time.h>: CLOCKS_PER_SEC must be of type clock_t.
Sascha Wildner [Wed, 3 Feb 2016 10:44:21 +0000 (11:44 +0100)]
<time.h>: CLOCKS_PER_SEC must be of type clock_t.

Note that its value violates the standards requirement that it be
1000000. See the STANDARDS section of clock(3)'s manual page for
further information.

11 days ago<time.h>: struct timespec's definition has to be visible for C11.
Sascha Wildner [Wed, 3 Feb 2016 10:12:14 +0000 (11:12 +0100)]
<time.h>: struct timespec's definition has to be visible for C11.

See B.26 in the C11 standard.

Note that this is not in the N1548 committee draft.

12 days ago<time.h>: C11 actually specifies that TIME_UTC be "greater than 0".
Sascha Wildner [Tue, 2 Feb 2016 17:05:20 +0000 (18:05 +0100)]
<time.h>: C11 actually specifies that TIME_UTC be "greater than 0".

In-discussion-with: xenu

13 days agomake upgrade: Add an obsolete time zone.
Sascha Wildner [Mon, 1 Feb 2016 21:13:23 +0000 (22:13 +0100)]
make upgrade: Add an obsolete time zone.

13 days agobump __DragonFly_version for library privatizaton
John Marino [Mon, 1 Feb 2016 08:51:46 +0000 (09:51 +0100)]
bump __DragonFly_version for library privatizaton

Better late than never.   Version is now 400502

2 weeks agoSync zoneinfo database with tzdata2016a from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Sat, 30 Jan 2016 10:49:54 +0000 (11:49 +0100)]
Sync zoneinfo database with tzdata2016a from ftp://ftp.iana.org/tz/releases

* America/Cayman will not observe daylight saving this year after all.
    Revert our guess that it would.  (Thanks to Matt Johnson.)

* Asia/Chita switches from +0800 to +0900 on 2016-03-27 at 02:00.
    (Thanks to Alexander Krivenyshev.)

* Asia/Tehran now has DST predictions for the year 2038 and later,
    to be March 21 00:00 to September 21 00:00.  This is likely better
    than predicting no DST, albeit off by a day every now and then.

* America/Metlakatla switched from PST all year to AKST/AKDT on
    2015-11-01 at 02:00.  (Thanks to Steffen Thorsen.)

* America/Santa_Isabel has been removed, and replaced with a
    backward compatibility link to America/Tijuana.  Its contents were
    apparently based on a misreading of Mexican legislation.

* Asia/Karachi's two transition times in 2002 were off by a minute.
    (Thanks to Matt Johnson.)

* The Theory and asia files now mention the 2015 book "The Global
    Transformation of Time, 1870-1950", and cite a couple of reviews.

* The America/Chicago entry now documents the informal use of US
    central time in Fort Pierre, South Dakota.  (Thanks to Rick
    McDermid, Matt Johnson, and Steve Jones.)

2 weeks agolibc - implement C11 function timespec_get()
Tomasz Konojacki [Fri, 29 Jan 2016 14:02:53 +0000 (15:02 +0100)]
libc - implement C11 function timespec_get()

2 weeks agoRevert "boot/acpi: Implement hint.acpi.0.rsdp kenv."
Sascha Wildner [Sat, 30 Jan 2016 09:37:52 +0000 (10:37 +0100)]
Revert "boot/acpi: Implement hint.acpi.0.rsdp kenv."

This reverts commit 0a259e612e301dbd1a36b7878773ea511b3a1e10.

2 weeks agoboot/acpi: Use an ACPICA constant instead of a magic number.
Sascha Wildner [Fri, 29 Jan 2016 22:49:15 +0000 (23:49 +0100)]
boot/acpi: Use an ACPICA constant instead of a magic number.

While here, reword a comment to not refer to any specific version of
the ACPI specification.

2 weeks agoboot/acpi: Implement hint.acpi.0.rsdp kenv.
Sascha Wildner [Fri, 29 Jan 2016 22:39:50 +0000 (23:39 +0100)]
boot/acpi: Implement hint.acpi.0.rsdp kenv.

ACPICA can make use of it.

2 weeks agokernel/isofs: Add all iso9660 number conversion routines.
zrj [Tue, 26 Jan 2016 14:55:37 +0000 (16:55 +0200)]
kernel/isofs: Add all iso9660 number conversion routines.

Mainly to remove 7.2.2 and 7.3.2 routines from lib/libstand.

While there, fix return type for 7.1.2 to be signed as per ISO9660.

This commit breaks sysutils/hal dport again,
it should have been patched in the first place.

Taken-from: FreeBSD

2 weeks agokernel/isofs: Remove UNALIGNED_ACCESS
zrj [Tue, 26 Jan 2016 14:31:46 +0000 (16:31 +0200)]
kernel/isofs: Remove UNALIGNED_ACCESS

Don't make assumptions against clever compilers.

2 weeks agokernel/msdosfs: Remove UNALIGNED_ACCESS
zrj [Tue, 26 Jan 2016 14:25:22 +0000 (16:25 +0200)]
kernel/msdosfs: Remove UNALIGNED_ACCESS

This is basically r165431 from FreeBSD.

2 weeks agokernel/isofs: style(9) fixes.
zrj [Tue, 26 Jan 2016 13:41:28 +0000 (15:41 +0200)]
kernel/isofs: style(9) fixes.

2 weeks agogcc50/libconv_supc: cp-demangle.c needs HAVE_CONFIG_H.
Sascha Wildner [Fri, 29 Jan 2016 11:51:54 +0000 (12:51 +0100)]
gcc50/libconv_supc: cp-demangle.c needs HAVE_CONFIG_H.

This fixes 22 warnings about incompatible implicit declarations of
various functions.

2 weeks agogames/snack: fix after ncurses privatization
John Marino [Fri, 29 Jan 2016 01:08:39 +0000 (02:08 +0100)]
games/snack: fix after ncurses privatization

I had NO_GAMES set in /etc/make.conf, so all the games the omitted from
the testing.  When I turned it, I found snake was missing LDFLAGS.

2 weeks agoprivatize libncurses (touches many, many programs)
John Marino [Fri, 29 Jan 2016 00:18:54 +0000 (01:18 +0100)]
privatize libncurses (touches many, many programs)

The ncurses software produces 8 libraries: normal and wide versions of
ncurses, forms, menu, and panel.  The dragonfly base doesn't use forms
or menu at all so we can remove 4 libraries immediately and their
associated man pages.

The panel library is only used in one place, so technically libpanelw
is no longer required, but let's keep building it anyway.

While here, delete references to libcurses.  It was just symlinked to
ncurses, so let's take the opportunity to only reference ncurses from
this point forward and not install a private version of libcurses.

2 weeks agoLocal adjustments for OpenSSL 1.0.1r.
Sascha Wildner [Thu, 28 Jan 2016 22:26:19 +0000 (23:26 +0100)]
Local adjustments for OpenSSL 1.0.1r.

2 weeks agoMerge branch 'vendor/OPENSSL'
Sascha Wildner [Thu, 28 Jan 2016 22:25:50 +0000 (23:25 +0100)]
Merge branch 'vendor/OPENSSL'

2 weeks agoImport OpenSSL 1.0.1r. vendor/OPENSSL
Sascha Wildner [Thu, 28 Jan 2016 21:33:36 +0000 (22:33 +0100)]
Import OpenSSL 1.0.1r.

* Protection for DH small subgroup attacks

* Fix CVE-2015-3197 (SSLv2 doesn't block disabled ciphers)

* Reject DH handshakes with parameters shorter than 1024 bits

2 weeks agomove private edit library to /lib/priv
John Marino [Thu, 28 Jan 2016 19:17:37 +0000 (20:17 +0100)]
move private edit library to /lib/priv

While here, fix private ssh and ldns.  The .so and .a versions were
not installed and this probably will break future builds for anyone
that's built world in the last few hours.

Also, all of these private libraries also need -L flags in addition
to -rpath flags.

2 weeks agomove private ssh library to /usr/lib/priv
John Marino [Thu, 28 Jan 2016 12:14:18 +0000 (13:14 +0100)]
move private ssh library to /usr/lib/priv

2 weeks agoMove private ldns library to /usr/lib/priv
John Marino [Thu, 28 Jan 2016 11:18:46 +0000 (12:18 +0100)]
Move private ldns library to /usr/lib/priv

It's been decided to relocate private libraries to either /lib/priv or
/usr/lib/priv.  This requires the use of the -rpath linker flag as the
libraries are no longer located in a standard search path.

discussed with: dillon, swildner

2 weeks agoAdd a missing file to make upgrade's list.
Sascha Wildner [Wed, 27 Jan 2016 09:52:38 +0000 (10:52 +0100)]
Add a missing file to make upgrade's list.

2 weeks ago<sys/unistd.h>: Comment some POSIX options.
Sascha Wildner [Wed, 27 Jan 2016 09:23:17 +0000 (10:23 +0100)]
<sys/unistd.h>: Comment some POSIX options.

2 weeks agoprivatize libedit (used by numerous base programs)
John Marino [Wed, 27 Jan 2016 00:24:52 +0000 (01:24 +0100)]
privatize libedit (used by numerous base programs)

Besides affecting far more programs than the first two conversions,
this privatization requires a modification to bin/sh which is a bootstrap
program.  If bootstrapping, it will use libedit.* if it exists, otherwise
it will use libprivate_edit.*.  After "make upgrade", /usr/lib/libedit will
no longer be on the system so the private version will then be used in all