[C言語][Solaris][メモ]d:id:nattou_curry_2:20081021:1224602187で使用したオブジェクト

忘れないようにメモ。
後でちゃんと整理予定。

/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/include/stdio.h
	extern int  printf(const char *_RESTRICT_KYWD, ...);

/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/include/string.h
	typedef unsigned long   size_t; 
	extern void *memset(void *, int, size_t);

/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/include/sys/types.h
	typedef unsigned long   u_long;
	typedef unsigned int        uint32_t;
	typedef size_t      socklen_t;

/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/include/netinet/in.h
	/*
	 * IPv4 Internet address
	 *  This definition contains obsolete fields for compatibility
	 *  with SunOS 3.x and 4.2bsd.  The presence of subnets renders
	 *  divisions into fixed fields misleading at best.  New code
	 *  should use only the s_addr field.
	 */
	struct in_addr {
        uint32_t _S_addr;
	};
	/*
	 * IPv4 Socket address.
	 */
	struct sockaddr_in {
	    sa_family_t sin_family;
	    in_port_t   sin_port;
	    struct  in_addr sin_addr;
	    char        sin_zero[8];
	};

/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/include/netdb.h
	int     getaddrinfo(const char *_RESTRICT_KYWD,
	            const char *_RESTRICT_KYWD,
	            const struct addrinfo *_RESTRICT_KYWD,
	            struct addrinfo **_RESTRICT_KYWD);
	/*
	 * addrinfo introduced with IPv6 for Protocol-Independent Hostname
	 * and Service Name Translation.
	 */

	struct addrinfo {
	    int ai_flags;       /* AI_PASSIVE, AI_CANONNAME, ... */
	    int ai_family;      /* PF_xxx */
	    int ai_socktype;    /* SOCK_xxx */
	    int ai_protocol;    /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
	    socklen_t ai_addrlen;
	    char *ai_canonname; /* canonical name for hostname */
	    struct sockaddr *ai_addr;   /* binary address */
	    struct addrinfo *ai_next;   /* next structure in linked list */
	};