/haiku/src/add-ons/kernel/drivers/input/i2c_hid/ |
H A D | HIDDevice.cpp | 77 int fd = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
|
/haiku/src/add-ons/kernel/drivers/input/usb_hid/ |
H A D | HIDDevice.cpp | 143 int fd = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
|
/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | kernel_interface.cpp | 830 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/tests/system/kernel/file_corruption/fs/ |
H A D | checksumfs.cpp | 536 // We need to at least read-lock the node. If O_TRUNC is specified, we even 540 if ((openMode & O_TRUNC) != 0) { 573 if ((openMode & O_TRUNC) != 0 && node->Size() > 0) { 674 error = open_file(volume, newFile, openMode & ~O_TRUNC, transaction, 1922 if (created || (openMode & O_TRUNC) != 0) { 1955 // yet). We only need to read-lock the node for that, but when O_TRUNC is 1961 if ((openMode & O_TRUNC) != 0) { 1994 if ((openMode & O_TRUNC) != 0) {
|
/haiku/src/add-ons/kernel/file_systems/xfs/ |
H A D | kernel_interface.cpp | 278 | (openMode & O_TRUNC ? W_OK : 0)); 559 int accessMode = open_mode_to_access(openMode) | (openMode & O_TRUNC ? W_OK : 0);
|
/haiku/src/build/libroot/ |
H A D | fs_descriptors.cpp | 327 if ((fOpenMode & O_TRUNC) == 0) {
|
H A D | fs_attr_generic.cpp | 572 O_WRONLY | O_CREAT | O_TRUNC);
|
/haiku/src/add-ons/kernel/file_systems/fat/ |
H A D | file.cpp | 331 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/bin/fwcontrol/ |
H A D | fwdv.c | 121 fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
|
/haiku/src/add-ons/kernel/file_systems/layers/attribute_overlay/ |
H A D | attribute_overlay.cpp | 618 nameBuffer, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP 651 result = currentVnode.ops->open(volume, ¤tVnode, O_RDWR | O_TRUNC, 787 if ((openMode & O_TRUNC) != 0) 831 if (openMode & O_TRUNC)
|
/haiku/src/add-ons/kernel/file_systems/ext2/ |
H A D | Inode.cpp | 550 | ((openMode & O_TRUNC) != 0 ? W_OK : 0)) != B_OK) 553 if ((openMode & O_TRUNC) != 0) {
|
H A D | kernel_interface.cpp | 1152 | (openMode & O_TRUNC ? W_OK : 0)); 1175 if ((openMode & O_TRUNC) != 0) {
|
/haiku/src/bin/package/ |
H A D | command_extract.cpp | 587 O_WRONLY | O_CREAT | O_TRUNC);
|
/haiku/src/add-ons/kernel/file_systems/netfs/client/ |
H A D | VirtualVolume.cpp | 401 if (openMode & O_TRUNC)
|
/haiku/src/add-ons/kernel/file_systems/reiserfs/ |
H A D | kernel_interface.cpp | 365 || (openMode & (O_TRUNC | O_CREAT))) {
|
/haiku/src/kits/package/hpkg/ |
H A D | WriterImplBase.cpp | 272 openMode |= O_CREAT | O_TRUNC;
|
/haiku/src/add-ons/kernel/file_systems/exfat/ |
H A D | kernel_interface.cpp | 463 | (openMode & O_TRUNC ? W_OK : 0));
|
/haiku/src/add-ons/kernel/file_systems/iso9660/ |
H A D | kernel_interface.cpp | 516 || (openMode & O_TRUNC) != 0 || (openMode & O_CREAT) != 0)
|
/haiku/src/add-ons/kernel/file_cache/ |
H A D | launch_speedup.cpp | 597 int fd = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0644);
|
/haiku/src/add-ons/media/media-add-ons/dvb/ |
H A D | DVBMediaNode.cpp | 187 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/ufs2/ |
H A D | kernel_interface.cpp | 270 | (openMode & O_TRUNC ? W_OK : 0));
|
/haiku/src/add-ons/kernel/file_systems/nfs4/ |
H A D | NFS4Inode.cpp | 470 if ((mode & O_TRUNC) == O_TRUNC) {
|
/haiku/src/add-ons/kernel/file_systems/layers/write_overlay/ |
H A D | write_overlay.cpp | 585 if (openMode & O_TRUNC) { 597 if (openMode & O_TRUNC) { 606 openMode &= ~(O_RDWR | O_WRONLY | O_TRUNC | O_CREAT);
|
/haiku/src/add-ons/kernel/network/ppp/ipcp/ |
H A D | Protocol.cpp | 111 sFD = open("/boot/home/ipcpdebug", O_WRONLY | O_CREAT | O_TRUNC);
|
/haiku/src/add-ons/kernel/file_systems/bfs/ |
H A D | kernel_interface.cpp | 1365 | ((openMode & O_TRUNC) != 0 ? W_OK : 0)); 1389 if ((openMode & O_TRUNC) != 0) {
|