DragonFlyBSD/src 8175f6elib/libc/net rcmdsh.c

libc - Fix bug in rcmdsh()

* rcmdsh() (which really nothing should be using any more anyway) used
  a generic wait(NULL) to wait for a child to exit, but this can wind
  up waiting for the wrong pid in a multi-threaded or multi-fork environment.

* Solved by waiting on the specific pid instead.

DragonFlyBSD/src 10a640fusr.sbin/sshlockout sshlockout.8

sshlockout - Improve manual page

* Rewrite the manual page, provide a more concise example.

* Suggest using pfctl -T expire <seconds> instead of -T flush for the
  crontab entry.

Reported-by: Miroslav Lachman <000.fbsd at quip.cz>

DragonFlyBSD/src 725edadlib/libc/gen clock_getcpuclockid.3 clock_getcpuclockid.c, lib/libc/sys clock_gettime.2

libc/libpthread: Add clock_getcpuclockid() and pthread_getcpuclockid().

* Adjust clock_gettime() and clock_getres() to accept values obtained
  this way.

* Also set _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME, although we should
  really support values obtained by these functions in clock_settime()
  too.

Based on and taken from FreeBSD's code.

Reviewed-by: sephe

DragonFlyBSD/src 3de745f. Makefile_upgrade.inc, include stab.h struct.h

Remove <stab.h> and <struct.h>.

* <stab.h> had information about the a.out related symbol table
  format.

* <struct.h> has been removed from FreeBSD since 2001.

Both headers are not needed by anything in our tree or dports.

DragonFlyBSD/src 2ba00acsys/sys types.h

<sys/types.h>: Add guard around lwpid_t, also put under __BSD_VISIBLE.
DeltaFile
+7-1sys/sys/types.h
+7-11 files

DragonFlyBSD/src 63791cesys/kern kern_time.c

kernel/time: Change get_curthread_cputime() to get_thread_cputime().

DragonFlyBSD/dports bb87d08graphics/blender pkg-plist Makefile, graphics/blender/dragonfly patch-source_creator_creator.c

Update graphics/blender to version 2.78c_3

DragonFlyBSD/dports c55577dsecurity/metasploit Makefile distinfo

Update security/metasploit to version 4.15.0

DragonFlyBSD/dports cecac0asecurity/rubygem-metasploit-aggregator Makefile pkg-descr

Import security/rubygem-metasploit-aggregator version 0.2.1

DragonFlyBSD/dports 974f235net/rubygem-gitaly distinfo Makefile, net/rubygem-gitaly/files patch-gitaly.gemspec patch-ruby_lib_gitaly.rb

Update net/rubygem-gitaly to version 0.5.0

DragonFlyBSD/dports 040f230devel/gitolite Makefile distinfo, devel/gitolite/files patch-src_triggers_post-compile_ssh-authkeys-split

Update devel/gitolite to version 3.6.7_1,1

DragonFlyBSD/dports 486d442net/rubygem-grpc Makefile distinfo, net/rubygem-grpc/files grpc.gemspec patch-src_ruby_ext_grpc_extconf.rb

Import net/rubygem-grpc version 1.4.0_1

DragonFlyBSD/dports da2dd94Mk/Scripts relative_link.sh

manual update of relative link script

DragonFlyBSD/dports d1cb474devel/grpc pkg-plist Makefile, devel/grpc/dragonfly patch-include_grpc_impl_codegen_port__platform.h patch-src_core_lib_iomgr_port.h

Import devel/grpc version 1.4.2

DragonFlyBSD/dports 792c55fdevel/cmake/dragonfly patch-Source_kwsys_SharedForward.h.in patch-Source_kwsys_ProcessUNIX.c

Tweak devel/cmake version 3.8.2

DragonFlyBSD/dports 6af9715sysutils/cdrdao/dragonfly patch-xdao_SoundIF-ao.cc

Tweak sysutils/cdrdao version 1.2.3_5

DragonFlyBSD/dports 9b130bcwww/rubygem-passenger Makefile Makefile.DragonFly, www/rubygem-passenger/dragonfly patch-src_ruby__supportlib_phusion__passenger_platform__info_openssl.rb patch-src_ruby__supportlib_phusion__passenger_platform__info_operating__system.rb

Update www/rubygem-passenger to version 5.1.5

DragonFlyBSD/dports 7974024sysutils/life-preserver Makefile pkg-plist

Prune sysutils/life-preserver

DragonFlyBSD/dports 435aa4escience/InsightToolkit pkg-plist distinfo, science/InsightToolkit/dragonfly patch-Modules_IO_TransformBase_include_itkTransformIOBase.h

