|
|
1.1 ! root 1: .th WRITE II 8/5/73 ! 2: .sh NAME ! 3: write \*- write on a file ! 4: .sh SYNOPSIS ! 5: (write = 4.) ! 6: .br ! 7: (file descriptor in r0) ! 8: .br ! 9: .ft B ! 10: sys write; buffer; nbytes ! 11: .s3 ! 12: write(fildes, buffer, nbytes) ! 13: .br ! 14: char *buffer; ! 15: .ft R ! 16: .sh DESCRIPTION ! 17: A file descriptor is a word returned from a ! 18: successful ! 19: .it open, ! 20: .it creat ! 21: or ! 22: .it pipe ! 23: call. ! 24: .s3 ! 25: .it Buffer ! 26: is the address of ! 27: .it nbytes ! 28: contiguous ! 29: bytes which are written on the output file. ! 30: The number of characters actually written is returned (in r0). ! 31: It should be regarded as an error ! 32: if this is not the same as requested. ! 33: .s3 ! 34: Writes which are multiples ! 35: of 512 characters long and begin on a 512-byte boundary ! 36: are more efficient than any others. ! 37: .sh "SEE ALSO" ! 38: creat(II), open(II), pipe(II) ! 39: .sh DIAGNOSTICS ! 40: The error bit ! 41: (c-bit) is set on an error: bad descriptor, buffer address, or ! 42: count; physical I/O errors. ! 43: From C, a returned value of \*-1 indicates an error.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.