From owner-cvs-src@FreeBSD.ORG Fri Apr 6 17:33:33 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 65D6116A403; Fri, 6 Apr 2007 17:33:33 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id D46CD13C44B; Fri, 6 Apr 2007 17:33:32 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.13.8/8.13.8) with ESMTP id l36HXUx0094638; Fri, 6 Apr 2007 21:33:30 +0400 (MSD) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.13.8/8.13.8/Submit) id l36HXSBC094637; Fri, 6 Apr 2007 21:33:28 +0400 (MSD) (envelope-from ache) Date: Fri, 6 Apr 2007 21:33:27 +0400 From: Andrey Chernov To: Pawel Jakub Dawidek Message-ID: <20070406173327.GA94465@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Pawel Jakub Dawidek , Bruce Evans , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org References: <200704052110.l35LAsXH013966@repoman.freebsd.org> <20070406115326.A43678@delplex.bde.org> <20070406053934.GA84722@nagual.pp.ru> <20070406103519.GA1251@garage.freebsd.pl> <20070406131127.GA91320@nagual.pp.ru> <20070406162711.GD3519@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <20070406162711.GD3519@garage.freebsd.pl> User-Agent: Mutt/1.5.14 (2007-02-12) Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, Bruce Evans Subject: Re: cvs commit: src/include stdio.h src/lib/libc/sys lseek.2 pathconf.2 src/sys/kern vfs_syscalls.c src/sys/sys filio.h unistd.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2007 17:33:33 -0000 --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 06, 2007 at 06:27:11PM +0200, Pawel Jakub Dawidek wrote: > > Feel free to invent any other __*_VISIBLE tag to exclude this addition= =20 > > from namespace for programs which may define their own SEEK_DATA etc=20 > > which is allowed f.e. in POSIX namespace. Look like other __*_VISIBLE t= ags=20 > > are implemented and what they does. Default is turn all on. >=20 > Ok, can someone help me with this? The very basics are: application request particular namespace at compile=20 time using -D_*_SOURCE define. According to choosed _*_SOURCE some of=20 __*_VISIBLE macros are defined and some not (if no namespace choosed, all= =20 __*_VISIBLE are defined, default case). According to __*_VISIBLE macros=20 defined some functions or definitions becomes hidden or visible. See the very end of /sys/sys/cdefs.h for live examples. __*_VISIBLE macros are in form ___VISIBLE For example can be __CDDL_VISIBLE or __ZFS_VISIBLE (depends on exactly=20 where those extensions was introduced). Lets take __ZFS_VISIBLE for the=20 rest of explanation. You need to directly hide those extensions for every particular=20 _*_SOURCE namespace, i.e. add=20 #define __ZFS_VISIBLE 0 to all of them and enable extensions=20 #define __ZFS_VISIBLE 1 only for the last (default) case (at the very end of /sys/sys/cdefs.h) Then use (for unistd.h) #if __ZFS_VISIBLE #define SEEK_DATA ... #endif Try to asking more help at standards@ or bde@ who notice it first and=20 knows this thing apparenly better than me. > > In any case adding them to stdio.h is premature action - I not see yet > > corresponding fseek() code. >=20 > I'm looking at removing it from stdio.h. Good. --=20 http://ache.pp.ru/ --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGFoRnVg5YK5ZEdN0RAqB9AJ4xsziu4vgl/QssaLizJ7z97yHCLwCfXB1P yetVBf+ORp9e+iYGtcAFWFQ= =wMlA -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--