Update science/InsightToolkit to version 4.12.0

DragonFlyBSD/dports 164519emultimedia/iso2mkv Makefile

Bump multimedia/iso2mkv to version 2011.05.02_2

DragonFlyBSD/dports 74a55cfmultimedia/mkvtoolnix pkg-plist distinfo, multimedia/mkvtoolnix/dragonfly patch-src_common_os.h

Update multimedia/mkvtoolnix to version 13.0.0

DragonFlyBSD/dports 766ab0cgames/flightgear Makefile Makefile.DragonFly, games/flightgear/dragonfly patch-CMakeLists.txt

Update games/flightgear to version 2017.1.3_5

DragonFlyBSD/dports 3e26795multimedia/handbrake Makefile, multimedia/handbrake/files patch-contrib-mp4v2-P01-freebsd-clang-namespace.patch patch-make_configure.py

Update multimedia/handbrake to version 1.0.7

DragonFlyBSD/dports afe01abtextproc/link-grammar pkg-plist Makefile, textproc/link-grammar/files patch-configure.ac patch-configure

Update textproc/link-grammar to version 5.3.16

DragonFlyBSD/dports 1270afcsecurity/keepassxc pkg-plist Makefile, security/keepassxc/dragonfly patch-src_CMakeLists.txt

Update security/keepassxc to version 2.2.0

DragonFlyBSD/dports b94792dgames/valyriatear Makefile, games/valyriatear/dragonfly patch-src_CMakeLists.txt

Update games/valyriatear to version 1.0.0

DragonFlyBSD/dports c1a4a37net/dante Makefile distinfo

Update net/dante to version 1.4.2

DragonFlyBSD/dports 9368390games/stonesoup Makefile, games/stonesoup/files patch-sound.h patch-rltiles__tool__tile.cc

Update games/stonesoup to version 0.20.1

DragonFlyBSD/dports e2ecf7ffinance/gnucash Makefile distinfo, finance/gnucash/dragonfly patch-fix_gtklibs

Update finance/gnucash to version 2.6.17

DragonFlyBSD/dports eee511bmath/mumps Makefile, math/mumps/files patch-Make.inc+Makefile.inc.generic patch-Make.inc_Makefile.inc.generic

Update math/mumps to version 4.10.0_8

DragonFlyBSD/dports ee4ac1egames/redeclipse Makefile distinfo, games/redeclipse/dragonfly patch-src_engine_shader.cpp

Update games/redeclipse to version 1.5.8

DragonFlyBSD/dports adec5d4devel/openocd pkg-plist Makefile

Update devel/openocd to version 0.10.0

DragonFlyBSD/dports 1e7e9cbbenchmarks/sysbench pkg-plist Makefile, benchmarks/sysbench/dragonfly patch-src_sb__util.h

Update benchmarks/sysbench to version 1.0.8

DragonFlyBSD/dports 0510e93security/stunnel distinfo Makefile.DragonFly, security/stunnel/dragonfly patch-src_sthreads.c patch-src_prototypes.h

Update security/stunnel to version 5.42,1

DragonFlyBSD/dports 1a80ae3devel/rubygem-oj distinfo Makefile

Update devel/rubygem-oj to version 3.3.2

DragonFlyBSD/dports 860a587devel/isa-l distinfo pkg-plist, devel/isa-l/dragonfly patch-igzip_igzip.c

Update devel/isa-l to version 2.19.0

DragonFlyBSD/src b791086sys/vfs/hammer2 DESIGN

hammer2 - Update DESIGN document

* Update the DESIGN document to reflect changes.
DeltaFile
+270-165sys/vfs/hammer2/DESIGN
+270-1651 files

DragonFlyBSD/src e2e0965sys/vfs/hammer2 hammer2_vnops.c

hammer2 - correct readdir bug

* Correct a readdir iteration bug for the new DIRENT type.

DragonFlyBSD/src da0cdd3lib/libstand hammer2.c, sbin/hammer2 cmd_debug.c

hammer2 - Initial HARDLINK -> DIRENT replacement code

* Initial removal of the vestiges of the old embedded inode code.  Inodes
  were moved to the root directory long ago but directories still contain
  dummy OBJTYPE_HARDLINK inodes instead of real directory entries to point
  to the moved inodes.  These inodes ate 1024 bytes of disk space for each
  directory entry.

* Remove the dummy OBJTYPE_HARDLINK inodes and replace with new
  BREF_TYPE_DIRENT blockrefs.  These blockrefs represent directory
  entries, and the entire dirent will fit in the blockref (requiring
  no data ref) if the filename is <= 64 bytes.

