Index: sys/sys/cdefs.h =================================================================== RCS file: /opt/FreeBSD/cvs/src/sys/sys/cdefs.h,v retrieving revision 1.91 diff -u -r1.91 cdefs.h --- sys/sys/cdefs.h 26 Jan 2006 20:53:40 -0000 1.91 +++ sys/sys/cdefs.h 6 Mar 2006 19:15:50 -0000 @@ -354,6 +354,10 @@ __asm__(".section .gnu.warning." #sym); \ __asm__(".asciz \"" msg "\""); \ __asm__(".previous") +#define __sym_compat(sym,impl,verid) \ + __asm__(".symver " #impl ", " #sym "@" #verid) +#define __sym_default(sym,impl,verid) \ + __asm__(".symver " #impl ", " #sym "@@" #verid) #else #define __weak_reference(sym,alias) \ __asm__(".weak alias"); \ @@ -362,6 +366,10 @@ __asm__(".section .gnu.warning.sym"); \ __asm__(".asciz \"msg\""); \ __asm__(".previous") +#define __sym_compat(sym,impl,verid) \ + __asm__(".symver impl, sym@verid") +#define __sym_default(impl,sym,verid) \ + __asm__(".symver impl, sym@@verid") #endif /* __STDC__ */ #endif /* __GNUC__ || __INTEL_COMPILER */ Index: lib/libc/Makefile =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/Makefile,v retrieving revision 1.58 diff -u -r1.58 Makefile --- lib/libc/Makefile 29 Dec 2005 04:10:52 -0000 1.58 +++ lib/libc/Makefile 7 Mar 2006 00:18:50 -0000 @@ -18,6 +18,8 @@ CLEANFILES+=tags INSTALL_PIC_ARCHIVE= PRECIOUSLIB= +VERSION_DEF=Versions.def +VERSION_MAP=Version.map # Define (empty) variables so that make doesn't give substitution # errors if the included makefiles don't change these: @@ -94,7 +96,18 @@ cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern/${MACHINE_ARCH} .endif +${VERSION_MAP}: ${SYM_MAPS} + awk -v vfile=${.CURDIR}/Versions.def -f ${.CURDIR}/version_gen.awk \ + ${SYM_MAPS} > ${.TARGET} + + .include # Disable warnings in contributed sources. CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/} + +.if !defined(FAILSAFE_LIBC) +LDFLAGS= -Wl,--version-script=${.OBJDIR}/${VERSION_MAP} + +${SHLIB_NAME}: ${VERSION_MAP} +.endif Index: lib/libc/Versions.def =================================================================== RCS file: lib/libc/Versions.def diff -N lib/libc/Versions.def --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/Versions.def 7 Mar 2006 00:58:47 -0000 @@ -0,0 +1,10 @@ +# This is our first version; it depends on no other. +FBSD_1.0 { +}; + +# This is our private namespace. Any global interfaces that are +# strictly for use only by other FreeBSD applications and libraries +# are listed here. We use a separate namespace so we can write +# simple ABI-checking tools. +FBSDprivate_1.0 { +}; Index: lib/libc/version_gen.awk =================================================================== RCS file: lib/libc/version_gen.awk diff -N lib/libc/version_gen.awk --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/version_gen.awk 6 Mar 2006 19:15:50 -0000 @@ -0,0 +1,139 @@ +# +# Make a list of all the library versions listed in the master file. +# +# versions[] - array indexed by version name, contains number +# of symbols (+ 1) found for each version. +# successors[] - array index by version name, contains successor +# version name. +# symbols[][] - array index by [version name, symbol index], contains +# names of symbols defined for each version. +# +BEGIN { + brackets = 0; + errors = 0; + version_count = 0; + current_version = ""; + stderr = "/dev/stderr"; + while (getline < vfile) { + # Strip comments. + sub("#.*$", "", $0); + + # Strip trailing spaces. + sub(" *$", "", $0); + + if (/^[ \t]*[a-zA-Z0-9._]+ *{/) { + brackets++; + symver = $1; + versions[symver] = 1; + successors[symver] = ""; + version_count++; + } + else if (/^[ \t]*} *[a-zA-Z0-9._]+ *;/) { + # Strip semicolon. + gsub(";", "", $2); + if (symver == "") + printf("Unmatched bracket.\n"); + else if (versions[$2] != 1) + printf("File %s: %s has unknown " \ + "successor %s\n", vfile, symver, $2); + else + successors[symver] = $2; + brackets--; + } + else if (/^[ \t]*};/) { + if (symver == "") + printf("File %s: Unmatched bracket.\n", + vfile) > stderr; + # No successor + brackets--; + } + else if (/^[ \t]*}/) { + printf("File %s: Missing ending semi-colon.\n", + vfile) > stderr; + } + else if (/^$/) + ; # Ignore blank lines. + else + printf("File %s: Unknown directive: %s\n", + vfile, $0) > stderr; + } + brackets = 0; +} + +/.*/ { + # Delete comments, preceding and trailing whitespace, then + # consume blank lines. + sub("#.*$", "", $0); + sub("^[ \t]+", "", $0); + sub("[ \t]+$", "", $0); + if ($0 == "") + next; +} + +/^[a-zA-Z0-9._]+ +{$/ { + # Strip bracket from version name. + sub("{", "", $1); + if (current_version != "") + printf("File %s, line %d: Illegal nesting detected.\n", + FILENAME, FNR) > stderr; + else if (versions[$1] == 0) { + printf("File %s, line %d: Undefined " \ + "library version %s\n", FILENAME, FNR, $1) > stderr; + # Remove this entry from the versions. + delete versions[$1]; + } + else + current_version = $1; + brackets++; + next; +} + +/^[a-zA-Z0-9._]+ *;$/ { + if (current_version != "") { + count = versions[current_version]; + versions[current_version]++; + symbols[current_version, count] = $1; + } + next; +} + +/^} *;$/ { + brackets--; + if (brackets < 0) { + printf("File %s, line %d: Unmatched bracket.\n", + FILENAME, FNR, $1) > stderr; + brackets = 0; # Reset + } + current_version = ""; + next; +} + + +/.*/ { + printf("File %s, line %d: Unknown directive: '%s'\n", + FILENAME, FNR, $0) > stderr; +} + +END { + for (v in versions) { + printf("\n"); + printf("%s {\n", v); + + # The version count is always one more that actual, + # so the loop ranges from 1 to n-1. + # + for (i = 1; i < versions[v]; i++) { + if (i == 1) + printf("global:\n"); + printf("\t%s\n", symbols[v, i]); + } + if (successors[v] == "") { + # This version succeeds no other version. + printf("local:\n"); + printf("\t*;\n"); + printf("};\n"); + } + else + printf("} %s;\n", successors[v]); + } +} Index: lib/libc/alpha/Symbol.map =================================================================== RCS file: lib/libc/alpha/Symbol.map diff -N lib/libc/alpha/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/alpha/Symbol.map 7 Mar 2006 01:00:14 -0000 @@ -0,0 +1,77 @@ +# $FreeBSD$ + +# +# This only needs to contain symbols that are not listed in +# symbol maps from other parts of libc (i.e., not found in +# stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...). +# +FBSD_1.0 { + # PSEUDO syscalls + _exit; + + __flt_rounds; + fpgetmask; + fpgetround; + fpgetsticky; + fpsetmask; + fpsetround; + __infinity; + __nan; + makecontext; + modf; + _setjmp; + _longjmp; + fabs; + rfork_thread; + setjmp; + longjmp; + sigsetjmp; + siglongjmp; + __htonl; + htonl; + __htons; + htons; + __ntohl; + ntohl; + __ntohs; + ntohs; + vfork; + exect; + fork; + curbrk; + sbrk; +}; + +# +# FreeBSD private ABI +# +FBSDprivate_1.0 { + # PSEUDO syscalls + __sys_getlogin; + _getlogin; + __sys_exit; + + _set_tp; + __makecontext; + __signalcontext; + signalcontext; + ___longjmp; + __longjmp; + __siglongjmp; + __divqu; + __divq; + __divlu; + __divl; + __remqu; + __remq; + __remlu; + __reml; + __sys_vork; + _vfork; + __sys_fork; + _fork; + _end; + minbrk; + brk; + .cerror; +}; Index: lib/libc/amd64/Symbol.map =================================================================== RCS file: lib/libc/amd64/Symbol.map diff -N lib/libc/amd64/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/amd64/Symbol.map 7 Mar 2006 01:00:21 -0000 @@ -0,0 +1,71 @@ +# $FreeBSD$ + +# +# This only needs to contain symbols that are not listed in +# symbol maps from other parts of libc (i.e., not found in +# stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...). +# +FBSD_1.0 { + # PSEUDO syscalls + _exit; + + _set_tp; + _setjmp; + _longjmp; + fabs; + __flt_rounds; + fpgetmask; + fpgetprec; + fpgetround; + fpgetsticky; + fpsetmask; + fpsetprec; + fpsetround; + __infinity; + __nan; + makecontext; + modf; + rfork_thread; + setjmp; + sigsetjmp; + htonl; + __htonl; + htons; + __htons; + ntohl; + __ntohl; + ntohs; + __ntohs; + amd64_get_fsbase; + amd64_get_gsbase; + amd64_set_fsbase; + amd64_set_gsbase; + brk; + exect; + sbrk; + vfork; +}; + +# +# FreeBSD private ABI +# +FBSDprivate_1.0 { + # PSEUDO syscalls + __sys_getlogin; + _getlogin; + __sys_exit; + + ___longjmp; + __makecontext; + __longjmp; + __signalcontext; + signalcontext; + __siglongjmp; + .curbrk; + .minbrk; + _brk; + .cerror; + _end; + __sys_vfork; + _vfork; +}; Index: lib/libc/arm/Symbol.map =================================================================== RCS file: lib/libc/arm/Symbol.map diff -N lib/libc/arm/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/arm/Symbol.map 7 Mar 2006 01:00:24 -0000 @@ -0,0 +1,72 @@ +# $FreeBSD$ + +# +# This only needs to contain symbols that are not listed in +# symbol maps from other parts of libc (i.e., not found in +# stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...). +# +FBSD_1.0 { + # PSEUDO syscalls + _exit; + + _set_tp; + _setjmp; + _longjmp; + alloca; + fabs; + __infinity; + __nan; + makecontext; + modf; + setjmp; + longjmp; + signalcontext; + sigsetjmp; + siglongjmp + htonl; + __htonl; + htons; + __htons; + ntohl; + __ntohl; + ntohs; + __ntohs; + vfork; + brk; + end; # XXX - Should this be _end (see sys/brk.S)? + cerror; # XXX - Should this be .cerror (see sys/cerror.S)? + fork; + sbrk; + shmat; + syscall; +}; + +FBSDprivate_1.0 { + # PSEUDO syscalls + __sys_getlogin; + _getlogin; + __sys_exit; + + ___longjmp; + __umodsi3; + __modsi3; + __udivsi3; + __divsi3; + __makecontext; + __longjmp; + _signalcontext; + __siglongjmp; + __sys_vfork; + _vfork; + _brk; + curbrk; + minbrk; + _brk; + __sys_fork; + _fork; + _sbrk; + __sys_shmat; + _shmat; + __sys_syscall; + _syscall; +}; Index: lib/libc/compat-43/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/compat-43/Makefile.inc,v retrieving revision 1.12 diff -u -r1.12 Makefile.inc --- lib/libc/compat-43/Makefile.inc 18 Nov 2002 09:50:54 -0000 1.12 +++ lib/libc/compat-43/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -7,6 +7,8 @@ SRCS+= creat.c gethostid.c getwd.c killpg.c sethostid.c setpgrp.c \ setrgid.c setruid.c sigcompat.c +SYM_MAPS+=${.CURDIR}/compat-43/Symbol.map + MAN+= creat.2 killpg.2 sigpause.2 sigsetmask.2 sigvec.2 MAN+= gethostid.3 setruid.3 Index: lib/libc/compat-43/Symbol.map =================================================================== RCS file: lib/libc/compat-43/Symbol.map diff -N lib/libc/compat-43/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/compat-43/Symbol.map 7 Mar 2006 01:00:27 -0000 @@ -0,0 +1,19 @@ +FBSD_1.0 { + creat; + gethostid; + getwd; + killpg; + sethostid; + setpgrp; + setrgid; + setruid; + sigblock; + sigpause; + sigsetmask; + sigvec; +}; + +FBSDprivate_1.0 { + __creat; + _creat; +}; Index: lib/libc/db/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/db/Makefile.inc,v retrieving revision 1.4 diff -u -r1.4 Makefile.inc --- lib/libc/db/Makefile.inc 18 Nov 2002 09:50:54 -0000 1.4 +++ lib/libc/db/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -9,3 +9,5 @@ .include "${.CURDIR}/db/man/Makefile.inc" .include "${.CURDIR}/db/mpool/Makefile.inc" .include "${.CURDIR}/db/recno/Makefile.inc" + +SYM_MAPS+=${.CURDIR}/db/Symbol.map Index: lib/libc/db/Symbol.map =================================================================== RCS file: lib/libc/db/Symbol.map diff -N lib/libc/db/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/db/Symbol.map 7 Mar 2006 01:00:28 -0000 @@ -0,0 +1,30 @@ +# $FreeBSD$ + +FBSD_1.0 { + dbopen; + dbm_open; + dbm_close; + dbm_fetch; + dbm_firstkey; + dbm_nextkey; + dbm_delete; + dbm_store; + dbm_error; + dbm_clearerr; + dbm_dirfno; + mpool_open; + mpool_filter; + mpool_new; + mpool_get; + mpool_put; + mpool_close; + mpool_sync; + mpool_stat; +}; + +FBSDprivate_1.0 { + __bt_open; + __dbpanic; + __hash_open; + __rec_open; +}; Index: lib/libc/gdtoa/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/gdtoa/Makefile.inc,v retrieving revision 1.8 diff -u -r1.8 Makefile.inc --- lib/libc/gdtoa/Makefile.inc 27 Jan 2005 05:44:16 -0000 1.8 +++ lib/libc/gdtoa/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -8,6 +8,8 @@ hd_init.c hexnan.c misc.c smisc.c \ strtod.c strtodg.c strtof.c strtord.c sum.c ulp.c +SYM_MAPS+=${.CURDIR}/gdtoa/Symbol.map + CFLAGS+=-I${.CURDIR}/../../contrib/gdtoa .for src in ${GDTOASRCS} Index: lib/libc/gdtoa/Symbol.map =================================================================== RCS file: lib/libc/gdtoa/Symbol.map diff -N lib/libc/gdtoa/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/gdtoa/Symbol.map 7 Mar 2006 01:00:30 -0000 @@ -0,0 +1,39 @@ +# $FreeBSD$ + +FBSD_1.0 { + # Standard functions from contrib/gdtoa + dtoa; + freedtoa; + g_Qfmt; + g_ddfmt; + g_dfmt; + g_ffmt; + g_xLfmt; + g_xfmt; + gdtoa; + strtoIQ; + strtoId; + strtoIdd; + strtoIf; + strtoIx; + strtoIxL; + strtod; + strtodI; + strtodg; + strtof; + strtopQ; + strtopd; + strtopdd; + strtopf; + strtopx; + strtopxL; + strtorQ; + strtord; + strtordd; + strtorf; + strtorx; + strtorxL; + + # FreeBSD additions + strtold; +}; Index: lib/libc/gen/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/gen/Makefile.inc,v retrieving revision 1.124 diff -u -r1.124 Makefile.inc --- lib/libc/gen/Makefile.inc 1 Dec 2005 15:56:05 -0000 1.124 +++ lib/libc/gen/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -33,6 +33,8 @@ usleep.c utime.c valloc.c vis.c wait.c wait3.c waitpid.c \ wordexp.c +SYM_MAPS+=${.CURDIR}/gen/Symbol.map + # machine-dependent gen sources .if exists(${.CURDIR}/${MACHINE_ARCH}/gen/Makefile.inc) .include "${.CURDIR}/${MACHINE_ARCH}/gen/Makefile.inc" Index: lib/libc/gen/Symbol.map =================================================================== RCS file: lib/libc/gen/Symbol.map diff -N lib/libc/gen/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/gen/Symbol.map 7 Mar 2006 01:00:32 -0000 @@ -0,0 +1,446 @@ +# $FreeBSD$ + +FBSD_1.0 { + __xuname; + pthread_atfork; + pthread_attr_destroy; + pthread_attr_getdetachstate; + pthread_attr_getguardsize; + pthread_attr_getinheritsched; + pthread_attr_getschedparam; + pthread_attr_getschedpolicy; + pthread_attr_getscope; + pthread_attr_getstackaddr; + pthread_attr_getstacksize; + pthread_attr_init; + pthread_attr_setdetachstate; + pthread_attr_setguardsize; + pthread_attr_setinheritsched; + pthread_attr_setschedparam; + pthread_attr_setschedpolicy; + pthread_attr_setscope; + pthread_attr_setstackaddr; + pthread_attr_setstacksize; + pthread_cancel; + pthread_cleanup_pop; + pthread_cleanup_push; + pthread_cond_broadcast; + pthread_cond_destroy; + pthread_cond_init; + pthread_cond_signal; + pthread_cond_timedwait; + pthread_cond_wait; + pthread_detach; + pthread_equal; + pthread_exit; + pthread_getspecific; + pthread_join; + pthread_key_create; + pthread_key_delete; + pthread_kill; + pthread_main_np; + pthread_mutex_destroy; + pthread_mutex_init; + pthread_mutex_lock; + pthread_mutex_trylock; + pthread_mutex_unlock; + pthread_mutexattr_destroy; + pthread_mutexattr_init; + pthread_mutexattr_settype; + pthread_once; + pthread_rwlock_destroy; + pthread_rwlock_init; + pthread_rwlock_rdlock; + pthread_rwlock_tryrdlock; + pthread_rwlock_trywrlock; + pthread_rwlock_unlock; + pthread_rwlock_wrlock; + pthread_self; + pthread_setcancelstate; + pthread_setcanceltype; + pthread_setspecific; + pthread_sigmask; + pthread_testcancel; + alarm; + arc4random; + arc4random_addrandom; + arc4random_stir; + __assert; + basename; + check_utility_compat; + clock; + closedir; + confstr; + encrypt; + des_setkey; + des_cipher; + setkey; + ctermid; + ctermid_r; + daemon; + devname; + devname_r; + dirname; + getdiskbyname; + dladdr; + dlclose; + dlerror; + dlfunc; + dllockinit; + dlopen; + dlsym; + dlvsym; + dlinfo; + drand48; + erand48; + err_set_file; + err_set_exit; + err; + verr; + errc; + verrc; + errx; + verrx; + warn; + vwarn; + warnc; + vwarnc; + warnx; + vwarnx; + sys_errlist; + sys_nerr; + errno; + execl; + execle; + execlp; + execv; + execvp; + execvP; + fmtcheck; + fmtmsg; + fnmatch; + __fpclassifyf; + __fpclassifyd; + __fpclassifyl; + frexp; + setfstab; + getfstab; + getfsent; + getfsspec; + getfsfile; + setfsent; + endfsent; + ftok; + fts_open; + fts_close; + fts_read; + fts_set; + fts_children; + fts_get_clientptr; + fts_get_stream; + fts_set_clientptr; + ftw; + glob; + globfree; + getbootfile; + getbsize; + cgetset; + cgetcap; + cgetent; + cgetmatch; + cgetfirst; + cgetclose; + cgetnext; + cgetstr; + cgetustr; + cgetnum; + getcwd; + getdomainname; + setgrent; + setgroupent; + endgrent; + getgrent_r; + getgrnam_r; + getgrgid_r; + getgrnam; + getgrgid; + getgrent; + # Why are __gr_parse_entry() and __gr_match_entry() not static in + # gen/getgrent.c? + getgrouplist; + gethostname; + getloadavg; + getlogin; + getlogin_r; + getmntinfo; + setnetgrent; + getnetgrent; + endnetgrent; + innetgr; + getobjformat; + getosreldate; + getpagesize; + getpeereid; + _getprogname; + getprogname; + setpwent; + setpassent; + endpwent; + getpwent_r; + getpwnam_r; + getpwuid_r; + getpwnam; + getpwuid; + getpwent; + getttynam; + getttyent; + setttyent; + endttyent; + isdialuptty; + isnettty; + getusershell; + endusershell; + setusershell; + getvfsbyname; + __isnan; + isnan; + __isnanf; + isnanf; + __isinf; + isinf; + __isinff; + __isinfl; + isatty; + initgroups; + jrand48; + lcong48; + ldexp; + lockf; + lrand48; + mrand48; + nftw; + nice; + nlist; + nrand48; + opendir; + pause; + posix_madvise; + popen; + pclose; + shm_open; + shm_unlink; + pselect; + psignal; + raise; + readdir; + readdir_r; + readpassphrase; + getpass; + rewinddir; + scandir; + alphasort; + seed48; + seekdir; + user_from_uid; + group_from_gid; + sem_init; + sem_destroy; + sem_open; + sem_close; + sem_unlink; + sem_wait; + sem_trywait; + sem_timedwait; + sem_post; + sem_getvalue; + semctl; + setdomainname; + sethostname; + longjmperror; + getmode; + setmode; + setproctitle; + setprogname; + siginterrupt; + sys_signame; + sys_siglist; + sys_nsig; + signal; + sigaddset; + sigdelset; + sigemptyset; + sigfillset; + sigismember; + sleep; + srand48; + fstatvfs; + statvfs; + sl_init; + sl_add; + sl_free; + sl_find; + fflagstostr; + strtofflags; + sysconf; + sysctl; + sysctlbyname; + sysctlnametomib; + syslog; + vsyslog; + openlog; + closelog; + setlogmask; + ttyslot; + ttyname_r; + ttyname; + timezone; + times; + time; + telldir; + tcgetattr; + tcsetattr; + tcsetpgrp; + tcgetpgrp; + cfgetospeed; + cfgetispeed; + cfsetospeed; + cfsetispeed; + cfsetspeed; + cfmakeraw; + tcsendbreak; + _init_tls; + tcdrain; + tcflush; + tcflow; + ualarm; + ulimit; + uname; + unvis; + strunvis; + strunvisx; + usleep; + utime; + valloc; + vis; + strvis; + strvisx; + wait; + wait3; + waitpid; + wordexp; + wordfree; +}; + +FBSDprivate_1.0 { + # needed by thread libraries + __thr_jtable; + + _pthread_atfork; + _pthread_attr_destroy; + _pthread_attr_getdetachstate; + _pthread_attr_getguardsize; + _pthread_attr_getinheritsched; + _pthread_attr_getschedparam; + _pthread_attr_getschedpolicy; + _pthread_attr_getscope; + _pthread_attr_getstackaddr; + _pthread_attr_getstacksize; + _pthread_attr_init; + _pthread_attr_setdetachstate; + _pthread_attr_setguardsize; + _pthread_attr_setinheritsched; + _pthread_attr_setschedparam; + _pthread_attr_setschedpolicy; + _pthread_attr_setscope; + _pthread_attr_setstackaddr; + _pthread_attr_setstacksize; + _pthread_cancel; + _pthread_cleanup_pop; + _pthread_cleanup_push; + _pthread_cond_broadcast; + _pthread_cond_destroy; + _pthread_cond_init; + _pthread_cond_signal; + _pthread_cond_timedwait; + _pthread_cond_wait; + _pthread_detach; + _pthread_equal; + _pthread_exit; + _pthread_getspecific; + _pthread_join; + _pthread_key_create; + _pthread_key_delete; + _pthread_kill; + _pthread_main_np; + _pthread_mutex_destroy; + _pthread_mutex_init; + _pthread_mutex_lock; + _pthread_mutex_trylock; + _pthread_mutex_unlock; + _pthread_mutexattr_destroy; + _pthread_mutexattr_init; + _pthread_mutexattr_settype; + _pthread_once; + _pthread_rwlock_destroy; + _pthread_rwlock_init; + _pthread_rwlock_rdlock; + _pthread_rwlock_tryrdlock; + _pthread_rwlock_trywrlock; + _pthread_rwlock_unlock; + _pthread_rwlock_wrlock; + _pthread_self; + _pthread_setcancelstate; + _pthread_setcanceltype; + _pthread_setspecific; + _pthread_sigmask; + _pthread_testcancel; + _spinlock; + _spinlock_debug; + _spinunlock; + _rtld_error; # for private use + _rtld_thread_init; # for private use + _err; + _warn; + __fmtcheck; + # __pw_match_entry; + # __pw_parse_entry; + __fdnlist; # used by libkvm + # __aout_fdnlist; + # __elf_is_okay__; + # __elf_fdnlist; + __opendir2; + __pause; + _pause; + __pselect; + __pw_scan; # Used by (at least) libutil + __raise; + _raise; + __sem_init; + __sem_destroy; + __sem_open; + __sem_close; + __sem_unlink; + __sem_wait; + __sem_trywait; + __sem_timedwait; + __sem_post; + __sem_getvalue; + __sleep; + _sleep; + _rtld_allocate_tls; + _rtld_free_tls; + __libc_allocate_tls; + __libc_free_tls; + ___tls_get_addr; # x86 only + ___libc_tls_get_addr; # x86 only + __libc_tls_get_addr; + __tls_get_addr; + __tcdrain; + _tcdrain; + __usleep; + _usleep; + __wait; + _wait; + __waitpid; + _waitpid; +}; Index: lib/libc/gen/_spinlock_stub.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/gen/_spinlock_stub.c,v retrieving revision 1.8 diff -u -r1.8 _spinlock_stub.c --- lib/libc/gen/_spinlock_stub.c 26 Mar 2003 04:02:24 -0000 1.8 +++ lib/libc/gen/_spinlock_stub.c 6 Mar 2006 19:15:50 -0000 @@ -43,7 +43,7 @@ */ __weak_reference(_atomic_lock_stub, _atomic_lock); __weak_reference(_spinlock_stub, _spinlock); -__weak_reference(_spinlock_stub, _spinunlock); +__weak_reference(_spinunlock_stub, _spinunlock); __weak_reference(_spinlock_debug_stub, _spinlock_debug); Index: lib/libc/gmon/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/gmon/Makefile.inc,v retrieving revision 1.10 diff -u -r1.10 Makefile.inc --- lib/libc/gmon/Makefile.inc 18 May 2004 22:49:15 -0000 1.10 +++ lib/libc/gmon/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -6,6 +6,8 @@ SRCS+= gmon.c mcount.c +SYM_MAPS+=${.CURDIR}/gmon/Symbol.map + MAN+= moncontrol.3 MLINKS+=moncontrol.3 monstartup.3 Index: lib/libc/gmon/Symbol.map =================================================================== RCS file: lib/libc/gmon/Symbol.map diff -N lib/libc/gmon/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/gmon/Symbol.map 7 Mar 2006 01:00:34 -0000 @@ -0,0 +1,13 @@ +# $FreeBSD$ + +FBSD_1.0 { + monstartup; + moncontrol; + mexitcount; +}; + +FBSDprivate_1.0 { + .mcount; # ??? + _gmonparam; + _mcleanup; +}; Index: lib/libc/i386/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/i386/Makefile.inc,v retrieving revision 1.1 diff -u -r1.1 Makefile.inc --- lib/libc/i386/Makefile.inc 15 Jan 2005 05:23:57 -0000 1.1 +++ lib/libc/i386/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -3,3 +3,4 @@ # Long double is 80 bits GDTOASRCS+=strtopx.c MDSRCS+=machdep_ldisx.c +SYM_MAPS+=${.CURDIR}/i386/Symbol.map Index: lib/libc/i386/Symbol.map =================================================================== RCS file: lib/libc/i386/Symbol.map diff -N lib/libc/i386/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/i386/Symbol.map 7 Mar 2006 01:00:34 -0000 @@ -0,0 +1,72 @@ +# $FreeBSD$ + +# +# This only needs to contain symbols that are not listed in +# symbol maps from other parts of libc (i.e., not found in +# stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...). +# +FBSD_1.0 { + # PSEUDO syscalls + _exit; + + _set_tp; + _setjmp; + _longjmp; + alloca; + fabs; + __flt_rounds; + __nan; + __infinity; + makecontext; + modf; + rfork_thread; + setjmp; + longjmp; + sigsetjmp; + siglongjmp; + __htonl; + htonl; + __htons; + htons; + __ntohl; + ntohl; + __ntohs; + ntohs; + vfork; + brk; + exect; + i386_clr_watch; + i386_get_fsbase; + i386_get_gsbase; + i386_get_ioperm; + i386_get_ldt; + i386_set_fsbase; + i386_set_gsbase; + i386_set_ioperm; + i386_set_ldt; + i386_set_watch; + i386_vm86; + sbrk; + syscall; +}; + +FBSDprivate_1.0 { + # PSEUDO syscalls + __sys_getlogin; + _getlogin; + __sys_exit; + + ___longjmp; + __makecontext; + __longjmp; + __signalcontext; + signalcontext; + __siglongjmp; + __sys_vfork; + _vfork; + _end; + .cerror; + _brk; + .curbrk; + .minbrk; +}; Index: lib/libc/ia64/Symbol.map =================================================================== RCS file: lib/libc/ia64/Symbol.map diff -N lib/libc/ia64/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/ia64/Symbol.map 7 Mar 2006 01:00:35 -0000 @@ -0,0 +1,77 @@ +# $FreeBSD$ + +# +# This only needs to contain symbols that are not listed in +# symbol maps from other parts of libc (i.e., not found in +# stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...). +# +FBSD_1.0 { + # PSEUDO syscalls + _exit; + + mcount; + _set_tp; + _setjmp; + _longjmp; + fabs; + __flt_rounds; + fpgetmask; + fpgetround; + fpsetmask; + fpsetround; + __infinity; + __nan; + makecontext; + modf; + setjmp; + longjmp; + sigsetjmp; + siglongjmp; + htonl; + __htonl; + htons; + __htons; + ntohl; + __ntohl; + ntohs; + __ntohs; + vfork; + brk; + exect; + fork; + sbrk; +}; + +FBSDprivate_1.0 { + # PSEUDO syscalls + __sys_getlogin; + _getlogin; + __sys_exit; + + __divdf3; + __divdi3; + __divsf3; + __divsi3; + __moddi3; + __modsi3; + __udivdi3; + __udivsi3; + __umoddi3; + __umodsi3; + _mcount; + ___longjmp; + __makecontext; + __longjmp; + signalcontext; + __signalcontext; + __siglongjmp; + _Unwind_FindTableEntry; + __sys_vfork; + _vfork; + _end; + minbrk; + .cerror; + __sys_fork; + _fork; + curbrk; +}; Index: lib/libc/locale/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/locale/Makefile.inc,v retrieving revision 1.60 diff -u -r1.60 Makefile.inc --- lib/libc/locale/Makefile.inc 9 Jan 2005 03:55:13 -0000 1.60 +++ lib/libc/locale/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -22,6 +22,8 @@ wcstoul.c wcstoull.c wcstoumax.c wctob.c wctomb.c wctrans.c wctype.c \ wcwidth.c +SYM_MAPS+=${.CURDIR}/locale/Symbol.map + MAN+= btowc.3 \ ctype.3 digittoint.3 isalnum.3 isalpha.3 isascii.3 isblank.3 iscntrl.3 \ isdigit.3 isgraph.3 isideogram.3 islower.3 isphonogram.3 isprint.3 \ Index: lib/libc/locale/Symbol.map =================================================================== RCS file: lib/libc/locale/Symbol.map diff -N lib/libc/locale/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/locale/Symbol.map 7 Mar 2006 01:00:36 -0000 @@ -0,0 +1,93 @@ +FBSD_1.0 { + btowc; + digittoint; + isalnum; + isalpha; + isascii; + isblank; + iscntrl; + isdigit; + isgraph; + ishexnumber; + isideogram; + islower; + isnumber; + isphonogram; + isprint; + ispunct; + isrune; + isspace; + isspecial; + isupper; + isxdigit; + toascii; + tolower; + toupper; + iswalnum; + iswalpha; + iswascii; + iswblank; + iswcntrl; + iswdigit; + iswgraph; + iswhexnumber; + iswideogram; + iswlower; + iswnumber; + iswphonogram; + iswprint; + iswpunct; + iswrune; + iswspace; + iswspecial; + iswupper; + iswxdigit; + towlower; + towupper; + localeconv; + mblen; + mbrlen; + mbrtowc; + mbsinit; + mbsnrtowcs; + mbsrtowcs; + mbstowcs; + mbtowc; + nextwctype; + nl_langinfo; + __maskrune; + __istype; + __isctype; + __toupper; + __tolower; + __wcwidth; + __mb_cur_max; + rpmatch; + ___runetype; + setlocale; + _DefaultRuneLocale; + _CurrentRuneLocale; + ___tolower; + ___toupper; + wcrtomb; + wcsftime; + wcsnrtombs; + wcsrtombs; + wcstod; + wcstof; + wcstoimax; + wcstol; + wcstold; + wcstoll; + wcstombs; + wcstoul; + wcstoull; + wcstoumax; + wctob; + wctomb; + towctrans; + wctrans; + iswctype; + wctype; + wcwidth; +}; Index: lib/libc/net/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/net/Makefile.inc,v retrieving revision 1.55 diff -u -r1.55 Makefile.inc --- lib/libc/net/Makefile.inc 6 Aug 2005 16:53:54 -0000 1.55 +++ lib/libc/net/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -21,6 +21,8 @@ res_init.c res_mkquery.c res_mkupdate.c res_query.c res_send.c \ res_update.c rthdr.c send.c sockatmark.c vars.c +SYM_MAPS+=${.CURDIR}/net/Symbol.map + CFLAGS+=-DINET6 -I${.OBJDIR} YFLAGS+=-p_nsyy Index: lib/libc/net/Symbol.map =================================================================== RCS file: lib/libc/net/Symbol.map diff -N lib/libc/net/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/net/Symbol.map 7 Mar 2006 01:11:34 -0000 @@ -0,0 +1,245 @@ +# $FreeBSD$ + +FBSD_1.0 { + addr2ascii; + ascii2addr; + __b64_ntop; + __b64_pton; + ether_line; + ether_aton; + ether_ntoa; + ether_ntohost; + ether_hostton; + eui64_aton; + eui64_ntoa; + eui64_ntohost; + eui64_hostton; + gai_strerror; + freeaddrinfo; + getaddrinfo; + endhostdnsent; + gethostent; + gethostbyname; + gethostbyname2; + gethostbyaddr; + sethostent; + endhostent; + getifaddrs; + freeifaddrs; + getifmaddrs; + freeifmaddrs; + getnameinfo; + getnetent; + getnetbyname; + getnetbyaddr; + setnetent; + endnetent; + getprotobynumber; + setprotoent; + endprotoent; + getprotoent; + getprotobyname; + getservbyname; + getservbyport; + setservent; + endservent; + getservent; + #h_nerr; # Why is this not staticized in net/herror.c? + h_errlist; + herror; + hstrerror; + hesiod_init; + hesiod_end; + hesiod_to_bind; + hesiod_resolv; + hesiod_free_list; + hes_init; + hes_to_bind; + hes_resolv; + hes_error; + hes_free; + if_indextoname; + if_nameindex; + if_freenameindex; + if_nametoindex; + __inet_addr; + __inet_aton; + inet_addr; + inet_aton; + __inet_lnaof; + inet_lnaof; + __inet_makeaddr; + inet_makeaddr; + __inet_net_ntop; + inet_net_ntop; + __inet_net_pton; + inet_net_pton; + __inet_neta; + inet_neta; + __inet_netof; + inet_netof; + __inet_network; + inet_network; + __inet_ntoa; + inet_ntoa; + __inet_ntop; + inet_ntop; + __inet_pton; + inet_pton; + inet6_option_space; + inet6_option_init; + inet6_option_append; + inet6_option_alloc; + inet6_option_next; + inet6_option_find; + inet6_opt_init; + inet6_opt_append; + inet6_opt_finish; + inet6_opt_set_val; + inet6_opt_next; + inet6_opt_find; + inet6_opt_get_val; + link_addr; + link_ntoa; + getipnodebyname; + getipnodebyaddr; + freehostent; + __ns_name_ntop; + __ns_name_pton; + __ns_name_unpack; + __ns_name_pack; + __ns_name_uncompress; + __ns_name_compress; + ns_name_skip; # Why is this not defined in + __ns_get16; + __ns_get32; + __ns_put16; + __ns_put32; + __ns_initparse; + __ns_parserr; + _ns_flagdata; + __ns_sprintrr; + __ns_sprintrrf; + __ns_format_ttl; + __ns_parse_ttl; + __inet_nsap_addr; + __inet_nsap_ntoa; + inet_nsap_addr; + inet_nsap_ntoa; + __nsdefaultsrc; + _nsdbtaddsrc; + _nsdbtdump; + _nsdbtput; + nsdispatch; + rcmd; + rcmd_af; + rresvport; + rresvport_af; + ruserok; + iruserok; + iruserok_sa; + rcmdsh; + recv; + __dn_expand; + __dn_comp; + __dn_skipname; + __res_hnok; + __res_ownok; + __res_mailok; + __res_dnok; + __putlong; + __putshort; + _getlong; + _getshort; + dn_comp; + dn_expand; + __fp_resstat; + __p_query; + __fp_query; + __fp_nquery; + __p_cdnname; + __p_cdname; + __p_fqnname; + __p_fqname; + __p_class_syms; + __p_type_syms; + __sym_ston; + __sym_ntos; + __sym_ntop; + __p_type; + __p_section; + __p_class; + __p_option; + __p_time; + __loc_aton; + __loc_ntoa; + __dn_count_labels; + __p_secstodate; + fp_resstat; + p_query; + p_fqnname; + sym_ston; + sym_ntos; + sym_ntop; + dn_count_labels; + p_secstodate; + __res_init; + __res_randomid; + ___res; + ___res_ext; + __h_error; + h_errno; + res_init; + __res_mkquery; + res_mkquery; + __res_opt; + __res_mkupdate; + __res_mkupdrec; + __res_freeupdrec; + __res_query; + __res_search; + __res_querydomain; + __hostalias; + res_query; + res_search; + res_querydomain; + __res_isourserver; + __res_nameinquery; + __res_queriesmatch; + __res_send; + __res_close; + _res_close; + res_send; + res_update; # Why is this not __res_update? + inet6_rthdr_space; + inet6_rthdr_init; + inet6_rthdr_add; + inet6_rthdr_lasthop; + inet6_rthdr_segments; + inet6_rthdr_getaddr; + inet6_rthdr_getflags; + inet6_rth_space; + inet6_rth_init; + inet6_rth_add; + inet6_rth_reverse; + inet6_rth_segments; + inet6_rth_getaddr; + send; + sockatmark; + in6addr_any; + in6addr_loopback; + in6addr_nodelocal_allnodes; + in6addr_linklocal_allnodes; +}; + +FBSDprivate_1.0 { + _nsdispatch; + _nsyyerror; # generated from nslexer.l + _nsyylex; # generated from nslexer.l + _nsyyparse; # generated from nsparser.y + _nsyylineno; # generated from nsparser.y + __ivaliduser; + __ivaliduser_af; + __check_rhosts_file; + __rcmd_errstr; +}; Index: lib/libc/nls/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/nls/Makefile.inc,v retrieving revision 1.10 diff -u -r1.10 Makefile.inc --- lib/libc/nls/Makefile.inc 27 Feb 2005 22:17:47 -0000 1.10 +++ lib/libc/nls/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -5,4 +5,6 @@ SRCS+= msgcat.c +SYM_MAPS+=${.CURDIR}/nls/Symbol.map + MAN+= catclose.3 catgets.3 catopen.3 Index: lib/libc/nls/Symbol.map =================================================================== RCS file: lib/libc/nls/Symbol.map diff -N lib/libc/nls/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/nls/Symbol.map 7 Mar 2006 01:00:38 -0000 @@ -0,0 +1,7 @@ +# $FreeBSD$ + +FBSD_1.0 { + catopen; + catgets; + catclose; +}; Index: lib/libc/posix1e/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/posix1e/Makefile.inc,v retrieving revision 1.17 diff -u -r1.17 Makefile.inc --- lib/libc/posix1e/Makefile.inc 3 Jun 2005 15:50:55 -0000 1.17 +++ lib/libc/posix1e/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -22,6 +22,8 @@ mac_get.c \ mac_set.c +SYM_MAPS+=${.CURDIR}/posix1e/Symbol.map + MAN+= acl.3 \ acl_add_perm.3 \ acl_calc_mask.3 \ Index: lib/libc/posix1e/Symbol.map =================================================================== RCS file: lib/libc/posix1e/Symbol.map diff -N lib/libc/posix1e/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/posix1e/Symbol.map 7 Mar 2006 01:00:39 -0000 @@ -0,0 +1,68 @@ +# $FreeBSD$ + +FBSD_1.0 { + acl_calc_mask; + acl_copy_entry; + acl_copy_ext; + acl_copy_int; + acl_delete_def_file; + acl_delete_def_link_np; + acl_delete_file_np; + acl_delete_link_np; + acl_delete_fd_np; + acl_delete_entry; + acl_create_entry; + acl_get_entry; + acl_free; + acl_from_text; + acl_get_file; + acl_get_link_np; + acl_get_fd; + acl_get_fd_np; + acl_get_perm_np; + acl_get_permset; + acl_get_qualifier; + acl_get_tag_type; + acl_init; + acl_dup; + acl_add_perm; + acl_clear_perms; + acl_delete_perm; + acl_set_file; + acl_set_link_np; + acl_set_fd; + acl_set_fd_np; + acl_set_permset; + acl_set_qualifier; + acl_set_tag_type; + acl_size; + acl_to_text; + acl_valid; + acl_valid_file_np; + acl_valid_link_np; + acl_valid_fd_np; + extattr_namespace_to_string; + extattr_string_to_namespace; + mac_reload; + mac_free; + mac_from_text; + mac_to_text; + mac_prepare; + mac_prepare_type; + mac_prepare_ifnet_label; + mac_prepare_file_label; + mac_prepare_packet_label; + mac_prepare_process_label; + mac_is_present; + mac_execve; + mac_get_fd; + mac_get_file; + mac_get_link; + mac_get_peer; + mac_get_pid; + mac_get_proc; + mac_set_fd; + mac_set_file; + mac_set_link; + mac_set_proc; +}; Index: lib/libc/powerpc/Symbol.map =================================================================== RCS file: lib/libc/powerpc/Symbol.map diff -N lib/libc/powerpc/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/powerpc/Symbol.map 7 Mar 2006 01:00:40 -0000 @@ -0,0 +1,60 @@ +# $FreeBSD$ + +# +# This only needs to contain symbols that are not listed in +# symbol maps from other parts of libc (i.e., not found in +# stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...). +# +FBSD_1.0 { + # PSEUDO syscalls + _exit; + + _set_tp; + _setjmp; + _longjmp; + fabs; + __flt_rounds; + fpgetmask; + fpgetround; + fpgetsticky; + fpsetmask; + fpsetround; + __infinity; + __nan; + makecontext; + modf; + setjmp; + longjmp; + sigsetjmp; + siglongjmp; + htonl; + __hton; + htons; + __htons; + ntohl; + __ntohl; + ntohs; + __ntohs; + _end; + brk; + exect; + pipe; + sbrk; +}; + +FBSDprivate_1.0 { + # PSEUDO syscalls + __sys_getlogin; + _getlogin; + __sys_exit; + + _fpgetsticky; + __makecontext; + __longjmp; + signalcontext; + __signalcontext; + __syncicache;; + .curbrk; + .minbrk; + .cerror; +}; Index: lib/libc/quad/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/quad/Makefile.inc,v retrieving revision 1.9 diff -u -r1.9 Makefile.inc --- lib/libc/quad/Makefile.inc 18 Nov 2002 09:50:56 -0000 1.9 +++ lib/libc/quad/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -17,3 +17,5 @@ xordi3.c .endif + +SYM_MAP+=${.CURDIR}/quad/Symbol.map Index: lib/libc/quad/Symbol.map =================================================================== RCS file: lib/libc/quad/Symbol.map diff -N lib/libc/quad/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/quad/Symbol.map 7 Mar 2006 01:00:41 -0000 @@ -0,0 +1,34 @@ +# $FreeBSD$ + +FBSD_1.0 { +}; + +# XXX - Do these really need to be exported??? +FBSDprivate_1.0 { + #__adddi3; + #__anddi3; + #__ashldi3; + #__ashrdi3; + #__cmpdi2; + #__divdi3; + #__fixdfdi; + #__fixsfdi; + #__fixunsdfdi; + #__fixunssfdi; + #__floatdidf; + #__floatdisf; + #__floatunsdidf; + #__iordi3; + #__lshldi3; + #__lshrdi3; + #__moddi3; + #__muldi3; + #__negdi2; + #__one_cmpldi2; + #__qdivrem; + #__subdi3; + #__ucmpdi2; + #__udivdi3; + #__umoddi3; + #__xordi3; +}; Index: lib/libc/regex/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/regex/Makefile.inc,v retrieving revision 1.7 diff -u -r1.7 Makefile.inc --- lib/libc/regex/Makefile.inc 18 Nov 2002 09:50:56 -0000 1.7 +++ lib/libc/regex/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -8,6 +8,8 @@ SRCS+= regcomp.c regerror.c regexec.c regfree.c +SYM_MAPS+=${.CURDIR}/regex/Symbol.map + MAN+= regex.3 MAN+= re_format.7 Index: lib/libc/regex/Symbol.map =================================================================== RCS file: lib/libc/regex/Symbol.map diff -N lib/libc/regex/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/regex/Symbol.map 7 Mar 2006 01:00:42 -0000 @@ -0,0 +1,8 @@ +# $FreeBSD$ + +FBSD_1.0 { + regcomp; + regerror; + regexec; + regfree; +}; Index: lib/libc/rpc/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/rpc/Makefile.inc,v retrieving revision 1.27 diff -u -r1.27 Makefile.inc --- lib/libc/rpc/Makefile.inc 11 Sep 2005 20:59:52 -0000 1.27 +++ lib/libc/rpc/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -25,6 +25,8 @@ # generated sources SRCS+= crypt_clnt.c crypt_xdr.c crypt.h +SYM_MAPS+=${.CURDIR}/rpc/Symbol.map + CFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN CFLAGS+= -I${.CURDIR}/rpc Index: lib/libc/rpc/Symbol.map =================================================================== RCS file: lib/libc/rpc/Symbol.map diff -N lib/libc/rpc/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/rpc/Symbol.map 7 Mar 2006 01:00:42 -0000 @@ -0,0 +1,234 @@ +# $FreeBSD$ + +FBSD_1.0 { + # From crypt_clnt.c (generated by rpcgen - include/rpcsvc/crypt.x) + des_crypt_1; + + # From crypt_xdr.c (generated by rpcgen - include/rpcsvc/crypt.x) + xdr_des_dir; + xdr_des_mode; + xdr_desargs; + xdr_desresp; + + # From yp_xdr.c (generated by rpcgen - include/rpcsvc/yp.x) + xdr_domainname; + xdr_keydat; + xdr_mapname; + xdr_peername; + xdr_valdat; + xdr_ypbind_binding; + xdr_ypbind_resp; + xdr_ypbind_resptype; + xdr_ypbind_setdom; + xdr_ypmap_parms; + xdr_ypmaplist; + xdr_yppush_status; + xdr_yppushresp_xfr; + xdr_ypreq_key; + xdr_ypreq_nokey; + xdr_ypreq_xfr; + xdr_ypreqtype; + xdr_yprequest; + xdr_ypresp_all; + xdr_ypresp_key_val; + xdr_ypresp_maplist; + xdr_ypresp_master; + xdr_ypresp_order; + xdr_ypresp_val; + xdr_ypresp_xfr; + xdr_ypresponse; + xdr_ypresptype; + xdr_ypstat; + xdr_ypxfrstat; + + authdes_seccreate; + authdes_pk_seccreate; + authnone_create; + authunix_create; + authunix_create_default; + xdr_authdes_cred; + xdr_authdes_verf; + xdr_authunix_parms; + bindresvport; + bindresvport_sa; + rpc_broadcast_exp; + rpc_broadcast; + clnt_dg_create; + clnt_create_vers; + clnt_create_vers_timed; + clnt_create; + clnt_create_timed; + clnt_tp_create; + clnt_tp_create_timed; + clnt_tli_create; + clnt_sperror; + clnt_perror; + clnt_sperrno; + clnt_perrno; + clnt_spcreateerror; + clnt_pcreateerror; + clnt_raw_create; + rpc_call; + clnt_vc_create; + cbc_crypt; + ecb_crypt; + des_setparity; + setnetconfig; + getnetconfig; + endnetconfig; + getnetconfigent; + freenetconfigent; + nc_sperror; + nc_perror; + setnetpath; + getnetpath; + endnetpath; + getpublicandprivatekey; + getpublickey; + getrpcbynumber; + getrpcbyname; + setrpcent; + endrpcent; + getrpcent; + getrpcport; + key_setsecret; + key_secretkey_is_set; + key_encryptsession_pk; + key_decryptsession_pk; + key_encryptsession; + key_decryptsession; + key_gendes; + key_setnet; + key_get_conv; + xdr_keystatus; + xdr_keybuf; + xdr_netnamestr; + xdr_cryptkeyarg; + xdr_cryptkeyarg2; + xdr_cryptkeyres; + xdr_unixcred; + xdr_getcredres; + xdr_key_netstarg; + xdr_key_netstres; + rpc_createerr; + __rpc_createerr; + getnetname; + user2netname; + host2netname; + netname2user; + netname2host; + getnetid; + pmap_set; + pmap_unset; + pmap_getmaps; + pmap_getport; + xdr_pmap; + xdr_pmaplist; + xdr_pmaplist_ptr; + pmap_rmtcall; + xdr_rmtcall_args; + xdr_rmtcallres; + xdr_callmsg; + _null_auth; + svc_fdset; + svc_maxfd; + _rpc_dtablesize; + __rpc_get_t_size; + __rpc_getconfip; + __rpc_setconf; + __rpc_getconf; + __rpc_endconf; + rpc_nullproc; + __rpc_fd2sockinfo; + __rpc_nconf2sockinfo; + __rpc_nconf2fd; + taddr2uaddr; + uaddr2taddr; + xdr_opaque_auth; + xdr_des_block; + xdr_accepted_reply; + xdr_rejected_reply; + xdr_replymsg; + xdr_callhdr; + _seterr_reply; + clntudp_bufcreate; + clntudp_create; + clnttcp_create; + clntraw_create; + svctcp_create; + svcudp_bufcreate; + svcfd_create; + svcudp_create; + svcraw_create; + get_myaddress; + callrpc; + registerrpc; + clnt_broadcast; + authdes_create; + clntunix_create; + svcunix_create; + svcunixfd_create; + rpcb_set; + rpcb_unset; + rpcb_getaddr; + rpcb_getmaps; + rpcb_rmtcall; + rpcb_gettime; + rpcb_taddr2uaddr; + rpcb_uaddr2taddr; + xdr_rpcb; + xdr_rpcblist_ptr; + xdr_rpcblist; + xdr_rpcb_entry; + xdr_rpcb_entry_list_ptr; + xdr_rpcb_rmtcallargs; + xdr_rpcb_rmtcallres; + xdr_netbuf; + xdr_rpcbs_addrlist; + xdr_rpcbs_rmtcalllist; + xdr_rpcbs_proc; + xdr_rpcbs_addrlist_ptr; + xdr_rpcbs_rmtcalllist_ptr; + xdr_rpcb_stat; + xdr_rpcb_stat_byvers; + rtime; + xprt_register; + xprt_unregister; + svc_reg; + svc_unreg; + svc_register; + svc_unregister; + svc_sendreply; + svcerr_noproc; + svcerr_decode; + svcerr_systemerr; + svcerr_auth; + svcerr_weakauth; + svcerr_noprog; + svcerr_progvers; + svc_getreq; + svc_getreqset; + svc_getreq_common; + svc_getreq_poll; + rpc_control; + _authenticate; + _svcauth_null; + svc_auth_reg; + _svcauth_des; + authdes_getucred; + _svcauth_unix; + _svcauth_short; + svc_dg_create; + svc_dg_enablecache; + svc_create; + svc_tp_create; + svc_tli_create; + __rpc_rawcombuf; + svc_raw_create; + svc_run; + svc_exit; + rpc_reg; + svc_vc_create; + svc_fd_create; + __rpc_get_local_uid; +}; Index: lib/libc/softfloat/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/softfloat/Makefile.inc,v retrieving revision 1.2 diff -u -r1.2 Makefile.inc --- lib/libc/softfloat/Makefile.inc 15 Mar 2005 15:53:39 -0000 1.2 +++ lib/libc/softfloat/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -16,3 +16,5 @@ SRCS+= eqsf2.c nesf2.c gtsf2.c gesf2.c ltsf2.c lesf2.c negsf2.c \ eqdf2.c nedf2.c gtdf2.c gedf2.c ltdf2.c ledf2.c negdf2.c \ unordsf2.c unorddf2.c + +SYM_MAPS+= ${.CURDIR}/softfloat/Symbol.map Index: lib/libc/softfloat/Symbol.map =================================================================== RCS file: lib/libc/softfloat/Symbol.map diff -N lib/libc/softfloat/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/softfloat/Symbol.map 7 Mar 2006 01:00:43 -0000 @@ -0,0 +1,45 @@ +# $FreeBSD$ + +FBSD_1.0 { + _fpgetmask; + fpgetmask; + _fpgetround; + fpgetround; + _fpgetsticky; + fpgetsticky; + _fpsetmask; + fpsetmask; + _fpsetround; + fpsetround; + _fpsetsticky; + fpsetsticky; +}; + +FBSDprivate_1.0 { + _softfloat_float_exception_flags; + _softfloat_float_exception_mask; + _softfloat_float_rounding_mode; + _softfloat_float_raise; + _softfloat_float32_eq; + _softfloat_float32_le; + _softfloat_float32_lt; + _softfloat_float64_eq; + _softfloat_float64_le; + _softfloat_float64_lt; + __eqdf2; + __eqsf2; + __gedf2; + __gesf2; + __gtdf2; + __gtsf2; + __ledf2; + __lesf2; + __ltdf2; + __ltsf2; + __nedf2; + __negdf2; + __negsf2; + __nesf2; + __unorddf2; + __unordsf2; +}; Index: lib/libc/sparc64/Symbol.map =================================================================== RCS file: lib/libc/sparc64/Symbol.map diff -N lib/libc/sparc64/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/sparc64/Symbol.map 7 Mar 2006 01:00:44 -0000 @@ -0,0 +1,117 @@ +# $FreeBSD$ + +# +# This only needs to contain symbols that are not listed in +# symbol maps from other parts of libc (i.e., not found in +# stdlib/Symbol.map, string/Symbol.map, sys/Symbol.map, ...). +# +FBSD_1.0 { + # PSEUDO syscalls + _exit; + + _set_tp; + _setjmp; + _longjmp; + fabs; + __flt_rounds; + fpgetmask; + fpgetround; + fpgetsticky; + fpsetmask; + fpsetround; + __infinity; + __nan; + makecontext; + modf; + setjmp; + longjmp; + sigsetjmp; + siglongjmp; + htonl; + __htonl; + htons; + __htons; + ntohl; + __ntohl; + ntohs; + __ntohs; + brk; + exect; + sbrk; +}; + +FBSDprivate_1.0 { + # PSEUDO syscalls + __sys_getlogin; + _getlogin; + __sys_exit; + + __fpu_exception; + __fpu_add; + __fpu_compare; + __fpu_div; + __fpu_itof; + __fpu_xtof; + __fpu_stof; + __fpu_dtof; + __fpu_qtof; + __fpu_explode; + __fpu_ftoi; + __fpu_ftox; + __fpu_ftos; + __fpu_ftod; + __fpu_ftoq; + __fpu_implode; + __fpu_mul; + _Qp_sqrt; + _Qp_add; + _Qp_div; + _Qp_mul; + _Qp_sub; + _Qp_dtoq; + _Qp_itoq; + _Qp_stoq; + _Qp_xtoq; + _Qp_uitoq; + _Qp_uxtoq; + _Qp_qtod; + _Qp_qtoi; + _Qp_qtos; + _Qp_qtox; + _Qp_qtoui; + _Qp_qtoux; + _Qp_feq; + _Qp_fge; + _Qp_fgt; + _Qp_fle; + _Qp_flt; + _Qp_fne; + _Qp_cmp; + _Qp_cmpe; + __fpu_ld32; + __fpu_st32; + __fpu_ld64; + __fpu_st64; + __fpu_sqrt; + __fpu_shr; + __fpu_norm; + __fpu_newnan; + ___longjmp; + __dtoul; + __makecontext; + __longjmp; + signalcontext; + __signalcontext; + __siglongjmp; + .curbrk; + .minbrk; + __sys_brk; + _brk; + .cerror; + __sys_exect; + _exect; + _end; + __sys_sbrk; + _sbrk; + __sigtramp; +}; Index: lib/libc/stdio/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/stdio/Makefile.inc,v retrieving revision 1.35 diff -u -r1.35 Makefile.inc --- lib/libc/stdio/Makefile.inc 25 Jan 2006 12:45:24 -0000 1.35 +++ lib/libc/stdio/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -27,6 +27,8 @@ SRCS+= xprintf_errno.c xprintf_hexdump.c xprintf_quote.c SRCS+= xprintf_time.c xprintf_vis.c +SYM_MAPS+= ${.CURDIR}/stdio/Symbol.map + MAN+= fclose.3 ferror.3 fflush.3 fgetln.3 fgets.3 fgetwln.3 fgetws.3 \ flockfile.3 \ fopen.3 fputs.3 \ Index: lib/libc/stdio/Symbol.map =================================================================== RCS file: lib/libc/stdio/Symbol.map diff -N lib/libc/stdio/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/stdio/Symbol.map 7 Mar 2006 01:00:45 -0000 @@ -0,0 +1,144 @@ +# $FreeBSD$ + +FBSD_1.0 { + flockfile; + ftrylockfile; + funlockfile; + asprintf; + clearerr; + fclose; + fdopen; + feof; + ferror; + fflush; + fgetc; + fgetln; + fgetpos; + fgets; + fgetwc; + fgetwln; + fgetws; + fileno; + __sF; + __stdinp; + __stdoutp; + __stderrp; + f_prealloc; # deprecated??? + fopen; + fprintf; + fpurge; + fputc; + fputs; + fputwc; + fputws; + fread; + freopen; + fscanf; + fseek; + fseeko; + fsetpos; + ftell; + ftello; + funopen; + fwide; + fwprintf; + fwrite; + fwscanf; + getc; + getchar; + gets; + getw; + getwc; + getwchar; + mkstemps; + mkstemp; + mkdtemp; + mktemp; + perror; + printf; + putc; + putchar; + puts; + putw; + putwc; + putwchar; + remove; + rewind; + __srget; + scanf; + setbuf; + setbuffer; + setlinebuf; + setvbuf; + snprintf; + sprintf; + sscanf; + swprintf; + swscanf; + tempnam; + tmpfile; + tmpnam; + ungetc; + ungetwc; + getchar_unlocked; + getc_unlocked; + putchar_unlocked; + putc_unlocked; + feof_unlocked; + ferror_unlocked; + clearerr_unlocked; + fileno_unlocked; + vasprintf; + vfprintf; + vfscanf; + vfwprintf; + vfwscanf; + vprintf; + vscanf; + vsnprintf; + vsprintf; + vsscanf; + vswprintf; + vswscanf; + vwprintf; + vwscanf; + __swbuf; + wprintf; + wscanf; + __use_xprintf; + __lowercase_hex; + __uppercase_hex; + __printf_flush; + __printf_puts; + __printf_pad; + __printf_out; + __xvprintf; + register_printf_function; + register_printf_render; + register_printf_render_std; + __printf_arginfo_float; + __printf_render_float; + __printf_arginfo_hexdump; + __printf_render_hexdump; + __printf_arginfo_int; + __printf_render_int; + __printf_arginfo_ptr; + __printf_render_ptr; + __printf_arginfo_str; + __printf_render_str; + __printf_arginfo_chr; + __printf_render_chr; + __printf_arginfo_time; + __printf_render_time; + __printf_arginfo_vis; + __printf_render_vis; +}; + +FBSDprivate_1.0 { + _flockfile; + _flockfile_debug_stub; + _flockfile_debug; + _ftrylockfile; + _funlockfile; + __vfscanf; +}; Index: lib/libc/stdlib/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/stdlib/Makefile.inc,v retrieving revision 1.50 diff -u -r1.50 Makefile.inc --- lib/libc/stdlib/Makefile.inc 12 Jan 2006 07:28:20 -0000 1.50 +++ lib/libc/stdlib/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -13,6 +13,8 @@ strtol.c strtoll.c strtoq.c strtoul.c strtoull.c strtoumax.c strtouq.c \ system.c tdelete.c tfind.c tsearch.c twalk.c +SYM_MAPS+= ${.CURDIR}/stdlib/Symbol.map + # machine-dependent stdlib sources .if exists(${.CURDIR}/${MACHINE_ARCH}/stdlib/Makefile.inc) .include "${.CURDIR}/${MACHINE_ARCH}/stdlib/Makefile.inc" Index: lib/libc/stdlib/Symbol.map =================================================================== RCS file: lib/libc/stdlib/Symbol.map diff -N lib/libc/stdlib/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/stdlib/Symbol.map 7 Mar 2006 01:00:46 -0000 @@ -0,0 +1,98 @@ +# $FreeBSD$ + +FBSD_1.0 { + _Exit; + a64l; + abort; + abs; + atexit; + __cxa_atexit; + __cxa_finalize; + atof; + atoi; + atol; + atoll; + bsearch; + div; + __isthreaded; + exit; + getenv; + opterr; + optind; + optopt; + optreset; + optarg; + getopt; + getopt_long; + getopt_long_only; + suboptarg; + getsubopt; + grantpt; + posix_openpt; + ptsname; + unlockpt; + hcreate; + hdestroy; + hsearch; + heapsort; + imaxabs; + imaxdiv; + insque; + l64a; + l64a_r; + labs; + ldiv; + llabs; + lldiv; + lsearch; + lfind; + _malloc_options; + _malloc_message; + malloc; + posix_memalign; + calloc; + realloc; + free; + mergesort; + putenv; + qsort_r; + qsort; + radixsort; + sradixsort; + rand_r; + rand; + srand; + sranddev; + srandom; + srandomdev; + initstate; + setstate; + random; + reallocf; + realpath; + remque; + setenv; + unsetenv; + strfmon; + strtoimax; + strtol; + strtoll; + strtoq; + strtoul; + strtoull; + strtoumax; + strtouq; + system; + tdelete; + tfind; + tsearch; + twalk; +}; + +FBSDprivate_1.0 { + __use_pts; + _malloc_prefork; + _malloc_postfork; + __system; + _system; +}; Index: lib/libc/stdtime/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/stdtime/Makefile.inc,v retrieving revision 1.14 diff -u -r1.14 Makefile.inc --- lib/libc/stdtime/Makefile.inc 18 Nov 2002 09:50:56 -0000 1.14 +++ lib/libc/stdtime/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -6,6 +6,8 @@ SRCS+= asctime.c difftime.c localtime.c strftime.c strptime.c timelocal.c \ time32.c +SYM_MAPS+= ${.CURDIR}/stdtime/Symbol.map + MAN+= ctime.3 strftime.3 strptime.3 time2posix.3 MAN+= tzfile.5 Index: lib/libc/stdtime/Symbol.map =================================================================== RCS file: lib/libc/stdtime/Symbol.map diff -N lib/libc/stdtime/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/stdtime/Symbol.map 7 Mar 2006 01:00:47 -0000 @@ -0,0 +1,34 @@ +# $FreeBSD$ + +FBSD_1.0 { + _time32_to_time; + _time_to_time32; + _time64_to_time; + _time_to_time64; + _time_to_long; + _long_to_time; + _time_to_int; + _int_to_time; + strptime; + strftime; + tzname; + tzsetwall; + tzset; + localtime; + localtime_r; + gmtime; + gmtime_r; + offtime; + ctime; + ctime_r; + mktime; + timelocal; + timegm; + timeoff; + gtime; + time2posix; + posix2time; + difftime; + asctime_r; + asctime; +}; Index: lib/libc/string/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/string/Makefile.inc,v retrieving revision 1.36 diff -u -r1.36 Makefile.inc --- lib/libc/string/Makefile.inc 25 Aug 2005 18:26:58 -0000 1.36 +++ lib/libc/string/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -20,6 +20,8 @@ wmemcmp.c \ wmemcpy.c wmemmove.c wmemset.c +SYM_MAPS+= ${.CURDIR}/string/Symbol.map + # machine-dependent string sources .if exists(${.CURDIR}/${MACHINE_ARCH}/string/Makefile.inc) Index: lib/libc/string/Symbol.map =================================================================== RCS file: lib/libc/string/Symbol.map diff -N lib/libc/string/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/string/Symbol.map 7 Mar 2006 01:00:48 -0000 @@ -0,0 +1,80 @@ +# $FreeBSD$ + +FBSD_1.0 { + bcmp; + bcopy; + memcpy; + memmove; + ffs; + ffsl; + fls; + flsl; + index; + strchr; + memccpy; + memchr; + memcmp; + memmem; + bzero; + memset; + strrchr; + rindex; + stpcpy; + strcasecmp; + strncasecmp; + strcasestr; + strcat; + strcmp; + strcoll; + strcpy; + strcspn; + strdup; + strerror_r; + strerror; + strlcat; + strlcpy; + strlen; + strmode; + strncat; + strncmp; + strncpy; + strnstr; + strpbrk; + strsep; + strsignal; + strspn; + strstr; + strtok_r; + strtok; + strxfrm; + swab; + wcscat; + wcschr; + wcscmp; + wcscoll; + wcscpy; + wcscspn; + wcsdup; + wcslcat; + wcslcpy; + wcslen; + wcsncat; + wcsncmp; + wcsncpy; + wcspbrk; + wcsrchr; + wcsspn; + wcsstr; + wcstok; + wcswidth; + wcsxfrm; + wmemchr; + wmemcmp; + wmemcpy; + wmemmove; + wmemset; +}; + +FBSDprivate_1.0 { + __strtok_r; +}; Index: lib/libc/sys/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/sys/Makefile.inc,v retrieving revision 1.120 diff -u -r1.120 Makefile.inc --- lib/libc/sys/Makefile.inc 1 Mar 2006 06:25:46 -0000 1.120 +++ lib/libc/sys/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -43,6 +43,8 @@ SRCS+= ${SASM} ${SPSEUDO} +SYM_MAPS+= ${.CURDIR}/sys/Symbol.map + # Generated files CLEANFILES+= ${SASM} ${SPSEUDO} Index: lib/libc/sys/Symbol.map =================================================================== RCS file: lib/libc/sys/Symbol.map diff -N lib/libc/sys/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/sys/Symbol.map 7 Mar 2006 01:00:49 -0000 @@ -0,0 +1,959 @@ +# $FreeBSD$ +# +# It'd be nice to have this automatically generated, but we don't +# know to what version they will eventually belong, so for now +# it has to be manual. +# +FBSD_1.0 { + __acl_aclcheck_fd; + __acl_aclcheck_file; + __acl_aclcheck_link; + __acl_delete_fd; + __acl_delete_file; + __acl_delete_link; + __acl_get_fd; + __acl_get_file; + __acl_get_link; + __acl_set_fd; + __acl_set_file; + __acl_set_link; + __getcwd; + __mac_execve; + __mac_get_fd; + __mac_get_file; + __mac_get_link; + __mac_get_pid; + __mac_get_proc; + __mac_set_fd; + __mac_set_file; + __mac_set_link; + __mac_set_proc; + __semctl; + __setugid; + __syscall; + __sysctl; + _umtx_lock; + _umtx_op; + _umtx_unlock; + abort2; + accept; + access; + acct; + adjtime; + aio_cancel; + aio_error; + aio_read; + aio_return; + aio_suspend; + aio_waitcomplete; + aio_write; + audit; + auditctl; + auditon; + bind; + chdir; + chflags; + chmod; + chown; + chroot; + clock_getres; + clock_gettime; + clock_settime; + close; + connect; + dup; + dup2; + eaccess; + execve; + extattr_delete_fd; + extattr_delete_file; + extattr_delete_link; + extattr_get_fd; + extattr_get_file; + extattr_get_link; + extattr_list_fd; + extattr_list_file; + extattr_list_link; + extattr_set_fd; + extattr_set_file; + extattr_set_link; + extattrctl; + fchdir; + fchflags; + fchmod; + fchown; + fcntl; + fhopen; + fhstat; + fhstatfs; + flock; + fork; + fpathconf; + fstat; + fstatfs; + fsync; + futimes; + getaudit; + getaudit_addr; + getauid; + getcontext; + getdents; + getdirentries; + getdtablesize; + getegid; + geteuid; + getfh; + getfsstat; + getgid; + getgroups; + getitimer; + getpeername; + getpgid; + getpgrp; + getpid; + getppid; + getpriority; + getresgid; + getresuid; + getrlimit; + getrusage; + getsid; + getsockname; + getsockopt; + gettimeofday; + getuid; + ioctl; + issetugid; + jail; + jail_attach; + kenv; + kevent; + kill; + kldfind; + kldfirstmod; + kldload; + kldnext; + kldstat; + kldsym; + kldunload; + kldunloadf; + kqueue; + kse_create; + kse_exit; + kse_release; + kse_switchin; + kse_thr_interrupt; + kse_wakeup; + ksem_close; + ksem_destroy; + ksem_getvalue; + ksem_init; + ksem_open; + ksem_post; + ksem_timedwait; + ksem_trywait; + ksem_unlink; + ksem_wait; + ktrace; + lchflags; + lchmod; + lchown; + lgetfh; + link; + lio_listio; + listen; + lstat; + lutimes; + mac_syscall; + madvise; + mincore; + minherit; + mkdir; + mkfifo; + mknod; + mlock; + mlockall; + modfind; + modfnext; + modnext; + modstat; + mount; + mprotect; + mq_notify; + mq_open; + mq_setattr; + mq_timedreceive; + mq_timedsend; + mq_unlink; + msgctl; + msgget; + msgrcv; + msgsnd; + msgsys; + msync; + munlock; + munlockall; + munmap; + nanosleep; + netbsd_lchown; + netbsd_msync; + nfsclnt; + nfssvc; + nfstat; + nlstat; + nmount; + nstat; + ntp_adjtime; + ntp_gettime; + oaio_read; + oaio_write; + olio_listio; + open; + pathconf; + pipe; + poll; + preadv; + profil; + ptrace; + pwritev; + quotactl; + read; + readlink; + readv; + reboot; + recvfrom; + recvmsg; + rename; + revoke; + rfork; + rmdir; + rtprio; + sched_get_priority_max; + sched_get_priority_min; + sched_getparam; + sched_getscheduler; + sched_rr_get_interval; + sched_setparam; + sched_setscheduler; + sched_yield; + select; + semget; + semop; + semsys; + sendfile; + sendmsg; + sendto; + setaudit; + setaudit_addr; + setauid; + setcontext; + setegid; + seteuid; + setgid; + setgroups; + setitimer; + setlogin; + setpgid; + setpriority; + setregid; + setresgid; + setresuid; + setreuid; + setrlimit; + setsid; + setsockopt; + settimeofday; + setuid; + shmat; + shmctl; + shmdt; + shmget; + shmsys; + shutdown; + sigaction; + sigaltstack; + sigpending; + sigprocmask; + sigqueue; + sigreturn; + sigsuspend; + sigtimedwait; + sigwait; + sigwaitinfo; + socket; + socketpair; + stat; + statfs; + swapcontext; + swapoff; + swapon; + symlink; + sync; + sysarch; + thr_create; + thr_exit; + thr_kill; + thr_new; + thr_self; + thr_set_name; + thr_suspend; + thr_wake; + timer_create; + timer_delete; + timer_getoverrun; + timer_gettime; + timer_settime; + umask; + undelete; + unlink; + unmount; + utimes; + utrace; + uuidgen; + vadvise; + wait4; + write; + writev; + + __error; + ftruncate; + lseek; + mmap; + mq_close; + mq_getattr; + mq_receive; + mq_send; + pread; + pwrite; + truncate; +}; + +FBSDprivate_1.0 { + ___acl_aclcheck_fd; + __sys___acl_aclcheck_fd; + ___acl_aclcheck_file; + __sys___acl_aclcheck_file; + ___acl_aclcheck_link; + __sys___acl_aclcheck_link; + ___acl_delete_fd; + __sys___acl_delete_fd; + ___acl_delete_file; + __sys___acl_delete_file; + ___acl_delete_link; + __sys___acl_delete_link; + ___acl_get_fd; + __sys___acl_get_fd; + ___acl_get_file; + __sys___acl_get_file; + ___acl_get_link; + __sys___acl_get_link; + ___acl_set_fd; + __sys___acl_set_fd; + ___acl_set_file; + __sys___acl_set_file; + ___acl_set_link; + __sys___acl_set_link; + ___getcwd; + __sys___getcwd; + ___mac_execve; + __sys___mac_execve; + ___mac_get_fd; + __sys___mac_get_fd; + ___mac_get_file; + __sys___mac_get_file; + ___mac_get_link; + __sys___mac_get_link; + ___mac_get_pid; + __sys___mac_get_pid; + ___mac_get_proc; + __sys___mac_get_proc; + ___mac_set_fd; + __sys___mac_set_fd; + ___mac_set_file; + __sys___mac_set_file; + ___mac_set_link; + __sys___mac_set_link; + ___mac_set_proc; + __sys___mac_set_proc; + ___semctl; + __sys___semctl; + ___setugid; + __sys___setugid; + ___syscall; + __sys___syscall; + ___sysctl; + __sys___sysctl; + __umtx_lock; + __sys__umtx_lock; + __umtx_op; + __sys__umtx_op; + __umtx_unlock; + __sys__umtx_unlock; + _abort2; + __sys_abort2; + _accept; + __sys_accept; + _access; + __sys_access; + _acct; + __sys_acct; + _adjtime; + __sys_adjtime; + _aio_cancel; + __sys_aio_cancel; + _aio_error; + __sys_aio_error; + _aio_read; + __sys_aio_read; + _aio_return; + __sys_aio_return; + _aio_suspend; + __sys_aio_suspend; + _aio_waitcomplete; + __sys_aio_waitcomplete; + _aio_write; + __sys_aio_write; + _audit; + __sys_audit; + _auditctl; + __sys_auditctl; + _auditon; + __sys_auditon; + _bind; + __sys_bind; + _chdir; + __sys_chdir; + _chflags; + __sys_chflags; + _chmod; + __sys_chmod; + _chown; + __sys_chown; + _chroot; + __sys_chroot; + _clock_getres; + __sys_clock_getres; + _clock_gettime; + __sys_clock_gettime; + _clock_settime; + __sys_clock_settime; + _close; + __sys_close; + _connect; + __sys_connect; + _dup; + __sys_dup; + _dup2; + __sys_dup2; + _eaccess; + __sys_eaccess; + _execve; + __sys_execve; + _extattr_delete_fd; + __sys_extattr_delete_fd; + _extattr_delete_file; + __sys_extattr_delete_file; + _extattr_delete_link; + __sys_extattr_delete_link; + _extattr_get_fd; + __sys_extattr_get_fd; + _extattr_get_file; + __sys_extattr_get_file; + _extattr_get_link; + __sys_extattr_get_link; + _extattr_list_fd; + __sys_extattr_list_fd; + _extattr_list_file; + __sys_extattr_list_file; + _extattr_list_link; + __sys_extattr_list_link; + _extattr_set_fd; + __sys_extattr_set_fd; + _extattr_set_file; + __sys_extattr_set_file; + _extattr_set_link; + __sys_extattr_set_link; + _extattrctl; + __sys_extattrctl; + _fchdir; + __sys_fchdir; + _fchflags; + __sys_fchflags; + _fchmod; + __sys_fchmod; + _fchown; + __sys_fchown; + _fcntl; + __sys_fcntl; + _fhopen; + __sys_fhopen; + _fhstat; + __sys_fhstat; + _fhstatfs; + __sys_fhstatfs; + _flock; + __sys_flock; + _fork; + __sys_fork; + _fpathconf; + __sys_fpathconf; + _fstat; + __sys_fstat; + _fstatfs; + __sys_fstatfs; + _fsync; + __sys_fsync; + _futimes; + __sys_futimes; + _getaudit; + __sys_getaudit; + _getaudit_addr; + __sys_getaudit_addr; + _getauid; + __sys_getauid; + _getcontext; + __sys_getcontext; + _getdents; + __sys_getdents; + _getdirentries; + __sys_getdirentries; + _getdtablesize; + __sys_getdtablesize; + _getegid; + __sys_getegid; + _geteuid; + __sys_geteuid; + _getfh; + __sys_getfh; + _getfsstat; + __sys_getfsstat; + _getgid; + __sys_getgid; + _getgroups; + __sys_getgroups; + _getitimer; + __sys_getitimer; + _getpeername; + __sys_getpeername; + _getpgid; + __sys_getpgid; + _getpgrp; + __sys_getpgrp; + _getpid; + __sys_getpid; + _getppid; + __sys_getppid; + _getpriority; + __sys_getpriority; + _getresgid; + __sys_getresgid; + _getresuid; + __sys_getresuid; + _getrlimit; + __sys_getrlimit; + _getrusage; + __sys_getrusage; + _getsid; + __sys_getsid; + _getsockname; + __sys_getsockname; + _getsockopt; + __sys_getsockopt; + _gettimeofday; + __sys_gettimeofday; + _getuid; + __sys_getuid; + _ioctl; + __sys_ioctl; + _issetugid; + __sys_issetugid; + _jail; + __sys_jail; + _jail_attach; + __sys_jail_attach; + _kenv; + __sys_kenv; + _kevent; + __sys_kevent; + _kill; + __sys_kill; + _kldfind; + __sys_kldfind; + _kldfirstmod; + __sys_kldfirstmod; + _kldload; + __sys_kldload; + _kldnext; + __sys_kldnext; + _kldstat; + __sys_kldstat; + _kldsym; + __sys_kldsym; + _kldunload; + __sys_kldunload; + _kldunloadf; + __sys_kldunloadf; + _kqueue; + __sys_kqueue; + _kse_create; + __sys_kse_create; + _kse_exit; + __sys_kse_exit; + _kse_release; + __sys_kse_release; + _kse_switchin; + __sys_kse_switchin; + _kse_thr_interrupt; + __sys_kse_thr_interrupt; + _kse_wakeup; + __sys_kse_wakeup; + _ksem_close; + __sys_ksem_close; + _ksem_destroy; + __sys_ksem_destroy; + _ksem_getvalue; + __sys_ksem_getvalue; + _ksem_init; + __sys_ksem_init; + _ksem_open; + __sys_ksem_open; + _ksem_post; + __sys_ksem_post; + _ksem_timedwait; + __sys_ksem_timedwait; + _ksem_trywait; + __sys_ksem_trywait; + _ksem_unlink; + __sys_ksem_unlink; + _ksem_wait; + __sys_ksem_wait; + _ktrace; + __sys_ktrace; + _lchflags; + __sys_lchflags; + _lchmod; + __sys_lchmod; + _lchown; + __sys_lchown; + _lgetfh; + __sys_lgetfh; + _link; + __sys_link; + _lio_listio; + __sys_lio_listio; + _listen; + __sys_listen; + _lstat; + __sys_lstat; + _lutimes; + __sys_lutimes; + _mac_syscall; + __sys_mac_syscall; + _madvise; + __sys_madvise; + _mincore; + __sys_mincore; + _minherit; + __sys_minherit; + _mkdir; + __sys_mkdir; + _mkfifo; + __sys_mkfifo; + _mknod; + __sys_mknod; + _mlock; + __sys_mlock; + _mlockall; + __sys_mlockall; + _modfind; + __sys_modfind; + _modfnext; + __sys_modfnext; + _modnext; + __sys_modnext; + _modstat; + __sys_modstat; + _mount; + __sys_mount; + _mprotect; + __sys_mprotect; + _mq_notify; + __sys_mq_notify; + _mq_open; + __sys_mq_open; + _mq_setattr; + __sys_mq_setattr; + _mq_timedreceive; + __sys_mq_timedreceive; + _mq_timedsend; + __sys_mq_timedsend; + _mq_unlink; + __sys_mq_unlink; + _msgctl; + __sys_msgctl; + _msgget; + __sys_msgget; + _msgrcv; + __sys_msgrcv; + _msgsnd; + __sys_msgsnd; + _msgsys; + __sys_msgsys; + _msync; + __sys_msync; + _munlock; + __sys_munlock; + _munlockall; + __sys_munlockall; + _munmap; + __sys_munmap; + _nanosleep; + __sys_nanosleep; + _netbsd_lchown; + __sys_netbsd_lchown; + _netbsd_msync; + __sys_netbsd_msync; + _nfsclnt; + __sys_nfsclnt; + _nfssvc; + __sys_nfssvc; + _nfstat; + __sys_nfstat; + _nlstat; + __sys_nlstat; + _nmount; + __sys_nmount; + _nstat; + __sys_nstat; + _ntp_adjtime; + __sys_ntp_adjtime; + _ntp_gettime; + __sys_ntp_gettime; + _oaio_read; + __sys_oaio_read; + _oaio_write; + __sys_oaio_write; + _olio_listio; + __sys_olio_listio; + _open; + __sys_open; + _pathconf; + __sys_pathconf; + _pipe; + __sys_pipe; + _poll; + __sys_poll; + _preadv; + __sys_preadv; + _profil; + __sys_profil; + _ptrace; + __sys_ptrace; + _pwritev; + __sys_pwritev; + _quotactl; + __sys_quotactl; + _read; + __sys_read; + _readlink; + __sys_readlink; + _readv; + __sys_readv; + _reboot; + __sys_reboot; + _recvfrom; + __sys_recvfrom; + _recvmsg; + __sys_recvmsg; + _rename; + __sys_rename; + _revoke; + __sys_revoke; + _rfork; + __sys_rfork; + _rmdir; + __sys_rmdir; + _rtprio; + __sys_rtprio; + _sched_get_priority_max; + __sys_sched_get_priority_max; + _sched_get_priority_min; + __sys_sched_get_priority_min; + _sched_getparam; + __sys_sched_getparam; + _sched_getscheduler; + __sys_sched_getscheduler; + _sched_rr_get_interval; + __sys_sched_rr_get_interval; + _sched_setparam; + __sys_sched_setparam; + _sched_setscheduler; + __sys_sched_setscheduler; + _sched_yield; + __sys_sched_yield; + _select; + __sys_select; + _semget; + __sys_semget; + _semop; + __sys_semop; + _semsys; + __sys_semsys; + _sendfile; + __sys_sendfile; + _sendmsg; + __sys_sendmsg; + _sendto; + __sys_sendto; + _setaudit; + __sys_setaudit; + _setaudit_addr; + __sys_setaudit_addr; + _setauid; + __sys_setauid; + _setcontext; + __sys_setcontext; + _setegid; + __sys_setegid; + _seteuid; + __sys_seteuid; + _setgid; + __sys_setgid; + _setgroups; + __sys_setgroups; + _setitimer; + __sys_setitimer; + _setlogin; + __sys_setlogin; + _setpgid; + __sys_setpgid; + _setpriority; + __sys_setpriority; + _setregid; + __sys_setregid; + _setresgid; + __sys_setresgid; + _setresuid; + __sys_setresuid; + _setreuid; + __sys_setreuid; + _setrlimit; + __sys_setrlimit; + _setsid; + __sys_setsid; + _setsockopt; + __sys_setsockopt; + _settimeofday; + __sys_settimeofday; + _setuid; + __sys_setuid; + _shmat; + __sys_shmat; + _shmctl; + __sys_shmctl; + _shmdt; + __sys_shmdt; + _shmget; + __sys_shmget; + _shmsys; + __sys_shmsys; + _shutdown; + __sys_shutdown; + _sigaction; + __sys_sigaction; + _sigaltstack; + __sys_sigaltstack; + _sigpending; + __sys_sigpending; + _sigprocmask; + __sys_sigprocmask; + _sigqueue; + __sys_sigqueue; + _sigreturn; + __sys_sigreturn; + _sigsuspend; + __sys_sigsuspend; + _sigtimedwait; + __sys_sigtimedwait; + _sigwait; + __sys_sigwait; + _sigwaitinfo; + __sys_sigwaitinfo; + _socket; + __sys_socket; + _socketpair; + __sys_socketpair; + _stat; + __sys_stat; + _statfs; + __sys_statfs; + _swapcontext; + __sys_swapcontext; + _swapoff; + __sys_swapoff; + _swapon; + __sys_swapon; + _symlink; + __sys_symlink; + _sync; + __sys_sync; + _sysarch; + __sys_sysarch; + _thr_create; + __sys_thr_create; + _thr_exit; + __sys_thr_exit; + _thr_kill; + __sys_thr_kill; + _thr_new; + __sys_thr_new; + _thr_self; + __sys_thr_self; + _thr_set_name; + __sys_thr_set_name; + _thr_suspend; + __sys_thr_suspend; + _thr_wake; + __sys_thr_wake; + _timer_create; + __sys_timer_create; + _timer_delete; + __sys_timer_delete; + _timer_getoverrun; + __sys_timer_getoverrun; + _timer_gettime; + __sys_timer_gettime; + _timer_settime; + __sys_timer_settime; + _umask; + __sys_umask; + _undelete; + __sys_undelete; + _unlink; + __sys_unlink; + _unmount; + __sys_unmount; + _utimes; + __sys_utimes; + _utrace; + __sys_utrace; + _uuidgen; + __sys_uuidgen; + _vadvise; + __sys_vadvise; + _wait4; + __sys_wait4; + _write; + __sys_write; + _writev; + __sys_writev; + __error_unthreaded; + __mq_close; + _mq_close; + __mq_getattr; + _mq_getattr; + __mq_receive; + _mq_receive; + __mq_send; + _mq_send; +}; Index: lib/libc/uuid/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/uuid/Makefile.inc,v retrieving revision 1.3 diff -u -r1.3 Makefile.inc --- lib/libc/uuid/Makefile.inc 18 Nov 2002 09:50:57 -0000 1.3 +++ lib/libc/uuid/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -6,6 +6,7 @@ SRCS+= uuid_compare.c uuid_create.c uuid_create_nil.c uuid_equal.c \ uuid_from_string.c uuid_hash.c uuid_is_nil.c uuid_to_string.c +SYM_MAPS+= ${.CURDIR}/uuid/Symbol.map MAN+= uuid.3 MLINKS+=uuid.3 uuid_compare.3 Index: lib/libc/uuid/Symbol.map =================================================================== RCS file: lib/libc/uuid/Symbol.map diff -N lib/libc/uuid/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/uuid/Symbol.map 7 Mar 2006 01:00:49 -0000 @@ -0,0 +1,12 @@ +# $FreeBSD$ + +FBSD_1.0 { + uuid_to_string; + uuid_is_nil; + uuid_hash; + uuid_from_string; + uuid_equal; + uuid_create_nil; + uuid_create; + uuid_compare; +}; Index: lib/libc/xdr/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/xdr/Makefile.inc,v retrieving revision 1.14 diff -u -r1.14 Makefile.inc --- lib/libc/xdr/Makefile.inc 18 Nov 2002 09:50:57 -0000 1.14 +++ lib/libc/xdr/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -5,6 +5,8 @@ SRCS+= xdr.c xdr_array.c xdr_float.c xdr_mem.c \ xdr_rec.c xdr_reference.c xdr_stdio.c +SYM_MAPS+= ${.CURDIR}/xdr/Symbol.map + MAN+= xdr.3 MLINKS+= rpc_xdr.3 xdr_accepted_reply.3 \ Index: lib/libc/xdr/Symbol.map =================================================================== RCS file: lib/libc/xdr/Symbol.map diff -N lib/libc/xdr/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/xdr/Symbol.map 7 Mar 2006 01:00:50 -0000 @@ -0,0 +1,45 @@ +# $FreeBSD$ + +FBSD_1.0 { + xdr_free; + xdr_void; + xdr_int; + xdr_u_int; + xdr_long; + xdr_u_long; + xdr_int32_t; + xdr_u_int32_t; + xdr_short; + xdr_u_short; + xdr_int16_t; + xdr_u_int16_t; + xdr_char; + xdr_u_char; + xdr_bool; + xdr_enum; + xdr_opaque; + xdr_bytes; + xdr_netobj; + xdr_union; + xdr_string; + xdr_wrapstring; + xdr_int64_t; + xdr_u_int64_t; + xdr_hyper; + xdr_u_hyper; + xdr_longlong_t; + xdr_u_longlong_t; + xdr_array; + xdr_vector; + xdr_float; + xdr_double; + xdrmem_create; + xdrrec_create; + xdrrec_skiprecord; + xdrrec_eof; + xdrrec_endofrecord; + xdr_reference; + xdr_pointer; + #xdr_sizeof; # Why is xdr_sizeof.c not included in Makefileinc? + xdrstdio_create; +}; Index: lib/libc/yp/Makefile.inc =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libc/yp/Makefile.inc,v retrieving revision 1.9 diff -u -r1.9 Makefile.inc --- lib/libc/yp/Makefile.inc 18 Nov 2002 09:50:57 -0000 1.9 +++ lib/libc/yp/Makefile.inc 6 Mar 2006 19:15:50 -0000 @@ -7,6 +7,8 @@ SRCS+= xdryp.c yp.h yp_xdr.c yplib.c CLEANFILES+= yp.h yp_xdr.c +SYM_MAPS+= ${.CURDIR}/yp/Symbol.map + RPCSRC= ${DESTDIR}/usr/include/rpcsvc/yp.x RPCGEN= rpcgen -C Index: lib/libc/yp/Symbol.map =================================================================== RCS file: lib/libc/yp/Symbol.map diff -N lib/libc/yp/Symbol.map --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lib/libc/yp/Symbol.map 7 Mar 2006 01:00:51 -0000 @@ -0,0 +1,23 @@ +# $FreeBSD$ + +FBSD_1.0 { + xdr_datum; + xdr_ypresp_all_seq; + ypresp_data; + ypresp_allfn; + ypbinderr_string; + _yp_dobind; + yp_bind; + yp_unbind; + yp_match; + yp_get_default_domain; + yp_first; + yp_next; + yp_all; + yp_order; + yp_master; + yp_maplist; + yperr_string; + ypprot_err; + _yp_check; +}; Index: lib/libpthread/Makefile =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/Makefile,v retrieving revision 1.54 diff -u -r1.54 Makefile --- lib/libpthread/Makefile 22 Jul 2005 17:19:03 -0000 1.54 +++ lib/libpthread/Makefile 6 Mar 2006 19:34:07 -0000 @@ -31,7 +31,7 @@ # however it is no longer strictly conformed to POSIX # CFLAGS+=-DSYSTEM_SCOPE_ONLY -LDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map +LDFLAGS= -Wl,--version-script=${.CURDIR}/pthread.map -Wl,-zmuldefs # enable extra internal consistancy checks CFLAGS+=-D_PTHREADS_INVARIANTS -Wall Index: lib/libpthread/pthread.map =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/pthread.map,v retrieving revision 1.16 diff -u -r1.16 pthread.map --- lib/libpthread/pthread.map 24 Oct 2005 05:37:21 -0000 1.16 +++ lib/libpthread/pthread.map 7 Mar 2006 01:02:57 -0000 @@ -1,4 +1,14 @@ # $FreeBSD: src/lib/libpthread/pthread.map,v 1.16 2005/10/24 05:37:21 davidxu Exp $ + +# +# Hack. libpthread had versioning before libc, but we need to +# reside in the same namespace as libc if we want to override +# libc functions. Use this so we don't break older applications +# that require symbols from "LIBTHREAD_1_0". +# +# From now on, use the same naming scheme as libc. +# +# LIBTHREAD_1_0 { global: ___creat; @@ -22,6 +32,9 @@ __readv; __select; __sigsuspend; + __sigtimedwait; + __sigwait; + __sigwaitinfo; __wait4; __write; __writev; @@ -39,7 +52,6 @@ _pthread_barrierattr_getpshared; _pthread_barrierattr_init; _pthread_barrierattr_setpshared; - _pthread_attr_default; _pthread_attr_destroy; _pthread_attr_get_np; _pthread_attr_getdetachstate; @@ -150,23 +162,17 @@ _pthread_yield; _raise; _sched_yield; - _sem_close; - _sem_destroy; - _sem_getvalue; _sem_init; - _sem_open; _sem_post; _sem_timedwait; - _sem_trywait; - _sem_unlink; _sem_wait; _sigaction; _sigaltstack; _sigpending; _sigprocmask; _sigsuspend; - _sigwait; _sigtimedwait; + _sigwait; _sigwaitinfo; _sleep; _spinlock; @@ -312,15 +318,9 @@ readv; sched_yield; select; - sem_close; - sem_destroy; - sem_getvalue; sem_init; - sem_open; sem_post; sem_timedwait; - sem_trywait; - sem_unlink; sem_wait; sigaction; sigaltstack; @@ -335,11 +335,376 @@ tcdrain; usleep; vfork; + wait4; wait; + waitpid; + write; + writev; + + # Debugger needs these. + _libkse_debug; + _thread_activated; + _thread_active_threads; + _thread_keytable; + _thread_list; + _thread_max_keys; + _thread_off_attr_flags; + _thread_off_dtv; + _thread_off_linkmap; + _thread_off_next; + _thread_off_tcb; + _thread_off_tmbx; + _thread_off_key_allocated; + _thread_off_key_destructor; + _thread_off_kse; + _thread_off_kse_locklevel; + _thread_off_state; + _thread_off_thr_locklevel; + _thread_off_tlsindex; + _thread_size_key; + _thread_state_running; + _thread_state_zoombie; + +local: + *; +}; + +# +# Use the same naming scheme as libc. +# +FBSD_1.0 { +global: + __error; + accept; + aio_suspend; + close; + connect; + creat; + execve; + fcntl; + fork; + fsync; + msync; + nanosleep; + open; + pause; + poll; + pselect; + pthread_atfork; + pthread_barrier_destroy; + pthread_barrier_init; + pthread_barrier_wait; + pthread_barrierattr_destroy; + pthread_barrierattr_getpshared; + pthread_barrierattr_init; + pthread_barrierattr_setpshared; + pthread_attr_destroy; + pthread_attr_get_np; + pthread_attr_getdetachstate; + pthread_attr_getguardsize; + pthread_attr_getinheritsched; + pthread_attr_getschedparam; + pthread_attr_getschedpolicy; + pthread_attr_getscope; + pthread_attr_getstack; + pthread_attr_getstackaddr; + pthread_attr_getstacksize; + pthread_attr_init; + pthread_attr_setcreatesuspend_np; + pthread_attr_setdetachstate; + pthread_attr_setguardsize; + pthread_attr_setinheritsched; + pthread_attr_setschedparam; + pthread_attr_setschedpolicy; + pthread_attr_setscope; + pthread_attr_setstack; + pthread_attr_setstackaddr; + pthread_attr_setstacksize; + pthread_cancel; + pthread_cleanup_pop; + pthread_cleanup_push; + pthread_cond_broadcast; + pthread_cond_destroy; + pthread_cond_init; + pthread_cond_signal; + pthread_cond_timedwait; + pthread_cond_wait; + pthread_condattr_destroy; + pthread_condattr_init; + pthread_create; + pthread_detach; + pthread_equal; + pthread_exit; + pthread_getconcurrency; + pthread_getprio; + pthread_getschedparam; + pthread_getspecific; + pthread_join; + pthread_key_create; + pthread_key_delete; + pthread_kill; + pthread_main_np; + pthread_multi_np; + pthread_mutex_destroy; + pthread_mutex_getprioceiling; + pthread_mutex_init; + pthread_mutex_lock; + pthread_mutex_setprioceiling; + pthread_mutex_timedlock; + pthread_mutex_trylock; + pthread_mutex_unlock; + pthread_mutexattr_destroy; + pthread_mutexattr_getkind_np; + pthread_mutexattr_getprioceiling; + pthread_mutexattr_getprotocol; + pthread_mutexattr_gettype; + pthread_mutexattr_init; + pthread_mutexattr_setkind_np; + pthread_mutexattr_setprioceiling; + pthread_mutexattr_setprotocol; + pthread_mutexattr_settype; + pthread_once; + pthread_resume_all_np; + pthread_resume_np; + pthread_rwlock_destroy; + pthread_rwlock_init; + pthread_rwlock_rdlock; + pthread_rwlock_timedrdlock; + pthread_rwlock_timedwrlock; + pthread_rwlock_tryrdlock; + pthread_rwlock_trywrlock; + pthread_rwlock_unlock; + pthread_rwlock_wrlock; + pthread_rwlockattr_destroy; + pthread_rwlockattr_getpshared; + pthread_rwlockattr_init; + pthread_rwlockattr_setpshared; + pthread_self; + pthread_set_name_np; + pthread_setcancelstate; + pthread_setcanceltype; + pthread_setconcurrency; + pthread_setprio; + pthread_setschedparam; + pthread_setspecific; + pthread_sigmask; + pthread_single_np; + pthread_spin_destroy; + pthread_spin_init; + pthread_spin_lock; + pthread_spin_trylock; + pthread_spin_unlock; + pthread_suspend_all_np; + pthread_suspend_np; + pthread_switch_add_np; + pthread_switch_delete_np; + pthread_testcancel; + pthread_yield; + raise; + read; + readv; + sched_yield; + select; + sem_init; + sem_post; + sem_timedwait; + sem_wait; + sigaction; + sigaltstack; + sigpending; + sigprocmask; + sigsuspend; + sigwait; + sigwaitinfo; + sigtimedwait; + sleep; + system; + tcdrain; + usleep; + vfork; wait4; + wait; waitpid; write; writev; +local: + *; +}; + +# +# List the private interfaces reserved for use in FreeBSD libraries. +# These are not part of our application ABI. +# +FBSDprivate_1.0 { +global: + ___creat; + __accept; + __close; + __connect; + __fcntl; + __fsync; + __msync; + __nanosleep; + __open; + __poll; + __pthread_cond_timedwait; + __pthread_cond_wait; + __pthread_mutex_init; + __pthread_mutex_lock; + __pthread_mutex_trylock; + __pthread_mutex_timedlock; + __read; + __readv; + __select; + __sigsuspend; + __sigtimedwait; + __sigwait; + __sigwaitinfo; + __wait4; + __write; + __writev; + _aio_suspend; + _execve; + _fork; + _nanosleep; + _pause; + _pselect; + _pthread_atfork; + _pthread_barrier_destroy; + _pthread_barrier_init; + _pthread_barrier_wait; + _pthread_barrierattr_destroy; + _pthread_barrierattr_getpshared; + _pthread_barrierattr_init; + _pthread_barrierattr_setpshared; + _pthread_attr_destroy; + _pthread_attr_get_np; + _pthread_attr_getdetachstate; + _pthread_attr_getguardsize; + _pthread_attr_getinheritsched; + _pthread_attr_getschedparam; + _pthread_attr_getschedpolicy; + _pthread_attr_getscope; + _pthread_attr_getstack; + _pthread_attr_getstackaddr; + _pthread_attr_getstacksize; + _pthread_attr_init; + _pthread_attr_setcreatesuspend_np; + _pthread_attr_setdetachstate; + _pthread_attr_setguardsize; + _pthread_attr_setinheritsched; + _pthread_attr_setschedparam; + _pthread_attr_setschedpolicy; + _pthread_attr_setscope; + _pthread_attr_setstack; + _pthread_attr_setstackaddr; + _pthread_attr_setstacksize; + _pthread_cancel; + _pthread_cleanup_pop; + _pthread_cleanup_push; + _pthread_cond_broadcast; + _pthread_cond_destroy; + _pthread_cond_init; + _pthread_cond_signal; + _pthread_cond_timedwait; + _pthread_cond_wait; + _pthread_condattr_default; + _pthread_condattr_destroy; + _pthread_condattr_init; + _pthread_create; + _pthread_detach; + _pthread_equal; + _pthread_exit; + _pthread_getconcurrency; + _pthread_getprio; + _pthread_getschedparam; + _pthread_getspecific; + _pthread_join; + _pthread_key_create; + _pthread_key_delete; + _pthread_kill; + _pthread_main_np; + _pthread_multi_np; + _pthread_mutex_destroy; + _pthread_mutex_getprioceiling; + _pthread_mutex_init; + _pthread_mutex_lock; + _pthread_mutex_setprioceiling; + _pthread_mutex_timedlock; + _pthread_mutex_trylock; + _pthread_mutex_unlock; + _pthread_mutexattr_default; + _pthread_mutexattr_destroy; + _pthread_mutexattr_getkind_np; + _pthread_mutexattr_getprioceiling; + _pthread_mutexattr_getprotocol; + _pthread_mutexattr_gettype; + _pthread_mutexattr_init; + _pthread_mutexattr_setkind_np; + _pthread_mutexattr_setprioceiling; + _pthread_mutexattr_setprotocol; + _pthread_mutexattr_settype; + _pthread_once; + _pthread_resume_all_np; + _pthread_resume_np; + _pthread_rwlock_destroy; + _pthread_rwlock_init; + _pthread_rwlock_rdlock; + _pthread_rwlock_timedrdlock; + _pthread_rwlock_timedwrlock; + _pthread_rwlock_tryrdlock; + _pthread_rwlock_trywrlock; + _pthread_rwlock_unlock; + _pthread_rwlock_wrlock; + _pthread_rwlockattr_destroy; + _pthread_rwlockattr_getpshared; + _pthread_rwlockattr_init; + _pthread_rwlockattr_setpshared; + _pthread_self; + _pthread_set_name_np; + _pthread_setcancelstate; + _pthread_setcanceltype; + _pthread_setconcurrency; + _pthread_setprio; + _pthread_setschedparam; + _pthread_setspecific; + _pthread_sigmask; + _pthread_single_np; + _pthread_spin_destroy; + _pthread_spin_init; + _pthread_spin_lock; + _pthread_spin_trylock; + _pthread_spin_unlock; + _pthread_suspend_all_np; + _pthread_suspend_np; + _pthread_switch_add_np; + _pthread_switch_delete_np; + _pthread_testcancel; + _pthread_yield; + _raise; + _sched_yield; + _sem_init; + _sem_post; + _sem_timedwait; + _sem_wait; + _sigaction; + _sigaltstack; + _sigpending; + _sigprocmask; + _sigsuspend; + _sigtimedwait; + _sigwait; + _sigwaitinfo; + _sleep; + _spinlock; + _spinlock_debug; + _spinunlock; + _system; + _tcdrain; + _usleep; + _vfork; + _wait; + _waitpid; # Debugger needs these. _libkse_debug; @@ -364,6 +729,7 @@ _thread_size_key; _thread_state_running; _thread_state_zoombie; + local: *; }; Index: lib/libpthread/sys/thr_error.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/sys/thr_error.c,v retrieving revision 1.8 diff -u -r1.8 thr_error.c --- lib/libpthread/sys/thr_error.c 18 Dec 2004 18:07:37 -0000 1.8 +++ lib/libpthread/sys/thr_error.c 6 Mar 2006 19:35:03 -0000 @@ -40,6 +40,8 @@ #undef errno extern int errno; +LT10_COMPAT_DEFAULT(__error); + int * __error(void) { Index: lib/libpthread/thread/thr_accept.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_accept.c,v retrieving revision 1.2 diff -u -r1.2 thr_accept.c --- lib/libpthread/thread/thr_accept.c 9 Dec 2003 23:40:27 -0000 1.2 +++ lib/libpthread/thread/thr_accept.c 6 Mar 2006 19:27:19 -0000 @@ -32,6 +32,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__accept); +LT10_COMPAT_DEFAULT(accept); + __weak_reference(__accept, accept); int Index: lib/libpthread/thread/thr_aio_suspend.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_aio_suspend.c,v retrieving revision 1.8 diff -u -r1.8 thr_aio_suspend.c --- lib/libpthread/thread/thr_aio_suspend.c 9 Dec 2003 02:20:56 -0000 1.8 +++ lib/libpthread/thread/thr_aio_suspend.c 6 Mar 2006 19:27:19 -0000 @@ -33,6 +33,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_aio_suspend); +LT10_COMPAT_DEFAULT(aio_suspend); + __weak_reference(_aio_suspend, aio_suspend); int Index: lib/libpthread/thread/thr_atfork.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_atfork.c,v retrieving revision 1.1 diff -u -r1.1 thr_atfork.c --- lib/libpthread/thread/thr_atfork.c 5 Nov 2003 03:42:10 -0000 1.1 +++ lib/libpthread/thread/thr_atfork.c 6 Mar 2006 19:27:19 -0000 @@ -31,6 +31,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_atfork); +LT10_COMPAT_DEFAULT(pthread_atfork); + __weak_reference(_pthread_atfork, pthread_atfork); int Index: lib/libpthread/thread/thr_attr_destroy.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_destroy.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_destroy.c --- lib/libpthread/thread/thr_attr_destroy.c 16 Sep 2002 08:45:33 -0000 1.7 +++ lib/libpthread/thread/thr_attr_destroy.c 6 Mar 2006 19:27:19 -0000 @@ -36,6 +36,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_destroy); +LT10_COMPAT_DEFAULT(pthread_attr_destroy); + __weak_reference(_pthread_attr_destroy, pthread_attr_destroy); int Index: lib/libpthread/thread/thr_attr_get_np.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_get_np.c,v retrieving revision 1.4 diff -u -r1.4 thr_attr_get_np.c --- lib/libpthread/thread/thr_attr_get_np.c 7 Jul 2003 04:28:23 -0000 1.4 +++ lib/libpthread/thread/thr_attr_get_np.c 6 Mar 2006 19:27:19 -0000 @@ -31,6 +31,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_get_np); +LT10_COMPAT_DEFAULT(pthread_attr_get_np); + __weak_reference(_pthread_attr_get_np, pthread_attr_get_np); int Index: lib/libpthread/thread/thr_attr_getdetachstate.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_getdetachstate.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_getdetachstate.c --- lib/libpthread/thread/thr_attr_getdetachstate.c 16 Sep 2002 08:45:33 -0000 1.7 +++ lib/libpthread/thread/thr_attr_getdetachstate.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_getdetachstate); +LT10_COMPAT_DEFAULT(pthread_attr_getdetachstate); + __weak_reference(_pthread_attr_getdetachstate, pthread_attr_getdetachstate); int Index: lib/libpthread/thread/thr_attr_getguardsize.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_getguardsize.c,v retrieving revision 1.2 diff -u -r1.2 thr_attr_getguardsize.c --- lib/libpthread/thread/thr_attr_getguardsize.c 16 Sep 2002 08:45:33 -0000 1.2 +++ lib/libpthread/thread/thr_attr_getguardsize.c 6 Mar 2006 19:27:19 -0000 @@ -33,6 +33,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_getguardsize); +LT10_COMPAT_DEFAULT(pthread_attr_getguardsize); + __weak_reference(_pthread_attr_getguardsize, pthread_attr_getguardsize); int Index: lib/libpthread/thread/thr_attr_getinheritsched.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_getinheritsched.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_getinheritsched.c --- lib/libpthread/thread/thr_attr_getinheritsched.c 16 Sep 2002 08:45:33 -0000 1.7 +++ lib/libpthread/thread/thr_attr_getinheritsched.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_getinheritsched); +LT10_COMPAT_DEFAULT(pthread_attr_getinheritsched); + __weak_reference(_pthread_attr_getinheritsched, pthread_attr_getinheritsched); int Index: lib/libpthread/thread/thr_attr_getschedparam.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_getschedparam.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_getschedparam.c --- lib/libpthread/thread/thr_attr_getschedparam.c 16 Sep 2002 08:45:33 -0000 1.7 +++ lib/libpthread/thread/thr_attr_getschedparam.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_getschedparam); +LT10_COMPAT_DEFAULT(pthread_attr_getschedparam); + __weak_reference(_pthread_attr_getschedparam, pthread_attr_getschedparam); int Index: lib/libpthread/thread/thr_attr_getschedpolicy.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_getschedpolicy.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_getschedpolicy.c --- lib/libpthread/thread/thr_attr_getschedpolicy.c 16 Sep 2002 08:45:33 -0000 1.7 +++ lib/libpthread/thread/thr_attr_getschedpolicy.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_getschedpolicy); +LT10_COMPAT_DEFAULT(pthread_attr_getschedpolicy); + __weak_reference(_pthread_attr_getschedpolicy, pthread_attr_getschedpolicy); int Index: lib/libpthread/thread/thr_attr_getscope.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_getscope.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_getscope.c --- lib/libpthread/thread/thr_attr_getscope.c 16 Sep 2002 08:45:33 -0000 1.7 +++ lib/libpthread/thread/thr_attr_getscope.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_getscope); +LT10_COMPAT_DEFAULT(pthread_attr_getscope); + __weak_reference(_pthread_attr_getscope, pthread_attr_getscope); int Index: lib/libpthread/thread/thr_attr_getstack.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_getstack.c,v retrieving revision 1.1 diff -u -r1.1 thr_attr_getstack.c --- lib/libpthread/thread/thr_attr_getstack.c 10 Feb 2003 08:48:03 -0000 1.1 +++ lib/libpthread/thread/thr_attr_getstack.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_getstack); +LT10_COMPAT_DEFAULT(pthread_attr_getstack); + __weak_reference(_pthread_attr_getstack, pthread_attr_getstack); int Index: lib/libpthread/thread/thr_attr_getstackaddr.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_getstackaddr.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_getstackaddr.c --- lib/libpthread/thread/thr_attr_getstackaddr.c 16 Sep 2002 08:45:34 -0000 1.7 +++ lib/libpthread/thread/thr_attr_getstackaddr.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_getstackaddr); +LT10_COMPAT_DEFAULT(pthread_attr_getstackaddr); + __weak_reference(_pthread_attr_getstackaddr, pthread_attr_getstackaddr); int Index: lib/libpthread/thread/thr_attr_getstacksize.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_getstacksize.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_getstacksize.c --- lib/libpthread/thread/thr_attr_getstacksize.c 16 Sep 2002 08:45:34 -0000 1.7 +++ lib/libpthread/thread/thr_attr_getstacksize.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_getstacksize); +LT10_COMPAT_DEFAULT(pthread_attr_getstacksize); + __weak_reference(_pthread_attr_getstacksize, pthread_attr_getstacksize); int Index: lib/libpthread/thread/thr_attr_init.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_init.c,v retrieving revision 1.10 diff -u -r1.10 thr_attr_init.c --- lib/libpthread/thread/thr_attr_init.c 13 Feb 2005 18:38:06 -0000 1.10 +++ lib/libpthread/thread/thr_attr_init.c 6 Mar 2006 19:27:19 -0000 @@ -37,6 +37,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_init); +LT10_COMPAT_DEFAULT(pthread_attr_init); + __weak_reference(_pthread_attr_init, pthread_attr_init); int Index: lib/libpthread/thread/thr_attr_setcreatesuspend_np.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_setcreatesuspend_np.c,v retrieving revision 1.8 diff -u -r1.8 thr_attr_setcreatesuspend_np.c --- lib/libpthread/thread/thr_attr_setcreatesuspend_np.c 25 Sep 2003 13:53:49 -0000 1.8 +++ lib/libpthread/thread/thr_attr_setcreatesuspend_np.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_setcreatesuspend_np); +LT10_COMPAT_DEFAULT(pthread_attr_setcreatesuspend_np); + __weak_reference(_pthread_attr_setcreatesuspend_np, pthread_attr_setcreatesuspend_np); int Index: lib/libpthread/thread/thr_attr_setdetachstate.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_setdetachstate.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_setdetachstate.c --- lib/libpthread/thread/thr_attr_setdetachstate.c 16 Sep 2002 08:45:34 -0000 1.7 +++ lib/libpthread/thread/thr_attr_setdetachstate.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_setdetachstate); +LT10_COMPAT_DEFAULT(pthread_attr_setdetachstate); + __weak_reference(_pthread_attr_setdetachstate, pthread_attr_setdetachstate); int Index: lib/libpthread/thread/thr_attr_setguardsize.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_setguardsize.c,v retrieving revision 1.6 diff -u -r1.6 thr_attr_setguardsize.c --- lib/libpthread/thread/thr_attr_setguardsize.c 14 Sep 2003 22:39:44 -0000 1.6 +++ lib/libpthread/thread/thr_attr_setguardsize.c 6 Mar 2006 19:27:19 -0000 @@ -34,6 +34,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_setguardsize); +LT10_COMPAT_DEFAULT(pthread_attr_setguardsize); + __weak_reference(_pthread_attr_setguardsize, pthread_attr_setguardsize); int Index: lib/libpthread/thread/thr_attr_setinheritsched.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_setinheritsched.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_setinheritsched.c --- lib/libpthread/thread/thr_attr_setinheritsched.c 14 Sep 2003 22:28:13 -0000 1.7 +++ lib/libpthread/thread/thr_attr_setinheritsched.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_setinheritsched); +LT10_COMPAT_DEFAULT(pthread_attr_setinheritsched); + __weak_reference(_pthread_attr_setinheritsched, pthread_attr_setinheritsched); int Index: lib/libpthread/thread/thr_attr_setschedparam.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_setschedparam.c,v retrieving revision 1.10 diff -u -r1.10 thr_attr_setschedparam.c --- lib/libpthread/thread/thr_attr_setschedparam.c 18 Apr 2003 05:04:15 -0000 1.10 +++ lib/libpthread/thread/thr_attr_setschedparam.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_setschedparam); +LT10_COMPAT_DEFAULT(pthread_attr_setschedparam); + __weak_reference(_pthread_attr_setschedparam, pthread_attr_setschedparam); int Index: lib/libpthread/thread/thr_attr_setschedpolicy.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_setschedpolicy.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_setschedpolicy.c --- lib/libpthread/thread/thr_attr_setschedpolicy.c 16 Sep 2002 08:45:34 -0000 1.7 +++ lib/libpthread/thread/thr_attr_setschedpolicy.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_setschedpolicy); +LT10_COMPAT_DEFAULT(pthread_attr_setschedpolicy); + __weak_reference(_pthread_attr_setschedpolicy, pthread_attr_setschedpolicy); int Index: lib/libpthread/thread/thr_attr_setscope.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_setscope.c,v retrieving revision 1.10 diff -u -r1.10 thr_attr_setscope.c --- lib/libpthread/thread/thr_attr_setscope.c 14 Sep 2003 22:32:28 -0000 1.10 +++ lib/libpthread/thread/thr_attr_setscope.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_setscope); +LT10_COMPAT_DEFAULT(pthread_attr_setscope); + __weak_reference(_pthread_attr_setscope, pthread_attr_setscope); int Index: lib/libpthread/thread/thr_attr_setstack.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_setstack.c,v retrieving revision 1.1 diff -u -r1.1 thr_attr_setstack.c --- lib/libpthread/thread/thr_attr_setstack.c 10 Feb 2003 08:48:03 -0000 1.1 +++ lib/libpthread/thread/thr_attr_setstack.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_setstack); +LT10_COMPAT_DEFAULT(pthread_attr_setstack); + __weak_reference(_pthread_attr_setstack, pthread_attr_setstack); int Index: lib/libpthread/thread/thr_attr_setstackaddr.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_setstackaddr.c,v retrieving revision 1.7 diff -u -r1.7 thr_attr_setstackaddr.c --- lib/libpthread/thread/thr_attr_setstackaddr.c 16 Sep 2002 08:45:34 -0000 1.7 +++ lib/libpthread/thread/thr_attr_setstackaddr.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_setstackaddr); +LT10_COMPAT_DEFAULT(pthread_attr_setstackaddr); + __weak_reference(_pthread_attr_setstackaddr, pthread_attr_setstackaddr); int Index: lib/libpthread/thread/thr_attr_setstacksize.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_attr_setstacksize.c,v retrieving revision 1.8 diff -u -r1.8 thr_attr_setstacksize.c --- lib/libpthread/thread/thr_attr_setstacksize.c 16 Sep 2002 08:45:34 -0000 1.8 +++ lib/libpthread/thread/thr_attr_setstacksize.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_attr_setstacksize); +LT10_COMPAT_DEFAULT(pthread_attr_setstacksize); + __weak_reference(_pthread_attr_setstacksize, pthread_attr_setstacksize); int Index: lib/libpthread/thread/thr_barrier.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_barrier.c,v retrieving revision 1.1 diff -u -r1.1 thr_barrier.c --- lib/libpthread/thread/thr_barrier.c 4 Sep 2003 14:06:43 -0000 1.1 +++ lib/libpthread/thread/thr_barrier.c 6 Mar 2006 19:27:19 -0000 @@ -33,6 +33,13 @@ #include "un-namespace.h" #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_barrier_init); +LT10_COMPAT_DEFAULT(pthread_barrier_init); +LT10_COMPAT_PRIVATE(_pthread_barrier_wait); +LT10_COMPAT_DEFAULT(pthread_barrier_wait); +LT10_COMPAT_PRIVATE(_pthread_barrier_destroy); +LT10_COMPAT_DEFAULT(pthread_barrier_destroy); + __weak_reference(_pthread_barrier_init, pthread_barrier_init); __weak_reference(_pthread_barrier_wait, pthread_barrier_wait); __weak_reference(_pthread_barrier_destroy, pthread_barrier_destroy); Index: lib/libpthread/thread/thr_barrierattr.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_barrierattr.c,v retrieving revision 1.1 diff -u -r1.1 thr_barrierattr.c --- lib/libpthread/thread/thr_barrierattr.c 4 Sep 2003 14:06:43 -0000 1.1 +++ lib/libpthread/thread/thr_barrierattr.c 6 Mar 2006 19:27:19 -0000 @@ -33,6 +33,15 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_barrierattr_destroy); +LT10_COMPAT_DEFAULT(pthread_barrierattr_destroy); +LT10_COMPAT_PRIVATE(_pthread_barrierattr_init); +LT10_COMPAT_DEFAULT(pthread_barrierattr_init); +LT10_COMPAT_PRIVATE(_pthread_barrierattr_setpshared); +LT10_COMPAT_DEFAULT(pthread_barrierattr_setpshared); +LT10_COMPAT_PRIVATE(_pthread_barrierattr_getpshared); +LT10_COMPAT_DEFAULT(pthread_barrierattr_getpshared); + __weak_reference(_pthread_barrierattr_destroy, pthread_barrierattr_destroy); __weak_reference(_pthread_barrierattr_init, pthread_barrierattr_init); __weak_reference(_pthread_barrierattr_setpshared, Index: lib/libpthread/thread/thr_cancel.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_cancel.c,v retrieving revision 1.32 diff -u -r1.32 thr_cancel.c --- lib/libpthread/thread/thr_cancel.c 18 Dec 2004 18:07:37 -0000 1.32 +++ lib/libpthread/thread/thr_cancel.c 6 Mar 2006 19:27:19 -0000 @@ -6,6 +6,15 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_cancel); +LT10_COMPAT_DEFAULT(pthread_cancel); +LT10_COMPAT_PRIVATE(_pthread_setcancelstate); +LT10_COMPAT_DEFAULT(pthread_setcancelstate); +LT10_COMPAT_PRIVATE(_pthread_setcanceltype); +LT10_COMPAT_DEFAULT(pthread_setcanceltype); +LT10_COMPAT_PRIVATE(_pthread_testcancel); +LT10_COMPAT_DEFAULT(pthread_testcancel); + __weak_reference(_pthread_cancel, pthread_cancel); __weak_reference(_pthread_setcancelstate, pthread_setcancelstate); __weak_reference(_pthread_setcanceltype, pthread_setcanceltype); Index: lib/libpthread/thread/thr_clean.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_clean.c,v retrieving revision 1.9 diff -u -r1.9 thr_clean.c --- lib/libpthread/thread/thr_clean.c 18 Dec 2004 18:07:37 -0000 1.9 +++ lib/libpthread/thread/thr_clean.c 6 Mar 2006 19:27:19 -0000 @@ -37,6 +37,11 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_cleanup_push); +LT10_COMPAT_DEFAULT(pthread_cleanup_push); +LT10_COMPAT_PRIVATE(_pthread_cleanup_pop); +LT10_COMPAT_DEFAULT(pthread_cleanup_pop); + __weak_reference(_pthread_cleanup_push, pthread_cleanup_push); __weak_reference(_pthread_cleanup_pop, pthread_cleanup_pop); Index: lib/libpthread/thread/thr_close.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_close.c,v retrieving revision 1.17 diff -u -r1.17 thr_close.c --- lib/libpthread/thread/thr_close.c 9 Dec 2003 02:20:56 -0000 1.17 +++ lib/libpthread/thread/thr_close.c 6 Mar 2006 19:27:19 -0000 @@ -39,6 +39,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__close); +LT10_COMPAT_DEFAULT(close); + __weak_reference(__close, close); int Index: lib/libpthread/thread/thr_concurrency.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_concurrency.c,v retrieving revision 1.9 diff -u -r1.9 thr_concurrency.c --- lib/libpthread/thread/thr_concurrency.c 18 Dec 2004 18:07:37 -0000 1.9 +++ lib/libpthread/thread/thr_concurrency.c 6 Mar 2006 19:27:19 -0000 @@ -33,6 +33,11 @@ #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_getconcurrency); +LT10_COMPAT_DEFAULT(pthread_getconcurrency); +LT10_COMPAT_PRIVATE(_pthread_setconcurrency); +LT10_COMPAT_DEFAULT(pthread_setconcurrency); + /*#define DEBUG_CONCURRENCY */ #ifdef DEBUG_CONCURRENCY #define DBG_MSG stdout_debug Index: lib/libpthread/thread/thr_cond.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_cond.c,v retrieving revision 1.53 diff -u -r1.53 thr_cond.c --- lib/libpthread/thread/thr_cond.c 23 Feb 2006 21:34:08 -0000 1.53 +++ lib/libpthread/thread/thr_cond.c 6 Mar 2006 19:27:19 -0000 @@ -37,6 +37,21 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__pthread_cond_wait); +LT10_COMPAT_PRIVATE(_pthread_cond_wait); +LT10_COMPAT_DEFAULT(pthread_cond_wait); +LT10_COMPAT_PRIVATE(__pthread_cond_timedwait); +LT10_COMPAT_PRIVATE(_pthread_cond_timedwait); +LT10_COMPAT_DEFAULT(pthread_cond_timedwait); +LT10_COMPAT_PRIVATE(_pthread_cond_init); +LT10_COMPAT_DEFAULT(pthread_cond_init); +LT10_COMPAT_PRIVATE(_pthread_cond_destroy); +LT10_COMPAT_DEFAULT(pthread_cond_destroy); +LT10_COMPAT_PRIVATE(_pthread_cond_signal); +LT10_COMPAT_DEFAULT(pthread_cond_signal); +LT10_COMPAT_PRIVATE(_pthread_cond_broadcast); +LT10_COMPAT_DEFAULT(pthread_cond_broadcast); + #define THR_IN_CONDQ(thr) (((thr)->sflags & THR_FLAGS_IN_SYNCQ) != 0) #define THR_CONDQ_SET(thr) (thr)->sflags |= THR_FLAGS_IN_SYNCQ #define THR_CONDQ_CLEAR(thr) (thr)->sflags &= ~THR_FLAGS_IN_SYNCQ Index: lib/libpthread/thread/thr_condattr_destroy.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_condattr_destroy.c,v retrieving revision 1.7 diff -u -r1.7 thr_condattr_destroy.c --- lib/libpthread/thread/thr_condattr_destroy.c 16 Sep 2002 08:45:34 -0000 1.7 +++ lib/libpthread/thread/thr_condattr_destroy.c 6 Mar 2006 19:27:19 -0000 @@ -36,6 +36,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_condattr_destroy); +LT10_COMPAT_DEFAULT(pthread_condattr_destroy); + __weak_reference(_pthread_condattr_destroy, pthread_condattr_destroy); int Index: lib/libpthread/thread/thr_condattr_init.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_condattr_init.c,v retrieving revision 1.8 diff -u -r1.8 thr_condattr_init.c --- lib/libpthread/thread/thr_condattr_init.c 18 Apr 2003 05:04:15 -0000 1.8 +++ lib/libpthread/thread/thr_condattr_init.c 6 Mar 2006 19:27:19 -0000 @@ -37,6 +37,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_condattr_init); +LT10_COMPAT_DEFAULT(pthread_condattr_init); + __weak_reference(_pthread_condattr_init, pthread_condattr_init); int Index: lib/libpthread/thread/thr_connect.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_connect.c,v retrieving revision 1.2 diff -u -r1.2 thr_connect.c --- lib/libpthread/thread/thr_connect.c 9 Dec 2003 23:40:27 -0000 1.2 +++ lib/libpthread/thread/thr_connect.c 6 Mar 2006 19:27:19 -0000 @@ -32,6 +32,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__connect); +LT10_COMPAT_DEFAULT(connect); + __weak_reference(__connect, connect); int Index: lib/libpthread/thread/thr_creat.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_creat.c,v retrieving revision 1.8 diff -u -r1.8 thr_creat.c --- lib/libpthread/thread/thr_creat.c 9 Dec 2003 02:20:56 -0000 1.8 +++ lib/libpthread/thread/thr_creat.c 6 Mar 2006 19:27:19 -0000 @@ -33,6 +33,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(___creat); +LT10_COMPAT_DEFAULT(creat); + extern int __creat(const char *, mode_t); __weak_reference(___creat, creat); Index: lib/libpthread/thread/thr_create.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_create.c,v retrieving revision 1.59 diff -u -r1.59 thr_create.c --- lib/libpthread/thread/thr_create.c 18 Dec 2004 18:07:37 -0000 1.59 +++ lib/libpthread/thread/thr_create.c 6 Mar 2006 19:27:19 -0000 @@ -44,6 +44,9 @@ #include "thr_private.h" #include "libc_private.h" +LT10_COMPAT_PRIVATE(_pthread_create); +LT10_COMPAT_DEFAULT(pthread_create); + static void free_thread(struct pthread *curthread, struct pthread *thread); static int create_stack(struct pthread_attr *pattr); static void free_stack(struct pthread_attr *pattr); Index: lib/libpthread/thread/thr_detach.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_detach.c,v retrieving revision 1.23 diff -u -r1.23 thr_detach.c --- lib/libpthread/thread/thr_detach.c 23 Jul 2003 02:11:07 -0000 1.23 +++ lib/libpthread/thread/thr_detach.c 6 Mar 2006 19:27:19 -0000 @@ -37,6 +37,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_detach); +LT10_COMPAT_DEFAULT(pthread_detach); + __weak_reference(_pthread_detach, pthread_detach); int Index: lib/libpthread/thread/thr_equal.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_equal.c,v retrieving revision 1.6 diff -u -r1.6 thr_equal.c --- lib/libpthread/thread/thr_equal.c 16 Sep 2002 08:45:34 -0000 1.6 +++ lib/libpthread/thread/thr_equal.c 6 Mar 2006 19:27:19 -0000 @@ -34,6 +34,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_equal); +LT10_COMPAT_DEFAULT(pthread_equal); + __weak_reference(_pthread_equal, pthread_equal); int Index: lib/libpthread/thread/thr_execve.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_execve.c,v retrieving revision 1.3 diff -u -r1.3 thr_execve.c --- lib/libpthread/thread/thr_execve.c 7 Oct 2004 14:23:15 -0000 1.3 +++ lib/libpthread/thread/thr_execve.c 6 Mar 2006 19:27:19 -0000 @@ -34,6 +34,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_execve); +LT10_COMPAT_DEFAULT(execve); + __weak_reference(_execve, execve); int Index: lib/libpthread/thread/thr_exit.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_exit.c,v retrieving revision 1.39 diff -u -r1.39 thr_exit.c --- lib/libpthread/thread/thr_exit.c 23 Oct 2004 23:37:54 -0000 1.39 +++ lib/libpthread/thread/thr_exit.c 6 Mar 2006 19:27:19 -0000 @@ -40,6 +40,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_exit); +LT10_COMPAT_DEFAULT(pthread_exit); + void _pthread_exit(void *status); __weak_reference(_pthread_exit, pthread_exit); Index: lib/libpthread/thread/thr_fcntl.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_fcntl.c,v retrieving revision 1.19 diff -u -r1.19 thr_fcntl.c --- lib/libpthread/thread/thr_fcntl.c 9 Dec 2003 02:20:56 -0000 1.19 +++ lib/libpthread/thread/thr_fcntl.c 6 Mar 2006 19:27:19 -0000 @@ -38,6 +38,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__fcntl); +LT10_COMPAT_DEFAULT(fcntl); + __weak_reference(__fcntl, fcntl); int Index: lib/libpthread/thread/thr_fork.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_fork.c,v retrieving revision 1.36 diff -u -r1.36 thr_fork.c --- lib/libpthread/thread/thr_fork.c 12 Jan 2006 07:28:21 -0000 1.36 +++ lib/libpthread/thread/thr_fork.c 6 Mar 2006 19:27:19 -0000 @@ -43,6 +43,9 @@ #include "libc_private.h" #include "thr_private.h" +LT10_COMPAT_PRIVATE(_fork); +LT10_COMPAT_DEFAULT(fork); + __weak_reference(_fork, fork); pid_t Index: lib/libpthread/thread/thr_fsync.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_fsync.c,v retrieving revision 1.14 diff -u -r1.14 thr_fsync.c --- lib/libpthread/thread/thr_fsync.c 9 Dec 2003 02:20:56 -0000 1.14 +++ lib/libpthread/thread/thr_fsync.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__fsync); +LT10_COMPAT_DEFAULT(fsync); + __weak_reference(__fsync, fsync); int Index: lib/libpthread/thread/thr_getprio.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_getprio.c,v retrieving revision 1.9 diff -u -r1.9 thr_getprio.c --- lib/libpthread/thread/thr_getprio.c 16 Sep 2002 08:45:34 -0000 1.9 +++ lib/libpthread/thread/thr_getprio.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_getprio); +LT10_COMPAT_DEFAULT(pthread_getprio); + __weak_reference(_pthread_getprio, pthread_getprio); int Index: lib/libpthread/thread/thr_getschedparam.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_getschedparam.c,v retrieving revision 1.10 diff -u -r1.10 thr_getschedparam.c --- lib/libpthread/thread/thr_getschedparam.c 7 Jul 2003 04:28:23 -0000 1.10 +++ lib/libpthread/thread/thr_getschedparam.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_getschedparam); +LT10_COMPAT_DEFAULT(pthread_getschedparam); + __weak_reference(_pthread_getschedparam, pthread_getschedparam); int Index: lib/libpthread/thread/thr_info.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_info.c,v retrieving revision 1.27 diff -u -r1.27 thr_info.c --- lib/libpthread/thread/thr_info.c 22 Sep 2003 00:40:23 -0000 1.27 +++ lib/libpthread/thread/thr_info.c 6 Mar 2006 19:27:19 -0000 @@ -44,6 +44,9 @@ #define NELEMENTS(arr) (sizeof(arr) / sizeof(arr[0])) #endif +LT10_COMPAT_PRIVATE(_pthread_set_name_np); +LT10_COMPAT_DEFAULT(pthread_set_name_np); + static void dump_thread(int fd, pthread_t pthread, int long_version); __weak_reference(_pthread_set_name_np, pthread_set_name_np); Index: lib/libpthread/thread/thr_init.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_init.c,v retrieving revision 1.73 diff -u -r1.73 thr_init.c --- lib/libpthread/thread/thr_init.c 6 Mar 2006 05:02:28 -0000 1.73 +++ lib/libpthread/thread/thr_init.c 6 Mar 2006 19:27:19 -0000 @@ -69,6 +69,11 @@ #include "libc_private.h" #include "thr_private.h" +LT10_COMPAT_PRIVATE(_libkse_debug); +LT10_COMPAT_PRIVATE(_thread_activated); +LT10_COMPAT_PRIVATE(_thread_active_threads); +LT10_COMPAT_PRIVATE(_thread_list); + int __pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *); int __pthread_mutex_lock(pthread_mutex_t *); int __pthread_mutex_trylock(pthread_mutex_t *); Index: lib/libpthread/thread/thr_join.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_join.c,v retrieving revision 1.28 diff -u -r1.28 thr_join.c --- lib/libpthread/thread/thr_join.c 9 Dec 2003 02:20:56 -0000 1.28 +++ lib/libpthread/thread/thr_join.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_join); +LT10_COMPAT_DEFAULT(pthread_join); + __weak_reference(_pthread_join, pthread_join); int Index: lib/libpthread/thread/thr_kill.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_kill.c,v retrieving revision 1.16 diff -u -r1.16 thr_kill.c --- lib/libpthread/thread/thr_kill.c 28 Jun 2003 09:55:02 -0000 1.16 +++ lib/libpthread/thread/thr_kill.c 6 Mar 2006 19:27:19 -0000 @@ -36,6 +36,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_kill); +LT10_COMPAT_DEFAULT(pthread_kill); + __weak_reference(_pthread_kill, pthread_kill); int Index: lib/libpthread/thread/thr_main_np.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_main_np.c,v retrieving revision 1.5 diff -u -r1.5 thr_main_np.c --- lib/libpthread/thread/thr_main_np.c 18 Apr 2003 05:04:16 -0000 1.5 +++ lib/libpthread/thread/thr_main_np.c 6 Mar 2006 19:27:19 -0000 @@ -31,6 +31,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_main_np); +LT10_COMPAT_DEFAULT(pthread_main_np); + __weak_reference(_pthread_main_np, pthread_main_np); /* Index: lib/libpthread/thread/thr_mattr_init.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_mattr_init.c,v retrieving revision 1.9 diff -u -r1.9 thr_mattr_init.c --- lib/libpthread/thread/thr_mattr_init.c 18 Apr 2003 05:04:16 -0000 1.9 +++ lib/libpthread/thread/thr_mattr_init.c 6 Mar 2006 19:27:19 -0000 @@ -37,6 +37,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_mutexattr_init); +LT10_COMPAT_DEFAULT(pthread_mutexattr_init); + __weak_reference(_pthread_mutexattr_init, pthread_mutexattr_init); int Index: lib/libpthread/thread/thr_mattr_kind_np.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_mattr_kind_np.c,v retrieving revision 1.9 diff -u -r1.9 thr_mattr_kind_np.c --- lib/libpthread/thread/thr_mattr_kind_np.c 19 Aug 2005 21:31:42 -0000 1.9 +++ lib/libpthread/thread/thr_mattr_kind_np.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,15 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_mutexattr_setkind_np); +LT10_COMPAT_DEFAULT(pthread_mutexattr_setkind_np); +LT10_COMPAT_PRIVATE(_pthread_mutexattr_getkind_np); +LT10_COMPAT_DEFAULT(pthread_mutexattr_getkind_np); +LT10_COMPAT_PRIVATE(_pthread_mutexattr_gettype); +LT10_COMPAT_DEFAULT(pthread_mutexattr_gettype); +LT10_COMPAT_PRIVATE(_pthread_mutexattr_settype); +LT10_COMPAT_DEFAULT(pthread_mutexattr_settype); + __weak_reference(_pthread_mutexattr_setkind_np, pthread_mutexattr_setkind_np); __weak_reference(_pthread_mutexattr_getkind_np, pthread_mutexattr_getkind_np); __weak_reference(_pthread_mutexattr_gettype, pthread_mutexattr_gettype); Index: lib/libpthread/thread/thr_msync.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_msync.c,v retrieving revision 1.9 diff -u -r1.9 thr_msync.c --- lib/libpthread/thread/thr_msync.c 9 Dec 2003 02:20:56 -0000 1.9 +++ lib/libpthread/thread/thr_msync.c 6 Mar 2006 19:27:19 -0000 @@ -11,6 +11,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__msync); +LT10_COMPAT_DEFAULT(msync); + __weak_reference(__msync, msync); int Index: lib/libpthread/thread/thr_multi_np.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_multi_np.c,v retrieving revision 1.7 diff -u -r1.7 thr_multi_np.c --- lib/libpthread/thread/thr_multi_np.c 24 May 2002 04:32:28 -0000 1.7 +++ lib/libpthread/thread/thr_multi_np.c 6 Mar 2006 19:27:19 -0000 @@ -34,6 +34,11 @@ #include #include +#include "thr_private.h" + +LT10_COMPAT_PRIVATE(_pthread_multi_np); +LT10_COMPAT_DEFAULT(pthread_multi_np); + __weak_reference(_pthread_multi_np, pthread_multi_np); int Index: lib/libpthread/thread/thr_mutex.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_mutex.c,v retrieving revision 1.49 diff -u -r1.49 thr_mutex.c --- lib/libpthread/thread/thr_mutex.c 23 Feb 2006 21:34:08 -0000 1.49 +++ lib/libpthread/thread/thr_mutex.c 6 Mar 2006 19:27:19 -0000 @@ -91,6 +91,23 @@ PTHREAD_MUTEXATTR_STATIC_INITIALIZER; static pthread_mutexattr_t static_mattr = &static_mutex_attr; +LT10_COMPAT_PRIVATE(__pthread_mutex_init); +LT10_COMPAT_PRIVATE(_pthread_mutex_init); +LT10_COMPAT_DEFAULT(pthread_mutex_init); +LT10_COMPAT_PRIVATE(__pthread_mutex_lock); +LT10_COMPAT_PRIVATE(_pthread_mutex_lock); +LT10_COMPAT_DEFAULT(pthread_mutex_lock); +LT10_COMPAT_PRIVATE(__pthread_mutex_timedlock); +LT10_COMPAT_PRIVATE(_pthread_mutex_timedlock); +LT10_COMPAT_DEFAULT(pthread_mutex_timedlock); +LT10_COMPAT_PRIVATE(__pthread_mutex_trylock); +LT10_COMPAT_PRIVATE(_pthread_mutex_trylock); +LT10_COMPAT_DEFAULT(pthread_mutex_trylock); +LT10_COMPAT_PRIVATE(_pthread_mutex_destroy); +LT10_COMPAT_DEFAULT(pthread_mutex_destroy); +LT10_COMPAT_PRIVATE(_pthread_mutex_unlock); +LT10_COMPAT_DEFAULT(pthread_mutex_unlock); + /* Single underscore versions provided for libc internal usage: */ __weak_reference(__pthread_mutex_init, pthread_mutex_init); __weak_reference(__pthread_mutex_lock, pthread_mutex_lock); Index: lib/libpthread/thread/thr_mutex_prioceiling.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_mutex_prioceiling.c,v retrieving revision 1.8 diff -u -r1.8 thr_mutex_prioceiling.c --- lib/libpthread/thread/thr_mutex_prioceiling.c 7 Jul 2003 04:28:23 -0000 1.8 +++ lib/libpthread/thread/thr_mutex_prioceiling.c 6 Mar 2006 19:27:19 -0000 @@ -37,6 +37,15 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_mutexattr_getprioceiling); +LT10_COMPAT_DEFAULT(pthread_mutexattr_getprioceiling); +LT10_COMPAT_PRIVATE(_pthread_mutexattr_setprioceiling); +LT10_COMPAT_DEFAULT(pthread_mutexattr_setprioceiling); +LT10_COMPAT_PRIVATE(_pthread_mutex_getprioceiling); +LT10_COMPAT_DEFAULT(pthread_mutex_getprioceiling); +LT10_COMPAT_PRIVATE(_pthread_mutex_setprioceiling); +LT10_COMPAT_DEFAULT(pthread_mutex_setprioceiling); + __weak_reference(_pthread_mutexattr_getprioceiling, pthread_mutexattr_getprioceiling); __weak_reference(_pthread_mutexattr_setprioceiling, pthread_mutexattr_setprioceiling); __weak_reference(_pthread_mutex_getprioceiling, pthread_mutex_getprioceiling); Index: lib/libpthread/thread/thr_mutex_protocol.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_mutex_protocol.c,v retrieving revision 1.7 diff -u -r1.7 thr_mutex_protocol.c --- lib/libpthread/thread/thr_mutex_protocol.c 18 Apr 2003 05:04:16 -0000 1.7 +++ lib/libpthread/thread/thr_mutex_protocol.c 6 Mar 2006 19:27:19 -0000 @@ -37,6 +37,11 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_mutexattr_getprotocol); +LT10_COMPAT_DEFAULT(pthread_mutexattr_getprotocol); +LT10_COMPAT_PRIVATE(_pthread_mutexattr_setprotocol); +LT10_COMPAT_DEFAULT(pthread_mutexattr_setprotocol); + __weak_reference(_pthread_mutexattr_getprotocol, pthread_mutexattr_getprotocol); __weak_reference(_pthread_mutexattr_setprotocol, pthread_mutexattr_setprotocol); Index: lib/libpthread/thread/thr_mutexattr_destroy.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_mutexattr_destroy.c,v retrieving revision 1.8 diff -u -r1.8 thr_mutexattr_destroy.c --- lib/libpthread/thread/thr_mutexattr_destroy.c 16 Sep 2002 08:45:35 -0000 1.8 +++ lib/libpthread/thread/thr_mutexattr_destroy.c 6 Mar 2006 19:27:19 -0000 @@ -36,6 +36,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_mutexattr_destroy); +LT10_COMPAT_DEFAULT(pthread_mutexattr_destroy); + __weak_reference(_pthread_mutexattr_destroy, pthread_mutexattr_destroy); int Index: lib/libpthread/thread/thr_nanosleep.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_nanosleep.c,v retrieving revision 1.25 diff -u -r1.25 thr_nanosleep.c --- lib/libpthread/thread/thr_nanosleep.c 23 Feb 2006 21:34:08 -0000 1.25 +++ lib/libpthread/thread/thr_nanosleep.c 6 Mar 2006 19:27:19 -0000 @@ -36,6 +36,10 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__nanosleep); +LT10_COMPAT_PRIVATE(_nanosleep); +LT10_COMPAT_DEFAULT(nanosleep); + __weak_reference(__nanosleep, nanosleep); int Index: lib/libpthread/thread/thr_once.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_once.c,v retrieving revision 1.10 diff -u -r1.10 thr_once.c --- lib/libpthread/thread/thr_once.c 18 Dec 2004 18:07:37 -0000 1.10 +++ lib/libpthread/thread/thr_once.c 6 Mar 2006 19:27:19 -0000 @@ -36,6 +36,9 @@ #include "un-namespace.h" #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_once); +LT10_COMPAT_DEFAULT(pthread_once); + __weak_reference(_pthread_once, pthread_once); #define ONCE_NEVER_DONE PTHREAD_NEEDS_INIT Index: lib/libpthread/thread/thr_open.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_open.c,v retrieving revision 1.16 diff -u -r1.16 thr_open.c --- lib/libpthread/thread/thr_open.c 9 Dec 2003 02:20:56 -0000 1.16 +++ lib/libpthread/thread/thr_open.c 6 Mar 2006 19:27:19 -0000 @@ -40,6 +40,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__open); +LT10_COMPAT_DEFAULT(open); + __weak_reference(__open, open); int Index: lib/libpthread/thread/thr_pause.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_pause.c,v retrieving revision 1.8 diff -u -r1.8 thr_pause.c --- lib/libpthread/thread/thr_pause.c 9 Dec 2003 02:20:56 -0000 1.8 +++ lib/libpthread/thread/thr_pause.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ extern int __pause(void); +LT10_COMPAT_PRIVATE(_pause); +LT10_COMPAT_DEFAULT(pause); + __weak_reference(_pause, pause); int Index: lib/libpthread/thread/thr_poll.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_poll.c,v retrieving revision 1.16 diff -u -r1.16 thr_poll.c --- lib/libpthread/thread/thr_poll.c 9 Dec 2003 02:20:56 -0000 1.16 +++ lib/libpthread/thread/thr_poll.c 6 Mar 2006 19:27:19 -0000 @@ -41,6 +41,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__poll); +LT10_COMPAT_DEFAULT(poll); + __weak_reference(__poll, poll); int Index: lib/libpthread/thread/thr_private.h =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_private.h,v retrieving revision 1.124 diff -u -r1.124 thr_private.h --- lib/libpthread/thread/thr_private.h 6 Mar 2006 05:02:28 -0000 1.124 +++ lib/libpthread/thread/thr_private.h 7 Mar 2006 01:01:51 -0000 @@ -60,6 +60,35 @@ #endif /* + * Unfortunately, libpthread had symbol versioning before libc. + * But now libc has symbol versioning, we need to occupy the + * same version namespace in order to override some libc functions. + * So in order to avoid breaking binaries requiring symbols from + * LIBTHREAD_1_0, we need to provide a compatible interface for + * those symbols. + */ +#define SYM_LT10(sym) __CONCAT(sym, _lt10) +#define SYM_FB10(sym) __CONCAT(sym, _fb10) +#define SYM_FBP10(sym) __CONCAT(sym, _fbp10) +#define WEAK_REF(sym, alias) __weak_reference(sym, alias) +#define SYM_COMPAT(sym, impl, ver) __sym_compat(sym, impl, ver) +#define SYM_DEFAULT(sym, impl, ver) __sym_default(sym, impl, ver) + +#define LT10_COMPAT(sym) \ + WEAK_REF(sym, SYM_LT10(sym)); \ + SYM_COMPAT(sym, SYM_LT10(sym), LIBTHREAD_1_0) + +#define LT10_COMPAT_DEFAULT(sym) \ + LT10_COMPAT(sym); \ + WEAK_REF(sym, SYM_FB10(sym)); \ + SYM_DEFAULT(sym, SYM_FB10(sym), FBSD_1.0) + +#define LT10_COMPAT_PRIVATE(sym) \ + LT10_COMPAT(sym); \ + WEAK_REF(sym, SYM_FBP10(sym)); \ + SYM_DEFAULT(sym, SYM_FBP10(sym), FBSDprivate_1.0) + +/* * Evaluate the storage class specifier. */ #ifdef GLOBAL_PTHREAD_PRIVATE Index: lib/libpthread/thread/thr_pselect.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_pselect.c,v retrieving revision 1.5 diff -u -r1.5 thr_pselect.c --- lib/libpthread/thread/thr_pselect.c 9 Dec 2003 02:20:56 -0000 1.5 +++ lib/libpthread/thread/thr_pselect.c 6 Mar 2006 19:27:19 -0000 @@ -40,6 +40,9 @@ extern int __pselect(int count, fd_set *rfds, fd_set *wfds, fd_set *efds, const struct timespec *timo, const sigset_t *mask); +LT10_COMPAT_PRIVATE(_pselect); +LT10_COMPAT_DEFAULT(pselect); + __weak_reference(_pselect, pselect); int Index: lib/libpthread/thread/thr_pspinlock.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_pspinlock.c,v retrieving revision 1.3 diff -u -r1.3 thr_pspinlock.c --- lib/libpthread/thread/thr_pspinlock.c 1 Sep 2005 15:16:46 -0000 1.3 +++ lib/libpthread/thread/thr_pspinlock.c 6 Mar 2006 19:27:19 -0000 @@ -37,6 +37,17 @@ #define SPIN_COUNT 10000 +LT10_COMPAT_PRIVATE(_pthread_spin_init); +LT10_COMPAT_DEFAULT(pthread_spin_init); +LT10_COMPAT_PRIVATE(_pthread_spin_destroy); +LT10_COMPAT_DEFAULT(pthread_spin_destroy); +LT10_COMPAT_PRIVATE(_pthread_spin_trylock); +LT10_COMPAT_DEFAULT(pthread_spin_trylock); +LT10_COMPAT_PRIVATE(_pthread_spin_lock); +LT10_COMPAT_DEFAULT(pthread_spin_lock); +LT10_COMPAT_PRIVATE(_pthread_spin_unlock); +LT10_COMPAT_DEFAULT(pthread_spin_unlock); + __weak_reference(_pthread_spin_init, pthread_spin_init); __weak_reference(_pthread_spin_destroy, pthread_spin_destroy); __weak_reference(_pthread_spin_trylock, pthread_spin_trylock); Index: lib/libpthread/thread/thr_raise.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_raise.c,v retrieving revision 1.1 diff -u -r1.1 thr_raise.c --- lib/libpthread/thread/thr_raise.c 19 Jul 2003 05:25:49 -0000 1.1 +++ lib/libpthread/thread/thr_raise.c 6 Mar 2006 19:27:19 -0000 @@ -33,6 +33,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_raise); +LT10_COMPAT_DEFAULT(raise); + __weak_reference(_raise, raise); int Index: lib/libpthread/thread/thr_read.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_read.c,v retrieving revision 1.18 diff -u -r1.18 thr_read.c --- lib/libpthread/thread/thr_read.c 9 Dec 2003 02:20:56 -0000 1.18 +++ lib/libpthread/thread/thr_read.c 6 Mar 2006 19:27:19 -0000 @@ -40,6 +40,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__read); +LT10_COMPAT_DEFAULT(read); + __weak_reference(__read, read); ssize_t Index: lib/libpthread/thread/thr_readv.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_readv.c,v retrieving revision 1.19 diff -u -r1.19 thr_readv.c --- lib/libpthread/thread/thr_readv.c 9 Dec 2003 02:20:56 -0000 1.19 +++ lib/libpthread/thread/thr_readv.c 6 Mar 2006 19:27:19 -0000 @@ -40,6 +40,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__readv); +LT10_COMPAT_DEFAULT(readv); + __weak_reference(__readv, readv); ssize_t Index: lib/libpthread/thread/thr_resume_np.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_resume_np.c,v retrieving revision 1.18 diff -u -r1.18 thr_resume_np.c --- lib/libpthread/thread/thr_resume_np.c 23 Jul 2003 02:11:07 -0000 1.18 +++ lib/libpthread/thread/thr_resume_np.c 6 Mar 2006 19:27:19 -0000 @@ -37,6 +37,11 @@ static struct kse_mailbox *resume_common(struct pthread *); +LT10_COMPAT_PRIVATE(_pthread_resume_np); +LT10_COMPAT_DEFAULT(pthread_resume_np); +LT10_COMPAT_PRIVATE(_pthread_resume_all_np); +LT10_COMPAT_DEFAULT(pthread_resume_all_np); + __weak_reference(_pthread_resume_np, pthread_resume_np); __weak_reference(_pthread_resume_all_np, pthread_resume_all_np); Index: lib/libpthread/thread/thr_rwlock.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_rwlock.c,v retrieving revision 1.14 diff -u -r1.14 thr_rwlock.c --- lib/libpthread/thread/thr_rwlock.c 8 Jan 2004 15:37:09 -0000 1.14 +++ lib/libpthread/thread/thr_rwlock.c 6 Mar 2006 19:27:19 -0000 @@ -38,6 +38,25 @@ /* maximum number of times a read lock may be obtained */ #define MAX_READ_LOCKS (INT_MAX - 1) +LT10_COMPAT_PRIVATE(_pthread_rwlock_destroy); +LT10_COMPAT_DEFAULT(pthread_rwlock_destroy); +LT10_COMPAT_PRIVATE(_pthread_rwlock_init); +LT10_COMPAT_DEFAULT(pthread_rwlock_init); +LT10_COMPAT_PRIVATE(_pthread_rwlock_rdlock); +LT10_COMPAT_DEFAULT(pthread_rwlock_rdlock); +LT10_COMPAT_PRIVATE(_pthread_rwlock_timedrdlock); +LT10_COMPAT_DEFAULT(pthread_rwlock_timedrdlock); +LT10_COMPAT_PRIVATE(_pthread_rwlock_tryrdlock); +LT10_COMPAT_DEFAULT(pthread_rwlock_tryrdlock); +LT10_COMPAT_PRIVATE(_pthread_rwlock_trywrlock); +LT10_COMPAT_DEFAULT(pthread_rwlock_trywrlock); +LT10_COMPAT_PRIVATE(_pthread_rwlock_unlock); +LT10_COMPAT_DEFAULT(pthread_rwlock_unlock); +LT10_COMPAT_PRIVATE(_pthread_rwlock_wrlock); +LT10_COMPAT_DEFAULT(pthread_rwlock_wrlock); +LT10_COMPAT_PRIVATE(_pthread_rwlock_timedwrlock); +LT10_COMPAT_DEFAULT(pthread_rwlock_timedwrlock); + __weak_reference(_pthread_rwlock_destroy, pthread_rwlock_destroy); __weak_reference(_pthread_rwlock_init, pthread_rwlock_init); __weak_reference(_pthread_rwlock_rdlock, pthread_rwlock_rdlock); Index: lib/libpthread/thread/thr_rwlockattr.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_rwlockattr.c,v retrieving revision 1.8 diff -u -r1.8 thr_rwlockattr.c --- lib/libpthread/thread/thr_rwlockattr.c 16 Sep 2002 08:45:35 -0000 1.8 +++ lib/libpthread/thread/thr_rwlockattr.c 6 Mar 2006 19:27:19 -0000 @@ -32,6 +32,15 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_rwlockattr_destroy); +LT10_COMPAT_DEFAULT(pthread_rwlockattr_destroy); +LT10_COMPAT_PRIVATE(_pthread_rwlockattr_getpshared); +LT10_COMPAT_DEFAULT(pthread_rwlockattr_getpshared); +LT10_COMPAT_PRIVATE(_pthread_rwlockattr_init); +LT10_COMPAT_DEFAULT(pthread_rwlockattr_init); +LT10_COMPAT_PRIVATE(_pthread_rwlockattr_setpshared); +LT10_COMPAT_DEFAULT(pthread_rwlockattr_setpshared); + __weak_reference(_pthread_rwlockattr_destroy, pthread_rwlockattr_destroy); __weak_reference(_pthread_rwlockattr_getpshared, pthread_rwlockattr_getpshared); __weak_reference(_pthread_rwlockattr_init, pthread_rwlockattr_init); Index: lib/libpthread/thread/thr_select.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_select.c,v retrieving revision 1.26 diff -u -r1.26 thr_select.c --- lib/libpthread/thread/thr_select.c 9 Dec 2003 02:20:56 -0000 1.26 +++ lib/libpthread/thread/thr_select.c 6 Mar 2006 19:27:19 -0000 @@ -43,6 +43,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__select); +LT10_COMPAT_DEFAULT(select); + __weak_reference(__select, select); int Index: lib/libpthread/thread/thr_self.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_self.c,v retrieving revision 1.7 diff -u -r1.7 thr_self.c --- lib/libpthread/thread/thr_self.c 18 Apr 2003 05:04:16 -0000 1.7 +++ lib/libpthread/thread/thr_self.c 6 Mar 2006 19:27:19 -0000 @@ -34,6 +34,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_self); +LT10_COMPAT_DEFAULT(pthread_self); + __weak_reference(_pthread_self, pthread_self); pthread_t Index: lib/libpthread/thread/thr_sem.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_sem.c,v retrieving revision 1.17 diff -u -r1.17 thr_sem.c --- lib/libpthread/thread/thr_sem.c 1 Sep 2005 15:16:46 -0000 1.17 +++ lib/libpthread/thread/thr_sem.c 6 Mar 2006 19:27:19 -0000 @@ -43,6 +43,14 @@ #include "libc_private.h" #include "thr_private.h" +LT10_COMPAT_PRIVATE(_sem_init); +LT10_COMPAT_DEFAULT(sem_init); +LT10_COMPAT_PRIVATE(_sem_wait); +LT10_COMPAT_DEFAULT(sem_wait); +LT10_COMPAT_PRIVATE(_sem_timedwait); +LT10_COMPAT_DEFAULT(sem_timedwait); +LT10_COMPAT_PRIVATE(_sem_post); +LT10_COMPAT_DEFAULT(sem_post); extern int pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *); extern int pthread_cond_timedwait(pthread_cond_t *, pthread_mutex_t *, Index: lib/libpthread/thread/thr_setprio.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_setprio.c,v retrieving revision 1.10 diff -u -r1.10 thr_setprio.c --- lib/libpthread/thread/thr_setprio.c 16 Sep 2002 08:45:36 -0000 1.10 +++ lib/libpthread/thread/thr_setprio.c 6 Mar 2006 19:27:19 -0000 @@ -34,6 +34,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_setprio); +LT10_COMPAT_DEFAULT(pthread_setprio); + __weak_reference(_pthread_setprio, pthread_setprio); int Index: lib/libpthread/thread/thr_setschedparam.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_setschedparam.c,v retrieving revision 1.13 diff -u -r1.13 thr_setschedparam.c --- lib/libpthread/thread/thr_setschedparam.c 21 Apr 2003 04:02:56 -0000 1.13 +++ lib/libpthread/thread/thr_setschedparam.c 6 Mar 2006 19:27:19 -0000 @@ -36,6 +36,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_setschedparam); +LT10_COMPAT_DEFAULT(pthread_setschedparam); + __weak_reference(_pthread_setschedparam, pthread_setschedparam); int Index: lib/libpthread/thread/thr_sigaction.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_sigaction.c,v retrieving revision 1.22 diff -u -r1.22 thr_sigaction.c --- lib/libpthread/thread/thr_sigaction.c 25 Sep 2003 06:23:40 -0000 1.22 +++ lib/libpthread/thread/thr_sigaction.c 6 Mar 2006 19:27:19 -0000 @@ -36,6 +36,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_sigaction); +LT10_COMPAT_DEFAULT(sigaction); + __weak_reference(_sigaction, sigaction); int Index: lib/libpthread/thread/thr_sigaltstack.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_sigaltstack.c,v retrieving revision 1.2 diff -u -r1.2 thr_sigaltstack.c --- lib/libpthread/thread/thr_sigaltstack.c 2 Jan 2004 00:38:42 -0000 1.2 +++ lib/libpthread/thread/thr_sigaltstack.c 6 Mar 2006 19:27:19 -0000 @@ -31,6 +31,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_sigaltstack); +LT10_COMPAT_DEFAULT(sigaltstack); + __weak_reference(_sigaltstack, sigaltstack); int Index: lib/libpthread/thread/thr_sigmask.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_sigmask.c,v retrieving revision 1.19 diff -u -r1.19 thr_sigmask.c --- lib/libpthread/thread/thr_sigmask.c 18 Sep 2003 12:19:28 -0000 1.19 +++ lib/libpthread/thread/thr_sigmask.c 6 Mar 2006 19:27:19 -0000 @@ -40,6 +40,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_sigmask); +LT10_COMPAT_DEFAULT(pthread_sigmask); + __weak_reference(_pthread_sigmask, pthread_sigmask); int Index: lib/libpthread/thread/thr_sigpending.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_sigpending.c,v retrieving revision 1.16 diff -u -r1.16 thr_sigpending.c --- lib/libpthread/thread/thr_sigpending.c 18 Aug 2003 03:58:29 -0000 1.16 +++ lib/libpthread/thread/thr_sigpending.c 6 Mar 2006 19:27:19 -0000 @@ -39,6 +39,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_sigpending); +LT10_COMPAT_DEFAULT(sigpending); + __weak_reference(_sigpending, sigpending); int Index: lib/libpthread/thread/thr_sigprocmask.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_sigprocmask.c,v retrieving revision 1.17 diff -u -r1.17 thr_sigprocmask.c --- lib/libpthread/thread/thr_sigprocmask.c 18 Aug 2003 03:58:29 -0000 1.17 +++ lib/libpthread/thread/thr_sigprocmask.c 6 Mar 2006 19:27:19 -0000 @@ -39,6 +39,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_sigprocmask); +LT10_COMPAT_DEFAULT(sigprocmask); + __weak_reference(_sigprocmask, sigprocmask); int Index: lib/libpthread/thread/thr_sigsuspend.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_sigsuspend.c,v retrieving revision 1.27 diff -u -r1.27 thr_sigsuspend.c --- lib/libpthread/thread/thr_sigsuspend.c 1 Sep 2005 15:16:46 -0000 1.27 +++ lib/libpthread/thread/thr_sigsuspend.c 6 Mar 2006 19:27:19 -0000 @@ -41,6 +41,10 @@ #include "thr_private.h" +LT10_COMPAT_PRIVATE(__sigsuspend); +LT10_COMPAT_PRIVATE(_sigsuspend); +LT10_COMPAT_DEFAULT(sigsuspend); + __weak_reference(__sigsuspend, sigsuspend); int Index: lib/libpthread/thread/thr_sigwait.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_sigwait.c,v retrieving revision 1.35 diff -u -r1.35 thr_sigwait.c --- lib/libpthread/thread/thr_sigwait.c 17 Mar 2004 02:12:19 -0000 1.35 +++ lib/libpthread/thread/thr_sigwait.c 6 Mar 2006 19:27:19 -0000 @@ -39,6 +39,16 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__sigwait); +LT10_COMPAT_PRIVATE(_sigwait); +LT10_COMPAT_DEFAULT(sigwait); +LT10_COMPAT_PRIVATE(__sigtimedwait); +LT10_COMPAT_PRIVATE(_sigtimedwait); +LT10_COMPAT_DEFAULT(sigtimedwait); +LT10_COMPAT_PRIVATE(__sigwaitinfo); +LT10_COMPAT_PRIVATE(_sigwaitinfo); +LT10_COMPAT_DEFAULT(sigwaitinfo); + __weak_reference(__sigwait, sigwait); __weak_reference(__sigtimedwait, sigtimedwait); __weak_reference(__sigwaitinfo, sigwaitinfo); Index: lib/libpthread/thread/thr_single_np.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_single_np.c,v retrieving revision 1.6 diff -u -r1.6 thr_single_np.c --- lib/libpthread/thread/thr_single_np.c 24 May 2002 04:32:28 -0000 1.6 +++ lib/libpthread/thread/thr_single_np.c 6 Mar 2006 19:27:19 -0000 @@ -34,6 +34,11 @@ #include #include +#include "thr_private.h" + +LT10_COMPAT_PRIVATE(_pthread_single_np); +LT10_COMPAT_DEFAULT(pthread_single_np); + __weak_reference(_pthread_single_np, pthread_single_np); int _pthread_single_np() Index: lib/libpthread/thread/thr_sleep.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_sleep.c,v retrieving revision 1.9 diff -u -r1.9 thr_sleep.c --- lib/libpthread/thread/thr_sleep.c 3 Aug 2005 00:48:13 -0000 1.9 +++ lib/libpthread/thread/thr_sleep.c 6 Mar 2006 19:27:19 -0000 @@ -36,6 +36,11 @@ extern unsigned int __sleep(unsigned int); extern int __usleep(useconds_t); +LT10_COMPAT_PRIVATE(_sleep); +LT10_COMPAT_DEFAULT(sleep); +LT10_COMPAT_PRIVATE(_usleep); +LT10_COMPAT_DEFAULT(usleep); + __weak_reference(_sleep, sleep); __weak_reference(_usleep, usleep); Index: lib/libpthread/thread/thr_spec.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_spec.c,v retrieving revision 1.22 diff -u -r1.22 thr_spec.c --- lib/libpthread/thread/thr_spec.c 13 Jul 2004 22:49:58 -0000 1.22 +++ lib/libpthread/thread/thr_spec.c 6 Mar 2006 19:27:19 -0000 @@ -36,11 +36,27 @@ #include #include #include + #include "thr_private.h" -/* Static variables: */ + struct pthread_key _thread_keytable[PTHREAD_KEYS_MAX]; +/* + * XXX - This breaks the linker if LT10_COMPAT_DEFAULT doesn't + * also include a weak reference to the default symbol. + */ +LT10_COMPAT_PRIVATE(_thread_keytable); + +LT10_COMPAT_PRIVATE(_pthread_key_create); +LT10_COMPAT_DEFAULT(pthread_key_create); +LT10_COMPAT_PRIVATE(_pthread_key_delete); +LT10_COMPAT_DEFAULT(pthread_key_delete); +LT10_COMPAT_PRIVATE(_pthread_getspecific); +LT10_COMPAT_DEFAULT(pthread_getspecific); +LT10_COMPAT_PRIVATE(_pthread_setspecific); +LT10_COMPAT_DEFAULT(pthread_setspecific); + __weak_reference(_pthread_key_create, pthread_key_create); __weak_reference(_pthread_key_delete, pthread_key_delete); __weak_reference(_pthread_getspecific, pthread_getspecific); Index: lib/libpthread/thread/thr_spinlock.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_spinlock.c,v retrieving revision 1.23 diff -u -r1.23 thr_spinlock.c --- lib/libpthread/thread/thr_spinlock.c 13 Jan 2006 06:14:04 -0000 1.23 +++ lib/libpthread/thread/thr_spinlock.c 6 Mar 2006 19:27:19 -0000 @@ -58,6 +58,10 @@ static int spinlock_count = 0; static int initialized = 0; +LT10_COMPAT_PRIVATE(_spinlock); +LT10_COMPAT_PRIVATE(_spinlock_debug); +LT10_COMPAT_PRIVATE(_spinunlock); + /* * These are for compatability only. Spinlocks of this type * are deprecated. Index: lib/libpthread/thread/thr_suspend_np.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_suspend_np.c,v retrieving revision 1.19 diff -u -r1.19 thr_suspend_np.c --- lib/libpthread/thread/thr_suspend_np.c 4 May 2003 16:17:01 -0000 1.19 +++ lib/libpthread/thread/thr_suspend_np.c 6 Mar 2006 19:27:19 -0000 @@ -37,6 +37,11 @@ static void suspend_common(struct pthread *thread); +LT10_COMPAT_PRIVATE(_pthread_suspend_np); +LT10_COMPAT_DEFAULT(pthread_suspend_np); +LT10_COMPAT_PRIVATE(_pthread_suspend_all_np); +LT10_COMPAT_DEFAULT(pthread_suspend_all_np); + __weak_reference(_pthread_suspend_np, pthread_suspend_np); __weak_reference(_pthread_suspend_all_np, pthread_suspend_all_np); Index: lib/libpthread/thread/thr_switch_np.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_switch_np.c,v retrieving revision 1.7 diff -u -r1.7 thr_switch_np.c --- lib/libpthread/thread/thr_switch_np.c 18 Apr 2003 05:04:16 -0000 1.7 +++ lib/libpthread/thread/thr_switch_np.c 6 Mar 2006 19:27:19 -0000 @@ -36,6 +36,10 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_pthread_switch_add_np); +LT10_COMPAT_DEFAULT(pthread_switch_add_np); +LT10_COMPAT_PRIVATE(_pthread_switch_delete_np); +LT10_COMPAT_DEFAULT(pthread_switch_delete_np); __weak_reference(_pthread_switch_add_np, pthread_switch_add_np); __weak_reference(_pthread_switch_delete_np, pthread_switch_delete_np); Index: lib/libpthread/thread/thr_symbols.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_symbols.c,v retrieving revision 1.2 diff -u -r1.2 thr_symbols.c --- lib/libpthread/thread/thr_symbols.c 1 Sep 2005 15:16:46 -0000 1.2 +++ lib/libpthread/thread/thr_symbols.c 6 Mar 2006 19:27:19 -0000 @@ -39,6 +39,24 @@ #include "thr_private.h" +LT10_COMPAT_PRIVATE(_thread_off_tcb); +LT10_COMPAT_PRIVATE(_thread_off_tmbx); +LT10_COMPAT_PRIVATE(_thread_off_next); +LT10_COMPAT_PRIVATE(_thread_off_attr_flags); +LT10_COMPAT_PRIVATE(_thread_off_kse); +LT10_COMPAT_PRIVATE(_thread_off_kse_locklevel); +LT10_COMPAT_PRIVATE(_thread_off_thr_locklevel); +LT10_COMPAT_PRIVATE(_thread_off_linkmap); +LT10_COMPAT_PRIVATE(_thread_off_tlsindex); +LT10_COMPAT_PRIVATE(_thread_size_key); +LT10_COMPAT_PRIVATE(_thread_off_key_allocated); +LT10_COMPAT_PRIVATE(_thread_off_key_destructor); +LT10_COMPAT_PRIVATE(_thread_max_keys); +LT10_COMPAT_PRIVATE(_thread_off_dtv); +LT10_COMPAT_PRIVATE(_thread_off_state); +LT10_COMPAT_PRIVATE(_thread_state_running); +LT10_COMPAT_PRIVATE(_thread_state_zoombie); + /* A collection of symbols needed by debugger */ /* int _libkse_debug */ Index: lib/libpthread/thread/thr_system.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_system.c,v retrieving revision 1.8 diff -u -r1.8 thr_system.c --- lib/libpthread/thread/thr_system.c 9 Dec 2003 02:20:56 -0000 1.8 +++ lib/libpthread/thread/thr_system.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ extern int __system(const char *); +LT10_COMPAT_PRIVATE(_system); +LT10_COMPAT_DEFAULT(system); + __weak_reference(_system, system); int Index: lib/libpthread/thread/thr_tcdrain.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_tcdrain.c,v retrieving revision 1.8 diff -u -r1.8 thr_tcdrain.c --- lib/libpthread/thread/thr_tcdrain.c 9 Dec 2003 02:20:56 -0000 1.8 +++ lib/libpthread/thread/thr_tcdrain.c 6 Mar 2006 19:27:19 -0000 @@ -35,6 +35,9 @@ extern int __tcdrain(int); +LT10_COMPAT_PRIVATE(_tcdrain); +LT10_COMPAT_DEFAULT(tcdrain); + __weak_reference(_tcdrain, tcdrain); int Index: lib/libpthread/thread/thr_vfork.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_vfork.c,v retrieving revision 1.3 diff -u -r1.3 thr_vfork.c --- lib/libpthread/thread/thr_vfork.c 10 Apr 2001 04:19:20 -0000 1.3 +++ lib/libpthread/thread/thr_vfork.c 6 Mar 2006 19:27:19 -0000 @@ -3,6 +3,11 @@ */ #include +#include "thr_private.h" + +LT10_COMPAT_PRIVATE(_vfork); +LT10_COMPAT_DEFAULT(vfork); + __weak_reference(_vfork, vfork); int Index: lib/libpthread/thread/thr_wait.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_wait.c,v retrieving revision 1.8 diff -u -r1.8 thr_wait.c --- lib/libpthread/thread/thr_wait.c 9 Dec 2003 02:20:56 -0000 1.8 +++ lib/libpthread/thread/thr_wait.c 6 Mar 2006 19:27:19 -0000 @@ -34,6 +34,9 @@ extern int __wait(int *); +LT10_COMPAT_PRIVATE(_wait); +LT10_COMPAT_DEFAULT(wait); + __weak_reference(_wait, wait); pid_t Index: lib/libpthread/thread/thr_wait4.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_wait4.c,v retrieving revision 1.19 diff -u -r1.19 thr_wait4.c --- lib/libpthread/thread/thr_wait4.c 9 Dec 2003 02:20:56 -0000 1.19 +++ lib/libpthread/thread/thr_wait4.c 6 Mar 2006 19:27:19 -0000 @@ -41,6 +41,9 @@ #include "thr_private.h" +LT10_COMPAT_PRIVATE(__wait4); +LT10_COMPAT_DEFAULT(wait4); + __weak_reference(__wait4, wait4); pid_t Index: lib/libpthread/thread/thr_waitpid.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_waitpid.c,v retrieving revision 1.8 diff -u -r1.8 thr_waitpid.c --- lib/libpthread/thread/thr_waitpid.c 9 Dec 2003 02:20:56 -0000 1.8 +++ lib/libpthread/thread/thr_waitpid.c 6 Mar 2006 19:27:19 -0000 @@ -34,6 +34,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_waitpid); +LT10_COMPAT_DEFAULT(waitpid); + extern int __waitpid(pid_t, int *, int); __weak_reference(_waitpid, waitpid); Index: lib/libpthread/thread/thr_write.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_write.c,v retrieving revision 1.24 diff -u -r1.24 thr_write.c --- lib/libpthread/thread/thr_write.c 9 Dec 2003 02:20:56 -0000 1.24 +++ lib/libpthread/thread/thr_write.c 6 Mar 2006 19:27:19 -0000 @@ -40,6 +40,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__write); +LT10_COMPAT_DEFAULT(write); + __weak_reference(__write, write); ssize_t Index: lib/libpthread/thread/thr_writev.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_writev.c,v retrieving revision 1.24 diff -u -r1.24 thr_writev.c --- lib/libpthread/thread/thr_writev.c 9 Dec 2003 02:20:56 -0000 1.24 +++ lib/libpthread/thread/thr_writev.c 6 Mar 2006 19:27:19 -0000 @@ -42,6 +42,9 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(__writev); +LT10_COMPAT_DEFAULT(writev); + __weak_reference(__writev, writev); ssize_t Index: lib/libpthread/thread/thr_yield.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_yield.c,v retrieving revision 1.15 diff -u -r1.15 thr_yield.c --- lib/libpthread/thread/thr_yield.c 18 Aug 2003 03:58:29 -0000 1.15 +++ lib/libpthread/thread/thr_yield.c 6 Mar 2006 19:27:19 -0000 @@ -34,6 +34,11 @@ #include #include "thr_private.h" +LT10_COMPAT_PRIVATE(_sched_yield); +LT10_COMPAT_DEFAULT(sched_yield); +LT10_COMPAT_PRIVATE(_pthread_yield); +LT10_COMPAT_DEFAULT(pthread_yield); + __weak_reference(_sched_yield, sched_yield); __weak_reference(_pthread_yield, pthread_yield);