⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 write.2

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 2
字号:
.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -