Xinu7/man/man2/seek.doc




SEEK(2)             Xinu Programmer's Manual              SEEK(2)



NAME
     seek - device independent position seeking routine

SYNOPSIS
     int seek(dev, position)
     int dev;
     char *buffer;
     long position;

DESCRIPTION
     _S_e_e_k will position the device given by _d_e_v after the _p_o_s_i_-
     _t_i_o_n byte.  It returns SYSERR if _d_e_v is incorrect, or if it
     is not possible to position _d_e_v as specified.

     _S_e_e_k cannot be used with devices connected to terminals.

     Note that the position argument is declared _l_o_n_g rather than
     _i_n_t.

SEE ALSO
     close(2), control(2), getc(2), open(2), putc(2), read(2),
     write(2)

































Version 6b               Printed 1/12/87                        1