From owner-cvs-all Wed Apr 17 20:33:55 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 9153637B405; Wed, 17 Apr 2002 20:33:51 -0700 (PDT) Received: (from tjr@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3I3XpD61462; Wed, 17 Apr 2002 20:33:51 -0700 (PDT) (envelope-from tjr) Message-Id: <200204180333.g3I3XpD61462@freefall.freebsd.org> From: "Tim J. Robbins" Date: Wed, 17 Apr 2002 20:33:51 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/fold fold.1 fold.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 tjr 2002/04/17 20:33:51 PDT Modified files: usr.bin/fold fold.1 fold.c Log: Add the -b option (break at byte position, not column number) and the -s option (try to break at word bounaries) for SUSv3 conformance. Partially based on the NetBSD version, with the following changes: - style(9) - break on s, not spaces, per POSIX (and GNU) - when looking for last space on line, search backwards instead of forwards; less comparisons needed this way. - use LINE_MAX macro instead of a magic number and a comment saying it is LINE_MAX. PR: 36245 Reviewed by: mike Obtained from: NetBSD (partially) Revision Changes Path 1.8 +15 -1 src/usr.bin/fold/fold.1 1.8 +83 -29 src/usr.bin/fold/fold.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message