File:  [Research Unix] / researchv10dc / dist / man / v3 / man2 / write.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.pa 1
.he 'WRITE (II)'3/15/72'WRITE (II)'
.ti 0
NAME		write  --  write on file
.sp
.ti 0
SYNOPSIS	(file descriptor in r0)
.br
sys write; buffer; nbytes  / write = 4.
.br
(number written in r0)
.sp
.ti 0
DESCRIPTION	A file descriptor is a word returned from a
successful open____ or creat_____ call.
.sp
buffer______ is the address of nbytes______ contiguous
bytes which are written on the output file.
The number of characters actually written is returned in r0.
It should be regarded as an error
if this is not the same as requested.
.sp
Writes which are multiples
of 512 characters long and begin on a 512-byte boundary
are more efficient than any others.
.sp
.ti 0
SEE ALSO	creat(II), open(II)
.sp
.ti 0
DIAGNOSTICS	The error bit
(c-bit) is set on an error: bad descriptor, buffer address, or
count; physical I/O errors.
.sp
.ti 0
BUGS		--

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.