write.2
来自「unix v7是最后一个广泛发布的研究型UNIX版本」· 2 代码 · 共 45 行
2
45 行
.TH WRITE 2 .SH NAMEwrite \- write on a file.SH SYNOPSIS.B write(fildes, buffer, nbytes).br.B char *buffer;.SH DESCRIPTIONA file descriptor is a word returned from asuccessful.I open,.I creat,.I dup,or.IR pipe (2)call..PP.I Bufferis the address of.I nbytescontiguousbytes which are written on the output file.The number of characters actually written is returned.It should be regarded as an errorif this is not the same as requested..PPWrites which are multiplesof 512 characters long and begin on a 512-byte boundaryin the fileare more efficient than any others..SH "SEE ALSO"creat(2), open(2), pipe(2).SH DIAGNOSTICSReturns\-1 on error: bad descriptor, buffer address, orcount; physical I/O errors..SH ASSEMBLER(write = 4.).br(file descriptor in r0).br.B sys write; buffer; nbytes.br(byte count in r0)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?