From owner-freebsd-arch@FreeBSD.ORG Wed Jun 1 09:43:38 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2794316A41C for ; Wed, 1 Jun 2005 09:43:38 +0000 (GMT) (envelope-from jspedron@club-internet.fr) Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id C62A143D1D for ; Wed, 1 Jun 2005 09:43:37 +0000 (GMT) (envelope-from jspedron@club-internet.fr) Received: from [172.16.142.1] (213-223-184-193.dti.cegetel.net [213.223.184.193]) by smtp.cegetel.net (Postfix) with ESMTP id 6F08F1A4620; Wed, 1 Jun 2005 11:42:36 +0200 (CEST) Message-ID: <429D8349.5050404@club-internet.fr> Date: Wed, 01 Jun 2005 11:43:37 +0200 From: =?ISO-8859-15?Q?Jean-S=E9bastien_P=E9dron?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20050208 X-Accept-Language: fr-fr, fr, en-us, en, ja MIME-Version: 1.0 To: delphij@delphij.net References: <1117613456.771.16.camel@spirit> In-Reply-To: <1117613456.771.16.camel@spirit> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6B70081B81CD925B59F5ED70" Content-Transfer-Encoding: 8bit Cc: freebsd-arch@freebsd.org Subject: Re: [PATCH RFC] Add a macro for null mount options to sbin/mount* X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 09:43:38 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6B70081B81CD925B59F5ED70 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Xin LI wrote: > Hi, -arch@, > > In our mount* utilities, the null mount option, which is usually be used > as a terminator of an option vector, is defined with some hand-rolled > terms, e.g.: {NULL}, {NULL, 0, 0, 0}, etc. > > I think it would be nice to have a new macro to deal with this, say, > MOPT_NULL, which would be extended to {NULL, 0, 0, 0}, which can act as > an explicit initialize. And in my opinion, something like: This idea is really great, but may I suggest a name like MOPT_END or MOPT_LIST_END? Because the macro should indicate the end of this vector, not by what it'll be replaced. Regards, -- Jean-Sébastien Pédron http://www.dumbbell.fr/ PGP Key: http://www.dumbbell.fr/pgp/pubkey.asc --------------enig6B70081B81CD925B59F5ED70 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFCnYNOa+xGJsFYOlMRAnlJAJ4m4V/Zf9845ShKV7fFyn1gpaSf/ACePvf+ KWzQqilSDJRnVSCXINVDJV8= =lnVb -----END PGP SIGNATURE----- --------------enig6B70081B81CD925B59F5ED70--