/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | bpf_trace_helpers.h | 31 #define BPF_TRACE_x(x, sec_name, fname, ret_type, ...) \ argument 33 ____##fname(__BPF_MAP(x, __BPF_DECL_ARGS, __BPF_V, __VA_ARGS__)); \ 36 ret_type fname(__u64 *ctx) \ 38 return ____##fname(__BPF_MAP(x, __BPF_CAST, __BPF_N, __VA_ARGS__));\ 42 ret_type ____##fname(__BPF_MAP(x, __BPF_DECL_ARGS, __BPF_V, __VA_ARGS__)) 44 #define BPF_TRACE_0(sec, fname, ...) BPF_TRACE_x(0, sec, fname, int, __VA_ARGS__) argument 45 #define BPF_TRACE_1(sec, fname, ...) BPF_TRACE_x(1, sec, fname, int, __VA_ARGS__) argument 46 #define BPF_TRACE_2(sec, fname, ...) BPF_TRACE_x(2, sec, fname, int, __VA_ARGS__) argument 47 #define BPF_TRACE_3(sec, fname, ...) BPF_TRACE_x(3, sec, fname, int, __VA_ARGS__) argument 48 #define BPF_TRACE_4(sec, fname, ...) BPF_TRACE_x(4, sec, fname, int, __VA_ARGS__) argument [all …]
|
/external/toolchain-utils/heatmaps/ |
D | heatmap_generator_test.py | 74 fname = 'test.txt' 75 with open(fname, 'w') as f: 78 self.addCleanup(_cleanup, fname) 79 _heatmap(fname) 88 fname = 'test.txt' 89 with open(fname, 'w') as f: 94 self.addCleanup(_cleanup, fname) 95 _heatmap(fname) 106 fname = 'test_fork.txt' 107 with open(fname, 'w') as f: [all …]
|
/external/dtc/ |
D | srcpos.c | 47 static void set_initial_path(char *fname) in set_initial_path() argument 49 int i, len = strlen(fname); in set_initial_path() 51 xasprintf(&initial_path, "%s", fname); in set_initial_path() 58 static char *shorten_to_initial_path(char *fname) in shorten_to_initial_path() argument 63 for (p1 = fname, p2 = initial_path; *p1 && *p2; p1++, p2++) { in shorten_to_initial_path() 74 int restlen = strlen(fname) - (p1 - fname); in shorten_to_initial_path() 100 static char *try_open(const char *dirname, const char *fname, FILE **fp) in try_open() argument 104 if (!dirname || fname[0] == '/') in try_open() 105 fullname = xstrdup(fname); in try_open() 107 fullname = join_path(dirname, fname); in try_open() [all …]
|
/external/tensorflow/tensorflow/core/platform/s3/ |
D | s3_file_system_test.cc | 42 Status WriteString(const string& fname, const string& content) { in WriteString() argument 44 TF_RETURN_IF_ERROR(s3fs.NewWritableFile(fname, &writer)); in WriteString() 50 Status ReadAll(const string& fname, string* content) { in ReadAll() argument 52 TF_RETURN_IF_ERROR(s3fs.NewRandomAccessFile(fname, &reader)); in ReadAll() 55 TF_RETURN_IF_ERROR(s3fs.GetFileSize(fname, &file_size)); in ReadAll() 67 Status ReadAllInChunks(const string& fname, string* content, in ReadAllInChunks() argument 71 TF_RETURN_IF_ERROR(s3fs.NewRandomAccessFile(fname, nullptr, &reader, in ReadAllInChunks() 75 TF_RETURN_IF_ERROR(s3fs.GetFileSize(fname, &file_size)); in ReadAllInChunks() 137 const string fname = TmpDir(large_file_name); in ReadLargeFile() local 143 TF_RETURN_IF_ERROR(ReadAllInChunks(fname, &content_xfer)); in ReadLargeFile() [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() 70 const string fname = TmpDir("RandomAccessFile"); in TEST_F() local 72 TF_ASSERT_OK(WriteString(fname, content)); in TEST_F() 75 TF_EXPECT_OK(hdfs.NewRandomAccessFile(fname, &reader)); in TEST_F() 79 EXPECT_EQ(result, fname); in TEST_F() 96 const string fname = TmpDir("WritableFile"); in TEST_F() local [all …]
|
/external/tensorflow/tensorflow/core/lib/io/ |
D | buffered_inputstream_test.cc | 66 string fname; in TEST() local 67 ASSERT_TRUE(env->LocalTempFilename(&fname)); in TEST() 68 TF_ASSERT_OK(WriteStringToFile(env, fname, "")); in TEST() 70 TF_ASSERT_OK(env->NewRandomAccessFile(fname, &file)); in TEST() 83 string fname; in TEST() local 84 ASSERT_TRUE(env->LocalTempFilename(&fname)); in TEST() 86 WriteStringToFile(env, fname, "line one\nline two\nline three\n")); in TEST() 88 TF_ASSERT_OK(env->NewRandomAccessFile(fname, &file)); in TEST() 109 string fname; in TEST() local 110 ASSERT_TRUE(env->LocalTempFilename(&fname)); in TEST() [all …]
|
D | inputbuffer_test.cc | 40 string fname; in TEST() local 41 ASSERT_TRUE(env->LocalTempFilename(&fname)); in TEST() 42 TF_ASSERT_OK(WriteStringToFile(env, fname, "")); in TEST() 46 TF_CHECK_OK(env->NewRandomAccessFile(fname, &file)); in TEST() 55 string fname; in TEST() local 56 ASSERT_TRUE(env->LocalTempFilename(&fname)); in TEST() 58 WriteStringToFile(env, fname, "line one\nline two\nline three\n")); in TEST() 62 TF_CHECK_OK(env->NewRandomAccessFile(fname, &file)); in TEST() 79 string fname; in TEST() local 80 ASSERT_TRUE(env->LocalTempFilename(&fname)); in TEST() [all …]
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
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 …]
|
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 …]
|
/external/tensorflow/tensorflow/core/platform/ |
D | ram_file_system.h | 109 const string& fname, TransactionToken* token, in NewRandomAccessFile() argument 112 if (fs_.find(fname) == fs_.end()) { in NewRandomAccessFile() 116 new RamRandomAccessFile(fname, fs_[fname])); in NewRandomAccessFile() 120 Status NewWritableFile(const string& fname, TransactionToken* token, in NewWritableFile() argument 123 if (fs_.find(fname) == fs_.end()) { in NewWritableFile() 124 fs_[fname] = std::make_shared<std::string>(); in NewWritableFile() 127 new RamRandomAccessFile(fname, fs_[fname])); in NewWritableFile() 130 Status NewAppendableFile(const string& fname, TransactionToken* token, in NewAppendableFile() argument 133 if (fs_.find(fname) == fs_.end()) { in NewAppendableFile() 134 fs_[fname] = std::make_shared<std::string>(); in NewAppendableFile() [all …]
|
D | env.cc | 112 Status Env::GetFileSystemForFile(const std::string& fname, in GetFileSystemForFile() argument 115 io::ParseURI(fname, &scheme, &host, &path); in GetFileSystemForFile() 123 "' not implemented (file: '", fname, "')"); in GetFileSystemForFile() 155 Status Env::NewRandomAccessFile(const string& fname, in NewRandomAccessFile() argument 158 TF_RETURN_IF_ERROR(GetFileSystemForFile(fname, &fs)); in NewRandomAccessFile() 159 return fs->NewRandomAccessFile(fname, result); in NewRandomAccessFile() 163 const string& fname, std::unique_ptr<ReadOnlyMemoryRegion>* result) { in NewReadOnlyMemoryRegionFromFile() argument 165 TF_RETURN_IF_ERROR(GetFileSystemForFile(fname, &fs)); in NewReadOnlyMemoryRegionFromFile() 166 return fs->NewReadOnlyMemoryRegionFromFile(fname, result); in NewReadOnlyMemoryRegionFromFile() 169 Status Env::NewWritableFile(const string& fname, in NewWritableFile() argument [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/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify01.c | 74 static char fname[BUF_SIZE]; variable 106 AT_FDCWD, fname) < 0) { in test_fanotify() 115 "failed", fd_notify, mark->name, fname); in test_fanotify() 121 fd = SAFE_OPEN(fname, O_RDONLY); in test_fanotify() 140 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700); in test_fanotify() 144 SAFE_WRITE(1, fd, fname, strlen(fname)); in test_fanotify() 166 FAN_ACCESS, AT_FDCWD, fname) < 0) { in test_fanotify() 170 "failed", fd_notify, mark->name, fname); in test_fanotify() 173 fd = SAFE_OPEN(fname, O_RDWR); in test_fanotify() 189 SAFE_WRITE(1, fd, fname, 1); in test_fanotify() [all …]
|
/external/ltp/testcases/kernel/syscalls/setxattr/ |
D | setxattr02.c | 58 char *fname; member 68 .fname = FILENAME, 76 .fname = DIRNAME, 84 .fname = SYMLINK, 93 .fname = FIFO, 101 .fname = CHR, 109 .fname = BLK, 117 .fname = SOCK, 130 SAFE_SETXATTR(tc[i].fname, tc[i].key, tc[i].value, tc[i].size, in verify_setxattr() 134 TEST(setxattr(tc[i].fname, tc[i].key, tc[i].value, tc[i].size, in verify_setxattr() [all …]
|
/external/rust/crates/libz-sys/src/zlib/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/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/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/python/cpython3/Tools/scripts/ |
D | gprof2html.py | 43 stuff, fname = m.group(1, 2) 44 labels[fname] = fname 46 (stuff, fname, fname, fname)) 58 prefix, fname, suffix = m.group(1, 2, 3) 59 if fname not in labels: 64 (prefix, fname, fname, fname, suffix)) 67 (prefix, fname, fname, suffix))
|
/external/ltp/testcases/commands/tar/ |
D | tar_tests.sh | 53 local fname="$1" 57 EXPECT_PASS tar t${verbose}f "$fname" \> tar.out 76 local fname="$1" 80 EXPECT_PASS tar x${verbose}f $fname \> tar.out 90 local fname="$3" 95 EXPECT_PASS tar c${verbose}f$comp $fname $TAR_FILES \> tar.out 99 EXPECT_PASS tar d${verbose}f $fname \> tar.out 105 check_content $fname "$verbose" $TAR_FILES 108 check_extraction $fname "$verbose" $TAR_FILES 113 EXPECT_PASS tar r${verbose}f $fname file4 \> tar.out [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()
|
/external/strace/tests/ |
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()
|
/external/strace/tests-mx32/ |
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()
|
/external/angle/scripts/ |
D | run_code_generation.py | 147 def md5(fname): argument 149 with open(fname, "r") as f: 162 for fname in filenames: 163 if not os.path.isfile(fname): 164 print('File not found: "%s". Code gen dirty for %s' % (fname, name)) 167 new_hashes[fname] = md5(fname) 168 if (not fname in old_hashes) or (old_hashes[fname] != new_hashes[fname]): 169 print('Hash for "%s" dirty for %s generator.' % (fname, name)) 221 fname = get_hash_file_name(name) 224 if fname not in all_old_hashes: [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 …]
|