DragonFlyBSD/src f51d778usr.bin/dsynth build.c

dsynth - Set pty cols and finally fix ^M in handshake

* Set the pty columns to 80 (fixes textproc/po4a).  Leave rows
  set to 0.

* Set tty modes and CR filtering before issuing the handshake.

* Reorder the handshake.  Now the ^M's no longer show up in the logs.

DragonFlyBSD/src ea6f2b9sys/kern lwkt_token.c

kernel - Augment lwkt_reltoken() assertions

* Provide more information when asserting in lwkt_reltoken()
DeltaFile
+13-1sys/kern/lwkt_token.c
+13-11 files

DragonFlyBSD/src 55f3230sys/dev/drm drm_drv.c drm_fops.c, sys/dev/drm/i915 i915_drv.c i915_dma.c

drm: Sync device initialization code with Linux

* Driver initialization is now done with drm_dev_alloc()
  and drm_dev_init(), like on Linux

* Remove now useless drm_probe, drm_attach and drm_load() functions

* Radeon PCI IDs no longer have a custom format

DragonFlyBSD/src e7ab744sys/dev/drm/include/linux hrtimer.h

drm/linux: Add some hrtimer.h functions

DragonFlyBSD/src 465e060sys/kern vfs_vopops.c vfs_vfsops.c, sys/sys mount.h

kernel - Fix race in VFS_MPLOCK/VFS_MPUNLOCK (affects UFS)

* In the one case where vop_strategy() uses VFS_MPLOCK/VFS_MPUNLOCK,
  it is actually possible for the vnode to go away after the strategy
  call since no ref or lock is held across the call.

* Refactor the macros generally to cache the mount pointer , so
  VFS_MPUNLOCK() no longer takes an argument.

* Primarily affects UFS

Reported-by: tuxillo

DragonFlyBSD/src 967a4bbusr.bin/dsynth bulk.c

dsynth - Properly set __MAKE_CONF for pkglist scan

* Properly set __MAKE_CONF to /dev/null for bulk scna (outside of
  chroot) operations, we don't want dsynth to use the system's
  /etc/make.conf.

Reported-by: zrj

DragonFlyBSD/src 619a518lib/libc/string strtok.c, lib/libstand Makefile

libstand: Switch to _STANDALONE handling.

 Prevent TLS __thread variables leaking into intermediates.

DragonFlyBSD/src a283467lib/libstand Makefile, sys/boot/dloader Makefile

sys/boot: Define _STANDALONE while building.

 It will be used to limit visibility.  Do the same for lib/libstand.

DragonFlyBSD/src 42c447elib/libsdp sdp.h Makefile

<sdp.h>: Include <stdint.h>.

 To restore visibility after b80b4d435974f3611bf317452f30a2613d0fe6e0.

 While there, include <netbt/bluetooth.h> for bdaddr_t.

DragonFlyBSD/src a43eae1sys/sys cdefs.h

<sys/cdefs.h>: Use __uintptr_t in casts.

 The __uintptr_t has better visibility and does not require <stdint.h>.

 While there, minor trailing whitespace cleanup.
DeltaFile
+6-6sys/sys/cdefs.h
+6-61 files

DragonFlyBSD/src f1f1151sys/sys gpt.h

<sys/gpt.h>: Use __offsetof().

 It has better visibility and does not require <stddef.h>.
DeltaFile
+1-1sys/sys/gpt.h
+1-11 files

DragonFlyBSD/src d3fa4cd. Makefile_upgrade.inc, etc Makefile

world: Remove legacy compat directory symlinks.

 If compatibility paths are needed for 3rd-party software, then create
 paths in /usr/include/compat/ using real directories without use of the
 symlinks (hardlinks are ok).

 While there, remove ata.h symlink too.

DragonFlyBSD/src 346b9dasbin/nfsd nfsd.c, sbin/nfsiod nfsiod.c

world: Use <vfs/FS/...> in userland.

DragonFlyBSD/src 4842621lib/libcam camlib.h camlib.c, sbin/camcontrol camcontrol.c

world: Use <bus/cam/...> in userland.

DragonFlyBSD/src ee5bd76include unistd.h

<unistd.h>: Move setpgrp() to __BSD_VISIBLE.

POSIX' setpgrp() has a different prototype than the BSD version. While
the former takes no arguments, the latter takes two pid_t's. Both
versions are also obsolete.

So just move our BSD specific one to __BSD_VISIBLE and keep it for
backward compatibility.
DeltaFile
+1-1include/unistd.h
+1-11 files

DragonFlyBSD/src f2d000einclude unistd.h

<unistd.h>: Mark/add some missing functions.
DeltaFile
+4-1include/unistd.h
+4-11 files

DragonFlyBSD/src b78e87cinclude unistd.h

<unistd.h>: Move pipe2() into __BSD_VISIBLE.
DeltaFile
+1-1include/unistd.h
+1-11 files

DragonFlyBSD/src ddc3026sys/dev/drm drm_drv.c, sys/dev/drm/include/drm drmP.h

drm: Fix debug messages issues introduced by the Linux 4.9 update

DragonFly's kprintf() doesn't understand %pV

