summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_fastcgi_source.h
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-03-27 19:28:54 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-04-24 19:39:09 +0100
commitb9177d36e71a9f62198b00fa40f277c06d2264bb (patch)
tree3941280ca6ab849457ba17a75afb4cc7feb183bc /src/nxt_fastcgi_source.h
parent6f36a67fc37004511299133e39d9a6fbb9d55a0c (diff)
downloadunit-b9177d36e71a9f62198b00fa40f277c06d2264bb.tar.gz
unit-b9177d36e71a9f62198b00fa40f277c06d2264bb.tar.bz2
Remove a bunch of dead code.
This removes a bunch of unused files that would have been touched by subsequent commits that switch to using nxt_bool_t (AKA unit6_t) in structures. In auto/sources we have NXT_LIB_SRC0=" \ src/nxt_buf_filter.c \ src/nxt_job_file.c \ src/nxt_stream_module.c \ src/nxt_stream_source.c \ src/nxt_upstream_source.c \ src/nxt_http_source.c \ src/nxt_fastcgi_source.c \ src/nxt_fastcgi_record_parse.c \ \ src/nxt_mem_pool_cleanup.h \ src/nxt_mem_pool_cleanup.c \ " None of these seem to actually be used anywhere (other than within themselves). That variable is _not_ referenced anywhere else. Also remove the unused related header files: src/nxt_buf_filter.h, src/nxt_fastcgi_source.h, src/nxt_http_source.h, src/nxt_job_file.h, src/nxt_stream_source.h and src/nxt_upstream_source.h Also, these files do not seem to be used, no mention under auto/ or build/ src/nxt_file_cache.c src/nxt_cache.c src/nxt_job_file_cache.c src/nxt_cache.h is #included in src/nxt_main.h, but AFAICT is not actually used. With all the above removed $ ./configure --openssl --debug --tests && make -j && make -j tests && make libnxt all builds. Buildbot passes. NOTE: You may need to do a 'make clean' before the next build attempt. Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_fastcgi_source.h')
-rw-r--r--src/nxt_fastcgi_source.h93
1 files changed, 0 insertions, 93 deletions
diff --git a/src/nxt_fastcgi_source.h b/src/nxt_fastcgi_source.h
deleted file mode 100644
index 979e962b..00000000
--- a/src/nxt_fastcgi_source.h
+++ /dev/null
@@ -1,93 +0,0 @@
-
-/*
- * Copyright (C) Igor Sysoev
- * Copyright (C) NGINX, Inc.
- */
-
-#ifndef _NXT_FASTCGI_SOURCE_H_INCLUDED_
-#define _NXT_FASTCGI_SOURCE_H_INCLUDED_
-
-
-#define NXT_FASTCGI_BEGIN_REQUEST 1
-#define NXT_FASTCGI_ABORT_REQUEST 2
-#define NXT_FASTCGI_END_REQUEST 3
-#define NXT_FASTCGI_PARAMS 4
-#define NXT_FASTCGI_STDIN 5
-#define NXT_FASTCGI_STDOUT 6
-#define NXT_FASTCGI_STDERR 7
-#define NXT_FASTCGI_DATA 8
-
-
-typedef struct nxt_fastcgi_parse_s nxt_fastcgi_parse_t;
-
-struct nxt_fastcgi_parse_s {
- u_char *pos;
-
- uint16_t length; /* 16 bits */
- uint8_t padding;
- uint8_t type;
-
- uint8_t state;
- uint8_t fastcgi_error; /* 1 bit */
- uint8_t error; /* 1 bit */
- uint8_t done; /* 1 bit */
-
- /* FastCGI stdout and stderr buffer chains. */
- nxt_buf_t *out[2];
-
- nxt_buf_t *(*last_buf)(nxt_fastcgi_parse_t *fp);
- void *data;
- nxt_mp_t *mem_pool;
-};
-
-
-typedef struct {
- nxt_fastcgi_parse_t parse;
- nxt_source_hook_t next;
-} nxt_fastcgi_source_record_t;
-
-
-typedef struct {
- nxt_str_t name;
- nxt_str_t value;
- uintptr_t data[3];
-} nxt_fastcgi_source_request_t;
-
-
-typedef struct nxt_fastcgi_source_s nxt_fastcgi_source_t;
-typedef nxt_int_t (*nxt_fastcgi_source_request_create_t)(
- nxt_fastcgi_source_t *fs);
-
-
-struct nxt_fastcgi_source_s {
- nxt_source_hook_t query;
- nxt_source_hook_t *next;
-
- nxt_upstream_source_t *upstream;
-
- nxt_fastcgi_source_request_create_t request_create;
-
- nxt_upstream_header_in_t header_in;
-
- nxt_buf_t *rest;
-
- uint32_t state; /* 2 bits */
-
- nxt_fastcgi_source_record_t record;
-
- union {
- nxt_fastcgi_source_request_t request;
- } u;
-};
-
-
-NXT_EXPORT void nxt_fastcgi_source_handler(nxt_task_t *task,
- nxt_upstream_source_t *us,
- nxt_fastcgi_source_request_create_t request_create);
-NXT_EXPORT nxt_int_t nxt_fastcgi_source_hash_create(nxt_mp_t *mp,
- nxt_lvlhsh_t *lh);
-void nxt_fastcgi_record_parse(nxt_task_t *task, nxt_fastcgi_parse_t *fp,
- nxt_buf_t *in);
-
-
-#endif /* _NXT_FASTCGI_SOURCE_H_INCLUDED_ */