]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: tree-wide: remove 25 occurrences of unneeded fcntl.h
authorWilly Tarreau <w@1wt.eu>
Tue, 26 Apr 2022 08:30:35 +0000 (10:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Apr 2022 08:59:48 +0000 (10:59 +0200)
There were plenty of leftovers from old code that were never removed
and that are not needed at all since these files do not use any
definition depending on fcntl.h, let's drop them.

25 files changed:
src/backend.c
src/cfgparse-global.c
src/cfgparse-listen.c
src/cfgparse-ssl.c
src/cfgparse-tcp.c
src/cfgparse-unix.c
src/cfgparse.c
src/check.c
src/extcheck.c
src/frontend.c
src/listener.c
src/peers.c
src/proto_udp.c
src/proto_uxdg.c
src/proxy.c
src/resolvers.c
src/ssl_sample.c
src/ssl_sock.c
src/stats.c
src/stream.c
src/tcp_act.c
src/tcp_sample.c
src/tcpcheck.c
src/thread.c
src/xprt_quic.c

index c4a0868f39d93d9f4cb2ac9ec26e9f3f5f74ab2d..a887eb2ea9873926926486ae732801bc87a475aa 100644 (file)
@@ -11,7 +11,6 @@
  */
 
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <syslog.h>
index c9b7d6e0159c344f0997ba64420cd8a71ba0f1d5..b4dd849488839558dadde86cff58c68aefb44ccf 100644 (file)
@@ -9,7 +9,6 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <fcntl.h>
 #include <unistd.h>
 
 #include <haproxy/buf.h>
index bcc89ba364d27bc319dddfc1909d1fbef1f25884..d8902953edb0597415e2e2435e78b606478f34ce 100644 (file)
@@ -8,7 +8,6 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <fcntl.h>
 #include <unistd.h>
 
 #include <haproxy/acl.h>
index 5db69b24d82ed195679ceea6961658f96baf0f0c..831a3ca5e1b72a09391cd43b27e0e927181bf91f 100644 (file)
@@ -22,7 +22,6 @@
 #include <ctype.h>
 #include <dirent.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index a15a110ef5489966974ed7eb110ca66d289b9c56..13d433e059dabfe6dc796863e7db04525aa6dab4 100644 (file)
@@ -12,7 +12,6 @@
 
 #include <ctype.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 2e7e8232ebf2ec4818d2a6303a1cfa9f0b6f3d86..b1fb1e2804416f3b39e3b7cfdf0d95b8e35100ea 100644 (file)
@@ -12,7 +12,6 @@
 
 #include <ctype.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <grp.h>
 #include <pwd.h>
 #include <stdio.h>
index e14db075d562777c07eaa4f1ab117b99fb0349ba..48d588436fa0e4c74731a5d4fdea045ff34d69d1 100644 (file)
@@ -31,7 +31,6 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <fcntl.h>
 #include <unistd.h>
 
 #include <haproxy/acl.h>
index fdc82f526c689c25fbf7bdf1bc94bef96bd9b5aa..2db82c4ab7c06ae0ac7a7297cf8a1a1e15506b2c 100644 (file)
@@ -14,7 +14,6 @@
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
index bcc1f8830e19966ba42ac183fbced8035a6bcf05..0d2194a1a59a169bf6ce701eee7b08c861d9c24e 100644 (file)
@@ -18,7 +18,6 @@
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <signal.h>
 #include <stdarg.h>
 #include <stdio.h>
index b245d098e6cc04321579ebeb5f85c20e8b406bb3..55a4c07673a28ee383a636704830c83992611e87 100644 (file)
@@ -11,7 +11,6 @@
  */
 
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index b9467e94eb60b0b7f7a853f93b9d2e4dc2c01f49..721cc4117d8008cb6cdc0239ea30995f43dfae1a 100644 (file)
@@ -15,7 +15,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
-#include <fcntl.h>
 
 #include <haproxy/acl.h>
 #include <haproxy/api.h>
index 2cb2433545258942bde19c7066b4f99c13ab8a91..3c396958a39bbeca3f71d725d7c26dbec66c8e5f 100644 (file)
@@ -11,7 +11,6 @@
  */
 
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index a3b455c36ae1e0004cb434b058f4020af1abecb7..3474d4e787eadbe9d362667650f6cad1624a230e 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <ctype.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 6f070b4c17af046f2c72ee3ffc815cd9c586f1bc..8951651f493af69fe7d28decb8def29b230e8c35 100644 (file)
@@ -12,7 +12,6 @@
 
 #include <ctype.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 0cf3cca9905f25bc8ca31249a730f5eb5559d2bc..ba32f94194168d22a8083aa5d39020849ed7553c 100644 (file)
@@ -10,7 +10,6 @@
  *
  */
 
-#include <fcntl.h>
 #include <unistd.h>
 #include <string.h>
 #include <sys/types.h>
index ef60bd6f3c9a0c901eb778ca84668b6a605bae14..0b7faf93d64ccc3b578e4176e29e841503865d5c 100644 (file)
@@ -11,7 +11,6 @@
  */
 
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 437952619c4efd8254472df8380979d4c040159b..46697cec6f1c8790445e6086036ed09ef8201a13 100644 (file)
@@ -14,7 +14,6 @@
 #include <ctype.h>
 #include <dirent.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 92121860eade1f3376921f689a50828518d7e908..19e41fd877ac12df808daaee2c714ddeb168536a 100644 (file)
@@ -28,7 +28,6 @@
 #include <ctype.h>
 #include <dirent.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 2367fb614f4f9f25e058ed81125374275a420623..d918ee68e1ee73e1457a8f0a78f81e286ea725b8 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <ctype.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 3d5c7406914e8da7a182386c2fbc1185beada2b3..eb9f03f5396afeefc0342936bb09e46f45eef7f6 100644 (file)
@@ -12,7 +12,6 @@
 
 #include <stdlib.h>
 #include <unistd.h>
-#include <fcntl.h>
 
 #include <import/ebistree.h>
 
index 663c57e1a47c5b64ca7e9c486aa0127c02bacb18..7608643b376dd12854bef65151de668939d16e8f 100644 (file)
@@ -12,7 +12,6 @@
 
 #include <ctype.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index fb4ebb2b81dfd799a036ea2d8e72de7b0af2c762..0d0c28aec6bf463bc14c3bfc3ab68a335a944b97 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <ctype.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 0ac825e0601296e90e5947962f4955c3421cbe1f..4a4e071d3940143a5bccd1dc12918b9e40232deb 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <ctype.h>
 #include <errno.h>
-#include <fcntl.h>
 #include <signal.h>
 #include <stdarg.h>
 #include <stdio.h>
index 9d601cc1d024b339b63c4801c0c040671c66c66b..7318de973c02cb22760f371cce6f5019c9dfe1f4 100644 (file)
@@ -13,7 +13,6 @@
 #define _GNU_SOURCE
 #include <unistd.h>
 #include <stdlib.h>
-#include <fcntl.h>
 
 #include <signal.h>
 #include <unistd.h>
index 0b2c59c6fcc0ced094de034097031f1560bd66fc..5691f63d9f0de05a3e7e42ab184c72297581bc06 100644 (file)
@@ -12,7 +12,6 @@
 
 #define _GNU_SOURCE
 #include <errno.h>
-#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>