/*
 * $Id: ftruncate.c,v 1.1 1995/07/11 11:09:57 sob Exp $
 * Using chsize on systems that support it (XENIX and SVR4)
 * SPECIAL NOTE: On Xenix and SVR4, using this call in the BSD library
 * will REQUIRE the use of -lx for the extended library since chsize()
 * is not in the standard C library.
 *
 */

#include <fcntl.h> /* not always required */

ftruncate(fd,length)
    int fd;                     /* File descriptor for file that to change */
    off_t length;               /* New size for this file */
{
    int status;                 /* Status returned from chsize() proc */

    status = chsize(fd,length);
    return(status);
}

