mirror of
				https://git.haproxy.org/git/haproxy.git/
				synced 2025-10-31 00:21:00 +01:00 
			
		
		
		
	The code that is there to run some unit tests on some internal features was moved to tests/unit. Ideally it should be buildable from the main makefile though this is not yet the case. The code that is kept for experimentation purposes (hashes, syscall optimization etc) as well as some captures of the results was moved to tests/exp. A few totally obsolete files which couldn't build anymore and were not relevant to current versions were removed.
		
			
				
	
	
		
			29 lines
		
	
	
		
			647 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			647 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <stdio.h>
 | |
| #include <stdlib.h>
 | |
| #include <unistd.h>
 | |
| #include <string.h>
 | |
| #include <ctype.h>
 | |
| #include <sys/time.h>
 | |
| #include <sys/types.h>
 | |
| #include <sys/socket.h>
 | |
| #include <netinet/tcp.h>
 | |
| #include <netinet/in.h>
 | |
| #include <arpa/inet.h>
 | |
| #include <netdb.h>
 | |
| #include <fcntl.h>
 | |
| #include <errno.h>
 | |
| #include <signal.h>
 | |
| #include <stdarg.h>
 | |
| #include <sys/resource.h>
 | |
| #include <time.h>
 | |
| #include <regex.h>
 | |
| #include <syslog.h>
 | |
| 
 | |
| 
 | |
| int main() {
 | |
|     printf("sizeof sockaddr=%d\n", sizeof(struct sockaddr));
 | |
|     printf("sizeof sockaddr_in=%d\n", sizeof(struct sockaddr_in));
 | |
|     printf("sizeof sockaddr_in6=%d\n", sizeof(struct sockaddr_in6));
 | |
|     return 0;
 | |
| }
 |