17 lines
220 B
C
17 lines
220 B
C
|
#include <sys/cdefs.h>
|
||
|
#include "namespace.h"
|
||
|
#include <lib.h>
|
||
|
|
||
|
#include <fcntl.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
#ifdef __weak_alias
|
||
|
__weak_alias(dup, _dup)
|
||
|
#endif
|
||
|
|
||
|
PUBLIC int dup(fd)
|
||
|
int fd;
|
||
|
{
|
||
|
return(fcntl(fd, F_DUPFD, 0));
|
||
|
}
|