/third_party/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 …]
|
/third_party/ltp/testcases/kernel/syscalls/link/ |
D | link05.c | 19 static char fname[255]; variable 30 sprintf(lname, "%s_%d", fname, cnt); in verify_link() 31 TST_EXP_PASS_SILENT(link(fname, lname), "link(%s, %s)", fname, lname); in verify_link() 34 SAFE_STAT(fname, &fbuf); in verify_link() 37 sprintf(lname, "%s_%d", fname, cnt); in verify_link() 46 fname, fname, nlinks, in verify_link() 57 fname, fname, nlinks, TST_RET, in verify_link() 62 sprintf(lname, "%s_%d", fname, cnt); in verify_link() 69 sprintf(fname, "%s_%d", BASENAME, getpid()); in setup() 70 SAFE_TOUCH(fname, 0700, NULL); in setup()
|
D | link03.c | 59 static char fname[255]; variable 104 sprintf(lname, "%s%d", fname, i); in main() 105 TEST(link(fname, lname)); in main() 109 "link(%s, %s) Failed", fname, lname); in main() 113 SAFE_STAT(cleanup, fname, &buf); in main() 118 fname, (int)buf.st_nlink, links); in main() 123 sprintf(lname, "%s%d", fname, i); in main() 138 sprintf(lname, "%s%d", fname, i); in main() 160 sprintf(fname, "%s_%d", BASENAME, getpid()); in setup() 161 SAFE_TOUCH(cleanup, fname, 0700, NULL); in setup()
|
/third_party/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 …]
|
D | fcntl23.c | 103 char fname[255]; variable 142 fname, TEST_ERRNO, strerror(TEST_ERRNO)); in main() 149 fname, TEST_RETURN); in main() 155 fname, TEST_RETURN); in main() 159 fname); in main() 165 fname, errno, strerror(errno)); in main() 189 sprintf(fname, "tfile_%d", getpid()); in setup() 190 if ((fd = open(fname, O_RDONLY | O_CREAT, 0777)) == -1) { in setup() 193 fname, errno, strerror(errno)); in setup() 206 tst_resm(TWARN, "close(%s) Failed, errno=%d : %s", fname, errno, in cleanup()
|
/third_party/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 …]
|
/third_party/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 …]
|
/third_party/flutter/skia/third_party/externals/angle2/scripts/ |
D | run_code_generation.py | 115 def md5(fname): argument 117 with open(fname, "r") as f: 130 for fname in filenames: 131 if not os.path.isfile(fname): 132 print('File not found: "%s". Code gen dirty for %s' % (fname, name)) 135 new_hashes[fname] = md5(fname) 136 if (not fname in old_hashes) or (old_hashes[fname] != new_hashes[fname]): 137 print('Hash for "%s" dirty for %s generator.' % (fname, name)) 186 fname = get_hash_file_name(name) 189 if fname not in all_old_hashes: [all …]
|
/third_party/python/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))
|
/third_party/skia/third_party/externals/angle2/scripts/ |
D | run_code_generation.py | 149 def md5(fname): argument 151 with open(fname, "r") as f: 164 for fname in filenames: 165 if not os.path.isfile(fname): 166 print('File not found: "%s". Code gen dirty for %s' % (fname, name)) 169 new_hashes[fname] = md5(fname) 170 if (not fname in old_hashes) or (old_hashes[fname] != new_hashes[fname]): 171 print('Hash for "%s" dirty for %s generator.' % (fname, name)) 223 fname = get_hash_file_name(name) 226 if fname not in all_old_hashes: [all …]
|
/third_party/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 …]
|
/third_party/openssl/tools/ |
D | c_rehash.in | 146 FILE: foreach $fname (grep {/\.(pem)|(crt)|(cer)|(crl)$/} @flist) { 148 my ($cert, $crl) = check_file($fname); 150 print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n"; 153 link_hash_cert($fname) if ($cert); 154 link_hash_crl($fname) if ($crl); 162 my $fname = $_[0]; 164 open(my $in, "<", $fname); 187 print STDERR "Cannot compute hash on '$fname'\n"; 192 print STDERR "Cannot compute hash on '$fname'\n"; 216 my ($fname, $type) = @_; [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify01.c | 75 static char fname[BUF_SIZE]; variable 107 FAN_ACCESS | FAN_MODIFY | FAN_CLOSE | FAN_OPEN, AT_FDCWD, fname); in test_fanotify() 112 fd = SAFE_OPEN(fname, O_RDONLY); in test_fanotify() 131 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700); in test_fanotify() 135 SAFE_WRITE(1, fd, fname, strlen(fname)); in test_fanotify() 157 FAN_ACCESS, AT_FDCWD, fname); in test_fanotify() 159 fd = SAFE_OPEN(fname, O_RDWR); in test_fanotify() 175 SAFE_WRITE(1, fd, fname, 1); in test_fanotify() 202 FAN_OPEN | FAN_CLOSE, AT_FDCWD, fname); in test_fanotify() 205 fd = SAFE_OPEN(fname, O_RDWR); in test_fanotify() [all …]
|
/third_party/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 …]
|
/third_party/flutter/skia/src/ports/skia_ohos/ |
D | FontInfo_ohos.h | 22 FontInfo() : familyName(""), fname(""), index(0), in FontInfo() 31 : familyName(font.familyName), fname(font.fname), index(font.index), in FontInfo() 45 : familyName(std::move(font.familyName)), fname(std::move(font.fname)), index(font.index), in FontInfo() 59 FontInfo(const char* fname, int index) in FontInfo() 60 : familyName(""), fname(""), index(index), in FontInfo() 63 if (fname) { in FontInfo() 64 this->fname.set(fname); in FontInfo() 83 fname = font.fname; 104 fname = std::move(font.fname); 133 SkString fname; // the full name of font file member
|
/third_party/skia/src/ports/skia_ohos/ |
D | FontInfo_ohos.h | 22 FontInfo() : familyName(""), fname(""), index(0), in FontInfo() 31 : familyName(font.familyName), fname(font.fname), index(font.index), in FontInfo() 45 : familyName(std::move(font.familyName)), fname(std::move(font.fname)), index(font.index), in FontInfo() 59 FontInfo(const char* fname, int index) in FontInfo() 60 : familyName(""), fname(""), index(index), in FontInfo() 63 if (fname) { in FontInfo() 64 this->fname.set(fname); in FontInfo() 83 fname = font.fname; 104 fname = std::move(font.fname); 133 SkString fname; // the full name of font file member
|
/third_party/ltp/testcases/kernel/syscalls/fgetxattr/ |
D | fgetxattr02.c | 69 char *fname; member 83 .fname = FILENAME, 94 .fname = DIRNAME, 105 .fname = SYMLINK, 116 .fname = FIFO, 126 .fname = CHR, 137 .fname = BLK, 148 .fname = SOCK, 163 const char *fname = strstr(tc[i].fname, "fgetxattr02") + OFFSET; in verify_fgetxattr() local 174 fname); in verify_fgetxattr() [all …]
|
/third_party/libsnd/examples/ |
D | sndfilehandle.cc | 27 create_file (const char * fname, int format) in create_file() argument 34 printf ("Creating file named '%s'\n", fname) ; in create_file() 36 file = SndfileHandle (fname, SFM_WRITE, format, channels, srate) ; in create_file() 52 read_file (const char * fname) in read_file() argument 57 file = SndfileHandle (fname) ; in read_file() 59 printf ("Opened file '%s'\n", fname) ; in read_file() 72 { const char * fname = "test.wav" ; in main() local 76 create_file (fname, SF_FORMAT_WAV | SF_FORMAT_PCM_16) ; in main() 78 read_file (fname) ; in main()
|
/third_party/elfutils/src/ |
D | size.c | 92 static int process_file (const char *fname); 95 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname); 98 static void handle_elf (Elf *elf, const char *fullname, const char *fname); 103 #define INTERNAL_ERROR(fname) \ argument 105 fname, __LINE__, PACKAGE_VERSION, elf_errmsg (-1)) 266 process_file (const char *fname) in process_file() argument 268 int fd = open (fname, O_RDONLY); in process_file() 271 error (0, errno, _("cannot open '%s'"), fname); in process_file() 281 handle_elf (elf, NULL, fname); in process_file() 284 INTERNAL_ERROR (fname); in process_file() [all …]
|
/third_party/ltp/scripts/coccinelle/ |
D | kselftest-cgroup-to-ltp.cocci | 9 expression cg, fname, data; 12 - if (cg_write(cg, fname, data)) { 15 + SAFE_CGROUP_PRINT(cg, fname, data); 28 expression cg, fname, needle; 31 - cg_read_strstr(cg, fname, needle) 32 + !SAFE_CGROUP_OCCURSIN(cg, fname, needle) 36 expression cg, fname; 39 - l = cg_read_long(cg, fname); 40 + SAFE_CGROUP_SCANF(cg, fname, "%ld", &l);
|
/third_party/skia/infra/bots/ |
D | test_utils.py | 30 def write(self, fname, mode=0o640): argument 32 fname = os.path.join(self._cwd, fname) 33 with open(fname, 'w') as f: 35 os.chmod(fname, mode) 37 def remove(self, fname): argument 39 fname = os.path.join(self._cwd, fname) 40 if os.path.isfile(fname): 41 os.remove(fname) 43 os.rmdir(fname)
|
/third_party/flutter/skia/infra/bots/ |
D | test_utils.py | 30 def write(self, fname, mode=0640): argument 32 fname = os.path.join(self._cwd, fname) 33 with open(fname, 'w') as f: 35 os.chmod(fname, mode) 37 def remove(self, fname): argument 39 fname = os.path.join(self._cwd, fname) 40 if os.path.isfile(fname): 41 os.remove(fname) 43 os.rmdir(fname)
|
/third_party/ltp/testcases/kernel/fs/ftest/ |
D | ftest02.c | 253 char fname[MAXPATHLEN], buf[MAXPATHLEN]; in crfile() local 255 ft_mkname(fname, dirname, me, count); in crfile() 257 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0666); in crfile() 259 val = rmdir(fname); in crfile() 260 warn(val, "rmdir", fname); in crfile() 261 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0666); in crfile() 263 warn(fd, "creating", fname); in crfile() 292 char fname[MAXPATHLEN]; in unlfile() local 300 ft_mkname(fname, dirname, me, i); in unlfile() 301 val = rmdir(fname); in unlfile() [all …]
|
D | ftest06.c | 273 char fname[MAXPATHLEN]; in crfile() local 276 ft_mkname(fname, dirname, me, count); in crfile() 278 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0666); in crfile() 280 val = rmdir(fname); in crfile() 281 warn(val, "rmdir", fname); in crfile() 282 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0666); in crfile() 284 warn(fd, "creating", fname); in crfile() 312 char fname[MAXPATHLEN]; in unlfile() local 318 ft_mkname(fname, dirname, me, i); in unlfile() 319 val = rmdir(fname); in unlfile() [all …]
|