* Copyright (c) 1982, 1988, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.proprietary.c%
* @(#)write.c 8.1 (Berkeley) %G%
#include <stand.att/saio.h>
register struct iob
*file
;
if (fdesc
>= 0 && fdesc
<= 2) {
if (fdesc
< 0 || fdesc
>= SOPEN_MAX
||
((file
= &iob
[fdesc
])->i_flgs
&F_ALLOC
) == 0) {
if ((file
->i_flgs
&F_WRITE
) == 0) {
file
->i_bn
= file
->i_boff
+ (file
->i_offset
/ DEV_BSIZE
);