summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc/unix
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-02-13 10:40:24 +0000
committerjsg <jsg@openbsd.org>2020-02-13 10:40:24 +0000
commit33716e8274cd0e70f15728796636a383c8f1ce03 (patch)
tree58bef2fc42678f10ecac400e0b0412cf4a09e53e /usr.bin/dig/lib/isc/unix
parentNo need for "high performance" macros. (diff)
downloadwireguard-openbsd-33716e8274cd0e70f15728796636a383c8f1ce03.tar.xz
wireguard-openbsd-33716e8274cd0e70f15728796636a383c8f1ce03.zip
remove unused macros
ok florian@
Diffstat (limited to 'usr.bin/dig/lib/isc/unix')
-rw-r--r--usr.bin/dig/lib/isc/unix/socket.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/usr.bin/dig/lib/isc/unix/socket.c b/usr.bin/dig/lib/isc/unix/socket.c
index d909b495e8f..38f0f87ad7e 100644
--- a/usr.bin/dig/lib/isc/unix/socket.c
+++ b/usr.bin/dig/lib/isc/unix/socket.c
@@ -63,7 +63,6 @@ int isc_dscp_check_value = -1;
/*%
* Size of per-FD lock buckets.
*/
-#define FDLOCK_COUNT 1
#define FDLOCK_ID(fd) 0
/*%
@@ -88,19 +87,16 @@ int isc_dscp_check_value = -1;
/*!<
* DLVL(90) -- Function entry/exit and other tracing.
- * DLVL(70) -- Socket "correctness" -- including returning of events, etc.
* DLVL(60) -- Socket data send/receive
* DLVL(50) -- Event tracing, including receiving/sending completion events.
* DLVL(20) -- Socket creation/destruction.
*/
#define TRACE_LEVEL 90
-#define CORRECTNESS_LEVEL 70
#define IOEVENT_LEVEL 60
#define EVENT_LEVEL 50
#define CREATION_LEVEL 20
#define TRACE DLVL(TRACE_LEVEL)
-#define CORRECTNESS DLVL(CORRECTNESS_LEVEL)
#define IOEVENT DLVL(IOEVENT_LEVEL)
#define EVENT DLVL(EVENT_LEVEL)
#define CREATION DLVL(CREATION_LEVEL)
@@ -123,11 +119,6 @@ typedef isc_event_t intev_t;
*/
/*%
- * The size to raise the receive buffer to (from BIND 8).
- */
-#define RCVBUFSIZE (32*1024)
-
-/*%
* Instead of calculating the cmsgbuf lengths every time we take
* a rule of thumb approach - sizes are taken from x86_64 linux,
* multiplied by 2, everything should fit. Those sizes are not
@@ -152,8 +143,6 @@ typedef isc_event_t intev_t;
typedef struct isc__socket isc__socket_t;
typedef struct isc__socketmgr isc__socketmgr_t;
-#define NEWCONNSOCK(ev) ((isc__socket_t *)(ev)->newsocket)
-
struct isc__socket {
/* Not locked. */
isc_socket_t common;
@@ -312,9 +301,7 @@ static isc_socketmgrmethods_t socketmgrmethods = {
};
#define SELECT_POKE_SHUTDOWN (-1)
-#define SELECT_POKE_NOTHING (-2)
#define SELECT_POKE_READ (-3)
-#define SELECT_POKE_ACCEPT (-3) /*%< Same as _READ */
#define SELECT_POKE_WRITE (-4)
#define SELECT_POKE_CONNECT (-4) /*%< Same as _WRITE */
#define SELECT_POKE_CLOSE (-5)