xref: /csrg-svn/lib/libc/sys/lseek.c (revision 60369)
154859Smckusick /*
254859Smckusick  * Copyright (c) 1992 The Regents of the University of California.
354859Smckusick  * All rights reserved.
454859Smckusick  *
554859Smckusick  * %sccs.include.redist.c%
654859Smckusick  */
754859Smckusick 
854859Smckusick #if defined(LIBC_SCCS) && !defined(lint)
9*60369Smckusick static char sccsid[] = "@(#)lseek.c	5.2 (Berkeley) 05/25/93";
1054859Smckusick #endif /* LIBC_SCCS and not lint */
1154859Smckusick 
1254859Smckusick #include <sys/types.h>
1354859Smckusick #include <sys/syscall.h>
1454859Smckusick 
1554859Smckusick /*
1654859Smckusick  * This function provides 64-bit offset padding that
1754859Smckusick  * is not supplied by GCC 1.X but is supplied by GCC 2.X.
1854859Smckusick  */
1954859Smckusick off_t
20*60369Smckusick lseek(fd, offset, whence)
2154859Smckusick 	int	fd;
2254859Smckusick 	off_t	offset;
2354859Smckusick 	int	whence;
2454859Smckusick {
2554859Smckusick 	extern off_t __indir();
2654859Smckusick 
27*60369Smckusick 	return(__indir((quad_t)SYS_lseek, fd, 0, offset, whence));
2854859Smckusick }
29