ftruncate
int ftruncate(int, __off_t);
int ftruncate(int, off_t);
int ftruncate(int, off_t);
(void) ftruncate(s_pid_fd, 0);
if (ftruncate(fd, (off_t)0) < 0) {
if (ftruncate(fd, (off_t)0) < 0) {
err = ftruncate(fd, 64 * MB);
if ((ftruncate(ofd, size) == -1) &&
if ((ftruncate(ofd, size) == -1) && (errno != EINVAL) &&
(void) ftruncate(whod, cc);
(void) ftruncate(capfile_out.capfile_fd[idx], 16);
(void) ftruncate(ofd, hl->hl_data);
(ftruncate(obf, (((off_t)oseekn) * ((off_t)obs)))
if (ftruncate(fd, (off_t)0) == -1)
if (ftruncate(dcp->dc_conf_fd, (off_t)0) == -1) {
ftruncate(ofd, (off_t) 0);
if (ftruncate(fileno(fd), 0) < 0) {
if (ftruncate(fileno(fd), 0) < 0) {
(void) ftruncate(n4_fd, 0);
(void) ftruncate(catfd, 0L);
if (ftruncate(fd, length) < 0) {
if (ftruncate(fd, newsize) < 0) {
ftruncate(Pidfd, 0);
(void) ftruncate(fo, 0);
(void) ftruncate(fi, 0);
ftruncate(fd, len);
(ftruncate(fd, 0) == -1)) {
ftruncate(fileno(f), pos);
#define trunc(stream) ftruncate(fileno(stream), (long)ftell(stream))
ftruncate(fileno(fp), 0) < 0 || fseek(fp, 0, SEEK_SET) < 0) {
(void) ftruncate(fd, (off_t)sizeof (hdr));
(void) ftruncate(pcap_fd, pkt_off);
else if (ftruncate(fd, off) != 0)
(void) ftruncate(pid_fd, 0);
if (ftruncate(state_fd, size) != 0) {
} else if (ftruncate(state_fd, newsize) != 0) {
(void) ftruncate(statefd->fd, 0);
(void) ftruncate(statefd->fd, 0);
if (ftruncate(statefd->fd, size) != 0) {
if (ftruncate(fp, 0) == -1)
ftruncate(fp, flength), fail(1, "write failed");
ftruncate(fp, flength), fail(1, "write failed");
ftruncate(fp, flength), fail(1, "write failed");
ftruncate(fp, flength), fail(1, "write failed");
ftruncate(fd, (off_t) 0) < 0)
return ftruncate(bfp->bf_disk_fd, 0);
(void) ftruncate(sm_io_getinfo(f, SM_IO_WHAT_FD, NULL),
if (ftruncate(dirfd, (off_t) 0) < 0 ||
ftruncate(pagfd, (off_t) 0) < 0)
(void) ftruncate(sm_io_getinfo(mci->mci_statfile, SM_IO_WHAT_FD, NULL),
err = ftruncate(sm_io_getinfo(e->e_dfp,
(void)ftruncate(mbfd, curoff);
if (ftruncate(crle->c_tempfd, size) == -1) {
if (ftruncate(fd, Fsize) == -1) {
if (ftruncate(fd,
if ((!*pflag) && (ftruncate(fd, (off_t)sz) == 0) &&
if (ftruncate(fd, bhp->bh_size + BLKSIZE) == -1) {
if (ftruncate(fd, init_size) == -1) {
if (ftruncate(ofd, 0) == -1) {
res = ftruncate(a_fd, lastPos-pls);
res = ftruncate(a_fd, lastPos-pls);
(void) ftruncate(fileno(fp), 0);
(void) ftruncate(fd, *newsize);
VERIFY3U(0, ==, ftruncate(ztest_fd_data, sizeof (ztest_shared_hdr_t)));
VERIFY3U(0, ==, ftruncate(ztest_fd_data, size));
if (ftruncate(fd, size) != 0)
return (ftruncate(fileno(ff->f), size));
#define ftruncate64 ftruncate
extern int ftruncate(int, off_t);
if (newfile == 0 && (ftruncate(f, 0) == -1)) {
if (ftruncate(t->bt_rfd, off))
if (ftruncate(fd, (off_t)req->lr_req.tsetattr.size)) {
if ((fd = open(path, O_WRONLY)) == -1 || ftruncate(fd, len) == -1)
rv = ftruncate(fd, sz);
(void) ftruncate(fileno(fp), 0);
(void) ftruncate(fileno(a_vfp->_vfpFile), 0);
if (ftruncate(fileno(prov->pxc_file), 0) == -1) {
(void) ftruncate(fileno(dfstab), 0);
return ftruncate(id->fd, nByte)==0 ? SQLITE_OK : SQLITE_IOERR;
(void) ftruncate(fd, (off_t)sizeof (shared_buffer_t));
(void) ftruncate(fileno(fp), woffs);
(ftruncate(fd, 0) == 0))
ftruncate(fd, 0);
if (ftruncate(fd, vap->va_size) == -1) {
ret = ftruncate(fd, mapsz);
int ret = ftruncate(fd, ONE_GIG * 8);
if (ftruncate(fid, filesize) == -1) {
if (ftruncate(des_fid, filesize) == -1) {
if (ftruncate(fid, filesize) == -1) {
if (ftruncate(fid, filesize) == -1) {
if (ftruncate(fid, filesize) == -1) {
if (ftruncate(fdo, ohdr.size += ohdr.data))