Searched refs:O_TRUNC (Results 1 - 25 of 91) sorted by last modified time

1234

/haiku/src/add-ons/kernel/file_systems/ramfs/
H A Dkernel_interface.cpp830 if (openMode & O_TRUNC)
894 if (error == B_OK && (openMode & O_TRUNC))
907 if (error == B_OK && (openMode & O_TRUNC))
1528 if (!attribute || (openMode & O_TRUNC))
1559 } else if (openMode & O_TRUNC) {
1599 if (error == B_OK && (openMode & O_TRUNC))
1618 if (error == B_OK && (openMode & O_TRUNC)) {
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A Dkernel_interface.cpp545 | (openMode & O_TRUNC ? W_OK : 0));
/haiku/src/system/kernel/fs/
H A Dvfs.cpp9759 O_CREAT | O_WRONLY | (pos != 0 ? 0 : O_TRUNC), false);
/haiku/headers/posix/
H A Dfcntl.h43 #define O_TRUNC 0x0400 /* open with truncation */ macro
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/
H A DFUSEVolume.cpp1731 bool truncate = (openMode & O_TRUNC) != 0;
1732 openMode &= ~O_TRUNC;
/haiku/src/kits/tracker/
H A DFindPanel.cpp1312 BFile file(&directory, name, O_RDWR | O_CREAT | O_TRUNC);
/haiku/src/tests/system/network/tcp_shell/
H A Dtcp_shell.cpp1194 sPcapFD = open(file, O_CREAT | O_WRONLY | O_TRUNC);
/haiku/src/add-ons/kernel/file_systems/fat/
H A Dfile.cpp331 if ((omode & O_TRUNC) && ((omode & O_RWMASK) == O_RDONLY)) {
332 DPRINTF(0, ("can't open file for reading with O_TRUNC\n"));
336 if (omode & O_TRUNC) {
337 DPRINTF(0, ("dosfs_open called with O_TRUNC set\n"));
575 if (omode & O_TRUNC) {
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DInode.cpp2617 If \c O_TRUNC has been specified, the file will also be truncated.
2673 | ((openMode & O_TRUNC) != 0 ? W_OK : 0)) != B_OK)
2676 if ((openMode & O_TRUNC) != 0) {
H A Dkernel_interface.cpp1365 | ((openMode & O_TRUNC) != 0 ? W_OK : 0));
1389 if ((openMode & O_TRUNC) != 0) {
/haiku/src/add-ons/kernel/file_systems/ext2/
H A Dkernel_interface.cpp1152 | (openMode & O_TRUNC ? W_OK : 0));
1175 if ((openMode & O_TRUNC) != 0) {
/haiku/src/add-ons/kernel/file_systems/ufs2/
H A Dkernel_interface.cpp270 | (openMode & O_TRUNC ? W_OK : 0));
/haiku/src/system/kernel/debug/
H A Ddebug.cpp1450 int fd = open("/var/log/previous_syslog", O_WRONLY | O_CREAT | O_TRUNC,
/haiku/src/add-ons/kernel/file_systems/ntfs/
H A Dkernel_interface.cpp846 if ((openMode & O_TRUNC) != 0) {
/haiku/src/add-ons/media/media-add-ons/dvb/
H A DDVBMediaNode.cpp187 fVideoFile = open("/boot/home/dvb-video.mpg", O_RDWR | O_CREAT | O_TRUNC);
190 fAudioFile = open("/boot/home/dvb-audio.mpg", O_RDWR | O_CREAT | O_TRUNC);
194 O_RDWR | O_CREAT | O_TRUNC);
197 fMpegTsFile = open("/boot/home/dvb-mpeg.ts", O_RDWR | O_CREAT | O_TRUNC);
/haiku/src/add-ons/kernel/file_systems/iso9660/
H A Dkernel_interface.cpp516 || (openMode & O_TRUNC) != 0 || (openMode & O_CREAT) != 0)
/haiku/src/add-ons/kernel/file_systems/cdda/
H A Dkernel_interface.cpp504 return open(path, mode | (create ? O_CREAT | O_TRUNC : 0), 0644);
2075 if ((openMode & O_TRUNC) != 0)
/haiku/src/add-ons/kernel/file_cache/
H A Dlaunch_speedup.cpp597 int fd = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0644);
/haiku/src/add-ons/kernel/file_systems/xfs/
H A Dkernel_interface.cpp278 | (openMode & O_TRUNC ? W_OK : 0));
559 int accessMode = open_mode_to_access(openMode) | (openMode & O_TRUNC ? W_OK : 0);
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DClientConnection.cpp827 openMode &= ~(O_CREAT | O_EXCL | O_TRUNC);
/haiku/src/bin/debug/strace/
H A Dfcntl.cpp26 FLAG_INFO_ENTRY(O_TRUNC),
/haiku/src/build/libroot/
H A Dfs.cpp1524 return _haiku_build_open(path, O_WRONLY | O_CREAT | O_TRUNC, mode);
/haiku/src/add-ons/kernel/file_systems/websearchfs/
H A Dduckduckgo_request.cpp80 fd = open("/tmp/duckduckgo.html", O_CREAT|O_TRUNC|O_RDWR, 0644);
/haiku/src/add-ons/kernel/file_systems/exfat/
H A Dkernel_interface.cpp463 | (openMode & O_TRUNC ? W_OK : 0));
/haiku/headers/private/fs_shell/
H A Dfssh_api_wrapper.h780 #define O_TRUNC FSSH_O_TRUNC macro

Completed in 276 milliseconds

1234