1*54859Smckusick /* 2*54859Smckusick * Copyright (c) 1992 The Regents of the University of California. 3*54859Smckusick * All rights reserved. 4*54859Smckusick * 5*54859Smckusick * %sccs.include.redist.c% 6*54859Smckusick */ 7*54859Smckusick 8*54859Smckusick #if defined(LIBC_SCCS) && !defined(lint) 9*54859Smckusick static char sccsid[] = "@(#)lseek.c 5.1 (Berkeley) 07/09/92"; 10*54859Smckusick #endif /* LIBC_SCCS and not lint */ 11*54859Smckusick 12*54859Smckusick #include <sys/types.h> 13*54859Smckusick #include <sys/syscall.h> 14*54859Smckusick 15*54859Smckusick /* 16*54859Smckusick * This function provides 64-bit offset padding that 17*54859Smckusick * is not supplied by GCC 1.X but is supplied by GCC 2.X. 18*54859Smckusick */ 19*54859Smckusick off_t 20*54859Smckusick __lseek(fd, offset, whence) 21*54859Smckusick int fd; 22*54859Smckusick off_t offset; 23*54859Smckusick int whence; 24*54859Smckusick { 25*54859Smckusick extern off_t __indir(); 26*54859Smckusick 27*54859Smckusick return(__indir((quad_t)SYS___lseek, fd, 0, offset, whence)); 28*54859Smckusick } 29