Home
last modified time | relevance | path

Searched refs:catbuff (Results 1 – 21 of 21) sorted by relevance

/dports/www/httrack/httrack-3.49.2/src/
H A Dhtsconcat.c48 catbuff[0] = '\0'; in concat()
52 return catbuff; in concat()
54 strcat(catbuff, a); in concat()
59 return catbuff; in concat()
61 strcat(catbuff, b); in concat()
63 return catbuff; in concat()
82 return __fconv(concat(catbuff, size, a, b)); in fconcat()
88 return __fconv(concat(catbuff, size, a, "")); in fconv()
122 catbuff[0] = '\0'; in get_ext()
123 strncat(catbuff, &fil[last], size); in get_ext()
[all …]
H A Dhtszlib.c59 char catbuff[CATBUFF_SIZE]; in hts_zunpack() local
60 FILE *const in = FOPEN(fconv(catbuff, sizeof(catbuff), filename), "rb"); in hts_zunpack()
67 FILE *const fpout = FOPEN(fconv(catbuff, sizeof(catbuff), newfile), "wb"); in hts_zunpack()
98 char catbuff[CATBUFF_SIZE]; in hts_extract_meta() local
99 unzFile zFile = unzOpen(fconcat(catbuff, sizeof(catbuff), path, "hts-cache/new.zip")); in hts_extract_meta()
100 zipFile zFileOut = zipOpen(fconcat(catbuff, sizeof(catbuff), path, "hts-cache/meta.zip"), 0); in hts_extract_meta()
H A Dhtsindex.c140 char catbuff[CATBUFF_SIZE]; in index_keyword() local
164 UNLINK(concat(catbuff, sizeof(catbuff), indexpath, "index.txt")); in index_keyword()
165 UNLINK(concat(catbuff, sizeof(catbuff), indexpath, "sindex.html")); in index_keyword()
294 …if (strncmp((const char *) fslash(catbuff, sizeof(catbuff), (const char *) indexpath), filename, s… in index_keyword()
327 char catbuff[CATBUFF_SIZE]; in index_finish() local
361 fp = fopen(concat(catbuff, sizeof(catbuff), indexpath, "index.txt"), "wb"); in index_finish()
363 fp = fopen(concat(catbuff, sizeof(catbuff), indexpath, "sindex.html"), "wb"); in index_finish()
H A Dhtsbauth.c207 char catbuff[CATBUFF_SIZE]; in cookie_load() local
226 FILE *fp = fopen(fconcat(catbuff, sizeof(catbuff), fpath, find.cFileName), "rb"); in cookie_load()
267 remove(fconcat(catbuff, sizeof(catbuff), fpath, find.cFileName)); in cookie_load()
278 FILE *fp = fopen(fconcat(catbuff, sizeof(catbuff), fpath, name), "rb"); in cookie_load()
315 char catbuff[CATBUFF_SIZE]; in cookie_save() local
319 FILE *fp = fopen(fconv(catbuff, sizeof(catbuff), name), "wb"); in cookie_save()
H A Dhtscache.c227 char catbuff[CATBUFF_SIZE]; in cache_add() local
369 off_t file_size = fsize_utf8(fconv(catbuff, sizeof(catbuff), url_save)); in cache_add()
372 fp = FOPEN(fconv(catbuff, sizeof(catbuff), url_save), "rb"); in cache_add()
631 char catbuff[CATBUFF_SIZE]; in cache_readex_new() local
781 fsize_utf8(fconv(catbuff, sizeof(catbuff), previous_save)); in cache_readex_new()
793 (fconv(catbuff, sizeof(catbuff), previous_save), in cache_readex_new()
815 else if (fexist_utf8(fconv(catbuff, sizeof(catbuff), target_save))) { in cache_readex_new()
1016 char catbuff[CATBUFF_SIZE]; local
2033 fp = fopen(fconv(catbuff, sizeof(catbuff), fil), "rb");
2058 FILE *const fp = FOPEN(fconv(catbuff, sizeof(catbuff), fil), "rb");
[all …]
H A Dhtstools.c883 char catbuff[CATBUFF_SIZE]; in hts_buildtopindex() local
887 readfile_or(fconcat(catbuff, sizeof(catbuff), binpath, "templates/topindex-header.html"), in hts_buildtopindex()
890 readfile_or(fconcat(catbuff, sizeof(catbuff), binpath, "templates/topindex-body.html"), in hts_buildtopindex()
893 readfile_or(fconcat(catbuff, sizeof(catbuff), binpath, "templates/topindex-bodycat.html"), in hts_buildtopindex()
896 readfile_or(fconcat(catbuff, sizeof(catbuff), binpath, "templates/topindex-footer.html"), in hts_buildtopindex()
908 fpo = fopen(fconcat(catbuff, sizeof(catbuff), rpath, "/index.html"), "wb"); in hts_buildtopindex()
912 verif_backblue(opt, concat(catbuff, sizeof(catbuff), rpath, "/")); // générer gif in hts_buildtopindex()
1220 char catbuff[CATBUFF_SIZE]; in hts_findnext()
1226 (concat(catbuff, sizeof(catbuff), find->path, find->dirp->d_name), &find->filestat)) in hts_findnext()
H A Dhttrack-library.h241 HTSEXT_API char *unescape_http(char *const catbuff, const size_t size, const char *const s);
242 HTSEXT_API char *unescape_http_unharm(char *const catbuff, const size_t size, const char *s, const …
243 HTSEXT_API char *antislash_unescaped(char *catbuff, const char *s);
251 HTSEXT_API const char *get_ext(char *catbuff, size_t size, const char *fil);
256 HTSEXT_API char *concat(char *catbuff, size_t size, const char *a, const char *b);
257 HTSEXT_API char *fconcat(char *catbuff, size_t size, const char *a, const char *b);
258 HTSEXT_API char *fconv(char *catbuff, size_t size, const char *a);
259 HTSEXT_API char *fslash(char *catbuff, size_t size, const char *a);
H A Dhtsjava.c164 char catbuff[CATBUFF_SIZE]; in hts_parse_java() local
175 if ((fpout = FOPEN(fconv(catbuff, sizeof(catbuff), file), "r+b")) == NULL) { in hts_parse_java()
461 char catbuff[CATBUFF_SIZE]; in tris() local
480 else if (is_dyntype(get_ext(catbuff, sizeof(catbuff), buffer))) // asp,cgi... in tris()
H A Dhtsserver.c324 char catbuff[CATBUFF_SIZE]; in smallserver() local
961 if (fexist(fconcat(catbuff, sizeof(catbuff), path, name))) { in smallserver()
992 if (!fexist(fconcat(catbuff, sizeof(catbuff), path, pos2))) { in smallserver()
999 (fconcat(catbuff, sizeof(catbuff), StringBuff(fspath), pos2))) { in smallserver()
1005 if (fexist(fconcat(catbuff, sizeof(catbuff), path, pos2))) { in smallserver()
1495 char catbuff[CATBUFF_SIZE]; in htslang_load() local
1518 FILE *fp = fopen(fconcat(catbuff, sizeof(catbuff), path, mname), "rb"); in htslang_load()
1597 fp = fopen(fconcat(catbuff, sizeof(catbuff), path, lbasename), "rb"); in htslang_load()
H A Dhtslib.c602 return catbuff; in antislash()
2850 return strc->catbuff; in int2bytes()
2860 return concat(strc->catbuff, sizeof(strc->catbuff), buff, "/s"); in int2bytessec()
3648 catbuff[j++] = '\0'; in unescape_http()
3649 return catbuff; in unescape_http()
3685 catbuff[j++] = '\0'; in unescape_http_unharm()
3686 return catbuff; in unescape_http_unharm()
3918 return catbuff; in convtolower()
4141 ext = get_ext(catbuff, sizeof(catbuff), fil); in is_knowntype()
4293 if (stat(fconv(catbuff, sizeof(catbuff), s), &st) == 0) { in fexist()
[all …]
H A Dhtsftp.c215 char catbuff[CATBUFF_SIZE]; in run_launch_ftp() local
216 char *ua = unescape_http(catbuff, sizeof(catbuff), a); in run_launch_ftp()
514 char catbuff[CATBUFF_SIZE]; in run_launch_ftp() local
515 char *ua = unescape_http(catbuff, sizeof(catbuff), ftp_filename); in run_launch_ftp()
H A Dhtsback.c198 char catbuff[CATBUFF_SIZE]; in back_index_ready() local
200 if ((fp = FOPEN(fconv(catbuff, sizeof(catbuff), fileback), "rb")) != NULL) { in back_index_ready()
485 char catbuff[CATBUFF_SIZE]; in back_finalize() local
645 UNLINK(fconv(catbuff, sizeof(catbuff), back[p].url_sav)); in back_finalize()
1420 char catbuff[CATBUFF_SIZE]; local
1596 && fexist_utf8(fconv(catbuff, sizeof(catbuff), previous_save))) {
1597 rename(fconv(catbuff, sizeof(catbuff), previous_save),
1599 if (fexist_utf8(fconv(catbuff, sizeof(catbuff), save))) {
1626 FILE *fp = FOPEN(fconv(catbuff, sizeof(catbuff), save), "wb");
2317 char catbuff[CATBUFF_SIZE]; local
[all …]
H A Dhtshash.c79 convtolower(hash->catbuff, (const char*) key); in key_sav_hashes()
80 return coucal_hash_string(hash->catbuff); in key_sav_hashes()
H A Dhtslib.h265 #define copychar(catbuff,a) concat(catbuff,(a),NULL) argument
267 char *convtolower(char *catbuff, const char *a);
H A Dhtsname.c148 char catbuff[CATBUFF_SIZE]; in url_savename() local
318 if (hts_unescapeUrl(fil, catbuff, sizeof(catbuff)) == 0) { in url_savename()
319 strcpybuff(fil, catbuff); in url_savename()
847 d = unescape_http(catbuff, sizeof(catbuff), name[0]); in url_savename()
H A Dhtscore.h215 char catbuff[CATBUFF_SIZE]; member
H A Dhtscoremain.c217 char catbuff[CATBUFF_SIZE]; in hts_main_internal() local
218 char *path = fslash(catbuff, sizeof(catbuff), argv[0]); in hts_main_internal()
2743 char catbuff[CATBUFF_SIZE]; in hts_main_internal() local
2752 … append_escape_spc_url(unescape_http_unharm(catbuff, sizeof(catbuff), argv[na], 1), url, url_sz); in hts_main_internal()
H A Dhtsopt.h144 char catbuff[CATBUFF_SIZE]; member
H A Dhtsparse.c279 char catbuff[CATBUFF_SIZE]; in htsparse() local
2012 … unescape_http_unharm(catbuff, sizeof(catbuff), lien, 1 | 2)); /* note: '%' is still escaped */ in htsparse()
2050 if (hts_unescapeUrlSpecial(lien, catbuff, sizeof(catbuff), in htsparse()
2052 strcpybuff(lien, catbuff); in htsparse()
H A Dhtscore.c2993 char catbuff[CATBUFF_SIZE]; in filenote() local
2995 strcpybuff(savelst, fslash(catbuff, sizeof(catbuff), s)); in filenote()
2998 …if (strncmp(fslash(catbuff, sizeof(catbuff), strc->path), savelst, strlen(strc->path)) == 0) { … in filenote()
/dports/www/httrack/httrack-3.49.2/src/proxy/
H A Dstore.c1006 char catbuff[CATBUFF_SIZE]; in PT_ReadCache__New_u() local
1163 FILE *fp = fopen(file_convert(catbuff, sizeof(catbuff), previous_save), "rb"); in PT_ReadCache__New_u()
1185 file_convert(catbuff, sizeof(catbuff), previous_save)); in PT_ReadCache__New_u()