DragonFlyBSD/src 600b876include nl_types.h langinfo.h

<langinfo.h>/<nl_types.h>: Clean up the POSIX namespace.

* <langinfo.h>: <sys/types.h> isn't needed at all in this header. Also
    put the ALTMON_* definitions into __BSD_VISIBLE.

* <nl_types.h>: <sys/types.h> isn't needed here either. For some
    internal structures, __int*_t from <machine/stdint.h> is
    sufficient.

Thanks for testing with a dports bulk build to zrj.

DragonFlyBSD/src 9baa033sys/vfs/hammer2 hammer2_vnops.c

hammer2 - Finally fix the 'file winds up with some zeros' bug

* Fix this bug, which has been reported several times this year
  but until nikita's hands-on I couldn't find it.

* The bug occurs when H2 must transition from the 512 bytes of
  file data directly embedded in the inode to a block table as
  a file grows past 512 bytes.

  Basically what happens is that the buffer cache buffer holding
  the data in-transition can get lost.

  The result is that the first write() that overlaps seek offset
  512 in a small file can sometimes cause the prior data at the
  start of the file to be lost.

* To solve the problem the buffer is now held across the transition
  and explicitly dirtied to force it to be flushed to the now-
  realized block table.

Reported-by: nikita and several others this year

DragonFlyBSD/src 75a42a5sys/vfs/hammer2 hammer2_vnops.c

hammer2 - Finally fix the 'file winds up with some zeros' bug

* Fix this bug, which has been reported several times this year
  but until nikita's hands-on I couldn't find it.

* The bug occurs when H2 must transition from the 512 bytes of
  file data directly embedded in the inode to a block table as
  a file grows past 512 bytes.

  Basically what happens is that the buffer cache buffer holding
  the data in-transition can get lost.

  The result is that the first write() that overlaps seek offset
  512 in a small file can sometimes cause the prior data at the
  start of the file to be lost.

* To solve the problem the buffer is now held across the transition
  and explicitly dirtied to force it to be flushed to the now-
  realized block table.

Reported-by: nikita and several others this year

DragonFlyBSD/src 39bca54sys/bus/smbus/ichiic ig4_pci.c ig4_iic.c

ig4 - Relabel as generic Designware I2c, add IDs

* This controller is actually third-party IP, not Intel-specific,
  and is apparently also used on AMD SOCs.

* Bring in PCI ids and ACPI ids from FreeBSD.

* Bring in a few bug fixes from FreeBSD as well.

* Now attaches on Lenovo ideapad 14 AMD-version (untested).

DragonFlyBSD/src 3776dcfsys/dev/drm/include/asm io.h

drm/linux: Add arch_io_reserve_memtype_wc and arch_io_free_memtype_wc()

DragonFlyBSD/src 1587986sys/dev/misc/amdsbwd amdsbwd.c amd_chipset.h, sys/dev/powermng/intpm intpm.c

kernel - Update AMD chipset drivers for watchdog and smbus

* Update the AMD chipset drivers for amdsbwd (watchdog) and
  intpm (smbus for power management and other things).

* Now detects the smbus and watchdog on the 3500U laptop APU.

Taken-from: FreeBSD

DragonFlyBSD/src a6e2b8asys/dev/drm/radeon cik.c

drm/radeon: Use an amdgpu firmware file name with cik hardware

Some Radeon firmwares like this particular one have only been packaged
in sysutils/devfw-amdgpu and not sysutils/devfw-radeon.

Submitted-by: zrj

DragonFlyBSD/src 4192c95sys/vfs/msdosfs msdosfs_lookup.c

sys/vfs/msdosfs: Fix ->de_fndcnt calculation on lookup

from freebsd/freebsd at eba490783823f36f4f8ec62014ac22c7deae8fbd

DragonFlyBSD/src b0a9540share/man/man4 dm_target_delay.4 dm_target_flakey.4, sys/dev/disk/dm/delay dm_target_delay.c

sys/dev/disk/dm: Change email address (sync with autofs/FUSE and others)

DragonFlyBSD/src e8de9e9sys/dev/drm/radeon si.c

drm/radeon: Disable acceleration on si

This prevents xfce 4.14 hangs/black screens

DragonFlyBSD/src 1dedbd3sys/dev/drm drm_crtc.c drm_connector.c, sys/dev/drm/include/drm drm_crtc.h

drm: Update generic, ttm and radeon code to Linux 4.9

* Generally cleanup non driver-specific code and increase its
  robustness

* DisplayPort support improvements

* Atomic modesetting improvements

* Radeon performance and stability improvements

* drm/i915 stays based on Linux 4.7.10 with Linux 4.19 changes
  for now

Reviewed-by: Romick

DragonFlyBSD/src f1c466flib/libc/citrus citrus_iconv_local.h

libc/citrus: Include <sys/types.h> for int*_t etc. types.

DragonFlyBSD/src d783842games/boggle/boggle extern.h

boggle(6): Include <time.h> for time_t.

DragonFlyBSD/src b80b4d4include string.h

<string.h>: Clean up the namespace.

