/openbmc/linux/tools/testing/selftests/openat2/ |
H A D | openat2_test.c | 172 .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 D | resolve_test.c | 286 .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 D | byacc-open.patch | 6 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 D | 0001-nfs-Support-libnfs-6-backport-to-1.56.patch | 58 + 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 D | osdep.c | 158 ((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 D | test-io-channel-file.c | 78 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 D | dir.c | 288 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 D | commands-posix.c | 376 { (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 D | fcntl.h | 23 #ifndef O_CREAT 24 #define O_CREAT 00000100 /* not fcntl */ macro
|
/openbmc/linux/include/uapi/asm-generic/ |
H A D | fcntl.h | 23 #ifndef O_CREAT 24 #define O_CREAT 00000100 /* not fcntl */ macro
|
/openbmc/linux/tools/testing/selftests/cachestat/ |
H A D | test_cachestat.c | 216 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 D | yportenv.h | 109 #ifndef O_CREAT 110 #define O_CREAT 0100 macro
|
/openbmc/openbmc/poky/meta/recipes-devtools/patch/patch/ |
H A D | CVE-2019-13636.patch | 11 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 D | log-handler.c | 66 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 D | fcntl.h | 6 #define O_CREAT 000000400 /* not fcntl */ macro
|
/openbmc/linux/arch/mips/include/uapi/asm/ |
H A D | fcntl.h | 17 #define O_CREAT 0x0100 /* not fcntl */ macro
|
/openbmc/linux/arch/alpha/include/uapi/asm/ |
H A D | fcntl.h | 5 #define O_CREAT 01000 /* not fcntl */ macro
|
/openbmc/linux/tools/testing/selftests/efivarfs/ |
H A D | create-read.c | 26 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
|
/openbmc/linux/arch/sparc/include/uapi/asm/ |
H A D | fcntl.h | 7 #define O_CREAT 0x0200 /* not fcntl */ macro
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/ |
H A D | 0017-img2simg-Add-support-for-converting-holes-to-don-t-c.patch | 95 - 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 D | 0002-cli-include-fcntl.h-for-O_CREAT-define.patch | 4 Subject: [PATCH 2/4] cli: include fcntl.h for O_CREAT define
|
/openbmc/qemu/io/ |
H A D | channel-file.c | 71 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 D | fcntl.h | 10 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
|
/openbmc/pldm/oem/ibm/libpldmresponder/ |
H A D | file_io_type_lid.hpp | 127 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 D | mqueue-lat.c | 66 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
|