date and time created 92/07/09 15:59:33 by mckusick
[unix-history] / usr / src / lib / libc / sys / truncate.c
CommitLineData
4b5008a4
KM
1/*
2 * Copyright (c) 1992 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 */
7
8#if defined(LIBC_SCCS) && !defined(lint)
9static char sccsid[] = "@(#)truncate.c 5.1 (Berkeley) %G%";
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 */
19int
20__truncate(path, length)
21 char *path;
22 off_t length;
23{
24
25 return(__indir((quad_t)SYS___truncate, path, 0, length));
26}