git: DragonFly_RELEASE_5_8 xargs(1): Sync with FreeBSD

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Fri May 29 15:24:06 PDT 2020


commit 9f78591057de43c05d877526685fd74bbf14abc6
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/9f78591057de43c05d877526685fd74bbf14abc6


-- 
DragonFly BSD source repository



More information about the Commits mailing list