Searched refs:filename (Results 1 - 25 of 94) sorted by relevance

1234

/fuchsia/zircon/system/ulib/launchpad/
H A Dvmo.c13 zx_status_t launchpad_vmo_from_file(const char* filename, zx_handle_t* out) { argument
14 int fd = open(filename, O_RDONLY);
21 if (strlen(filename) >= ZX_MAX_NAME_LEN) {
22 const char* p = strrchr(filename, '/');
24 filename = p + 1;
28 zx_object_set_property(*out, ZX_PROP_NAME, filename, strlen(filename));
/fuchsia/zircon/third_party/ulib/musl/src/legacy/
H A Deuidaccess.c6 int euidaccess(const char* filename, int amode) { argument
7 return faccessat(AT_FDCWD, filename, amode, AT_EACCESS);
H A Dlutimes.c6 int lutimes(const char* filename, const struct timeval tv[2]) { argument
12 return utimensat(AT_FDCWD, filename, times, AT_SYMLINK_NOFOLLOW);
/fuchsia/zircon/third_party/ulib/musl/src/unistd/
H A Dacct.c5 int acct(const char* filename) { argument
/fuchsia/zircon/system/core/netsvc/
H A Dnetfile.c30 static int netfile_mkdir(const char* filename) { argument
31 const char* ptr = filename[0] == '/' ? filename + 1 : filename;
39 memcpy(tmp, filename, ptr - filename);
40 tmp[ptr - filename] = '\0';
54 int netfile_open(const char *filename, uint32_t arg, size_t* file_size) { argument
56 printf("netsvc: closing still-open '%s', replacing with '%s'\n", netfile.filename, filename);
206 const char* filename; local
[all...]
/fuchsia/zircon/system/ulib/launchpad/include/launchpad/
H A Dvmo.h16 zx_status_t launchpad_vmo_from_file(const char* filename, zx_handle_t* out);
/fuchsia/zircon/third_party/ulib/backtrace/
H A Dprint.c53 print_callback (void *data, uintptr_t pc, const char *filename, int lineno, argument
61 filename == NULL ? "???" : filename,
73 if (pdata->state->filename != NULL)
74 fprintf (stderr, "%s: ", pdata->state->filename);
H A Dfileline.c85 const char *filename; local
91 filename = state->filename;
94 filename = getexecname ();
97 filename = "/proc/self/exe";
100 filename = "/proc/curproc/file";
106 if (filename == NULL)
109 descriptor = backtrace_open (filename, error_callback, data,
124 if (state->filename != NULL)
125 error_callback (data, state->filename, ENOEN
[all...]
H A Dposix.c59 backtrace_open (const char *filename, backtrace_error_callback error_callback, argument
67 descriptor = open (filename, (int) (O_RDONLY | O_BINARY | O_CLOEXEC));
73 error_callback (data, filename, errno);
H A Dstate.c46 backtrace_create_state (const char *filename, int threaded, argument
62 init_state.filename = filename;
/fuchsia/zircon/system/host/fidl/lib/
H A Dsource_manager.cpp11 bool SourceManager::CreateSource(StringView filename) { argument
12 FILE* file = fopen(filename.data(), "rb");
26 AddSourceFile(std::make_unique<SourceFile>(filename, std::move(data)));
/fuchsia/zircon/system/utest/fs/
H A Dtest-access.cpp26 const char* filename = "::alpha"; local
29 int fd = open(filename, O_RDWR | O_CREAT, 0644);
36 fd = open(filename, O_RDONLY, 0644);
54 ASSERT_EQ(unlink(filename), 0);
62 const char* filename = "::alpha"; local
65 int fd = open(filename, O_RDWR | O_CREAT, 0644);
72 fd = open(filename, O_WRONLY, 0644);
87 ASSERT_EQ(unlink(filename), 0);
95 const char* filename = "::foobar"; local
97 int fd = open(filename, O_RDW
112 const char* filename = "::foobar"; local
137 const char* filename = "::foo/bar"; local
[all...]
H A Dtest-truncate.cpp24 bool check_file_contains(const char* filename, const void* data, ssize_t len) { argument
28 ASSERT_EQ(stat(filename, &st), 0);
30 int fd = open(filename, O_RDWR, 0644);
39 bool check_file_empty(const char* filename) { argument
41 ASSERT_EQ(stat(filename, &st), 0);
52 const char* filename = "::alpha"; local
55 int fd = open(filename, O_RDWR | O_CREAT, 0644);
58 ASSERT_TRUE(check_file_contains(filename, str, strlen(str)));
61 int fd2 = open(filename, O_RDWR | O_TRUNC, 0644);
63 ASSERT_TRUE(check_file_empty(filename));
121 checked_truncate(const char* filename, uint8_t* u8, ssize_t new_len) argument
202 const char* filename = "::alpha"; local
[all...]
H A Dtest-rw.cpp29 const char* filename = "::zero_length_ops"; local
30 fbl::unique_fd fd(open(filename, O_RDWR | O_CREAT, 0644));
45 ASSERT_EQ(unlink(filename), 0);
76 const char* filename = "::offset_ops"; local
77 fbl::unique_fd fd(open(filename, O_RDWR | O_CREAT, 0644));
109 ASSERT_EQ(unlink(filename), 0);
/fuchsia/zircon/third_party/ulib/linenoise/include/linenoise/
H A Dlinenoise.h65 int linenoiseHistorySave(const char *filename);
66 int linenoiseHistoryLoad(const char *filename);
/fuchsia/zircon/system/utest/fs-host/
H A Dtest-truncate.cpp12 bool check_file_contains(const char* filename, const void* data, ssize_t len) { argument
16 ASSERT_EQ(emu_stat(filename, &st), 0);
18 int fd = emu_open(filename, O_RDWR, 0644);
27 bool check_file_empty(const char* filename) { argument
29 ASSERT_EQ(emu_stat(filename, &st), 0);
40 const char* filename = "::alpha"; local
43 int fd = emu_open(filename, O_RDWR | O_CREAT, 0644);
46 ASSERT_TRUE(check_file_contains(filename, str, strlen(str)));
49 int fd2 = emu_open(filename, O_RDWR | O_TRUNC, 0644);
51 ASSERT_TRUE(check_file_empty(filename));
79 checked_truncate(const char* filename, uint8_t* u8, ssize_t new_len) argument
148 const char* filename = "::alpha"; local
[all...]
/fuchsia/zircon/system/host/fidl/include/fidl/
H A Dsource_file.h18 SourceFile(std::string filename, std::string data);
21 StringView filename() const { return filename_; } function in class:fidl::SourceFile
H A Dsource_manager.h18 // Returns whether the filename was successfully read.
19 bool CreateSource(StringView filename);
/fuchsia/zircon/system/uapp/audio/
H A Dwav-sink.h17 zx_status_t Initialize(const char* filename) { argument
18 return WAVCommon::Initialize(filename, InitMode::SINK);
/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A D__fopen_rb_ca.c5 FILE* __fopen_rb_ca(const char* filename, FILE* f, unsigned char* buf, size_t len) { argument
8 f->fd = open(filename, O_RDONLY | O_CLOEXEC);
H A Dfopen.c7 FILE* fopen(const char* restrict filename, const char* restrict mode) { argument
21 fd = open(filename, flags, 0666);
H A Dfreopen.c13 FILE* freopen(const char* restrict filename, const char* restrict mode, FILE* restrict f) { argument
21 if (!filename) {
28 f2 = fopen(filename, mode);
/fuchsia/zircon/system/host/merkleroot/
H A Dmerkleroot.cpp30 std::string filename; member in struct:__anon577::FileEntry
54 char filename[4096]; local
55 if (fscanf(rspfile, " %4095s", filename) == 1) {
56 handle_argument(argv, filename, entries);
72 fbl::unique_fd fd{open(entry->filename.c_str(), O_RDONLY)};
74 perror(entry->filename.c_str());
113 entry->filename.c_str(), rc);
119 entry->filename.c_str(), rc);
182 entry.digest, manifest ? "=" : " - ", entry.filename.c_str());
/fuchsia/zircon/kernel/lib/userboot/
H A Drules.mk18 userboot-filename := $(BUILDDIR)/system/core/userboot/libuserboot.so
21 MODULE_SRCDEPS += $(userboot-filename).strip
26 $(BUILDDIR)/$(LOCAL_DIR)/userboot-code.h: scripts/gen-rodso-code.sh $(userboot-filename)
30 $@.new USERBOOT $(userboot-filename)
/fuchsia/zircon/system/core/userboot/
H A Dbootfs.c42 const char* filename) {
52 size_t filename_len = strlen(filename) + 1;
65 if (!memcmp(e->name, filename, filename_len))
77 struct bootfs *fs, const char* filename) {
78 printl(log, "searching bootfs for '%s'", filename);
80 const bootfs_entry_t* e = bootfs_search(log, fs, filename);
99 zx_object_set_property(vmo, ZX_PROP_NAME, filename, strlen(filename));
40 bootfs_search(zx_handle_t log, struct bootfs *fs, const char* filename) argument
76 bootfs_open(zx_handle_t log, const char* purpose, struct bootfs *fs, const char* filename) argument

Completed in 184 milliseconds

1234