fd_move.3
来自「linux下qmail的源码 本人加了一些注释」· 3 代码 · 共 42 行
3
42 行
.TH fd_move 3.SH NAMEfd_move \- renumber a descriptor.SH SYNTAX.B #include <fd.h>int \fBfd_move\fP(\fIto\fR,\fIfrom\fR);int \fIto\fR;.brint \fIfrom\fR;.SH DESCRIPTION.B fd_movemovesdescriptor.I fromto descriptor.IR to .If.I towas already open,.B fd_movecloses it.If the move is successful,.B fd_movecloses.IR from .Exception:if.I toand.I fromare the same number,.B fd_movedoes nothing..B fd_movereturns 0 on success, -1 on error..SH "SEE ALSO"dup(2),fd_copy(3)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?