mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-23 16:34:07 +00:00
Upload
Digital Research
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/* SEEK FOR VMS
|
||||
* copyright (c) 1980 by Whitesmiths, Ltd.
|
||||
*/
|
||||
#include <std.h>
|
||||
#include "vms.h"
|
||||
|
||||
FILE lseek(fd, loff, way)
|
||||
FILE fd;
|
||||
LONG loff;
|
||||
COUNT way;
|
||||
{
|
||||
FAST RCB *p;
|
||||
|
||||
if (!(p = _ckfd(fd)) || !(p->flags & WFIX))
|
||||
return (FAIL);
|
||||
else
|
||||
{
|
||||
if (way == 0)
|
||||
p->lseek = loff;
|
||||
else if (way == 1)
|
||||
p->lseek =+ loff;
|
||||
else
|
||||
p->lseek = p->lend + loff;
|
||||
return (p->lseek);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user