libc-scoped function and Symbol.map
Alexander Kabaev
kabaev at gmail.com
Sun Dec 2 07:22:46 PST 2007
On Sun, 2 Dec 2007 15:08:37 +0300
Michael Bushkov <bushman at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20071202/d8375256/signature.pgp
More information about the freebsd-arch
mailing list