Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 25 of 636) sorted by relevance

12345678910>>...26

/third_party/uboot/u-boot-2020.01/tools/patman/
Dtools.py88 def GetOutputFilename(fname): argument
97 return os.path.join(outdir, fname)
119 def GetInputFilename(fname): argument
128 if not indir or fname[:1] == '/':
129 return fname
131 pathname = os.path.join(dirname, fname)
136 (fname, ','.join(indir), os.getcwd()))
148 return glob.glob(fname)
174 def PathHasFile(path_spec, fname): argument
185 if os.path.exists(os.path.join(dir, fname)):
[all …]
/third_party/uboot/u-boot-2020.01/arch/sandbox/cpu/
Dos.c101 int os_write_file(const char *fname, const void *buf, int size) in os_write_file() argument
105 fd = os_open(fname, OS_O_WRONLY | OS_O_CREAT | OS_O_TRUNC); in os_write_file()
107 printf("Cannot open file '%s'\n", fname); in os_write_file()
111 printf("Cannot write to file '%s'\n", fname); in os_write_file()
120 int os_read_file(const char *fname, void **bufp, int *sizep) in os_read_file() argument
126 fd = os_open(fname, OS_O_RDONLY); in os_read_file()
128 printf("Cannot open file '%s'\n", fname); in os_read_file()
133 printf("Cannot seek to end of file '%s'\n", fname); in os_read_file()
137 printf("Cannot seek to start of file '%s'\n", fname); in os_read_file()
142 printf("Not enough memory to read file '%s'\n", fname); in os_read_file()
[all …]
/third_party/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl10.c127 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 …]
Dfcntl09.c127 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 …]
Dfcntl23.c103 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/ltp/testcases/kernel/syscalls/link/
Dlink05.c58 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 …]
Dlink03.c59 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/setxattr/
Dsetxattr02.c58 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/python/Tools/scripts/
Dgprof2html.py43 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/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify01.c74 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 …]
/third_party/ltp/testcases/commands/tar/
Dtar_tests.sh53 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/flutter/skia/third_party/externals/angle2/scripts/
Drun_code_generation.py115 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/zlib/contrib/untgz/
Duntgz.c98 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/boost/tools/boost_install/test/iostreams/zlib-1.2.11/contrib/untgz/
Duntgz.c98 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/boost/libs/beast/test/extern/zlib-1.2.11/contrib/untgz/
Duntgz.c98 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/libsnd/examples/
Dsndfilehandle.cc27 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/skia/third_party/externals/angle2/scripts/
Drun_code_generation.py149 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/openssl/tools/
Dc_rehash.in146 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/fsetxattr/
Dfsetxattr02.c62 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/uboot/u-boot-2020.01/scripts/dtc/
Dsrcpos.c71 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 …]
/third_party/flutter/skia/src/ports/skia_ohos/
DFontInfo_ohos.h22 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/
Dfgetxattr02.c69 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/flutter/skia/infra/bots/
Dtest_utils.py30 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/skia/infra/bots/
Dtest_utils.py30 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/curl/lib/vquic/
Dvquic.c57 struct dynbuf fname; in Curl_qlogdir() local
60 Curl_dyn_init(&fname, DYN_QLOG_NAME); in Curl_qlogdir()
61 result = Curl_dyn_add(&fname, qlog_dir); in Curl_qlogdir()
63 result = Curl_dyn_add(&fname, "/"); in Curl_qlogdir()
67 result = Curl_dyn_add(&fname, hex); in Curl_qlogdir()
70 result = Curl_dyn_add(&fname, ".qlog"); in Curl_qlogdir()
73 int qlogfd = open(Curl_dyn_ptr(&fname), QLOGMODE, in Curl_qlogdir()
78 Curl_dyn_free(&fname); in Curl_qlogdir()

12345678910>>...26