fd_copy.3

来自「linux下qmail的源码 本人加了一些注释」· 3 代码 · 共 45 行

3
45
字号
.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 + =
减小字号Ctrl + -
显示快捷键?