Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ write(2) — Purdue Xinu

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

close(2)

control(2)

getc(2)

open(2)

putc(2)

read(2)

seek(2)

WRITE(2)

NAME

write − write a sequence of characters from a buffer

SYNOPSIS

int write(dev, buff, count)
int dev;
char ∗buff;
int count;

DESCRIPTION

Write writes count characters to the I/O device given by dev, from sequential locations of the buffer, buff.  Write returns SYSERR if dev or count is invalid, OK for a successful write.  Write normally returns when it is safe for the user to change the contents of the buffer.  For some devices this means write will wait for I/O to complete before returning.  On other devices, the data is copied into a kernel buffer and the write returns while it is being transferred. 

SEE ALSO

close(2), control(2), getc(2), open(2), putc(2), read(2), seek(2)

BUGS

Write may not have exclusive use of the I/O device, so output from other processes may be mixed in. 

December 01, 1986  —  Xinu Programmer’s Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026