* Copyright (c) 1982, 1988, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.proprietary.c%
* @(#)lseek.c 8.1 (Berkeley) %G%
#include <stand.att/saio.h>
printf("Seek not from beginning of file\n");
if (fdesc
< 0 || fdesc
>= SOPEN_MAX
||
((io
= &iob
[fdesc
])->i_flgs
& F_ALLOC
) == 0) {
io
->i_bn
= addr
/ DEV_BSIZE
;