X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=rmt%2Frmt.c;fp=rmt%2Frmt.c;h=e23d0a3f350c860a6c15efe68230d2058f2c933e;hp=64fc4ab023b2fce60c4352e57caa4e1a38f508f6;hb=95c74f382492999827000f544fcb6844150cda81;hpb=871ede100ce41d967ebbb4e2d67c6b7587e16f76 diff --git a/rmt/rmt.c b/rmt/rmt.c index 64fc4ab..e23d0a3 100644 --- a/rmt/rmt.c +++ b/rmt/rmt.c @@ -41,13 +41,14 @@ #ifndef lint static const char rcsid[] = - "$Id: rmt.c,v 1.13 2001/03/28 12:59:49 stelian Exp $"; + "$Id: rmt.c,v 1.14 2001/04/27 15:22:47 stelian Exp $"; #endif /* not linux */ /* * rmt */ #include +#include #include #include #include @@ -114,7 +115,7 @@ top: * specify the permission bits; allow rw for everyone, * as modified by the users umask */ - tape = open(device, atoi(filemode), 0666); + tape = OPEN(device, atoi(filemode), 0666); if (tape < 0) goto ioerror; block = 0; @@ -133,7 +134,7 @@ top: getstring(count); getstring(pos); DEBUG2("rmtd: L %s %s\n", count, pos); - rval = lseek(tape, (off_t)atol(count), atoi(pos)); + rval = LSEEK(tape, (off_t)atol(count), atoi(pos)); if (rval < 0) goto ioerror; goto respond;