DragonFlyBSD/src 7a09efdlib/libc/sys select.2

select.2: timeout is restrict too.

DragonFlyBSD/src bb5b9belib/libc/gen dlfcn.3, lib/libc/stdtime ctime.3

Add missing restrict qualifiers to various manual pages.

DragonFlyBSD/src db68bb1etc/devd usb.conf, share/man/man4 cdce.4 usb.4

kernel/u4b: Some additional work for the recent cdce(4) addition.

* Add a manual page from FreeBSD.

* Add to LINT64.

* Adjust devd(8) configuration so that cdce.ko automatically loads upon
  plugging.

DragonFlyBSD/src a54f9b5sys/bus/u4b/net if_cdce.c

kernel/u4b: Use CDCE_LOCK/CDCE_UNLOCK macros

DragonFlyBSD/src 0e23f1dsys/bus/u4b usbdevs, sys/bus/u4b/net if_cdce.c if_cdcereg.h

kernel: port if_cdce

While here also update it to FreeBSD's

DragonFlyBSD/src e4f76d8share/man/man9 ioctl.9, sys/platform/pc64/acpica acpi_machdep.c

kernel/acpi: Remove the old APM emulation code.

This is no longer needed by anything. The <machine/apm_bios.h> header
with APM ioctl defines can go as well.

While here, do a little adjustment of comments and manual pages too.

Pointed-out-by: ivadasz

DragonFlyBSD/src c07d588. UPDATING

UPGRADING: Mention the recent removal of 'device virtio_pci'.
DeltaFile
+6-0UPDATING
+6-01 files

DragonFlyBSD/src cebb579nrelease Makefile

nrelease - Add missing headers to src-sys.tar.bz2

* Add missing headers to src-sys.tar.bz2 so 'make nativekernel'
  actually works.

Reported-by: Constantine A. Murenin
DeltaFile
+2-1nrelease/Makefile
+2-11 files

DragonFlyBSD/src 3a5be3flib/libc Makefile, lib/libc_rtld Makefile

libc/libc_rtld: Fix up some comments in the Makefiles.

DragonFlyBSD/src bd2b9b6sbin/gpt create.c gpt.8

gpt - Add a new directive called 'init'

* Add a new directive called 'init'.  This directive works like
  gpt create except it will also create a msdos slice 0 (and newfs_msdos
  it), and a "DragonFly Label64" slice 1, and
  'disklabel -r -w <slice1> auto'.

* If -B is also specified, the init directive will populate the msdos
  filesystem with efi/boot/bootx64.efi, and also supplies -B to the
  disklabel command.

