freebsd-dev/lib/libpthread/thread/thr_vfork.c
Daniel Eischen e62165c8b0 Add compatibility symbol maps. libpthread (.so.1 and .so.2)
used LIBTHREAD_1_0 as its version definition, but now needs
to define its symbols in the same namespace used by libc.
The compatibility hooks allows you to use libraries and
binaries built and linked to libpthread before libc was
built with symbol versioning.  The shims can be removed if
libpthread is given a version bump.

Reviewed by:	davidxu
2006-03-13 00:59:51 +00:00

18 lines
198 B
C

/*
* $FreeBSD$
*/
#include <unistd.h>
#include "thr_private.h"
LT10_COMPAT_PRIVATE(_vfork);
LT10_COMPAT_DEFAULT(vfork);
__weak_reference(_vfork, vfork);
int
_vfork(void)
{
return (fork());
}