Home
last modified time | relevance | path

Searched refs:O_CREAT (Results 1 – 25 of 184) sorted by relevance

12345678

/openbmc/linux/tools/testing/selftests/openat2/
H A Dopenat2_test.c172 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
185 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags()
201 .how.flags = O_CREAT, .how.mode = 0600 }, in test_openat2_flags()
206 .how.flags = O_CREAT, in test_openat2_flags()
209 .how.flags = O_CREAT, in test_openat2_flags()
229 .how.flags = O_CREAT, in test_openat2_flags()
259 path = (test->how.flags & O_CREAT) ? "/tmp/ksft.openat2_tmpfile" : "."; in test_openat2_flags()
292 if (test->how.flags & O_CREAT) in test_openat2_flags()
293 fdflags |= O_CREAT; in test_openat2_flags()
H A Dresolve_test.c286 .path = "newfile1", .how.flags = O_CREAT, in test_openat2_opath_tests()
291 .path = "/newfile2", .how.flags = O_CREAT, in test_openat2_opath_tests()
296 .path = "/creatlink", .how.flags = O_CREAT, in test_openat2_opath_tests()
455 if (!(test->how.flags & O_CREAT)) in test_openat2_opath_tests()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/byacc/byacc/
H A Dbyacc-open.patch6 open with O_CREAT in second argument needs 3 arguments
21 - fd = open(name, O_CREAT | O_EXCL | O_RDWR);
22 + fd = open(name, O_CREAT | O_EXCL | O_RDWR, 0666);
/openbmc/openbmc/meta-openembedded/meta-gnome/recipes-gnome/gvfs/gvfs/
H A D0001-nfs-Support-libnfs-6-backport-to-1.56.patch58 + O_CREAT | O_APPEND,
157 + handle->dest, O_CREAT | O_TRUNC, handle->mode & 0777,
174 + O_CREAT | O_TRUNC,
194 + O_CREAT | O_TRUNC,
214 + O_CREAT | O_EXCL,
234 + O_CREAT | O_EXCL,
254 + O_CREAT | O_EXCL,
/openbmc/qemu/util/
H A Dosdep.c158 ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))) { in qemu_dup_flags()
337 const char *action = flags & O_CREAT ? "create" : "open"; in qemu_open_internal()
362 assert(!(flags & O_CREAT)); in qemu_open()
370 assert(!(flags & O_CREAT)); in qemu_create()
372 return qemu_open_internal(name, flags | O_CREAT, mode, errp); in qemu_create()
383 if (flags & O_CREAT) { in qemu_open_old()
/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/linux/fs/smb/client/
H A Ddir.c288 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
290 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
292 else if ((oflags & O_CREAT) == O_CREAT)
461 if (!(oflags & O_CREAT)) {
509 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
560 unsigned oflags = O_EXCL | O_CREAT | O_RDWR;
/openbmc/qemu/qga/
H A Dcommands-posix.c376 { (ccpc[]){ "w", NULL }, O_WRONLY | O_CREAT | O_TRUNC },
377 { (ccpc[]){ "wb", NULL }, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY },
378 { (ccpc[]){ "a", NULL }, O_WRONLY | O_CREAT | O_APPEND },
379 { (ccpc[]){ "ab", NULL }, O_WRONLY | O_CREAT | O_APPEND | O_BINARY },
382 { (ccpc[]){ "w+", NULL }, O_RDWR | O_CREAT | O_TRUNC },
383 { (ccpc[]){ "wb+", "w+b", NULL }, O_RDWR | O_CREAT | O_TRUNC | O_BINARY },
384 { (ccpc[]){ "a+", NULL }, O_RDWR | O_CREAT | O_APPEND },
385 { (ccpc[]){ "ab+", "a+b", NULL }, O_RDWR | O_CREAT | O_APPEND | O_BINARY }
450 fd = qga_open_cloexec(path, oflag | ((oflag & O_CREAT) ? O_EXCL : 0), 0); in safe_open_or_create()
452 oflag &= ~(unsigned)O_CREAT; in safe_open_or_create()
[all …]
/openbmc/linux/tools/include/uapi/asm-generic/
H A Dfcntl.h23 #ifndef O_CREAT
24 #define O_CREAT 00000100 /* not fcntl */ macro
/openbmc/linux/include/uapi/asm-generic/
H A Dfcntl.h23 #ifndef O_CREAT
24 #define O_CREAT 00000100 /* not fcntl */ macro
/openbmc/linux/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c216 int fd = shm_open(filename, O_CREAT | O_RDWR, 0600); in test_cachestat_shmem()
290 false, 4, O_CREAT | O_RDWR, 0600) == KSFT_PASS) in main()
298 true, 4, O_CREAT | O_RDWR, 0600)) { in main()
/openbmc/u-boot/fs/yaffs2/
H A Dyportenv.h109 #ifndef O_CREAT
110 #define O_CREAT 0100 macro
/openbmc/openbmc/poky/meta/recipes-devtools/patch/patch/
H A DCVE-2019-13636.patch11 with O_CREAT | O_EXCL to avoid following symlinks in that case as well.
68 - 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/obmc-console/
H A Dlog-handler.c66 lh->fd = open(lh->log_filename, O_WRONLY | O_CREAT | O_TRUNC, 0644); in log_trim()
134 lh->fd = open(lh->log_filename, O_WRONLY | O_CREAT | O_APPEND, 0644); in log_create()
/openbmc/linux/arch/parisc/include/uapi/asm/
H A Dfcntl.h6 #define O_CREAT 000000400 /* not fcntl */ macro
/openbmc/linux/arch/mips/include/uapi/asm/
H A Dfcntl.h17 #define O_CREAT 0x0100 /* not fcntl */ macro
/openbmc/linux/arch/alpha/include/uapi/asm/
H A Dfcntl.h5 #define O_CREAT 01000 /* not fcntl */ macro
/openbmc/linux/tools/testing/selftests/efivarfs/
H A Dcreate-read.c26 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
/openbmc/linux/arch/sparc/include/uapi/asm/
H A Dfcntl.h7 #define O_CREAT 0x0200 /* 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/openbmc/meta-openembedded/meta-networking/recipes-protocols/openl2tp/openl2tp/
H A D0002-cli-include-fcntl.h-for-O_CREAT-define.patch4 Subject: [PATCH 2/4] cli: include fcntl.h for O_CREAT define
/openbmc/qemu/io/
H A Dchannel-file.c71 if (flags & O_CREAT) { in qio_channel_file_new_path()
72 ioc->fd = qemu_create(path, flags & ~O_CREAT, mode, errp); in qio_channel_file_new_path()
/openbmc/linux/include/linux/
H A Dfcntl.h10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/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()
/openbmc/linux/tools/testing/selftests/timers/
H A Dmqueue-lat.c66 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()

12345678