?? fd_copy.3
字號:
.TH fd_copy 3.SH NAMEfd_copy \- duplicate a descriptor.SH SYNTAX.B #include <fd.h>int \fBfd_copy\fP(\fIto\fR,\fIfrom\fR);int \fIto\fR;.brint \fIfrom\fR;.SH DESCRIPTION.B fd_copycopies descriptor.I fromto descriptor.IR to .If.I towas already open,.B fd_copycloses it..B fd_copyalways leaves.I fromintact;if.I toand.I fromare the same number,.B fd_copydoes nothing..B fd_copyreturns 0 on success, -1 on error..B fd_copydoes not guarantee that.I towill remain open, if it was open, in case of error..SH "SEE ALSO"dup(2),fd_move(3)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -