📄 fd_move.3
字号:
.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -