[Midnightbsd-cvs] [MidnightBSD/src] 016854: usr.bin: add flock and ts utilities (#506)

Lucas Holt noreply at github.com
Thu Sep 10 00:18:09 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: 016854d09350e68354b10646482732806f1ab310
      https://github.com/MidnightBSD/src/commit/016854d09350e68354b10646482732806f1ab310
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    A contrib/ts/ts.1
    A contrib/ts/ts.c
    M usr.bin/Makefile
    A usr.bin/flock/Makefile
    A usr.bin/flock/flock.1
    A usr.bin/flock/flock.c
    A usr.bin/flock/tests/Makefile
    A usr.bin/flock/tests/flock_test.sh
    M usr.bin/shuf/shuf.c
    A usr.bin/ts/Makefile
    A usr.bin/ts/tests/Makefile
    A usr.bin/ts/tests/ts_test.sh

  Log Message:
  -----------
  usr.bin: add flock and ts utilities (#506)

* usr.bin: add flock and ts utilities

Add flock(1) for portable advisory locking and ts(1) for timestamping input streams. Include manual pages and ATF coverage, and register both programs in the userland build.

The flock implementation is based on NetBSD's BSD-licensed utility. The ts implementation is based on the BSD-licensed OpenBSD source imported by FreeBSD.

AI-Assisted-by: OpenAI GPT-5
Signed-off-by: Lucas Holt <luke at foolishgames.com>

* Update Makefile for flock program configuration

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot at users.noreply.github.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>

---------

Signed-off-by: Lucas Holt <luke at foolishgames.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot at users.noreply.github.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/src/settings/notifications


More information about the Midnightbsd-cvs mailing list