dup & dup2

說明: part.0 :原創 part.1:轉載 part.2:轉載 part.3:原創 -------------part.0---------------------- int dup(int oldfd); //創建一個newfd,newfd指向oldfd的位置,並且dup返回的文件描述符總是取系統當前可用的最小整數值 int dup2(int oldfd, intnewfd); //將已有
相關文章
相關標籤/搜索