c15de8f05df8afb91466ee0ebc7f4a47cc9a7431
[unix-history] / usr / src / lib / libc / sys / truncate.c
/*
* Copyright (c) 1992 The Regents of the University of California.
* All rights reserved.
*
* %sccs.include.redist.c%
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)truncate.c 5.3 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <sys/syscall.h>
/*
* This function provides 64-bit offset padding that
* is not supplied by GCC 1.X but is supplied by GCC 2.X.
*/
int
truncate(path, length)
char *path;
off_t length;
{
return(__syscall((quad_t)SYS_truncate, path, 0, length));
}