2 Copyright © 2002-2008, The AROS Development Team. All rights reserved.
6 #include <aros/debug.h>
9 #include "dos_intern.h"
13 struct FileHandle
*fh
,
16 struct DosLibrary
*DOSBase
22 /* Make sure the input parameters are sane. */
23 ASSERT_VALID_PTR( fh
);
26 mode
== OFFSET_BEGINNING
28 || mode
== OFFSET_CURRENT
30 D(bug("[seek] %x:%d:%d\n", fh
, position
, mode
));
32 status
= dopacket3(DOSBase
, &doserror
, fh
->fh_Type
, ACTION_SEEK
, fh
->fh_Arg1
, position
, mode
);
33 D(bug("=%d %d\n", status
, doserror
));
34 } while (status
== -1 && !ErrorReport(doserror
, REPORT_STREAM
, (IPTR
)fh
, NULL
));