Searched refs:ftruncate (Results 1 - 25 of 30) sorted by relevance

12

/haiku/src/system/libroot/posix/unistd/
H A Dtruncate.c33 ftruncate(int fd, off_t newSize) function
H A Dhostname.cpp49 ftruncate(file, nameSize + 1);
/haiku/src/tests/system/kernel/
H A Dmmap_fixed_test.cpp24 ftruncate(fd, 4096);
H A Dmmap_resize_test.cpp49 if (ftruncate(fd, 0) < 0) {
H A Dmmap_cut_tests.cpp92 ftruncate(fd, B_PAGE_SIZE * 4);
/haiku/src/tools/
H A Dcreate_image.cpp121 // regular file -- use ftruncate() to resize it
122 if ((clearImage && ftruncate(fd, 0) != 0)
123 || ftruncate(fd, imageSize) != 0) {
/haiku/src/bin/network/ftpd/
H A Dlogwtmp.c93 (void)ftruncate(fd, buf.st_size);
/haiku/src/tests/system/libroot/posix/
H A Dtruncate.cpp58 if (ftruncate(fd, newSize) == 0 || errno != EINVAL) {
H A Dseek_and_write_test.cpp108 ftruncate(fd, 0);
/haiku/src/libs/util/
H A Dpidfile.c140 ftruncate(fd, 0);
184 if (ftruncate(fd, 0) == -1) {
/haiku/src/kits/storage/
H A DFileDescriptorIO.cpp81 return ftruncate(fFD, size) == 0 ? B_OK : errno;
H A DFdIO.cpp109 return ftruncate(fFd, size) == 0 ? B_OK : errno;
/haiku/src/build/libroot/
H A Dfunction_remapper.cpp169 ftruncate(int fd, off_t newSize) function
171 HIDDEN_FUNCTION(ftruncate);
H A Dfs.cpp936 if (ftruncate(realFD, st->st_size) < 0)
1478 return ftruncate(fd, newSize);
/haiku/src/tools/vmdkimage/
H A Dvmdkimage.cpp391 if ((clearImage && ftruncate(fd, headerSize) != 0)
392 || ftruncate(fd, actualImageSize + headerSize) != 0) {
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/
H A Dfuse_fs.cpp236 if (fs->ops.ftruncate == NULL)
238 return fs->ops.ftruncate(path, size, fi);
/haiku/src/add-ons/kernel/file_cache/
H A Dlog.cpp264 ftruncate(sLogFile, fileSize + 512 * 1024);
327 ftruncate(sLogFile, fileSize);
H A Dlaunch_speedup.cpp608 ftruncate(fd, 512 * 1024);
624 ftruncate(fd, fileSize);
/haiku/src/add-ons/media/plugins/ape_reader/MAClib/
H A DStdLibFileIO.cpp193 return ftruncate(GetHandle(), GetPosition());
/haiku/headers/private/userlandfs/fuse/
H A Dfuse_compat.h49 int (*ftruncate) (const char *, off_t, struct fuse_file_info *); member in struct:fuse_operations_compat25
H A Dfuse.h77 * releasedir, fsyncdir, access, create, ftruncate, fgetattr, lock,
375 * truncation was invoked from an ftruncate() system call.
383 int (*ftruncate) (const char *, off_t, struct fuse_file_info *); member in struct:fuse_operations
462 * fsyncdir, ftruncate, fgetattr, lock, ioctl and poll
474 * fsyncdir, ftruncate, fgetattr, lock, ioctl and poll
/haiku/headers/build/
H A DBeOSBuildCompatibility.h151 # define ftruncate(fd, newSize) _haiku_build_ftruncate(fd, newSize) macro
/haiku/src/libs/uuid/
H A Dgen_uuid.c327 if (ftruncate(state_fd, len) < 0) {
/haiku/src/tests/kits/storage/virtualdrive/
H A Dvirtualdrive.cpp212 if (ftruncate(fd, size) != 0)
/haiku/headers/posix/
H A Dunistd.h360 extern int ftruncate(int fd, off_t newSize);

Completed in 157 milliseconds

12