aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2026-01-23 10:14:04 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2026-01-23 10:14:04 +0100
commita5f120b6205c4e22792c818350b33bf57644ed1c (patch)
treeed04cab0817886ddb89afa8aebd7a3a3282d0341 /include
parent01ea35e81d7f3dcc9d5032ac53b794a5e9d7cedd (diff)
downloadbusybox-w32-a5f120b6205c4e22792c818350b33bf57644ed1c.tar.gz
busybox-w32-a5f120b6205c4e22792c818350b33bf57644ed1c.tar.bz2
busybox-w32-a5f120b6205c4e22792c818350b33bf57644ed1c.zip
httpd: simplify CGI headers handling, check "HTTP/1.1" prefix, not just "HTTP"
function old new delta cgi_io_loop_and_exit 477 498 +21 .rodata 106830 106821 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 21/-9) Total: 12 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/platform.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index a5b61757f..c449075b9 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -211,6 +211,7 @@
211# define IF_LITTLE_ENDIAN(...) 211# define IF_LITTLE_ENDIAN(...)
212/* How do bytes a,b,c,d (sequential in memory) look if fetched into uint32_t? */ 212/* How do bytes a,b,c,d (sequential in memory) look if fetched into uint32_t? */
213# define PACK32_BYTES(a,b,c,d) (uint32_t)((d)+((c)<<8)+((b)<<16)+((a)<<24)) 213# define PACK32_BYTES(a,b,c,d) (uint32_t)((d)+((c)<<8)+((b)<<16)+((a)<<24))
214# define PACK64_LITERAL_STR(s) (((uint64_t)PACK32_BYTES((s)[0],(s)[1],(s)[2],(s)[3])<<32) + PACK32_BYTES((s)[4],(s)[5],(s)[6],(s)[7]))
214#else 215#else
215# define SWAP_BE16(x) bswap_16(x) 216# define SWAP_BE16(x) bswap_16(x)
216# define SWAP_BE32(x) bswap_32(x) 217# define SWAP_BE32(x) bswap_32(x)
@@ -221,6 +222,7 @@
221# define IF_BIG_ENDIAN(...) 222# define IF_BIG_ENDIAN(...)
222# define IF_LITTLE_ENDIAN(...) __VA_ARGS__ 223# define IF_LITTLE_ENDIAN(...) __VA_ARGS__
223# define PACK32_BYTES(a,b,c,d) (uint32_t)((a)+((b)<<8)+((c)<<16)+((d)<<24)) 224# define PACK32_BYTES(a,b,c,d) (uint32_t)((a)+((b)<<8)+((c)<<16)+((d)<<24))
225# define PACK64_LITERAL_STR(s) (((uint64_t)PACK32_BYTES((s)[4],(s)[5],(s)[6],(s)[7])<<32) + PACK32_BYTES((s)[0],(s)[1],(s)[2],(s)[3]))
224#endif 226#endif
225 227
226 228