Searched refs:O_TRUNC (Results 1 - 19 of 19) sorted by relevance

/fuchsia/zircon/third_party/ulib/musl/src/fcntl/
H A Dcreat.c4 return open(path, O_CREAT | O_WRONLY | O_TRUNC, mode);
/fuchsia/zircon/system/utest/posixio/
H A Dmain.cpp51 O_TRUNC,
52 O_APPEND | O_TRUNC,
53 O_CLOEXEC | O_TRUNC,
54 O_APPEND | O_CLOEXEC | O_TRUNC,
/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A D__fmodeflags.c19 flags |= O_TRUNC;
/fuchsia/zircon/third_party/lib/acpica/source/include/acpica/platform/
H A Dacmsvc.h71 #define O_TRUNC _O_TRUNC macro
/fuchsia/zircon/system/utest/fs/
H A Dtest-access.cpp102 ASSERT_LT(open(filename, O_RDONLY | O_TRUNC | O_CREAT, 0644), 0);
174 fd = open(filename, O_RDWR | O_CREAT | O_EXCL | O_TRUNC | O_PATH);
H A Dtest-truncate.cpp60 // Check that opening a file with O_TRUNC makes it empty
61 int fd2 = open(filename, O_RDWR | O_TRUNC, 0644);
/fuchsia/zircon/system/ulib/runtests-utils/
H A Dposix-run-test.cpp86 O_WRONLY | O_CREAT | O_TRUNC, 0644))) {
/fuchsia/zircon/third_party/ulib/musl/include/
H A Dfcntl.h50 #define O_TRUNC 0x00040000 macro
/fuchsia/zircon/system/core/netsvc/
H A Dnetfile.c88 netfile.fd = open(netfile.filename, O_WRONLY|O_CREAT|O_TRUNC);
/fuchsia/zircon/system/uapp/lz4/
H A Dmain.c20 #define WR_NEWFILE O_WRONLY | O_CREAT | O_TRUNC
/fuchsia/zircon/system/utest/fs-host/
H A Dtest-truncate.cpp48 // Check that opening a file with O_TRUNC makes it empty
49 int fd2 = emu_open(filename, O_RDWR | O_TRUNC, 0644);
/fuchsia/zircon/system/host/netprotocol/
H A Dnetcp.c66 int fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
/fuchsia/zircon/system/ulib/tftp/
H A Dtftp-example.c181 int fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC,
/fuchsia/zircon/third_party/uapp/dash/src/
H A Dredir.c209 if ((f = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0666)) < 0)
/fuchsia/zircon/system/ulib/fs-host/
H A Dcommon.cpp391 depfile_.reset(open(buf, O_CREAT|O_TRUNC|O_WRONLY, 0644));
/fuchsia/zircon/system/ulib/minfs/
H A Dhost.cpp202 if (flags & O_TRUNC) {
/fuchsia/zircon/third_party/uapp/mkfs-msdosfs/
H A Dmkfs_msdos.c215 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0644);
/fuchsia/zircon/system/host/zbi/
H A Dzbi.cpp272 fbl::unique_fd fd(open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666));
275 fd.reset(open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666));
/fuchsia/zircon/system/ulib/fdio/
H A Dunistd.c172 static_assert(O_TRUNC == ZX_FS_FLAG_TRUNCATE, "Open Flag mismatch");
178 #define ZXIO_FS_MASK (O_PATH | O_ADMIN | O_CREAT | O_EXCL | O_TRUNC | \

Completed in 136 milliseconds