From owner-cvs-all Sat May 4 19:46:57 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1EB8A37B405; Sat, 4 May 2002 19:46:54 -0700 (PDT) Received: (from jmallett@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g452ksE42808; Sat, 4 May 2002 19:46:54 -0700 (PDT) (envelope-from jmallett) Message-Id: <200205050246.g452ksE42808@freefall.freebsd.org> From: "J. Mallett" Date: Sat, 4 May 2002 19:46:54 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/xargs xargs.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jmallett 2002/05/04 19:46:53 PDT Modified files: usr.bin/xargs xargs.c Log: In an effort to make this utility easier to work with at a source level, move out the parse loop to a seperate function, and move local variables around as is needed. To keep the state of some variables and keep from having huge arg lists to functions, make a bunch global. Change use of err(3) in situations where malloc(3) will be setting errno to errx(3) since assuming malloc(3) sets errno is non-portable, and provides no more useful information in the context of FreeBSD. Submitted by: bde (err/errx), Carl Schmidt (some of the movement of the input loop to a function) Approved by: src/tools/regression/usr.bin/xargs Revision Changes Path 1.31 +153 -140 src/usr.bin/xargs/xargs.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message