git: xargs(1): Sync with FreeBSD

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Fri May 22 18:39:02 PDT 2020


commit 36a0a13933b7fdc24103826faa543891d60f5b52
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Sat May 23 03:22:51 2020 +0200

    xargs(1): Sync with FreeBSD
    
      Changes:
        - Use waitpid(2) instead of wait3(2), for portability reasons.
        - Call setlocale(3) with LC_ALL category instead of LC_MESSAGES.
        - Fix -0 vs -L/-I processing.
        - Add -S option to control the maximum size of an argument.
        - Make xargs(1) keep track of its children.
        - Wait for all invocations upon exit.
        - calloc(3) usage fixes.
        - Replace atoi(3) calls with stronum(3) ones.
        - Now -P0 creates as many concurrent processes as possible.
        - Fix exit status expression when a child fails to exec.
    
    The -0 fix solves a problem with DPorts' graphics/libprojectm during stage phase.

Summary of changes:
 usr.bin/xargs/pathnames.h |   4 +
 usr.bin/xargs/strnsubst.c |  44 ++++--
 usr.bin/xargs/xargs.1     |  75 +++++++---
 usr.bin/xargs/xargs.c     | 365 ++++++++++++++++++++++++++++++++++------------
 4 files changed, 362 insertions(+), 126 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/36a0a13933b7fdc24103826faa543891d60f5b52


-- 
DragonFly BSD source repository



More information about the Commits mailing list