Is the file descriptor that has to be duplicated 要復制的文件描述符。
With mode " w b " to transform the file descriptor into a file ,將文件描述符轉(zhuǎn)換為一個file * 。
It will not work with c library functions that expect a file descriptor , such as 它無法與需要文件描述符的c庫函數(shù)(如
You may need to increase the number of file descriptors for the installation to succeed 為了成功完成安裝,可能需要增加文件描述符的數(shù)量。
You can then continue to access it within your program by passing around the file descriptor 于是,您就可以在自己的程序中通過傳送文件描述符來訪問該文件。
Threads , on the other hand , automatically have access to the same memory address space and file descriptors 另一方面,線程可以自動的訪問相同的內(nèi)存地址和文件描述符。
Where you can , avoid the operations that take file names , and use the operations that take file descriptors instead 只要有可能,應盡量避免使用獲取文件名的操作,而是使用獲取文件描述符的操作。
All threads within a single process have access to the same process components , such as file descriptors and memory 在一個單個進程內(nèi)所有的線程都有權(quán)使用這個同一個進程構(gòu)成,像文件描述符和內(nèi)存。
It also decreases the likelihood that a maintainer will insecurely use the file name they need to use the file descriptor instead 它還降低了維護者不安全地使用文件名的可能性(改為使用文件描述符) 。
In the openssl library , traditional socket calls are mimicked with a similar api that uses ssl context objects in place of file descriptors 在openssl庫中,相似的api模仿傳統(tǒng)的套接字調(diào)用,使用ssl上下文對象代替文件描述符。