📄 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)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -