* include/cygwin/in.h: Drop including stdint.h. Move definition

of in_port_t and in_addr_t to top of file and use throughout. Use
	sa_family_t type where appropriate.
	(struct in6_addr): Change `unsigned char' to `uint8_t'.
	(struct sockaddr_in6): Add sin6_scope_id member. Add comments.
	* include/cygwin/socket.h: Include stdint.h.  Move definition of
	socklen_t to top of file.  Define sa_family_t.  Define struct
	sockaddr_storage as per SUSv3.
	* include/sys/un.h: Include cygwin/socket.h.  Use sa_family_t type.
This commit is contained in:
Corinna Vinschen
2005-12-31 13:07:43 +00:00
parent cf2af34b70
commit 1b68dd91cf
4 changed files with 51 additions and 18 deletions

View File

@ -1,6 +1,6 @@
/* sys/un.h
Copyright 1999, 2001 Red Hat, Inc.
Copyright 1999, 2001, 2005 Red Hat, Inc.
This file is part of Cygwin.
@ -11,11 +11,13 @@ details. */
#ifndef _SYS_UN_H
#define _SYS_UN_H
#include <cygwin/socket.h>
/* POSIX requires only at least 100 bytes */
#define UNIX_PATH_LEN 108
struct sockaddr_un {
unsigned short sun_family; /* address family AF_LOCAL/AF_UNIX */
sa_family_t sun_family; /* address family AF_LOCAL/AF_UNIX */
char sun_path[UNIX_PATH_LEN]; /* 108 bytes of socket address */
};