libc-scoped function and Symbol.map

Michael Bushkov bushman at freebsd.org
Sun Dec 2 04:36:07 PST 2007


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;

With best regards,
Michael Bushkov,
Southern Federal University


More information about the freebsd-arch mailing list