4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / lib / libc / sys / lseek.c
CommitLineData
4b5008a4 1/*
6edb4bd0
KB
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4b5008a4
KM
4 *
5 * %sccs.include.redist.c%
6 */
7
8#if defined(LIBC_SCCS) && !defined(lint)
6edb4bd0 9static char sccsid[] = "@(#)lseek.c 8.1 (Berkeley) %G%";
4b5008a4
KM
10#endif /* LIBC_SCCS and not lint */
11
12#include <sys/types.h>
13#include <sys/syscall.h>
14
15/*
16 * This function provides 64-bit offset padding that
17 * is not supplied by GCC 1.X but is supplied by GCC 2.X.
18 */
19off_t
105cbb31 20lseek(fd, offset, whence)
4b5008a4
KM
21 int fd;
22 off_t offset;
23 int whence;
24{
0540f5e1 25 extern off_t __syscall();
4b5008a4 26
0540f5e1 27 return(__syscall((quad_t)SYS_lseek, fd, 0, offset, whence));
4b5008a4 28}