Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 38) sorted by relevance

12

/lighttpd1.4/src/
H A Dfdlog_maint.c68 *(const char **)&args[2] = fn; in fdlog_pipe_spawn()
178 fdlog_pipe_open (const char * const fn) in fdlog_pipe_open() argument
182 if (0 != strcmp(fdlog->fn, fn)) continue; in fdlog_pipe_open()
190 pid_t pid = fdlog_pipe_spawn(fn, fds[0]); in fdlog_pipe_open()
217 fdlog_file_open_fd (const char * const fn) in fdlog_file_open_fd() argument
225 fdlog_file_open (const char * const fn) in fdlog_file_open() argument
229 if (0 != strcmp(fdlog->fn, fn)) continue; in fdlog_file_open()
233 int fd = fdlog_file_open_fd(fn); in fdlog_file_open()
239 fdlog_open (const char * const fn) in fdlog_open() argument
241 return (fn[0] != '|') in fdlog_open()
[all …]
H A Dplugin.c259 pl_cb_t fn; member
291 while (plfd->fn && (rc = plfd->fn(r, plfd->data)) == HANDLER_GO_ON) in plugins_call_fn_req_data()
304 while (plfd->fn && (rc = plfd->fn(con, plfd->data)) == HANDLER_GO_ON) in plugins_call_fn_con_data()
315 while (plfd->fn && (rc = plfd->fn(srv,plfd->data)) == HANDLER_GO_ON) in plugins_call_fn_srv_data()
325 for (; plfd->fn; ++plfd) in plugins_call_fn_srv_data_all()
326 plfd->fn(srv, plfd->data); in plugins_call_fn_srv_data_all()
398 while (plfd->fn&&(rc=plfd->fn(srv,plfd->data,pid,status))==HANDLER_GO_ON) in plugins_call_handle_waitpid()
425 while (b->fn) ++b; in plugins_call_init_reverse()
435 if (fn) { in plugins_call_init_slot()
438 while (plfd->fn) ++plfd; in plugins_call_init_slot()
[all …]
H A Dstat_cache.c676 while (fn[--dirlen] != '/') ; in fam_dir_monitor()
699 fn[dirlen] = '\0'; in fam_dir_monitor()
700 if (0 != lstat(fn, &lst)) { in fam_dir_monitor()
701 fn[dirlen] = '/'; in fam_dir_monitor()
708 fn[dirlen] = '/'; in fam_dir_monitor()
711 fn[dirlen] = '/'; in fam_dir_monitor()
755 fam_dir->name.ptr, fn); in fam_dir_monitor()
777 char e = fn[dirlen]; in fam_dir_monitor()
778 fn[dirlen] = '\0'; in fam_dir_monitor()
780 fn[dirlen] = e; in fam_dir_monitor()
[all …]
H A Dhttp_chunk.c61 static int http_chunk_append_read_fd_range(request_st * const r, const buffer * const fn, const int… in http_chunk_append_read_fd_range() argument
67 UNUSED(fn); in http_chunk_append_read_fd_range()
102 const buffer * const fn = &sce->name; in http_chunk_append_file_ref_range() local
104 chunkqueue_append_file_fd(cq, fn, fd, offset, len); in http_chunk_append_file_ref_range()
117 void http_chunk_append_file_fd_range(request_st * const r, const buffer * const fn, const int fd, c… in http_chunk_append_file_fd_range() argument
123 chunkqueue_append_file_fd(cq, fn, fd, offset, len); in http_chunk_append_file_fd_range()
129 int http_chunk_append_file_fd(request_st * const r, const buffer * const fn, const int fd, const of… in http_chunk_append_file_fd() argument
131 http_chunk_append_file_fd_range(r, fn, fd, 0, sz); in http_chunk_append_file_fd()
136 int rc = (0 != sz) ? http_chunk_append_read_fd_range(r,fn,fd,0,sz) : 0; in http_chunk_append_file_fd()
149 const buffer * const fn = &sce->name; in http_chunk_append_file_ref() local
[all …]
H A Dconfigparser.y106 op1->fn->free(op1); in configparser_merge_data()
110 op1->fn->free(op1); in configparser_merge_data()
421 if (B) B->fn->free(B); in key()
440 if (B) B->fn->free(B); in key()
471 if (B) B->fn->free(B); in key()
496 if (B) B->fn->free(B); in expression()
498 if (C) C->fn->free(C); in expression()
587 if (B) B->fn->free(B); in aelements()
603 if (B) B->fn->free(B); in aelements()
619 if (C) C->fn->free(C); in aelement()
[all …]
H A Dfdlog.c10 fdlog_init (const char * const fn, const int fd, const int mode) in fdlog_init() argument
13 fdlog->fn = fn; /* note: fn must persist in memory (or else copy here) */ in fdlog_init()
H A Dfdlog.h12 const char *fn; member
17 fdlog_st * fdlog_init (const char *fn, int fd, int mode);
25 fdlog_st * fdlog_open (const char *fn);
H A Dconfigfile.c1700 const char *fn = NULL; in config_log_error_open() local
1718 if (NULL == fn) continue; in config_log_error_open()
2212 "opening configfile %s failed", fn); in config_parse_file_stream()
2227 const size_t fnlen = strlen(fn); in config_parse_file()
2237 (fn[0] == '/' || fn[0] == '\\') || in config_parse_file()
2238 (fn[0] == '.' && (fn[1] == '/' || fn[1] == '\\')) || in config_parse_file()
2239 (fn[0] == '.' && fn[1] == '.' && (fn[2] == '/' || fn[2] == '\\'))) { in config_parse_file()
2243 fn, fnlen); in config_parse_file()
2472 pos = strrchr(fn, '\\'); in config_read()
2474 pos = strrchr(fn, '/'); in config_read()
[all …]
H A Dhttp_chunk.h16 int http_chunk_append_file_fd(request_st *r, const buffer *fn, int fd, off_t sz);
18 void http_chunk_append_file_fd_range(request_st *r, const buffer *fn, int fd, off_t offset, off_t l…
H A Darray.c48 ds->fn = &string_fn; in array_data_string_init()
77 di->fn = &integer_fn; in array_data_integer_init()
107 da->fn = &array_fn; in array_data_array_init()
133 if (data[i]) data[i]->fn->free(data[i]); in array_free_data()
148 array_insert_unique(dst, src->data[i]->fn->copy(src->data[i])); in array_copy_array()
352 prev->fn->free(prev); /* free prior data, if any, from slot */ in array_insert_data_at_pos()
460 old->fn->free(old); in array_replace()
467 if (entry->fn->insert_dup) { in array_insert_unique()
469 entry->fn->insert_dup(*old, entry); in array_insert_unique()
471 entry->fn->free(entry); in array_insert_unique()
H A Dmod_deflate.c300 static int mkdir_for_file (char *fn) { in mkdir_for_file() argument
301 for (char *p = fn; (p = strchr(p + 1, '/')) != NULL; ) { in mkdir_for_file()
304 int rc = mkdir(fn, 0700); in mkdir_for_file()
338 const uint32_t fnlen = buffer_clen(fn); in mod_deflate_cache_file_open()
340 memcpy(hctx->cache_fn, fn->ptr, fnlen); in mod_deflate_cache_file_open()
353 if (0 != fdevent_rename(hctx->cache_fn, fn->ptr)) in mod_deflate_cache_file_finish()
1442 if (0 != unlink(fn->ptr)) in mod_deflate_using_libdeflate_err()
1446 buffer_clear(fn); /*(&p->tmp_buf)*/ in mod_deflate_using_libdeflate_err()
1515 buffer * const fn = hctx->output; /*(&p->tmp_buf)*/ in mod_deflate_using_libdeflate() local
1526 fd = fdevent_mkostemp(fn->ptr, 0); in mod_deflate_using_libdeflate()
[all …]
H A Dfdevent.c607 fdevent_load_file (const char * const fn, off_t *lim, log_error_st *errh, void *(malloc_fn)(size_t)… in fdevent_load_file() argument
613 fd = fdevent_open_cloexec(fn, 1, O_RDONLY, 0); /*(1: follows symlinks)*/ in fdevent_load_file()
647 log_perror(errh, __FILE__, __LINE__, "%s() %s", __func__, fn); in fdevent_load_file()
660 fdevent_load_file_bytes (char * const buf, const off_t sz, off_t off, const char * const fn, log_er… in fdevent_load_file_bytes() argument
664 fd = fdevent_open_cloexec(fn, 1, O_RDONLY, 0); /*(1: follows symlinks)*/ in fdevent_load_file_bytes()
684 log_perror(errh, __FILE__, __LINE__, "%s() %s", __func__, fn); in fdevent_load_file_bytes()
H A Dmod_wolfssl.c369 mod_openssl_session_ticket_key_file (const char *fn) in mod_openssl_session_ticket_key_file() argument
659 char *data = fdevent_load_file(fn, &dlen, errh, malloc, free); in mod_wolfssl_load_pem_file()
736 "SSL: inactive/expired X509 certificate '%s'", fn); in mod_wolfssl_load_pem_file()
748 char *data = fdevent_load_file(fn, &dlen, errh, malloc, free); in mod_wolfssl_evp_pkey_load_pem_file()
831 "SSL: %s %s", ERR_error_string(rc, NULL), fn); in mod_wolfssl_CTX_use_certificate_chain_file()
955 const char *fn = ssl_ca_crl_file->ptr; in mod_wolfssl_load_cacrls() local
970 "SSL: %s %s", ERR_error_string(rc, NULL), fn); in mod_wolfssl_load_cacrls()
984 const char *fn = b->ptr; in mod_wolfssl_load_verify_locn() local
999 "SSL: %s %s", ERR_error_string(rc, NULL), fn); in mod_wolfssl_load_verify_locn()
1603 #define wolfSSL_sk_ASN1_INTEGER_pop_free(sk, fn) wolfSSL_sk_pop_free(sk, fn) in mod_openssl_crt_must_staple()
[all …]
H A Dfdevent.h117 char * fdevent_load_file (const char * const fn, off_t *lim, log_error_st *errh, void *(malloc_fn)(…
119 int fdevent_load_file_bytes (char *buf, off_t sz, off_t off, const char *fn, log_error_st *errh);
H A Dmod_nss.c455 mod_nss_load_pem_file (const char *fn, log_error_st *errh) in mod_nss_load_pem_file() argument
460 int rc = mod_nss_load_file(fn, &f, errh); in mod_nss_load_pem_file()
556 *pchain = mod_nss_load_pem_file(fn, errh); in mod_nss_load_pem_crts()
567 "NSS: inactive/expired X509 certificate '%s'", fn); in mod_nss_load_pem_crts()
601 mod_nss_load_config_crts (const char *fn, log_error_st *errh) in mod_nss_load_config_crts() argument
623 mod_nss_load_config_dncrts (const char *fn, log_error_st *errh) in mod_nss_load_config_dncrts() argument
647 mod_nss_load_config_crls (const char *fn, log_error_st *errh) in mod_nss_load_config_crls() argument
653 int rc = mod_nss_load_file(fn, &f, errh); in mod_nss_load_config_crls()
751 int rc = mod_nss_load_file(fn, &f, errh); in mod_nss_load_config_pkey()
795 SECItem nickname = { 0, NULL, strlen(fn) }; in mod_nss_load_config_pkey()
[all …]
H A Dmod_gnutls.c220 int rc = gnutls_load_file(fn, d); in mod_gnutls_load_file()
307 mod_gnutls_session_ticket_key_file (const char *fn) in mod_gnutls_session_ticket_key_file() argument
503 mod_gnutls_load_config_crts (const char *fn, log_error_st *errh) in mod_gnutls_load_config_crts() argument
509 int rc = mod_gnutls_load_file(fn, &f, errh); in mod_gnutls_load_config_crts()
533 "gnutls_x509_crt_list_import2() %s", fn); in mod_gnutls_load_config_crts()
540 "GnuTLS: inactive/expired X509 certificate '%s'", fn); in mod_gnutls_load_config_crts()
554 int rc = mod_gnutls_load_file(fn, &f, errh); in mod_gnutls_load_config_crls()
568 "gnutls_x509_crl_list_import2() %s", fn); in mod_gnutls_load_config_crls()
584 int rc = mod_gnutls_load_file(fn, &f, errh); in mod_gnutls_load_config_pkey()
603 "gnutls_privkey_import_x509_raw() %s", fn); in mod_gnutls_load_config_pkey()
[all …]
H A Dmod_vhostdb_ldap.c177 …d_authn_ldap_err(log_error_st *errh, const char *file, unsigned long line, const char *fn, int err) in mod_authn_ldap_err() argument
179 log_error(errh, file, line, "ldap: %s: %s", fn, ldap_err2string(err)); in mod_authn_ldap_err()
183 …hn_ldap_opt_err(log_error_st *errh, const char *file, unsigned long line, const char *fn, LDAP *ld) in mod_authn_ldap_opt_err() argument
187 mod_authn_ldap_err(errh, file, line, fn, err); in mod_authn_ldap_opt_err()
H A Dchunk.h86 void chunkqueue_append_file(chunkqueue * restrict cq, const buffer * restrict fn, off_t offset, off…
87 void chunkqueue_append_file_fd(chunkqueue * restrict cq, const buffer * restrict fn, int fd, off_t …
H A Dmod_authn_ldap.c183 …_authn_ldap_err(log_error_st *errh, const char *file, unsigned long line, const char *fn, int err);
351 …d_authn_ldap_err(log_error_st *errh, const char *file, unsigned long line, const char *fn, int err) in mod_authn_ldap_err() argument
353 log_error(errh, file, line, "ldap: %s: %s", fn, ldap_err2string(err)); in mod_authn_ldap_err()
357 …hn_ldap_opt_err(log_error_st *errh, const char *file, unsigned long line, const char *fn, LDAP *ld) in mod_authn_ldap_opt_err() argument
361 mod_authn_ldap_err(errh, file, line, fn, err); in mod_authn_ldap_opt_err()
H A Dconfigfile.h87 int config_parse_file(server *srv, config_t *context, const char *fn);
H A Dresponse.h40 void http_response_send_1xx_cb_set (http_response_send_1xx_cb fn, int vers);
H A Dplugin_config.h64 int config_read(server *srv, const char *fn);
/lighttpd1.4/src/t/
H A Dtest_mod_indexfile.c42 char fn[] = "/tmp/lighttpd_mod_indexfile.XXXXXX"; in test_mod_indexfile_tryfiles() local
48 int fd = mkstemp(fn); in test_mod_indexfile_tryfiles()
68 array_insert_value(indexfiles, fn+5, sizeof(fn)-6-1); in test_mod_indexfile_tryfiles()
74 array_insert_value(indexfiles, fn+5, sizeof(fn)-5-1); in test_mod_indexfile_tryfiles()
77 assert(buffer_eq_slen(&r->physical.path, fn, sizeof(fn)-1)); in test_mod_indexfile_tryfiles()
81 array_insert_value(indexfiles, fn+4, sizeof(fn)-4-1); in test_mod_indexfile_tryfiles()
84 assert(buffer_eq_slen(&r->physical.path, fn, sizeof(fn)-1)); in test_mod_indexfile_tryfiles()
88 unlink(fn); in test_mod_indexfile_tryfiles()
H A Dtest_mod_staticfile.c373 char fn[] = "/tmp/lighttpd_mod_staticfile.XXXXXX"; in test_mod_staticfile() local
379 int fd = mkstemp(fn); in test_mod_staticfile()
406 array_set_key_value(mimetypes, fn+sizeof(fn)-8, 7, in test_mod_staticfile()
411 buffer_copy_string_len(&r.physical.path, fn, sizeof(fn)-1); in test_mod_staticfile()
417 buffer_copy_string_len(&r.physical.path, fn, sizeof(fn)-1); in test_mod_staticfile()
435 unlink(fn); in test_mod_staticfile()
H A Dtest_mod_ssi.c41 char fn[] = "/tmp/lighttpd_mod_ssi_XXXXXX"; in test_mod_ssi_read_fd() local
45 int fd = fdevent_mkostemp(fn, 0); in test_mod_ssi_read_fd()
54 unlink(fn); in test_mod_ssi_read_fd()

12