From owner-cvs-all Sat Jan 29 0:58: 2 2000 Delivered-To: cvs-all@freebsd.org Received: from roma.coe.ufrj.br (roma.coe.ufrj.br [146.164.53.65]) by hub.freebsd.org (Postfix) with ESMTP id 17D4B15829; Sat, 29 Jan 2000 00:57:57 -0800 (PST) (envelope-from jonny@jonny.eng.br) Received: (from uucp@localhost) by roma.coe.ufrj.br (8.9.3/8.9.3) id GAA23597; Sat, 29 Jan 2000 06:57:55 -0200 (EDT) (envelope-from jonny@jonny.eng.br) Received: from localhost.coe.ufrj.br(127.0.0.1), claiming to be "jonny.eng.br" via SMTP by localhost.coe.ufrj.br, id smtpdg23591; Sat Jan 29 06:57:50 2000 Message-ID: <3892AB60.85F0B786@jonny.eng.br> Date: Sat, 29 Jan 2000 06:57:04 -0200 From: =?iso-8859-1?Q?Jo=E3o?= Carlos Mendes =?iso-8859-1?Q?Lu=EDs?= X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Brian Fundakowski Feldman Cc: Bruce Evans , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/gen Makefile.inc References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Brian Fundakowski Feldman wrote: > > Am I the only one that's disturbed by the fact that this (nonstandard) > > function pair has such generic names? Already, it has broken world > > in two places. It's just not a good idea to have such generic functions > > in our headers (even if it's more okay for them to be in the libaries...) ... > The strflags(3) function will follow the convention of strerror(3) and ... > buffer, consistent with the return value behavior when "flags" contains > valid flags. If not possible to return a character pointer to malloc(3)d You are missing the (probably) most important point. strflags() et al. are name space pollution mostly because the name "flags" is too generic. Why not use something like strufsflags() or strffsflags() to let this part clear... This way, I think that application namespace pollution can be mostly ignored. Now you only have to care for standards namespace pollution. Jonny -- João Carlos Mendes Luís jonny@jonny.eng.br Networking Engineer jcml@ieee.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message