SCCS-vsn: usr.bin/more/main.c 5.2
SCCS-vsn: usr.bin/more/ch.c 5.2
*/
#ifndef lint
-static char sccsid[] = "@(#)ch.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)ch.c 5.2 (Berkeley) %G%";
#endif /* not lint */
/*
{
if (ispipe)
return (ch_fsize);
- return ((POSITION)(lseek(file, (offset_t)0, 2)));
+ return ((POSITION)(lseek(file, (off_t)0, L_XTND)));
}
/*
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 5.2 (Berkeley) %G%";
#endif /* not lint */
/*
break;
case 'A': case 'a':
logfile = open(namelogfile, 1);
- if (lseek(logfile, (offset_t)0, 2) < 0)
+ if (lseek(logfile, (off_t)0, L_XTND) < 0)
{
close(logfile);
logfile = -1;