Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Dec 2007 10:22:38 -0500
From:      Alexander Kabaev <kabaev@gmail.com>
To:        Michael Bushkov <bushman@freebsd.org>
Cc:        de@freebsd.org, freebsd-arch@freebsd.org
Subject:   Re: libc-scoped function and Symbol.map
Message-ID:  <20071202102238.0ad19c7b@kan.dnsalias.net>
In-Reply-To: <5555F136-D396-4333-837D-C4924416C3CB@freebsd.org>
References:  <5555F136-D396-4333-837D-C4924416C3CB@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/oaTylQIbjG_Q54SeMk_kmer
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Sun, 2 Dec 2007 15:08:37 +0300
Michael Bushkov <bushman@freebsd.org> wrote:

> Hi!
> If I add the internal libc-scoped function (named =20
> __getgroupmembership) to src/lib/libc/gen/getgrent.c, I need to add =20
> its name to Symbol.map, don't I?
>=20
> The function definition is:
> int
> __getgroupmembership(const char *uname, gid_t agroup, gid_t *groups,
> 	int maxgrp, int *grpcnt)
>=20
> The Symbol.map diff is:
> --- lib/libc/gen/Symbol.map	31 May 2007 13:01:33 -0000
> 1.6 +++ lib/libc/gen/Symbol.map	23 Oct 2007 14:25:53 -0000
> @@ -337,6 +337,8 @@
> };
>   FBSDprivate_1.0 {
> +	__getgroupmembership;
> +
> 	/* needed by thread libraries */
> 	__thr_jtable;
>
If the function is only meant to be available within libc itself, you
do not need to add it anywhere.

--=20
Alexander Kabaev

--Sig_/oaTylQIbjG_Q54SeMk_kmer
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

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

iD8DBQFHUs2+Q6z1jMm+XZYRAvzcAKDD3w6RSqhNBbphk/R5ulUZgSyUPwCgw34+
3m1ehTikE4U1PeVnEQptuag=
=07vF
-----END PGP SIGNATURE-----

--Sig_/oaTylQIbjG_Q54SeMk_kmer--



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