* This command does not create the boot, swap, or root filesystem
  partitions in the disklabel.  It is meant to do something similar
  to what fdisk -IB used to do for us for legacy partitions (though
  I should note that fdisk -IB didn't initialize a new disklabel).  But
  we do for gpt.

DragonFlyBSD/src 3014cccsys/dev/disk/ncr ncr.c

kernel/ncr: Fix double assignment.

Taken-from: FreeBSD

DragonFlyBSD/src c2888bfsys/dev/drm/i915 intel_display.c

kernel/i915: Fix double assignment (Linux' ed58570f55e2c5755).

DragonFlyBSD/src 8a5c22fsys/dev/drm/i915 dvo_ch7017.c

kernel/i915: Fix double assignment (Linux' 52eb92c6fe8f89c30).

DragonFlyBSD/src cf8b894usr.sbin/rtadvd config.c

rtadvd(8): Fix double assignment.

ra->nd_ra_flags_reserved is initialized properly a few lines below.
Assigning 0 first is unnecessary.

DragonFlyBSD/src 6a1bea7sys/bus/u4b/wlan if_urtw.c

kernel/urtw: Fix double assignments.

This driver hasn't been properly ported and isn't built currently. The
fix is just to silence coccinelle when searching for double assignments.

Taken-from: FreeBSD

DragonFlyBSD/src 271094ftools/tools/net80211/w00t/ap ap.c

tools/w00t: Fix double assignment.

DragonFlyBSD/src e6b5019sys/boot/pc32/libi386 biosmem.c, sys/dev/video/bktr bktr_core.c

Fix two double assignments in the kernel and the boot code.

DragonFlyBSD/src b37a48cshare/man/man4 virtio.4, sys/conf files

virtio - Remove explicit load of virtio.ko. Remove device virtio_pci line.

* virtio.ko never needs to be loaded explicitly, since virtio_pci.ko
  depends on it.

* Also get rid of device virtio_pci line in the kernel config. Similar to
  other buses, link virtio_pci statically into the kernel when both
  device virtio and device pci are configured.

DragonFlyBSD/src 0902be3lib/libncurses Makefile.sources

ncurses: Make sure to pass NXCFLAGS to NXCC.

Only the -I... paths are needed for cpp invocation.

DragonFlyBSD/src 4835d9fbin/sh Makefile

LIBPRIV: Make sure sh(1) only depends on lib.so.

Avoid possible cases of failed installworld target.
DeltaFile
+1-2bin/sh/Makefile
+1-21 files

DragonFlyBSD/src cbb07febin/sh/pregenerated nodes.c syntax.c

sh(1): Add and use pregenerated headers.

These only add 30k to the repo while ensuring that bin/sh would not be
affected by bad shell script invocation etc. As the bonus it solves the
issue in share/initrd too. Nothing in the generated headers should fail
for our use cases. If that would change, please report it.

DragonFlyBSD/src 9f05f13lib/libdevinfo devinfo.h, usr.sbin/devinfo devinfo.c devinfo.8

devinfo - Print info, whether a device is flagged as disabled.

* Also make -v print only enabled devices, specifying -v twice will also
  print disabled devices. This should make "devinfo -v" output less
  confusing on modern hardware with lots of non-present devices in the ACPI
  namespace.

DragonFlyBSD/src 652e7e9lib/libdevinfo devinfo.h, usr.sbin/devinfo devinfo.c

libdevinfo - Fix enum devinfo_state.

DragonFlyBSD/src 7e81bb3sys/kern kern_memio.c

kern - Add D_MEM flag to /dev/mem and /dev/kmem character devices.

* This makes seeking actually work on these character devices, which fixes
  performance of various tools when reading from /dev/mem or /dev/kmem.
DeltaFile
+16-2sys/kern/kern_memio.c
+16-21 files

DragonFlyBSD/src 131acb0sys/dev/misc/atkbdc_layer atkbdc_isa.c, sys/dev/misc/kbd atkbdc.c

atkbdc - Do not attach PS2 controller via legacy ISA bus, if FADT says so.

* If the FADT BootFlags value tells us that we shouldn't expect the PS2
  controller to be at the IO ports 0x60/0x64, we should instead only attach
  the atkbdc driver when there is a matching device in the ACPI namespace.

* This avoids attempts to attach the atkbdc PS2 controller driver on
  hardware which doesn't have a usable PS2 controller. This happens on
  many modern notebooks, and has been the case for some time on desktop
  hardware that doesn't provide an emulated PS2 controller for using USB
  input devices all the time (it either is never initialized, or might
  get disabled by some of the ACPI or USB initialization during bootup).

DragonFlyBSD/src 96696eesys/dev/misc/syscons schistory.c

kernel - Increase syscons history buffer size

* Increase syscons history from 4 screens to 10 screens
  (4*rows to 10*rows).

DragonFlyBSD/src e62ef63lib/libipsec pfkey.c, sbin/fsdb fsdb.c

Replace local array size calculations with NELEM().

DragonFlyBSD/src 70675b4games/colorbars colorbars.c, sbin/init init.c

Convert from __arysize to NELEM

Try to use a single macro across the board

Discussed-with: zrj, swildner

DragonFlyBSD/src 02110a6share/man/man5 nfs.5

nfs.5: Adjust (c) year.

DragonFlyBSD/src b9e8996share/man/man5 nfs.5

nfs.5: Remove unneeded .Pp

DragonFlyBSD/src 5b3e799share/man/man5 devfs.5

devfs.5: Document sysctl.

Submitted-by: zrj

DragonFlyBSD/src fb09a4ashare/man/man5 ffs.5

ffs.5: Document more sysctls.

Move ffs sysctls to their own section.

Submitted-by: zrj
DeltaFile
+25-16share/man/man5/ffs.5
+25-161 files

DragonFlyBSD/src 51de5f3share/man/man5 nfs.5 Makefile

Add nfs(5) manpage.

Document all sysctls.

Submitted-by: zrj

DragonFlyBSD/src fe93222share/man/man7 vfs.7 Makefile

Add vfs(7) manpage.

Document all sysctls except for sizeof stuct ones.

Submitted-by: zrj

DragonFlyBSD/src ca827bcsys/dev/misc/syscons syscons.c

kernel - Fix syscons's visual bell

* The visual bell code was completely broken.

* Refactor the callout, and use the new callout_init_lk facility
  to deal with races.

Reported-by: snurg

DragonFlyBSD/src 72da38asys/dev/misc/syscons syscons.c

kernel - Fix syscons's visual bell

* The visual bell code was completely broken.

* Refactor the callout, and use the new callout_init_lk facility
  to deal with races.

Reported-by: snurg

DragonFlyBSD/src 176090dsys/dev/drm/include/linux list.h

drm/linux: Update hlist_for_each_entry_safe() from FreeBSD

DragonFlyBSD/src 5f87bdesbin/hammer hammer.h

sbin/hammer: Fix compile warning on Linux

Warned by gcc 7.3.1 in Fedora.
Extend the size of destination string.
dirent::d_name[] is 256 bytes in Linux (and *BSD).

--
cmd_abort.c: In function 'hammer_cmd_abort_cleanup':
cmd_abort.c:73:44: warning: '%s' directive output may be truncated writing up to 255 bytes 
into a region of size 55 [-Wformat-truncation=]
    snprintf (pidfile, PIDFILE_BUFSIZE, "%s/%s",
                                            ^~
cmd_abort.c:73:4: note: 'snprintf' output between 10 and 265 bytes into a destination of 
size 64
    snprintf (pidfile, PIDFILE_BUFSIZE, "%s/%s",
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     pidfile_loc, den->d_name);
     ~~~~~~~~~~~~~~~~~~~~~~~~~

DragonFlyBSD/src 280ba0egames/mille move.c extern.c

mille(6): minor nits

- adding missing header
- remove unused variable
- static where possible

Reviewed-by:    zrj

DragonFlyBSD/src 85c5dc6gnu/usr.bin/cc50/backends/guts/guts-cobjc Makefile, gnu/usr.bin/cc50/backends/guts/guts-common Makefile

gcc50: Switch backends to use internal lib framework.

Previously backends where implicitly using bsd.hostlib.mk that have few
unwanted side effects (backends are install targets). Avoid that.
No functional change for current master users.

Tested-with: WORLD_CCVER and _DEFAULT_CCVER combinations.

DragonFlyBSD/src 1344722games/fish fish.c

fish(6): Suppress -Wdiscarded-qualifiers warning.
DeltaFile
+3-3games/fish/fish.c
+3-31 files

DragonFlyBSD/src 1b1c1a4etc Makefile.usr

/usr/Makefile: Fix typo.
DeltaFile
+1-1etc/Makefile.usr
+1-11 files

DragonFlyBSD/src fc0a173games/larn bill.c

correct prior commit...
DeltaFile
+1-1games/larn/bill.c
+1-11 files

DragonFlyBSD/src 718b295games/larn bill.c

larn(6): fix open call

Prior to this the ", 0666" was being treated like the comma operator
rather than an argument to open(2).
DeltaFile
+1-2games/larn/bill.c
+1-21 files

DragonFlyBSD/src 551a658games/larn main.c Makefile

larn(6): remove HIDEBYLINK

The implementation of HIDEBYLINK is a bit wonky, doesn't really work,
and includes its own reimplementation of bzero.

DragonFlyBSD/src b13d9d2games/fish fish.c pathnames.h

fish(6): fix several issues

- avoid use of _ in application namespace
- use posix_spawnp instead of system()
- prefer less(1) over more(1)
- mark usage as dead
- staticfy

This world-class programs deserves world-class source code.

DragonFlyBSD/src 7814141share/misc pci_vendors

Update the pciconf(8) database.

February 15, 2018 snapshot from https://pci-ids.ucw.cz
DeltaFile
+267-48share/misc/pci_vendors
+267-481 files

DragonFlyBSD/src 062b1e8include pthread.h

<pthread.h>: Note that we are missing some functions in #if 0'd protos.
DeltaFile
+1-1include/pthread.h
+1-11 files

DragonFlyBSD/src 13d2556sbin/devd devd.cc

devd: only use correct argument in select(2)

Discussed-with: zrj
Reviewed-by:    vangyzen at FreeBSD.org, ian at FreeBSD.org
Objected-to-by: imp at FreeBSD.org
DeltaFile
+1-1sbin/devd/devd.cc
+1-11 files

DragonFlyBSD/src c8b4285lib/libc/sys select.2

select(2): mark as restrict in man page

This has already been done in code, so change the man page

Discussed-with: swildner