Digital Research
This commit is contained in:
2020-11-06 18:50:37 +01:00
parent 621ed8ccaf
commit 31738079c4
8481 changed files with 1888323 additions and 0 deletions

View File

@@ -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);
}
}