Searched defs:fd (Results 1 - 21 of 21) sorted by relevance

/httpd/modules/cache/
H A Dmod_cache_disk.h31 apr_file_t *fd; member in struct:__anon87
H A Dmod_file_cache.c130 apr_file_t *fd = NULL; local
158 rc = apr_file_open(&fd, fspec, APR_READ | APR_BINARY | APR_XTHREAD,
165 apr_file_inherit_set(fd);
177 if ((rc = apr_mmap_create(&new_file->mm, fd, 0,
180 apr_file_close(fd);
185 apr_file_close(fd);
193 new_file->file = fd;
H A Dmod_cache_disk.c217 static int file_cache_recall_mydata(apr_file_t *fd, cache_info *info, argument
226 rv = apr_file_read_full(fd, &dobj->disk_info, len, &len);
244 rv = apr_file_read_full(fd, urlbuff, len, &len);
449 rc = apr_file_open(&dobj->vary.fd, dobj->vary.file, flags, 0, r->pool);
456 apr_file_read_full(dobj->vary.fd, &format, len, &len);
463 apr_file_read_full(dobj->vary.fd, &expire, len, &len);
466 rc = read_array(r, varray, dobj->vary.fd);
471 apr_file_close(dobj->vary.fd);
474 apr_file_close(dobj->vary.fd);
483 rc = apr_file_open(&dobj->hdrs.fd, dob
747 store_array(apr_file_t *fd, apr_array_header_t* arr) argument
900 store_table(apr_file_t *fd, apr_table_t *table) argument
[all...]
/httpd/modules/loggers/
H A Dmod_log_forensic.c44 apr_file_t *fd; member in struct:fcfg
54 cfg->fd = NULL;
66 cfg->fd = NULL;
75 if (!cfg->logname || cfg->fd)
88 cfg->fd = ap_piped_log_write_fd(pl);
94 if ((rv = apr_file_open(&cfg->fd, fname,
190 if (!cfg->fd || r->prev) {
223 rv = apr_file_write_full(cfg->fd, h.log, h.count-1, NULL);
241 if (!cfg->fd || id == NULL) {
247 rv = apr_file_write_full(cfg->fd,
[all...]
H A Dmod_log_config.c250 * set to a opaque structure (usually a fd) after it is opened.
1542 /* Next, do "physical" server, which gets default log fd and format
1722 apr_file_t *fd; local
1730 rv = apr_file_open(&fd, fname, xfer_flags, xfer_perms, p);
1739 log_writer->log_writer = fd;
/httpd/modules/ssl/
H A Dssl_engine_pphrase.c55 apr_file_t *fd; local
63 if ((stat = apr_file_open(&fd, fname, APR_READ, 0, pool)) != APR_SUCCESS)
70 apr_file_close(fd);
/httpd/modules/test/
H A Dmod_dialup.c41 apr_file_t *fd; member in struct:dialup_baton_t
142 apr_file_t *fd; local
171 rv = apr_file_open(&fd, r->filename, APR_READ | APR_BINARY
200 e = apr_brigade_insert_file(db->bb, fd, 0, r->finfo.size, r->pool);
211 db->fd = fd;
/httpd/test/
H A Dtime-sem.c303 int fd; local
305 fd = open ("/dev/zero", O_RDWR);
306 if (fd == -1) {
311 PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
316 close (fd);
/httpd/server/
H A Dcore_filters.c668 apr_file_t *fd = file_bucket->fd; local
675 if ((apr_file_flags_get(fd) & APR_SENDFILE_ENABLED) &&
870 apr_file_t *fd; local
882 fd = file_bucket->fd;
899 rv = apr_socket_sendfile(s, fd, NULL, &file_offset, &n, 0);
H A Dlisten.c294 int fdcount, fd; local
311 for (fd = SD_LISTEN_FDS_START; fd < SD_LISTEN_FDS_START + fdcount; fd++) {
312 if (sd_is_socket_inet(fd, 0, 0, -1, port) > 0) {
313 return fd;
321 int fd, const char *proto,
333 rv = getsockname(fd, &sa, &len);
338 "getsockname on %d failed.", fd);
342 si.os_sock = &fd;
320 alloc_systemd_listener(process_rec * process, int fd, const char *proto, ap_listen_rec **out_rec) argument
378 int fd = find_systemd_socket(process, port); local
[all...]
H A Dmpm_unix.c528 apr_os_file_t fd; local
534 apr_os_file_get(&fd, pod->pod_in);
535 rc = read(fd, &c, 1);
H A Dcore.c4553 apr_file_t *fd = NULL; local
4628 if ((status = apr_file_open(&fd, r->filename, APR_READ | APR_BINARY
4645 ap_md5digest(r->pool, fd));
4651 apr_file_close(fd);
4655 e = apr_brigade_insert_file(bb, fd, 0, r->finfo.size, r->pool);
/httpd/support/
H A Drotatelogs.c85 /* Structure to contain relevant logfile state: fd, pool and
89 apr_file_t *fd; member in struct:logfile
196 apr_file_close(logfile->fd);
234 if (status->current.fd == NULL) {
241 if (apr_file_info_get(&finfo, APR_FINFO_SIZE, status->current.fd) == APR_SUCCESS) {
325 if (status->current.fd) {
352 if (apr_file_trunc(status->current.fd, 0) != APR_SUCCESS) {
356 if (apr_file_write_full(status->current.fd, message, buflen, NULL) != APR_SUCCESS) {
460 rv = apr_file_open(&newlog.fd, newlog.name, APR_WRITE | APR_CREATE | APR_APPEND
461 | (config->truncate || (config->num_files > 0 && status->current.fd)
[all...]
H A Dhtcacheclean.c412 apr_file_t *fd; local
444 if (apr_file_open(&fd, nextpath, APR_FOPEN_READ
447 if (apr_file_read_full(fd, &format, len, &len)
452 apr_file_seek(fd, APR_SET, &offset);
456 if (apr_file_read_full(fd, &disk_info, len, &len)
462 if (apr_file_read_full(fd, url, len, &len)
470 &hinfo, APR_FINFO_SIZE, fd)) {
565 apr_file_close(fd);
601 apr_file_t *fd; local
616 fd
[all...]
H A Dab.c1278 apr_os_sock_t fd; local
1286 apr_os_sock_get(&fd, c->aprsock);
1287 bio = BIO_new_socket(fd, BIO_NOCLOSE);
/httpd/modules/arch/netware/
H A Dmod_nw_ssl.c111 int fd; member in struct:seclisten_rec
226 return sl->fd;
552 new->fd = -1;
782 if (((sl->fd = find_secure_listener(sl)) >= 0) && (sl->used)) {
786 if (sl->fd < 0)
787 sl->fd = make_secure_socket(s->process->pool, &sl->local_addr, sl->key, sl->mutual, s);
789 if (sl->fd >= 0) {
792 sock_info.os_sock = &(sl->fd);
/httpd/modules/arch/win32/
H A Dmod_isapi.c1053 apr_file_t *fd; local
1068 if ((rv = apr_os_file_put(&fd, &tf->hFile,
1078 if (apr_file_info_get(&fi, APR_FINFO_SIZE, fd) != APR_SUCCESS) {
1085 /* apr_dupfile_oshandle (&fd, tf->hFile, r->pool); */
1124 apr_brigade_insert_file(bb, fd, tf->Offset, fsize, r->pool);
/httpd/modules/generators/
H A Dmod_cgi.c576 apr_pollfd_t fd; local
594 fd.desc_type = APR_POLL_FILE;
595 fd.reqevents = APR_POLLIN;
596 fd.p = r->pool;
597 fd.desc.f = out; /* script's stdout */
598 fd.client_data = (void *)1;
599 rv = apr_pollset_add(data->pollset, &fd);
606 fd.desc.f = err; /* script's stderr */
607 fd.client_data = (void *)2;
608 rv = apr_pollset_add(data->pollset, &fd);
[all...]
H A Dmod_cgid.c340 int fd = (int)((long)thefd); local
342 return close(fd);
348 static apr_status_t sock_read(int fd, void *vbuf, size_t buf_size) argument
356 rc = read(fd, buf + bytes_read, buf_size - bytes_read);
373 static apr_status_t sock_write(int fd, const void *buf, size_t buf_size) argument
378 rc = write(fd, buf, buf_size);
387 static apr_status_t sock_writev(int fd, request_rec *r, int count, ...) argument
403 rc = writev(fd, vec, count);
412 static apr_status_t get_req(int fd, request_rec *r, char **argv0, char ***env, argument
424 stat = sock_read(fd, re
482 send_req(int fd, request_rec *r, char *argv0, char **env, int req_type) argument
[all...]
/httpd/modules/dav/fs/
H A Drepos.c962 /* (APR registers cleanups for the fd with the pool) */
1076 apr_file_t *fd; local
1093 if ((status = apr_file_open(&fd, resource->info->pathname,
1102 apr_brigade_insert_file(bb, fd, 0, resource->info->finfo.size, pool);
/httpd/modules/metadata/
H A Dmod_mime_magic.c824 apr_file_t *fd = NULL; local
843 if (apr_file_open(&fd, r->filename, APR_READ, APR_OS_DEFAULT, r->pool) != APR_SUCCESS) {
855 if ((result = apr_file_read(fd, (char *) buf, &nbytes)) != APR_SUCCESS) {
872 (void) apr_file_close(fd);

Completed in 96 milliseconds