ftruncate
extern int ftruncate(int fd, off_t newSize);
int (*ftruncate) (const char *, off_t, struct fuse_file_info *);
int (*ftruncate) (const char *, off_t, struct fuse_file_info *);
ftruncate(fd, 512 * 1024);
ftruncate(fd, fileSize);
ftruncate(sLogFile, fileSize + 512 * 1024);
ftruncate(sLogFile, fileSize);
if (fs->ops.ftruncate == NULL)
return fs->ops.ftruncate(path, size, fi);
return ftruncate(GetHandle(), GetPosition());
return ftruncate(fd, newSize);
if (ftruncate(realFD, st->st_size) < 0)
HIDDEN_FUNCTION(ftruncate);
return ftruncate(fFd, size) == 0 ? B_OK : errno;
return ftruncate(fFD, size) == 0 ? B_OK : errno;
ftruncate(fd, 0);
if (ftruncate(fd, 0) == -1) {
if (ftruncate(state_fd, len) < 0) {
ftruncate(file, nameSize + 1);
if (ftruncate(fd, size) != 0)
ftruncate(fd, 0);
ftruncate(fd, B_PAGE_SIZE * 4);
ftruncate(fd, 4096);
if (ftruncate(fd, 0) < 0) {
ftruncate(fd, 0);
if (ftruncate(fd, newSize) == 0 || errno != EINVAL) {
if ((clearImage && ftruncate(fd, 0) != 0)
|| ftruncate(fd, imageSize) != 0) {
if ((clearImage && ftruncate(fd, headerSize) != 0)
|| ftruncate(fd, actualImageSize + headerSize) != 0) {