Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/fork.c
Show All 32 Lines | |||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include "libc_private.h" | #include "libc_private.h" | ||||
__weak_reference(__sys_fork, __fork); | __weak_reference(__sys_fork, __fork); | ||||
__weak_reference(__sys_fork, _Fork); | |||||
#pragma weak fork | #pragma weak fork | ||||
pid_t | pid_t | ||||
fork(void) | fork(void) | ||||
{ | { | ||||
return (((pid_t (*)(void))__libc_interposing[INTERPOS_fork])()); | return (((pid_t (*)(void))__libc_interposing[INTERPOS_fork])()); | ||||
} | } |