12 lines
		
	
	
		
			159 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			159 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
#include <lib.h>
 | 
						|
#define dup	_dup
 | 
						|
#define fcntl	_fcntl
 | 
						|
#include <fcntl.h>
 | 
						|
#include <unistd.h>
 | 
						|
 | 
						|
PUBLIC int dup(fd)
 | 
						|
int fd;
 | 
						|
{
 | 
						|
  return(fcntl(fd, F_DUPFD, 0));
 | 
						|
}
 |