* Stop including <sys/types.h> which was needed only for mode_t for
  the BSD specific strmode(). Define mode_t locally in __BSD_VISIBLE.

* Increase visibility of the memccpy() prototype. It is older than
  SUSv3.
DeltaFile
+7-2include/string.h
+7-21 files

DragonFlyBSD/src 6ffa693sys/vfs/msdosfs msdosfs_vnops.c

sys/vfs/msdosfs: Fix comment on locking on rename(2)

fdvp is locked too.

DragonFlyBSD/src bc5f116sys/vfs/msdosfs msdosfs_fat.c msdosfsmount.h

sys/vfs/msdosfs: Sync VFS lock assertion with FreeBSD

Same locking applies to DragonFly VFS for these.

DragonFlyBSD/src ef10c7dlib/libc/net getaddrinfo.c

libc/getaddrinfo: Accept numeric servname for AF_INET/AF_INET6

  According to RFC3493:

    If servname is null, the call shall return network-level addresses
    for the specified nodename.  If servname is not null, it is a null-
    terminated character string identifying the requested service.  This
    can be either a descriptive name or a numeric representation suitable
    for use with the address family or families.  If the specified
    address family is AF_INET, AF_INET6 or AF_UNSPEC, the service can be
    specified as a string specifying a decimal port number.

  Taken from: FreeBSD r190382

DragonFlyBSD/src 1cc249asys/vfs/msdosfs msdosfs_vfsops.c

sys/vfs/msdosfs: Unmount on update_mp() failure if !MNT_UPDATE

bits from freebsd/freebsd at 7845779267aeba1e407bd512be0720c6129bbbb1

DragonFlyBSD/src 78c205cinclude/xlocale _string.h

<xlocale/_string.h>: Mention that we are missing strerror_l().

DragonFlyBSD/src 3334604sys/sys signal.h _siginfo.h

<signal.h>/<sys/_siginfo.h>: Some fixes after my recent commits.

* In <sys/_siginfo.h>, include just <machine/stdint.h>. No more is
  needed.

* In <signal.h>, continue to use struct __siginfo in struct sigaction,
  primarily to deal with the case where __POSIX_VISIBLE is <199309,
  of which for example graphics/png is one.

Reported-by: zrj

DragonFlyBSD/src a767407sys/kern syscalls.master

syscalls.master: Remove some trailing whitespace.

DragonFlyBSD/src b01be66sys/vfs/fuse fuse_abi.h

sys/vfs/fuse: Add note to sys/vfs/fuse/fuse_abi.h

DragonFlyBSD/src 49837aesys/vfs/autofs autofs_vnops.c, usr.sbin/autofs automountd.8 autounmountd.8

autofs: Change email address (sync with FUSE and others)

DragonFlyBSD/src bf95f21sys/vfs/msdosfs msdosfs_vnops.c msdosfs_denode.c

sys/vfs/msdosfs: Allow deupdat() against non root directory

bits from freebsd/freebsd at c7af094e18c4e4ca2a26a88c488a803472d330ee

Given ondisk layout of root directory in FAT12/16 and FAT32,
don't allow deupdat() or setattr() against root directory,
but allow against other directories.

DragonFlyBSD/src 3854335sys/sys wait.h

<sys/wait.h>: Provide and use siginfo_t and union sigval.

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_wait.h.html
DeltaFile
+3-3sys/sys/wait.h
+3-31 files

DragonFlyBSD/src 27622b7sys/sys _siginfo.h signal.h

Add <sys/_siginfo.h> to provide the definitions of siginfo_t and sigval.

They will be shared between <signal.h> and <sys/wait.h>.
DeltaFile
+142-0sys/sys/_siginfo.h
+2-100sys/sys/signal.h
+144-1002 files

DragonFlyBSD/src 2ff60deshare/misc pci_vendors

Update the pciconf(8) database.

November 10, 2019 snapshot from https://pci-ids.ucw.cz
DeltaFile
+106-13share/misc/pci_vendors
+106-131 files

DragonFlyBSD/src 6a951e1sys/vfs/msdosfs msdosfs_vnops.c

sys/vfs/msdosfs: Correct _PC_FILESIZEBITS value

32 is enough (where did 33 come from ?).

DragonFlyBSD/src 922d931sys/sys wait.h

<sys/wait.h>: Remove duplicate include.

<machine/stdint.h> is already included at this point.
DeltaFile
+0-1sys/sys/wait.h
+0-11 files

DragonFlyBSD/src e913106sys/vfs/msdosfs msdosfs_conv.c

sys/vfs/msdosfs: Remove seemingly unneeded mbnambuf code

originally from 3435d5778808adf9c89a4f9f0e34010b4dc8888f in 2009.
Sync with what FreeBSD does.
Also sync minor styles with FreeBSD.

DragonFlyBSD/src 29b24abgames/sail dr_5.c

sail(6): Comment out a double assignment.
DeltaFile
+2-0games/sail/dr_5.c
+2-01 files

DragonFlyBSD/src 806a5edlib/libc/citrus citrus_mmap.c, lib/libc/gen sysconf.c

libc: Add more namespace.h/un-namespace.h.