* This new DIRENT mechanic significantly improves performance and reduces
  storage overage vs the previous mechanicn, for obvious reasons.

  Directory entries are now 128 bytes instead of 1024 bytes, and since they
  are collected together in indirect blocks or (if <= 4 entries) simply
  placed in the 4 blockrefs embedded in the directory inode, the related
  I/O tends to be fairly optimal.

  Only directory entries whos filenames are > 64 bytes long require an
  additional data block reference.  For now, due to other constraints,
  we use the minimum H2 allocation size of 1KB for these, so certainly
  space is wasted.  But in real life there aren't actually a whole lot
  of filenames that are that long so it should be fine.

DragonFlyBSD/src 6d9d83dsbin/newfs_hammer2 newfs_hammer2.8, sys/vfs/hammer2 hammer2_chain.c hammer2_disk.h

hammer2 - Adjust blockref to create an embedded area, start dirent work

* Create a type-specific embedded area in the blockref structure.  Move
  data_count and inode_count into the new area.  The blockref structure
  size does not change.

* Adjust code to access data_count and inode_count conditionally for
  BREF_TYPE_INODE, DATA, and INDIRECT types only.

* Now that we have abandoned embedding inodes directly in directories for
  normal operation, start working on removing HAMMER2_OBJTYPE_HARDLINK and
  creating a real directory entry abstraction.

  The real directory entry abstraction will allow directory entries to be
  directly embedded in blockref structures, without requiring a data
  reference for any filename <= 64 bytes.  This will be accomplished by
  using the new embedded area in the blockref for the directory entry
  header and the check area for the filename (up to 64 bytes).

  This will significantly improve directory compactness and I/O efficiency
  by reducing the directory entry overhead from 1152 bytes (1024 + 128) to
  just 128 bytes and guaranteeing locality since the blockrefs are
  collected together in indirect blocks.  Another nice facet is that since
  inodes can embed up to four direct blockrefs, any directory with <=
  4 entries in it can embed those entries in the directory inode itself.

    [8 lines not shown]

DragonFlyBSD/src b5795b6sys/vfs/hammer2 hammer2_xops.c hammer2_cluster.c

hammer2 - Cleanup pass, remove unused fields and code

* Remove the unused per-inode cluster cache.  The code isn't really
  compatible with the XOP mechanism.

* Remove unused hammer2_xop_nlink() and related structures.  Hardlinking
  is handled through normal hammer2_inode_*() functions and no longer
  needs an explicit backend.

* Remove the unused iocb.cluster field.  iocb's are now exclusively
  backend entities.

DragonFlyBSD/src bb0b9a4sys/net/altq altq_rmclass.c altq_cbq.c

altq/cbq: Drain pending callout and the cooresponding netmsg.

DragonFlyBSD/src ef3829fsys/net/altq altq_rmclass.c altq_cbq.c

altq/cbq: Redispatch restart function to netisr0.

Now, all pseudo interfaces' if_start run in netisr_ncpus netisrs.

DragonFlyBSD/src c1a682dsys/net/altq altq_rmclass.c

altq: Fix typo

DragonFlyBSD/src 36793c8sys/netinet ip_flow.c ip_flow.h

ipflow: Use per-cpu callout, instead of pr_slowtimo.

The dynamically allocated per-cpu data structure may race the
ip_flowtimo, which calls ipflow_slowtimo.

Reported-by: zrj

DragonFlyBSD/src b1d2a2dsys/cpu/x86_64/misc monitor.s bzeront.s, sys/platform/pc64/x86_64 support.s swtch.s

sys: Add size directives to assembly functions.

No functional change intended.

DragonFlyBSD/src 87ef2dasys/dev/misc/lpt lpt.c, sys/dev/serial/sio sio.c

sys: Some whitespace cleanup.

While there, fix indentation and few typos a bit.
No functional change.

DragonFlyBSD/src 05e9456lib/libc/x86_64/string strcmp.S, lib/libfetch common.c

Fix few typos.

While there, make few whitespace adjustments.

DragonFlyBSD/src d30a46cgames/hack hack.unix.c

hack(6): Allow to play without setgid.

Lockfile hardlinking requires that user should own the perm file.

DragonFlyBSD/src 73f5f70. Makefile_upgrade.inc, sys/platform/pc64/x86_64 support.s

Remove kernbb(8).

It likely never worked in DragonFly (or until some early compiler
upgrade). FreeBSD stopped building it in 2004 (r132787).

Reported-by: zrj