Home
last modified time | relevance | path

Searched refs:O_TRUNC (Results 1 – 25 of 135) sorted by relevance

123456

/openbmc/qemu/tests/unit/
H A Dtest-io-channel-file.c78 test_io_channel_file_helper(O_WRONLY | O_CREAT | O_TRUNC | O_BINARY); in test_io_channel_file()
83 test_io_channel_file_helper(O_RDWR | O_CREAT | O_TRUNC | O_BINARY); in test_io_channel_file_rdwr()
91 fd = open(TEST_FILE, O_CREAT | O_TRUNC | O_WRONLY, 0600); in test_io_channel_fd()
/openbmc/openbmc/meta-openembedded/meta-gnome/recipes-gnome/gvfs/gvfs/
H A D0001-nfs-Support-libnfs-6-backport-to-1.56.patch157 + handle->dest, O_CREAT | O_TRUNC, handle->mode & 0777,
161 handle->dest, O_TRUNC, handle->mode & 0777,
174 + O_CREAT | O_TRUNC,
180 O_TRUNC,
194 + O_CREAT | O_TRUNC,
200 O_TRUNC,
/openbmc/linux/tools/include/uapi/asm-generic/
H A Dfcntl.h32 #ifndef O_TRUNC
33 #define O_TRUNC 00001000 /* not fcntl */ macro
/openbmc/linux/include/uapi/asm-generic/
H A Dfcntl.h32 #ifndef O_TRUNC
33 #define O_TRUNC 00001000 /* not fcntl */ macro
/openbmc/u-boot/fs/yaffs2/
H A Dyportenv.h117 #ifndef O_TRUNC
118 #define O_TRUNC 01000 macro
H A Dyaffs_uboot_glue.c287 O_CREAT | O_RDWR | O_TRUNC, in make_a_file()
387 outh = yaffs_open(fn, O_CREAT | O_RDWR | O_TRUNC, S_IREAD | S_IWRITE); in cmd_yaffs_mwrite_file()
/openbmc/linux/arch/mips/include/uapi/asm/
H A Dfcntl.h18 #define O_TRUNC 0x0200 /* not fcntl */ macro
/openbmc/linux/arch/alpha/include/uapi/asm/
H A Dfcntl.h6 #define O_TRUNC 02000 /* not fcntl */ macro
/openbmc/linux/arch/sparc/include/uapi/asm/
H A Dfcntl.h8 #define O_TRUNC 0x0400 /* not fcntl */ macro
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/
H A D0017-img2simg-Add-support-for-converting-holes-to-don-t-c.patch95 - out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
96 + out = open(arg_out, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
/openbmc/linux/include/linux/
H A Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/openbmc/openbmc/poky/meta/recipes-devtools/patch/patch/
H A DCVE-2019-13636.patch68 - while ((fd = safe_open (bakname, O_CREAT | O_WRONLY | O_TRUNC, 0666)) < 0)
69 + while ((fd = safe_open (bakname, O_CREAT | O_EXCL | O_WRONLY | O_TRUNC, 0666)) < 0)
/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dfile_io_type_lid.hpp127 flags = O_WRONLY | O_CREAT | O_TRUNC | O_SYNC; in writeFromMemory()
219 flags = O_WRONLY | O_CREAT | O_TRUNC | O_SYNC; in write()
H A Dfile_io_type_cert.cpp217 int flags = O_WRONLY | O_CREAT | O_TRUNC; in newFileAvailable()
257 int flags = O_WRONLY | O_CREAT | O_TRUNC; in newFileAvailableWithMetaData()
/openbmc/linux/include/trace/misc/
H A Dfs.h31 { O_TRUNC, "O_TRUNC" }, \
/openbmc/u-boot/board/samsung/smdkv310/tools/
H A Dmksmdkv310spl.c51 ofd = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, FILE_PERM); in main()
/openbmc/u-boot/board/samsung/origen/tools/
H A Dmkorigenspl.c53 ofd = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, FILE_PERM); in main()
/openbmc/linux/tools/testing/selftests/fchmodat2/
H A Dfchmodat2_test.c32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Draw_tp_test_run.c35 comm_fd = open("/proc/self/comm", O_WRONLY|O_TRUNC); in test_raw_tp_test_run()
/openbmc/linux/fs/vboxsf/
H A Dfile.c72 if (file->f_flags & O_TRUNC) in vboxsf_file_open()
78 if (file->f_flags & O_TRUNC) in vboxsf_file_open()
/openbmc/linux/tools/testing/selftests/landlock/
H A Dfs_test.c1824 dst_fd = open(dst_path, O_WRONLY | O_TRUNC | O_CLOEXEC); in copy_binary()
3346 EXPECT_EQ(0, test_open(file_r, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3347 EXPECT_EQ(EACCES, test_open(file_r, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3355 EXPECT_EQ(EACCES, test_open(file_w, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3356 EXPECT_EQ(0, test_open(file_w, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3364 EXPECT_EQ(EACCES, test_open(file_none, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3365 EXPECT_EQ(EACCES, test_open(file_none, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3426 EXPECT_EQ(0, test_open(file_rwt, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
3427 EXPECT_EQ(0, test_open(file_rwt, O_WRONLY | O_TRUNC)); in TEST_F_FORK()
3431 EXPECT_EQ(EACCES, test_open(file_rw, O_RDONLY | O_TRUNC)); in TEST_F_FORK()
[all …]
/openbmc/qemu/chardev/
H A Dchar-file.c78 flags |= O_TRUNC; in qmp_chardev_open_file()
/openbmc/linux/arch/powerpc/boot/
H A Dmktree.c87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
/openbmc/linux/tools/objtool/
H A Dobjtool.c38 d = open(name, O_CREAT|O_WRONLY|O_TRUNC, 0644); in objtool_create_backup()
/openbmc/linux/tools/testing/selftests/exec/
H A Dexecveat.c143 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp()
390 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755); in prerequisites()

123456