/external/tensorflow/tensorflow/core/platform/s3/ |
D | s3_file_system_test.cc | 41 Status WriteString(const string& fname, const string& content) { in WriteString() argument 43 TF_RETURN_IF_ERROR(s3fs.NewWritableFile(fname, &writer)); in WriteString() 49 Status ReadAll(const string& fname, string* content) { in ReadAll() argument 51 TF_RETURN_IF_ERROR(s3fs.NewRandomAccessFile(fname, &reader)); in ReadAll() 54 TF_RETURN_IF_ERROR(s3fs.GetFileSize(fname, &file_size)); in ReadAll() 71 const string fname = TmpDir("RandomAccessFile"); in TEST_F() local 74 TF_ASSERT_OK(WriteString(fname, content)); in TEST_F() 77 TF_EXPECT_OK(s3fs.NewRandomAccessFile(fname, &reader)); in TEST_F() 96 const string fname = TmpDir("WritableFile"); in TEST_F() local 97 TF_EXPECT_OK(s3fs.NewWritableFile(fname, &writer)); in TEST_F() [all …]
|
/external/elfutils/tests/ |
D | elfstrmerge.c | 96 fail (const char *msg, const char *fname) in fail() argument 99 if (fname != NULL) in fail() 100 error (1, 0, "%s: %s", fname, msg); in fail() 107 fail_errno (const char *msg, const char *fname) in fail_errno() argument 110 if (fname != NULL) in fail_errno() 111 error (1, errno, "%s: %s", fname, msg); in fail_errno() 118 fail_idx (const char *msg, const char *fname, size_t idx) in fail_idx() argument 121 if (fname != NULL) in fail_idx() 122 error (1, 0, "%s: %s %zd", fname, msg, idx); in fail_idx() 129 fail_elf (const char *msg, const char *fname) in fail_elf() argument [all …]
|
/external/tensorflow/tensorflow/core/platform/hadoop/ |
D | hadoop_file_system_test.cc | 41 Status WriteString(const string& fname, const string& content) { in WriteString() argument 43 TF_RETURN_IF_ERROR(hdfs.NewWritableFile(fname, &writer)); in WriteString() 49 Status ReadAll(const string& fname, string* content) { in ReadAll() argument 51 TF_RETURN_IF_ERROR(hdfs.NewRandomAccessFile(fname, &reader)); in ReadAll() 54 TF_RETURN_IF_ERROR(hdfs.GetFileSize(fname, &file_size)); in ReadAll() 71 const string fname = TmpDir("RandomAccessFile"); in TEST_F() local 73 TF_ASSERT_OK(WriteString(fname, content)); in TEST_F() 76 TF_EXPECT_OK(hdfs.NewRandomAccessFile(fname, &reader)); in TEST_F() 80 EXPECT_EQ(result, fname); in TEST_F() 98 const string fname = TmpDir("WritableFile"); in TEST_F() local [all …]
|
/external/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify01.c | 53 static char fname[BUF_SIZE]; variable 74 AT_FDCWD, fname) < 0) { in test_fanotify() 83 "failed", fd_notify, mark->name, fname); in test_fanotify() 89 fd = SAFE_OPEN(fname, O_RDONLY); in test_fanotify() 108 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700); in test_fanotify() 112 SAFE_WRITE(1, fd, fname, strlen(fname)); in test_fanotify() 134 FAN_ACCESS, AT_FDCWD, fname) < 0) { in test_fanotify() 138 "failed", fd_notify, mark->name, fname); in test_fanotify() 141 fd = SAFE_OPEN(fname, O_RDWR); in test_fanotify() 157 SAFE_WRITE(1, fd, fname, 1); in test_fanotify() [all …]
|
/external/tensorflow/tensorflow/core/platform/ |
D | env.cc | 95 Status Env::GetFileSystemForFile(const string& fname, FileSystem** result) { in GetFileSystemForFile() argument 97 io::ParseURI(fname, &scheme, &host, &path); in GetFileSystemForFile() 105 "' not implemented (file: '", fname, "')"); in GetFileSystemForFile() 132 Status Env::NewRandomAccessFile(const string& fname, in NewRandomAccessFile() argument 135 TF_RETURN_IF_ERROR(GetFileSystemForFile(fname, &fs)); in NewRandomAccessFile() 136 return fs->NewRandomAccessFile(fname, result); in NewRandomAccessFile() 140 const string& fname, std::unique_ptr<ReadOnlyMemoryRegion>* result) { in NewReadOnlyMemoryRegionFromFile() argument 142 TF_RETURN_IF_ERROR(GetFileSystemForFile(fname, &fs)); in NewReadOnlyMemoryRegionFromFile() 143 return fs->NewReadOnlyMemoryRegionFromFile(fname, result); in NewReadOnlyMemoryRegionFromFile() 146 Status Env::NewWritableFile(const string& fname, in NewWritableFile() argument [all …]
|
/external/zlib/src/contrib/untgz/ |
D | untgz.c | 98 char *fname; member 206 int setfiletime (char *fname,time_t ftime) in setfiletime() argument 234 hFile = CreateFile(fname, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, in setfiletime() 246 return utime(fname,&settime); in setfiletime() 253 void push_attr(struct attr_item **list,char *fname,int mode,time_t time) in push_attr() argument 260 item->fname = strdup(fname); in push_attr() 276 setfiletime(item->fname,item->time); in restore_attr() 277 chmod(item->fname,item->mode); in restore_attr() 371 int matchname (int arg,int argc,char **argv,char *fname) in matchname() argument 377 if (ExprMatch(fname,argv[arg++])) in matchname() [all …]
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl10.c | 127 char fname[255]; variable 165 fname, type ? "F_RDLCK" : "F_WRLCK", in main() 170 fname, type ? "F_RDLCK" : "F_WRLCK", in main() 184 fname, TEST_ERRNO, in main() 190 fname, TEST_RETURN); in main() 212 sprintf(fname, "tfile_%d", getpid()); in setup() 213 if ((fd = creat(fname, 0644)) == -1) { in setup() 215 "creat(%s, 0644) Failed, errno=%d : %s", fname, errno, in setup() 219 fname, errno, strerror(errno)); in setup() 220 } else if ((fd = open(fname, O_RDWR, 0700)) == -1) { in setup() [all …]
|
D | fcntl09.c | 127 char fname[255]; variable 165 fname, type ? "F_RDLCK" : "F_WRLCK", in main() 171 fname, in main() 186 fname, TEST_ERRNO, in main() 191 fname, TEST_RETURN); in main() 213 sprintf(fname, "./file_%d", getpid()); in setup() 214 if ((fd = creat(fname, 0644)) == -1) { in setup() 216 "creat(%s, 0644) Failed, errno=%d : %s", fname, errno, in setup() 220 fname, errno, strerror(errno)); in setup() 221 } else if ((fd = open(fname, O_RDWR, 0700)) == -1) { in setup() [all …]
|
/external/u-boot/arch/sandbox/cpu/ |
D | os.c | 322 char *fname; in os_dirent_ls() local 335 fname = malloc(len); in os_dirent_ls() 336 if (!fname) { in os_dirent_ls() 356 old_fname = fname; in os_dirent_ls() 357 fname = realloc(fname, len); in os_dirent_ls() 358 if (!fname) { in os_dirent_ls() 382 snprintf(fname, len, "%s/%s", dirname, next->name); in os_dirent_ls() 383 if (!stat(fname, &buf)) in os_dirent_ls() 394 free(fname); in os_dirent_ls() 413 int os_get_filesize(const char *fname, loff_t *size) in os_get_filesize() argument [all …]
|
/external/ltp/testcases/kernel/syscalls/setxattr/ |
D | setxattr02.c | 77 char *fname; member 87 .fname = FILENAME, 95 .fname = DIRNAME, 103 .fname = SYMLINK, 112 .fname = FIFO, 120 .fname = CHR, 128 .fname = BLK, 136 .fname = SOCK, 149 SAFE_SETXATTR(tc[i].fname, tc[i].key, tc[i].value, tc[i].size, in verify_setxattr() 153 TEST(setxattr(tc[i].fname, tc[i].key, tc[i].value, tc[i].size, in verify_setxattr() [all …]
|
/external/python/cpython3/Tools/scripts/ |
D | gprof2html.py | 50 stuff, fname = m.group(1, 2) 51 labels[fname] = fname 53 (stuff, fname, fname, fname)) 65 prefix, fname, suffix = m.group(1, 2, 3) 66 if fname not in labels: 71 (prefix, fname, fname, fname, suffix)) 74 (prefix, fname, fname, suffix))
|
/external/python/cpython2/Tools/scripts/ |
D | gprof2html.py | 44 stuff, fname = m.group(1, 2) 45 labels[fname] = fname 47 (stuff, fname, fname, fname)) 59 prefix, fname, suffix = m.group(1, 2, 3) 60 if fname not in labels: 65 (prefix, fname, fname, fname, suffix)) 68 (prefix, fname, fname, suffix))
|
/external/ltp/testcases/kernel/syscalls/link/ |
D | link05.c | 58 static char fname[255]; variable 94 sprintf(lname, "%s%d", fname, cnt); in main() 95 TEST(link(fname, lname)); in main() 100 fname, lname, TEST_ERRNO, in main() 105 SAFE_STAT(cleanup, fname, &fbuf); in main() 108 sprintf(lname, "%s%d", fname, cnt); in main() 117 fname, fname, nlinks, in main() 127 fname, fname, nlinks, TEST_RETURN, in main() 132 sprintf(lname, "%s%d", fname, cnt); in main() 154 sprintf(fname, "%s_%d", BASENAME, getpid()); in setup() [all …]
|
/external/ppp/pppd/plugins/radius/ |
D | radattr.c | 70 char fname[512]; in print_attributes() local 75 slprintf(fname, sizeof(fname), "/var/run/radattr.%s", ifname); in print_attributes() 76 fp = fopen(fname, "w"); in print_attributes() 78 warn("radattr plugin: Could not open %s for writing: %m", fname); in print_attributes() 90 dbglog("RADATTR plugin wrote %d line(s) to file %s.", cnt, fname); in print_attributes() 106 char fname[512]; in cleanup() local 108 slprintf(fname, sizeof(fname), "/var/run/radattr.%s", ifname); in cleanup() 109 (void) remove(fname); in cleanup() 110 dbglog("RADATTR plugin removed file %s.", fname); in cleanup()
|
/external/tensorflow/tensorflow/core/lib/io/ |
D | buffered_inputstream_test.cc | 35 string fname = testing::TmpDir() + "/buffered_inputstream_test"; in TEST() local 36 TF_ASSERT_OK(WriteStringToFile(env, fname, "")); in TEST() 38 TF_ASSERT_OK(env->NewRandomAccessFile(fname, &file)); in TEST() 51 string fname = testing::TmpDir() + "/buffered_inputstream_test"; in TEST() local 53 WriteStringToFile(env, fname, "line one\nline two\nline three\n")); in TEST() 55 TF_ASSERT_OK(env->NewRandomAccessFile(fname, &file)); in TEST() 76 string fname = testing::TmpDir() + "/buffered_inputstream_test"; in TEST() local 77 TF_ASSERT_OK(WriteStringToFile(env, fname, "line one\nline two\nline three")); in TEST() 79 TF_ASSERT_OK(env->NewRandomAccessFile(fname, &file)); in TEST() 100 string fname = testing::TmpDir() + "/buffered_inputstream_test"; in TEST() local [all …]
|
/external/tensorflow/tensorflow/core/platform/posix/ |
D | posix_file_system.cc | 51 PosixRandomAccessFile(const string& fname, int fd) in PosixRandomAccessFile() argument 52 : filename_(fname), fd_(fd) {} in PosixRandomAccessFile() 89 PosixWritableFile(const string& fname, FILE* f) in PosixWritableFile() argument 90 : filename_(fname), file_(f) {} in PosixWritableFile() 164 const string& fname, std::unique_ptr<RandomAccessFile>* result) { in NewRandomAccessFile() argument 165 string translated_fname = TranslateName(fname); in NewRandomAccessFile() 169 s = IOError(fname, errno); in NewRandomAccessFile() 176 Status PosixFileSystem::NewWritableFile(const string& fname, in NewWritableFile() argument 178 string translated_fname = TranslateName(fname); in NewWritableFile() 182 s = IOError(fname, errno); in NewWritableFile() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | SIPObject.java | 111 String fname = fieldType.toString(); in equals() local 112 if (fname.compareTo("int") == 0) { in equals() 115 } else if (fname.compareTo("short") == 0) { in equals() 118 } else if (fname.compareTo("char") == 0) { in equals() 121 } else if (fname.compareTo("long") == 0) { in equals() 124 } else if (fname.compareTo("boolean") == 0) { in equals() 127 } else if (fname.compareTo("double") == 0) { in equals() 130 } else if (fname.compareTo("float") == 0) { in equals() 201 String fname = fieldType.toString(); in match() local 202 if (fname.compareTo("int") == 0) { in match() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/address/ |
D | NetObject.java | 109 String fname = fieldType.toString(); in equals() local 110 if (fname.compareTo("int") == 0) { in equals() 113 } else if (fname.compareTo("short") == 0) { in equals() 116 } else if (fname.compareTo("char") == 0) { in equals() 119 } else if (fname.compareTo("long") == 0) { in equals() 122 } else if (fname.compareTo("boolean") == 0) { in equals() 125 } else if (fname.compareTo("double") == 0) { in equals() 128 } else if (fname.compareTo("float") == 0) { in equals() 199 String fname = fieldType.toString(); in match() local 200 if (fname.compareTo("int") == 0) { in match() [all …]
|
/external/tensorflow/tensorflow/contrib/android/ |
D | asset_manager_filesystem.cc | 127 Status AssetManagerFileSystem::FileExists(const string& fname) { in FileExists() argument 128 string path = RemoveAssetPrefix(fname); in FileExists() 132 return errors::NotFound("File ", fname, " not found."); in FileExists() 138 const string& fname, std::unique_ptr<RandomAccessFile>* result) { in NewRandomAccessFile() argument 139 string path = RemoveAssetPrefix(fname); in NewRandomAccessFile() 143 return errors::NotFound("File ", fname, " not found."); in NewRandomAccessFile() 150 const string& fname, std::unique_ptr<ReadOnlyMemoryRegion>* result) { in NewReadOnlyMemoryRegionFromFile() argument 151 string path = RemoveAssetPrefix(fname); in NewReadOnlyMemoryRegionFromFile() 155 return errors::NotFound("File ", fname, " not found."); in NewReadOnlyMemoryRegionFromFile() 165 return errors::Internal("Error reading from file ", fname, in NewReadOnlyMemoryRegionFromFile() [all …]
|
/external/ltp/testcases/commands/tar/ |
D | tar_tests.sh | 71 local fname="$1" 75 EXPECT_PASS tar t${verbose}f "$fname" \> tar.out 94 local fname="$1" 98 EXPECT_PASS tar x${verbose}f $fname \> tar.out 108 local fname="$3" 113 EXPECT_PASS tar c${verbose}f$comp $fname $TAR_FILES \> tar.out 117 EXPECT_PASS tar d${verbose}f $fname \> tar.out 123 check_content $fname "$verbose" $TAR_FILES 126 check_extraction $fname "$verbose" $TAR_FILES 131 EXPECT_PASS tar r${verbose}f $fname file4 \> tar.out [all …]
|
/external/u-boot/scripts/dtc/ |
D | srcpos.c | 71 static char *try_open(const char *dirname, const char *fname, FILE **fp) in try_open() argument 75 if (!dirname || fname[0] == '/') in try_open() 76 fullname = xstrdup(fname); in try_open() 78 fullname = join_path(dirname, fname); in try_open() 98 static char *fopen_any_on_path(const char *fname, FILE **fp) in fopen_any_on_path() argument 108 fullname = try_open(cur_dir, fname, fp); in fopen_any_on_path() 112 fullname = try_open(node->dirname, fname, fp); in fopen_any_on_path() 117 FILE *srcfile_relative_open(const char *fname, char **fullnamep) in srcfile_relative_open() argument 122 if (streq(fname, "-")) { in srcfile_relative_open() 126 fullname = fopen_any_on_path(fname, &f); in srcfile_relative_open() [all …]
|
/external/dtc/ |
D | srcpos.c | 71 static char *try_open(const char *dirname, const char *fname, FILE **fp) in try_open() argument 75 if (!dirname || fname[0] == '/') in try_open() 76 fullname = xstrdup(fname); in try_open() 78 fullname = join_path(dirname, fname); in try_open() 98 static char *fopen_any_on_path(const char *fname, FILE **fp) in fopen_any_on_path() argument 108 fullname = try_open(cur_dir, fname, fp); in fopen_any_on_path() 112 fullname = try_open(node->dirname, fname, fp); in fopen_any_on_path() 117 FILE *srcfile_relative_open(const char *fname, char **fullnamep) in srcfile_relative_open() argument 122 if (streq(fname, "-")) { in srcfile_relative_open() 126 fullname = fopen_any_on_path(fname, &f); in srcfile_relative_open() [all …]
|
/external/ltp/testcases/kernel/syscalls/fsetxattr/ |
D | fsetxattr02.c | 62 char *fname; member 75 .fname = FILENAME, 84 .fname = DIRNAME, 93 .fname = SYMLINK, 103 .fname = FIFO, 112 .fname = CHR, 121 .fname = BLK, 130 .fname = SOCK, 143 const char *fname = strstr(tc[i].fname, "fsetxattr02") + OFFSET; in verify_fsetxattr() local 163 fname, TST_RET); in verify_fsetxattr() [all …]
|
/external/autotest/client/cros/ |
D | kernel_trace.py | 78 fname = os.path.join(self._TRACE_ROOT, 'tracing_on') 79 result = int(utils.read_one_line(fname).strip()) 101 fname = os.path.join(self._TRACE_ROOT, 'tracing_on') 102 result = int(utils.read_one_line(fname).strip()) 125 fname = os.path.join(self._TRACE_ROOT, 'events', event_path, 'enable') 127 if not os.path.exists(fname): 128 logging.warning("Unable to locate tracing event %s", fname) 130 utils.write_one_line(fname, val) 132 fname = os.path.join(self._TRACE_ROOT, "set_event") 134 with open(fname) as fd: [all …]
|
/external/strace/tests-m32/ |
D | chmod.c | 42 static const char fname[] = "chmod_test_file"; in main() local 44 if (open(fname, O_CREAT|O_RDONLY, 0400) < 0) in main() 47 long rc = syscall(__NR_chmod, fname, 0600); in main() 48 printf("chmod(\"%s\", 0600) = %s\n", fname, sprintrc(rc)); in main() 50 if (unlink(fname)) in main() 53 rc = syscall(__NR_chmod, fname, 051); in main() 54 printf("chmod(\"%s\", 051) = %s\n", fname, sprintrc(rc)); in main() 56 rc = syscall(__NR_chmod, fname, 004); in main() 57 printf("chmod(\"%s\", 004) = %s\n", fname, sprintrc(rc)); in main()
|