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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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
> __getgroupmembership) to src/lib/libc/gen/getgrent.c, I need to add
> its name to Symbol.map, don't I?
>
> The function definition is:
> int
> __getgroupmembership(const char *uname, gid_t agroup, gid_t *groups,
> int maxgrp, int *grpcnt)
>
> 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.
--
Alexander Kabaev
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
iD8DBQFHUs2+Q6z1jMm+XZYRAvzcAKDD3w6RSqhNBbphk/R5ulUZgSyUPwCgw34+
3m1ehTikE4U1PeVnEQptuag=
=07vF
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071202102238.0ad19c7b>
