Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2002 10:34:37 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        John Baldwin <jhb@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/i386/include cpufunc.h src/sys/kern kern_mutex.c
Message-ID:  <20020523073437.GC35465@sunbay.com>
In-Reply-To: <20020523171421.L12695-100000@gamplex.bde.org>
References:  <200205222032.g4MKWdl17723@freefall.freebsd.org> <20020523171421.L12695-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--eHhjakXzOLJAF9wJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, May 23, 2002 at 05:21:49PM +1000, Bruce Evans wrote:
> On Wed, 22 May 2002, John Baldwin wrote:
>=20
> > jhb         2002/05/22 13:32:39 PDT
> >
> >   Modified files:
> >     sys/i386/include     cpufunc.h
> >     sys/kern             kern_mutex.c
> >   Log:
> >   Rename pause() to ia32_pause() so it doesn't conflict with the pause()
> >   function defined in <unistd.h>.  I didn't #ifdef _KERNEL it because t=
he
> >   mutex implementation in libpthread will probably need this.
>=20
> This shoots the messenger.  The main bug is gross namespace pollution in
> <vgl.h>:
>=20
> %%%
> #ifndef _VGL_H_
> #define _VGL_H_
>=20
> #include <stdlib.h>
> #include <unistd.h>
> #include <string.h>
> #include <machine/cpufunc.h>
> %%%
>=20
> <machine/cpufunc.h> is really a kernel-only header, but it sometimes gets
> abused in userland.  I think this shouldn't be supported.  It contains
> mostly very machine-dependent interfaces, so it should be used in at most
> the implementation of libvgl.  libvgl uses i386 interfaces unconditionall=
y,
> so it only works on i386's, but this limitation is not documented.
>=20
Would you like me to fix this by adding the share/man/man3/i386, and
installing this manpage to there?


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--eHhjakXzOLJAF9wJ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE87JuNUkv4P6juNwoRAin4AKCMXwdU6cygDOXLhpB9IBVuX3NBCQCfTgRl
MM96cbDiHKzz0j+lUiHFLqM=
=ojix
-----END PGP SIGNATURE-----

--eHhjakXzOLJAF9wJ--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020523073437.GC35465>