Searched refs:O_TRUNC (Results 51 - 75 of 91) sorted by relevance

1234

/haiku/src/add-ons/kernel/drivers/input/i2c_hid/
H A DHIDDevice.cpp77 int fd = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
/haiku/src/add-ons/kernel/drivers/input/usb_hid/
H A DHIDDevice.cpp143 int fd = open(outputFile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
/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/tests/system/kernel/file_corruption/fs/
H A Dchecksumfs.cpp536 // 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 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/build/libroot/
H A Dfs_descriptors.cpp327 if ((fOpenMode & O_TRUNC) == 0) {
H A Dfs_attr_generic.cpp572 O_WRONLY | O_CREAT | 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/bin/fwcontrol/
H A Dfwdv.c121 fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0660);
/haiku/src/add-ons/kernel/file_systems/layers/attribute_overlay/
H A Dattribute_overlay.cpp618 nameBuffer, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP
651 result = currentVnode.ops->open(volume, &currentVnode, 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 DInode.cpp550 | ((openMode & O_TRUNC) != 0 ? W_OK : 0)) != B_OK)
553 if ((openMode & O_TRUNC) != 0) {
H A Dkernel_interface.cpp1152 | (openMode & O_TRUNC ? W_OK : 0));
1175 if ((openMode & O_TRUNC) != 0) {
/haiku/src/bin/package/
H A Dcommand_extract.cpp587 O_WRONLY | O_CREAT | O_TRUNC);
/haiku/src/add-ons/kernel/file_systems/netfs/client/
H A DVirtualVolume.cpp401 if (openMode & O_TRUNC)
/haiku/src/add-ons/kernel/file_systems/reiserfs/
H A Dkernel_interface.cpp365 || (openMode & (O_TRUNC | O_CREAT))) {
/haiku/src/kits/package/hpkg/
H A DWriterImplBase.cpp272 openMode |= O_CREAT | O_TRUNC;
/haiku/src/add-ons/kernel/file_systems/exfat/
H A Dkernel_interface.cpp463 | (openMode & O_TRUNC ? W_OK : 0));
/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_cache/
H A Dlaunch_speedup.cpp597 int fd = open(name, O_CREAT | O_TRUNC | O_WRONLY, 0644);
/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/ufs2/
H A Dkernel_interface.cpp270 | (openMode & O_TRUNC ? W_OK : 0));
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A DNFS4Inode.cpp470 if ((mode & O_TRUNC) == O_TRUNC) {
/haiku/src/add-ons/kernel/file_systems/layers/write_overlay/
H A Dwrite_overlay.cpp585 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 DProtocol.cpp111 sFD = open("/boot/home/ipcpdebug", O_WRONLY | O_CREAT | O_TRUNC);
/haiku/src/add-ons/kernel/file_systems/bfs/
H A Dkernel_interface.cpp1365 | ((openMode & O_TRUNC) != 0 ? W_OK : 0));
1389 if ((openMode & O_TRUNC) != 0) {

Completed in 318 milliseconds

1234