?? close.2
字號:
.TH CLOSE 2 .SH NAMEclose \- close a file.SH SYNOPSIS.B close(fildes).PP.SH DESCRIPTIONGivena file descriptor such as returned from an.I open,.I creat,.I dupor.IR pipe (2)call,.I closecloses the associated file.A close of all files is automatic on.I exit,but sincethere is a limit on the number of open files per process,.I closeis necessary for programs which deal with many files..PPFiles are closed upon termination of a process, andcertain file descriptors may be closed by.IR exec (2)(see.IR ioctl (2))..SH "SEE ALSO"creat(2), open(2), pipe(2), exec(2), ioctl(2).SH DIAGNOSTICSZero is returned if a file is closed;\-1 is returned for an unknown file descriptor..SH ASSEMBLER(close = 6.).br(file descriptor in r0).br.B sys close.PP
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -