#ifndef LINT
#endif
/*! \file
* \brief
* ftruncate - set file size, BSD Style
*
* shortens or enlarges the file as neeeded
* uses some undocumented locking call. It is known to work on SCO unix,
* other vendors should try.
* The #error directive prevents unsupported OSes
*/
#include "port_before.h"
#if defined(M_UNIX)
#define OWN_FTRUNCATE
#include <stdio.h>
#ifdef _XOPEN_SOURCE
#endif
#ifdef _POSIX_SOURCE
#endif
#include <fcntl.h>
#include "port_after.h"
int
long cursize;
/* determine current file size */
return (-1);
/* maybe lengthen... */
return (-1);
}
return (0);
}
/* maybe shorten... */
}
return (0);
}
#endif
#ifndef OWN_FTRUNCATE
#endif