Searched refs:filename (Results 26 - 50 of 94) sorted by relevance

1234

/fuchsia/zircon/system/core/netsvc/
H A Dtftp.c42 char filename[PATH_MAX + 1]; member in struct:__anon144
79 static ssize_t file_open_read(const char* filename, void* cookie) { argument
86 strncpy(file_info->filename, filename, PATH_MAX);
87 file_info->filename[PATH_MAX] = '\0';
90 if (netfile_open(filename, O_RDONLY, &file_size) == 0) {
203 file_info->filename[0] = '\0';
208 static tftp_status paver_open_write(const char* filename, size_t size, file_info_t* file_info) { argument
212 if (!strcmp(filename + NB_IMAGE_PREFIX_LEN, NB_FVM_HOST_FILENAME)) {
215 } else if (!strcmp(filename
307 file_open_write(const char* filename, size_t size, void* cookie) argument
[all...]
H A Dnetsvc.h22 char filename[PATH_MAX]; member in struct:netfile_state_t
32 int netfile_open(const char* filename, uint32_t arg, size_t* file_size);
/fuchsia/zircon/system/utest/fidl-compiler/
H A Dtest_library.h14 static fidl::SourceFile MakeSourceFile(const std::string& filename, const std::string& raw_source_code) { argument
18 return fidl::SourceFile(filename, source_code);
23 TestLibrary(const std::string& filename, const std::string& raw_source_code) argument
24 : source_file_(MakeSourceFile(filename, raw_source_code)),
60 bool AddSourceFile(const std::string& filename, const std::string& raw_source_code) { argument
61 auto source_file = MakeSourceFile(filename, raw_source_code);
/fuchsia/zircon/bootloader/lib/
H A Dloadfile.c17 efi_file_protocol* xefi_open_file(char16_t* filename) { argument
48 r = root->Open(root, &file, filename, EFI_FILE_MODE_READ, 0);
102 void* xefi_load_file(char16_t* filename, size_t* _sz, size_t front_bytes) { argument
103 efi_file_protocol* file = xefi_open_file(filename);
/fuchsia/zircon/system/core/userboot/
H A Dbootfs.h23 struct bootfs *fs, const char* filename);
H A Duserboot-elf.h29 const char* filename, zx_handle_t to_child,
/fuchsia/zircon/system/host/fidl/lib/
H A Dsource_location.cpp14 std::string position(source_file_->filename());
H A Dsource_file.cpp14 SourceFile::SourceFile(std::string filename, std::string data) argument
15 : filename_(std::move(filename)), data_(std::move(data)) {
/fuchsia/zircon/system/uapp/audio/
H A Dwav-common.cpp27 zx_status_t WAVCommon::Initialize(const char* filename, InitMode mode) { argument
29 printf("Failed to initialize WAVCommon for \"%s\", already initialized\n", filename);
36 fd_ = ::open(filename, flags);
38 printf("Failed to open \"%s\" (res %d)\n", filename, fd_);
H A Dwav-source.h16 zx_status_t Initialize(const char* filename);
/fuchsia/zircon/system/utest/fs/
H A Dtest-lseek.cpp27 const char* const filename = "::lseek_position"; local
28 fbl::unique_fd fd(open(filename, O_CREAT | O_RDWR));
56 ASSERT_EQ(unlink(filename), 0);
63 const char* const filename = "::lseek_out_of_bounds"; local
64 fbl::unique_fd fd(open(filename, O_CREAT | O_RDWR));
87 ASSERT_EQ(unlink(filename), 0);
94 const char* const filename = "::lseek_zero_fill"; local
95 fbl::unique_fd fd(open(filename, O_CREAT | O_RDWR));
167 ASSERT_EQ(unlink(filename), 0);
H A Dtest-unlink.cpp109 const char* filename = "::file"; local
110 int fd = open(filename, O_RDWR | O_CREAT | O_EXCL, 0644);
112 ASSERT_EQ(remove(filename), 0);
113 ASSERT_EQ(remove(filename), -1);
/fuchsia/zircon/system/utest/fs-host/
H A Dtest-sparse.cpp17 char filename[20]; local
18 sprintf(filename, "::my_file_%u", count++);
20 int fd = emu_open(filename, O_RDWR | O_CREAT, 0644);
37 fd = emu_open(filename, O_RDWR, 0644);
/fuchsia/zircon/third_party/ulib/jemalloc/test/unit/
H A Dprof_idump.c19 prof_dump_open_intercept(bool propagate_err, const char *filename) argument
/fuchsia/zircon/system/host/fidl/compiler/
H A Dmain.cpp101 void MakeParentDirectory(const std::string& filename) { argument
105 slash = filename.find('/', slash);
106 if (slash == filename.npos) {
110 std::string path = filename.substr(0, slash);
119 path.data(), filename.data(), strerror(errno));
124 std::fstream Open(std::string filename, std::ios::openmode mode) { argument
126 MakeParentDirectory(filename);
130 stream.open(filename, mode);
132 Fail("Could not open file: %s\n", filename.data());
176 ResponseFileArguments(fidl::StringView filename) argument
[all...]
/fuchsia/zircon/kernel/lib/vdso/
H A Drules.mk19 vdso-filename := $(BUILDDIR)/system/ulib/zircon/libzircon.so
22 MODULE_SRCDEPS += $(vdso-filename).strip
27 $(BUILDDIR)/$(LOCAL_DIR)/vdso-code.h: scripts/gen-rodso-code.sh $(vdso-filename)
31 $@.new VDSO $(vdso-filename)
/fuchsia/zircon/third_party/ulib/backtrace/include/backtrace/
H A Dbacktrace.h81 const char *filename, int threaded,
127 const char *filename, int lineno,
172 callback function with filename, line number, and function name
/fuchsia/zircon/system/uapp/xdc-test/
H A Dxdc-test.cpp34 " -f <filename> : Name of file to write to or read from.\n"
114 const char* filename = nullptr; local
132 filename = optarg;
145 if (!filename) {
159 fbl::unique_fd file_fd(open(filename, file_flags, 0666));
161 fprintf(stderr, "Failed to open \"%s\", err %s\n", filename, strerror(errno));
/fuchsia/zircon/bootloader/src/
H A Dnetboot.c119 const char* filename; local
121 filename = &((const char*)msg->data)[prefix_len];
123 filename = (const char*)msg->data;
125 printf("netboot: Receive File '%s'...\n", filename);
185 static tftp_status buffer_open(const char* filename, size_t size, void* cookie) { argument
187 file_info->netboot_file_data = netboot_get_buffer(filename, size);
189 printf("netboot: unrecognized file %s - rejecting\n", filename);
195 if (!strncmp(filename, NB_FILENAME_PREFIX, prefix_len)) {
196 base_filename = &filename[prefix_len];
198 base_filename = filename;
[all...]
/fuchsia/zircon/system/host/kernel-buildsig/
H A Dkernel-buildsig.cpp211 const char* filename; local
215 filename = "<standard input>";
219 filename = argv[1];
220 input = fopen(filename, "rb");
223 argv[0], filename, strerror(errno));
237 argv[0], filename, strerror(errno));
240 argv[0], filename);
/fuchsia/zircon/system/utest/memfs/
H A Dmemfs-tests.cpp61 const char* filename = "file-a"; local
62 fd = openat(dirfd(d), filename, O_CREAT | O_RDWR);
77 ASSERT_EQ(strcmp(de->d_name, filename), 0);
112 const char* filename = "file-a"; local
113 fbl::unique_fd fd = fbl::unique_fd(openat(dirfd(d), filename, O_CREAT | O_RDWR));
157 fd = fbl::unique_fd(openat(dirfd(d), filename, O_CREAT | O_RDWR));
185 const char* filename = "file-a"; local
186 fd = openat(dirfd(d), filename, O_CREAT | O_RDWR);
201 ASSERT_EQ(strcmp(de->d_name, filename), 0);
/fuchsia/zircon/system/host/fidl/formatter/
H A Dmain.cpp112 const char* filename = source_file->filename().data(); local
113 out_file = fopen(filename, "w+");
116 error.append(filename);
/fuchsia/zircon/bootloader/include/
H A Dxefi.h32 efi_file_protocol* xefi_open_file(char16_t* filename);
34 void* xefi_load_file(char16_t* filename, size_t* size_out, size_t front_bytes);
/fuchsia/zircon/system/ulib/tftp/
H A Dtftp-example.c157 fprintf(stdout, "tftp (-s filename|-r)\n");
158 fprintf(stdout, "\t -s filename to send the provided file\n");
162 ssize_t open_read_file(const char* filename, void* file_cookie) { argument
163 fprintf(stdout, "Opening %s for reading\n", filename);
164 int fd = open(filename, O_RDONLY);
179 tftp_status open_write_file(const char* filename, size_t size, void* file_cookie) { argument
180 fprintf(stdout, "Opening %s for writing\n", filename);
181 int fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC,
223 const char* filename) {
238 tftp_push_file(session, connection, &file_cookie, filename,
221 tftp_send_file_wrapper(tftp_session* session, connection_t* connection, const char* filename) argument
[all...]
/fuchsia/zircon/third_party/uapp/dash/src/
H A Dprocess.c25 static zx_status_t launch(const char* filename, const char* const* argv, argument
36 return fdio_spawn_etc(job, flags, filename, argv, envp, 0, NULL, process, err_msg);
122 const char* filename = NULL; local
123 while (status != ZX_OK && (filename = padvance(&path, argv[0])) != NULL) {
125 status = launch(filename, argv, envp, process, job, err_msg);
126 stunalloc(filename);

Completed in 94 milliseconds

1234