From owner-cvs-all Sun Apr 30 12:44:21 2000 Delivered-To: cvs-all@freebsd.org Received: from florence.pavilion.net (florence.pavilion.net [212.74.0.25]) by hub.freebsd.org (Postfix) with ESMTP id 009B737BE6E; Sun, 30 Apr 2000 12:44:15 -0700 (PDT) (envelope-from joe@pavilion.net) Received: from genius.systems.pavilion.net (genesis.tao.org.uk [194.242.131.254]) by florence.pavilion.net (8.9.3/8.8.8) with ESMTP id UAA66504; Sun, 30 Apr 2000 20:43:03 +0100 (BST) (envelope-from joe@pavilion.net) Received: by genius.systems.pavilion.net (Postfix, from userid 100) id C208B37D; Sun, 30 Apr 2000 19:22:52 +0100 (BST) Date: Sun, 30 Apr 2000 19:22:52 +0100 From: Joe Karthauser To: Bruce Evans Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/chflags chflags.c Message-ID: <20000430192252.A72668@pavilion.net> References: <200004041412.HAA01023@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200004041412.HAA01023@freefall.freebsd.org>; from bde@FreeBSD.org on Tue, Apr 04, 2000 at 07:12:36AM -0700 X-NCC-RegID: uk.pavilion Organisation: Pavilion Internet plc, Lees House, 21-23 Dyke Road, Brighton, England Phone: +44-845-333-5000 Fax: +44-845-333-5001 Mobile: +44-403-596893 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Apr 04, 2000 at 07:12:36AM -0700, Bruce Evans wrote: > bde 2000/04/04 07:12:36 PDT > > Modified files: > usr.bin/chflags chflags.c > Log: > Fixed prototype for setflags(). setflags() returns int, not u_long, > and "extern" in function prototypes is a style bug. The type mismatch > broke chflags(1) on i386's with 64-bit longs and may have broken it on > alphas. I want to revisit this issue now that the 4.0 release is well out of the way. There was a lot of discussion that {g|s}etflags are too generic names for these functions. Does anyone have a constructive opinion of why I shouldn't rename them to {g|s}etfflags instead and re-add them to libc? (Would that require a minor version bump also?) Joe p.s. for those who don't know, these functions provide the ability to translate between the u_long and string representions of chflags style file flags (schg, nodump, uunlnk, etc). They're used by 'ls -ol', chflags, install, find, mtree, amongst others. pps. they were named {g|s}setflags in keeping with the preexisting {g|s}etmode function calls for manipulating file modes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message