摘要:        
#include #include #include int mydup(int i_OldFd, int i_NewFd);int main(void){	int fd = -1;	fd = open("tests.c", O_RDONLY);	if(fd 256)	{ printf("Oldfd is wrong.\n"); return -1;	}	if(i_NewFd 256)	{ printf("Newfd is wrong.\n"); return -1;	}	if( i_NewFd == i_OldFd) return     阅读全文
        
            posted @ 2013-10-18 11:00
mfslog
阅读(154)
评论(0)
推荐(0)
        
    
 
                    
                     
                    
                 
                    
                 

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号