/curl/src/ |
H A D | tool_findfile.c | 68 static char *checkhome(const char *home, const char *fname, bool dotscore) in checkhome() argument 75 c = aprintf("%s" DIR_CHAR "%c%s", home, pref[i], &fname[1]); in checkhome() 77 c = aprintf("%s" DIR_CHAR "%s", home, fname); in checkhome() 102 char *findfile(const char *fname, int dotscore) in findfile() argument 105 DEBUGASSERT(fname && fname[0]); in findfile() 106 DEBUGASSERT((dotscore != 1) || (fname[0] == '.')); in findfile() 108 if(!fname[0]) in findfile() 115 const char *filename = fname; in findfile() 149 return checkhome(home, fname, FALSE); in findfile()
|
H A D | tool_doswin.c | 446 char fname[PATH_MAX]; in rename_if_reserved_dos() local 472 memcpy(fname, file_name, len); in rename_if_reserved_dos() 473 fname[len] = '\0'; in rename_if_reserved_dos() 474 base = basename(fname); in rename_if_reserved_dos() 481 for(p = fname; p; p = (p == fname && fname != base ? base : NULL)) { in rename_if_reserved_dos() 518 if(strlen(fname) == PATH_MAX-1) in rename_if_reserved_dos() 525 if(p == fname) in rename_if_reserved_dos() 526 base = basename(fname); in rename_if_reserved_dos() 541 if(strlen(fname) >= PATH_MAX-1) in rename_if_reserved_dos() 549 *sanitized = strdup(fname); in rename_if_reserved_dos()
|
H A D | tool_cb_wrt.c | 57 const char *fname = outs->filename; in tool_create_output_file() local 61 DEBUGASSERT(fname && *fname); in tool_create_output_file() 67 file = fopen(fname, "wb"); in tool_create_output_file() 72 fd = open(fname, O_CREAT | O_WRONLY | O_EXCL | O_BINARY, OPENMODE); in tool_create_output_file() 77 size_t len = strlen(fname); in tool_create_output_file() 90 memcpy(newname, fname, len); in tool_create_output_file() 119 warnf(global, "Failed to open the file %s: %s", fname, in tool_create_output_file()
|
H A D | tool_findfile.h | 34 char *findfile(const char *fname, int dotscore);
|
H A D | tool_main.c | 112 char fname[CURL_MT_LOGFNAME_BUFSIZE]; in memory_tracking_init() local 115 strcpy(fname, env); in memory_tracking_init() 117 curl_dbg_memdebug(fname); in memory_tracking_init()
|
H A D | tool_writeout.c | 649 char fname[512]; /* holds the longest filename */ in ourWriteOut() local 651 if(flen < sizeof(fname)) { in ourWriteOut() 653 memcpy(fname, ptr, flen); in ourWriteOut() 654 fname[flen] = 0; in ourWriteOut() 655 stream2 = fopen(fname, append ? FOPEN_APPENDTEXT : in ourWriteOut()
|
/curl/tests/http/ |
H A D | test_18_methods.py | 45 env.make_data_file(indir=indir, fname="data-10k", fsize=10*1024) 46 env.make_data_file(indir=indir, fname="data-100k", fsize=100*1024) 47 env.make_data_file(indir=indir, fname="data-1m", fsize=1024*1024)
|
H A D | test_09_push.py | 44 env.make_data_file(indir=push_dir, fname="data1", fsize=1*1024) 45 env.make_data_file(indir=push_dir, fname="data2", fsize=1*1024) 46 env.make_data_file(indir=push_dir, fname="data3", fsize=1*1024)
|
H A D | test_30_vsftpd.py | 50 def _make_docs_file(self, docs_dir: str, fname: str, fsize: int): 51 fpath = os.path.join(docs_dir, fname) 66 self._make_docs_file(docs_dir=vsftpd.docs_dir, fname='data-1k', fsize=1024) 67 self._make_docs_file(docs_dir=vsftpd.docs_dir, fname='data-10k', fsize=10*1024) 68 self._make_docs_file(docs_dir=vsftpd.docs_dir, fname='data-1m', fsize=1024*1024) 69 self._make_docs_file(docs_dir=vsftpd.docs_dir, fname='data-10m', fsize=10*1024*1024) 70 env.make_data_file(indir=env.gen_dir, fname="upload-1k", fsize=1024) 71 env.make_data_file(indir=env.gen_dir, fname="upload-100k", fsize=100*1024) 72 env.make_data_file(indir=env.gen_dir, fname="upload-1m", fsize=1024*1024)
|
H A D | test_31_vsftpds.py | 57 def _make_docs_file(self, docs_dir: str, fname: str, fsize: int): 58 fpath = os.path.join(docs_dir, fname) 73 self._make_docs_file(docs_dir=vsftpds.docs_dir, fname='data-1k', fsize=1024) 74 self._make_docs_file(docs_dir=vsftpds.docs_dir, fname='data-10k', fsize=10*1024) 75 self._make_docs_file(docs_dir=vsftpds.docs_dir, fname='data-1m', fsize=1024*1024) 76 self._make_docs_file(docs_dir=vsftpds.docs_dir, fname='data-10m', fsize=10*1024*1024) 77 env.make_data_file(indir=env.gen_dir, fname="upload-1k", fsize=1024) 78 env.make_data_file(indir=env.gen_dir, fname="upload-100k", fsize=100*1024) 79 env.make_data_file(indir=env.gen_dir, fname="upload-1m", fsize=1024*1024) 180 env.make_data_file(indir=env.gen_dir, fname=docname, fsize=100*1024,
|
H A D | test_08_caddy.py | 51 def _make_docs_file(self, docs_dir: str, fname: str, fsize: int): 52 fpath = os.path.join(docs_dir, fname) 63 self._make_docs_file(docs_dir=caddy.docs_dir, fname='data10k.data', fsize=10*1024) 64 self._make_docs_file(docs_dir=caddy.docs_dir, fname='data1.data', fsize=1024*1024) 65 self._make_docs_file(docs_dir=caddy.docs_dir, fname='data5.data', fsize=5*1024*1024) 66 self._make_docs_file(docs_dir=caddy.docs_dir, fname='data10.data', fsize=10*1024*1024) 67 self._make_docs_file(docs_dir=caddy.docs_dir, fname='data100.data', fsize=100*1024*1024) 68 env.make_data_file(indir=env.gen_dir, fname="data-10m", fsize=10*1024*1024)
|
H A D | test_10_proxy.py | 48 env.make_data_file(indir=env.gen_dir, fname="data-100k", fsize=100*1024) 49 env.make_data_file(indir=env.gen_dir, fname="data-10m", fsize=10*1024*1024) 95 fname, fcount, repeat): argument 99 srcfile = os.path.join(httpd.docs_dir, fname) 178 tunnel, fname, fcount, repeat): argument 191 srcfile = os.path.join(httpd.docs_dir, fname) 208 tunnel, fname, fcount, repeat): argument 212 srcfile = os.path.join(httpd.docs_dir, fname)
|
H A D | test_19_shutdown.py | 49 env.make_data_file(indir=indir, fname="data-10k", fsize=10*1024) 50 env.make_data_file(indir=indir, fname="data-100k", fsize=100*1024) 51 env.make_data_file(indir=indir, fname="data-1m", fsize=1024*1024)
|
H A D | test_16_info.py | 49 env.make_data_file(indir=indir, fname="data-10k", fsize=10*1024) 50 env.make_data_file(indir=indir, fname="data-100k", fsize=100*1024) 51 env.make_data_file(indir=indir, fname="data-1m", fsize=1024*1024)
|
H A D | scorecard.py | 104 def _make_docs_file(self, docs_dir: str, fname: str, fsize: int): 105 fpath = os.path.join(docs_dir, fname) 118 fname = f'score{label}.data' 120 fname=fname, fsize=fsize) 122 fname='reqs10.data', fsize=10*1024) 243 fname = f'score{label}.data' 367 fname = f'upload{label}.data' 369 fname=fname, fsize=fsize)
|
/curl/tests/libtest/ |
H A D | first.c | 99 char fname[CURL_MT_LOGFNAME_BUFSIZE]; in memory_tracking_init() local 102 strcpy(fname, env); in memory_tracking_init() 104 curl_dbg_memdebug(fname); in memory_tracking_init()
|
/curl/lib/ |
H A D | curl_setup.h | 473 # define stat(fname,stp) curlx_win32_stat(fname, stp) argument 477 # define fopen(fname,mode) curlx_win32_fopen(fname, mode) argument 495 # define stat(fname,stp) curlx_win32_stat(fname, stp) argument 498 # define fopen(fname,mode) curlx_win32_fopen(fname, mode) argument
|
/curl/lib/vquic/ |
H A D | vquic.c | 644 struct dynbuf fname; in Curl_qlogdir() local 647 Curl_dyn_init(&fname, DYN_QLOG_NAME); in Curl_qlogdir() 648 result = Curl_dyn_add(&fname, qlog_dir); in Curl_qlogdir() 650 result = Curl_dyn_add(&fname, "/"); in Curl_qlogdir() 654 result = Curl_dyn_add(&fname, hex); in Curl_qlogdir() 657 result = Curl_dyn_add(&fname, ".sqlog"); in Curl_qlogdir() 660 int qlogfd = open(Curl_dyn_ptr(&fname), QLOGMODE, in Curl_qlogdir() 665 Curl_dyn_free(&fname); in Curl_qlogdir()
|
/curl/tests/data/ |
H A D | test1378 | 23 FTP DL, file without Content-Disposition inside, using -o fname
|
H A D | test1385 | 23 FTP DL, file without C-D inside, using -o fname -i, without -D
|
H A D | test1423 | 30 HTTP GET -o fname without Content-Disposition (empty file)
|
H A D | test1365 | 30 HTTP GET -o fname without Content-Disposition, -D stdout
|
H A D | test1369 | 31 HTTP GET -o fname -J without Content-Disposition, -D stdout
|
H A D | test1376 | 30 HTTP GET -o fname -i without Content-Disposition, without -D
|
H A D | test1364 | 30 HTTP GET -o fname without Content-Disposition, -D file
|