code:write - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki
- εζδ»Ά η η³»η»θ°η¨ε½ζ°
- η± η¨ζ·ζ δΌ ε
₯3δΈͺεζ° fildes, buffer, nbytes
- fildes : ζδ»ΆζεΌζ εΏ, u.u_ofile[fildes] ζεε―ΉεΊηζδ»ΆζεΌη»ζοΌεηε εζεΌζδ»Άη»ζ
- buffer : εε ₯ηθ΅·ε§ε移δ½
- nbytes : εε ₯ηεθζ°
5716
5717 /*
5718 * write system call
5719 */
5720 write()
5721 {
5722 rdwr(FWRITE);
5723 }
5724 /* ------------------------- */
- (write = 4.)
- (file descriptor in r0)
- sys write; buffer; nbytes
- (byte count in r0)