mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	 04b9dc2d30
			
		
	
	
		04b9dc2d30
		
	
	
	
	
		
			
			Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			528 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			528 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <sys/cdefs.h>
 | |
| #include <sys/types.h>
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| 
 | |
| struct hostent {
 | |
|     char* h_name;
 | |
|     char** h_aliases;
 | |
|     int h_addrtype;
 | |
|     int h_length;
 | |
|     char** h_addr_list;
 | |
| #define h_addr h_addr_list[0]
 | |
| };
 | |
| 
 | |
| struct hostent* gethostbyname(const char*);
 | |
| struct hostent* gethostbyaddr(const void* addr, socklen_t len, int type);
 | |
| 
 | |
| struct servent {
 | |
|     char* s_name;
 | |
|     char** s_aliases;
 | |
|     int s_port;
 | |
|     char* s_proto;
 | |
| };
 | |
| 
 | |
| struct servent* getservbyname(const char* name, const char* protocol);
 | |
| 
 | |
| __END_DECLS
 |