2
0
Alexander Shiryaev 8 жил өмнө
parent
commit
83c8d45503

+ 1 - 0
BlackBox/_FreeBSDLinuxOpenBSD_/Lin/Mod/gen-Net/Net.txt.templ

@@ -25,6 +25,7 @@ MODULE LinNet ["libc.so%%libver%%"];
 %%defs-shut%%
 %%defs-sol%%
 %%defs-msg%%
+%%defs-somaxconn%%
 		(* addrinfo.ai_flags *)
 %%defs-ai%%
 		(* getaddrinfo/getnameinfo/gai_strerror error codes *)

+ 3 - 3
BlackBox/_FreeBSD_/Lin/Mod/gen-Net/Makefile

@@ -8,7 +8,7 @@ INCDIR ?= /usr/include
 
 PY = python2.7
 
-DEFS = defs-basictypes defs-af defs-sock defs-proto defs-shut defs-so defs-sol defs-msg defs-ai defs-eai
+DEFS = defs-basictypes defs-af defs-sock defs-proto defs-shut defs-so defs-sol defs-msg defs-ai defs-eai defs-somaxconn
 
 all: Net.txt ${DEFS}
 
@@ -33,8 +33,8 @@ defs-sol:
 defs-msg:
 	./dumpdefs.py 2 1 s ${INCDIR}/sys/socket.h | grep "	MSG_" > ${.TARGET}
 
-#somaxconn:
-#	./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep "	SOMAXCONN" > ${.TARGET}
+defs-somaxconn:
+	./dumpdefs.py 2 1 i ${INCDIR}/sys/socket.h | grep "	SOMAXCONN" > ${.TARGET}
 
 defs-so:
 	./dumpdefs.py 3 1 s ${INCDIR}/sys/socket.h | grep "	SO_" > ${.TARGET}

+ 3 - 3
BlackBox/_Linux_/Lin/Mod/gen-Net/Makefile

@@ -8,7 +8,7 @@ INCDIR ?= /usr/include
 
 PY = python2.7
 
-DEFS = defs-basictypes defs-af defs-so defs-sol defs-ai defs-eai
+DEFS = defs-basictypes defs-af defs-so defs-sol defs-ai defs-eai defs-somaxconn
 
 all: Net.txt ${DEFS}
 
@@ -24,8 +24,8 @@ defs-af:
 defs-sol:
 	./dumpdefs.py 2 1 i ${INCDIR}/asm-generic/socket.h | grep "	SOL_" > $@
 
-#somaxconn:
-#	./dumpdefs.py 3 1 i ${INCDIR}/i386-linux-gnu/bits/socket.h | grep "	SOMAXCONN" > $@
+defs-somaxconn:
+	./dumpdefs.py 2 1 i ${INCDIR}/i386-linux-gnu/bits/socket.h | grep "	SOMAXCONN" > $@
 
 defs-so:
 	./dumpdefs.py 3 1 s ${INCDIR}/asm-generic/socket.h | grep "	SO_" > $@

+ 2 - 0
BlackBox/_OpenBSD_/Lin/Mod/Net.txt

@@ -141,6 +141,8 @@ MODULE LinNet ["libc.so.89.2"];
 		MSG_NOSIGNAL* = {10}; (* do not send SIGPIPE *)
 		MSG_CMSG_CLOEXEC* = {11}; (* set FD_CLOEXEC on received fds *)
 
+		SOMAXCONN* = 128;
+
 		(* addrinfo.ai_flags *)
 			AI_PASSIVE* = {0}; (* socket address is intended for bind() *)
 			AI_CANONNAME* = {1}; (* request for canonical name *)

+ 3 - 3
BlackBox/_OpenBSD_/Lin/Mod/gen-Net/Makefile

@@ -8,7 +8,7 @@ INCDIR ?= /usr/include
 
 PY = python2.7
 
-DEFS = defs-basictypes defs-af defs-sock defs-proto defs-shut defs-so defs-sol defs-msg defs-ai defs-eai
+DEFS = defs-basictypes defs-af defs-sock defs-proto defs-shut defs-so defs-sol defs-msg defs-ai defs-eai defs-somaxconn
 
 all: Net.txt ${DEFS}
 
@@ -33,8 +33,8 @@ defs-sol:
 defs-msg:
 	./dumpdefs.py 2 1 s ${INCDIR}/sys/socket.h | grep "	MSG_" > ${.TARGET}
 
-#somaxconn:
-#	./dumpdefs.py 3 1 i ${INCDIR}/sys/socket.h | grep "	SOMAXCONN" > ${.TARGET}
+defs-somaxconn:
+	./dumpdefs.py 2 1 i ${INCDIR}/sys/socket.h | grep "	SOMAXCONN" > ${.TARGET}
 
 defs-so:
 	./dumpdefs.py 3 1 s ${INCDIR}/sys/socket.h | grep "	SO_" > ${.TARGET}