/external/ltp/testcases/kernel/syscalls/utils/ |
H A D | common_j_h.c | 148 int setup_file(char *testdir, char *fname, char *path) argument 150 return _setup_file(testdir, fname, path, 154 int _setup_file(char *testdir, char *fname, char *path, int flags, mode_t mode) argument 158 sprintf(path, "%s/%s", testdir, fname); 178 int setup_swapfile(char *testdir, char *fname, char *path, size_t size) argument 186 sprintf(path, "%s/%s", testdir, fname);
|
/external/ltp/testcases/lib/ |
H A D | tst_kvcmp.c | 66 static void help(const char *fname) argument 68 printf("usage: %s -eq|-ne|-gt|-ge|-lt|-le kver [-a|-o] ...\n\n", fname);
|
/external/ltp/testcases/misc/math/float/ |
H A D | thread_code.c | 32 * fname: name of the file to read 41 static size_t read_file(char *fname, void **data) argument 50 (void)sprintf(path, "%s/%s", datadir, fname);
|
/external/ltp/testcases/network/nfsv4/locks/ |
H A D | netsync.c | 111 int setupClients(int type, char *fname, int nThread) argument 132 sprintf(message, "%d:%s:%d::", type, fname, nThread); 195 int getConfiguration(int *type, char *fname, int *nThread) argument 206 strncpy(fname, p, i);
|
/external/python/cpython2/Modules/ |
H A D | dlmodule.c | 201 char fname[strlen(name) + 20]; local 202 strcpy(fname, "SYS$SHARE:"); 203 strcat(fname, name); 204 strcat(fname, ".EXE"); 205 if (access(fname, R_OK)) {
|
/external/selinux/libsemanage/tests/ |
H A D | test_utilities.c | 47 char fname[] = { variable 56 fd = mkstemp(fname); 78 unlink(fname); 300 tok = semanage_findval(fname, "one", NULL); 304 tok = semanage_findval(fname, "one", ""); 308 tok = semanage_findval(fname, "sigma", "=");
|
/external/skia/tests/ |
H A D | FontMgrTest.cpp | 89 SkString fname; local 90 fm->getFamilyName(i, &fname); 92 sk_sp<SkFontStyleSet> fnset(fm->matchFamily(fname.c_str())); 97 SkDebugf("[%2d] %s\n", i, fname.c_str());
|
/external/v8/tools/ |
H A D | parser-shell.cc | 63 const char* fname, Encoding encoding, int repeat, v8::Isolate* isolate, 66 const byte* source = ReadFileAndRepeat(fname, &length, repeat); 62 RunBaselineParser( const char* fname, Encoding encoding, int repeat, v8::Isolate* isolate, v8::Local<v8::Context> context) argument
|
/external/wpa_supplicant_8/hs20/server/www/ |
H A D | est.php | 77 $fname = "$osu_root/est/$realm-cacerts.pkcs7"; variable 78 if (!file_exists($fname)) { 86 $data = file_get_contents($fname);
|
/external/blktrace/ |
H A D | blkrawverify.c | 283 char *fname = malloc(1024); local 298 sprintf(fname, "%s.blktrace.%d", devname, cpu); 299 if (stat(fname, &st) < 0) { 308 nbad = process(&ofp, devname, fname, cpu);
|
/external/compiler-rt/lib/asan/ |
H A D | asan_malloc_win.cc | 205 static void TryToOverrideFunction(const char *fname, uptr new_func) { argument 208 if (!__interception::OverrideFunction(fname, new_func)) 209 VPrintf(2, "Failed to override function %s\n", fname);
|
/external/curl/src/ |
H A D | tool_doswin.c | 490 char fname[PATH_MAX]; local 521 strncpy(fname, file_name, PATH_MAX-1); 522 fname[PATH_MAX-1] = '\0'; 523 base = basename(fname); 530 for(p = fname; p; p = (p == fname && fname != base ? base : NULL)) { 567 if(strlen(fname) == PATH_MAX-1) { 577 /* if fname was just modified then the basename pointer must be updated */ 578 if(p == fname) [all...] |
/external/dtc/ |
H A D | dtc.c | 124 static const char *guess_type_by_name(const char *fname, const char *fallback) argument 128 s = strrchr(fname, '.'); 138 static const char *guess_input_format(const char *fname, const char *fallback) argument 144 if (stat(fname, &statbuf) != 0) 153 f = fopen(fname, "r"); 165 return guess_type_by_name(fname, fallback);
|
H A D | srcpos.c | 67 * @param fname Filename to look for 71 static char *try_open(const char *dirname, const char *fname, FILE **fp) argument 75 if (!dirname || fname[0] == '/') 76 fullname = xstrdup(fname); 78 fullname = join_path(dirname, fname); 94 * @param fname Filename to open 98 static char *fopen_any_on_path(const char *fname, FILE **fp) argument 108 fullname = try_open(cur_dir, fname, fp); 112 fullname = try_open(node->dirname, fname, fp); 117 FILE *srcfile_relative_open(const char *fname, cha argument 143 srcfile_push(const char *fname) argument 252 const char *fname = "<no-file>"; local [all...] |
/external/e2fsprogs/intl/ |
H A D | localealias.c | 143 static size_t read_alias_file (const char *fname, int fname_len) 217 read_alias_file (const char *fname, int fname_len) argument 226 mempcpy (mempcpy (full_fname, fname, fname_len), 229 memcpy (full_fname, fname, fname_len);
|
/external/elfutils/libdwfl/ |
H A D | find-debuginfo.c | 44 char *fname; local 47 fname = strdup (debuglink); 48 if (unlikely (fname == NULL)) 51 else if ((subdir == NULL ? asprintf (&fname, "%s/%s", dir, debuglink) 52 : dir == NULL ? asprintf (&fname, "%s/%s", subdir, debuglink) 53 : asprintf (&fname, "%s/%s/%s", dir, subdir, debuglink)) < 0) 57 int fd = TEMP_FAILURE_RETRY (open (fname, O_RDONLY)); 59 free (fname); 65 free (fname); 71 *debuginfo_file_name = fname; 281 char *fname = NULL; local [all...] |
/external/elfutils/tests/ |
H A D | backtrace-data.c | 92 char *fname; local 93 int i = asprintf (&fname, "/proc/%ld/maps", (long) pid); 96 FILE *f = fopen (fname, "r"); 99 free (fname);
|
/external/fio/engines/ |
H A D | libhdfs.c | 128 char fname[CHUNCK_NAME_LENGTH_MAX]; local 156 get_chunck_name(fname, io_u->file->file_name, f_id); 157 hd->fp = hdfsOpenFile(hd->fs, fname, open_flags, 0, 0, 160 log_err("hdfs: unable to open file: %s: %d\n", fname, strerror(errno)); 251 char fname[CHUNCK_NAME_LENGTH_MAX]; local 259 get_chunck_name(fname, f->file_name, k++); 260 fi = hdfsGetPathInfo(hd->fs, fname); 266 fp = hdfsOpenFile(hd->fs, fname, O_WRONLY, 0, 0, 270 log_err("hdfs: unable to prepare file chunk %s: %s\n", fname, strerror(errno)); 279 log_err("hdfs: unable to prepare file chunk %s: %s\n", fname, strerro [all...] |
/external/iproute2/misc/ |
H A D | lnstat.c | 194 char *cname, *fname = fps->params[i].lf->name; local 200 cname = fname; 202 if (cname - fname >= strlen(fname))
|
/external/libedit/src/ |
H A D | el.c | 530 el_source(EditLine *el, const char *fname) argument 540 if (fname == NULL) { 550 fname = path; 553 fp = fopen(fname, "r");
|
/external/liblzf/ |
H A D | lzf.c | 331 compose_name (const char *fname, char *oname) argument 337 if (strlen (fname) > PATH_MAX - 4) 339 fprintf (stderr, "%s: %s.lzf: name too long", imagename, fname); 343 strcpy (oname, fname); 348 if (strlen (fname) > PATH_MAX) 350 fprintf (stderr, "%s: %s: name too long\n", imagename, fname); 354 strcpy (oname, fname); 358 fprintf (stderr, "%s: %s: unknown suffix\n", imagename, fname); 369 run_file (const char *fname) argument 377 if (compose_name (fname, onam [all...] |
/external/libmicrohttpd/src/examples/ |
H A D | spdy_fileserver.c | 45 #define GET_MIME_TYPE(fname, mime) do {\ 46 unsigned int __len = strlen(fname);\ 47 if (__len < 4 || '.' != (fname)[__len - 4]) \ 50 printf("MIME for %s is applic...\n", (fname));\ 53 const char * __ext = &(fname)[__len - 3];\ 62 printf("MIME for %s is applic...\n", (fname));\ 165 char *fname; local 176 asprintf(&fname,"%s%s",basedir,path); 177 if(0 == access(fname, R_OK)) 179 if(NULL == (fd = fopen(fname," [all...] |
/external/libpcap/ |
H A D | savefile.c | 273 pcap_open_offline_with_tstamp_precision(const char *fname, u_int precision, argument 279 if (fname == NULL) { 284 if (fname[0] == '-' && fname[1] == '\0') 297 fp = fopen(fname, "r"); 299 fp = fopen(fname, "rb"); 302 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s", fname, 316 pcap_open_offline(const char *fname, char *errbuf) argument 318 return (pcap_open_offline_with_tstamp_precision(fname,
|
H A D | sf-pcap.c | 661 pcap_setup_dump(pcap_t *p, int linktype, FILE *f, const char *fname) argument 679 fname, pcap_strerror(errno)); 688 * Initialize so that sf_write() will output to the file named 'fname'. 691 pcap_dump_open(pcap_t *p, const char *fname) argument 703 fname); 710 fname, p->linktype); 715 if (fname == NULL) { 720 if (fname[0] == '-' && fname[1] == '\0') { 722 fname 759 pcap_dump_open_append(pcap_t *p, const char *fname) argument [all...] |
/external/libpcap/tests/ |
H A D | valgrindtest.c | 167 read_infile(char *fname) argument 173 fd = open(fname, O_RDONLY|O_BINARY); 175 error("can't open %s: %s", fname, pcap_strerror(errno)); 178 error("can't stat %s: %s", fname, pcap_strerror(errno)); 183 fname, pcap_strerror(errno)); 186 error("read %s: %s", fname, pcap_strerror(errno)); 188 error("short read %s (%d != %d)", fname, cc, (int)buf.st_size);
|