diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-03-07 15:39:35 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-03-07 15:39:35 +0000 |
commit | 8981489becf128c41e2befa6c03e2385e5e396d9 (patch) | |
tree | 1fcf1178cc6256509afb77f873f2d6d834a30f21 /winsup/cygwin/include/sys | |
parent | b5545a7b7e98f79c4c3b4b6e735c77ed2b78b9d2 (diff) | |
download | cygnal-8981489becf128c41e2befa6c03e2385e5e396d9.tar.gz cygnal-8981489becf128c41e2befa6c03e2385e5e396d9.tar.bz2 cygnal-8981489becf128c41e2befa6c03e2385e5e396d9.zip |
* include/sys/un.h (UNIX_PATH_MAX): Rename from UNIX_PATH_LEN to
follow Linux.
* fhandler_socket.cc: Change UNIX_PATH_LEN to UNIX_PATH_MAX throughout.
(fhandler_socket::recv_internal): Don't return prematurely in case of
successful return. For AF_LOCAL sockets, overwrite returned AF_INET
name with AF_LOCAL name.
Diffstat (limited to 'winsup/cygwin/include/sys')
-rw-r--r-- | winsup/cygwin/include/sys/un.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/include/sys/un.h b/winsup/cygwin/include/sys/un.h index 3d72ba277..a2f3dacb1 100644 --- a/winsup/cygwin/include/sys/un.h +++ b/winsup/cygwin/include/sys/un.h @@ -1,6 +1,6 @@ /* sys/un.h - Copyright 1999, 2000, 2001, 2005, 2009 Red Hat, Inc. + Copyright 1999, 2000, 2001, 2005, 2009, 2013 Red Hat, Inc. This file is part of Cygwin. @@ -15,11 +15,11 @@ details. */ #include <cygwin/socket.h> /* POSIX requires only at least 100 bytes */ -#define UNIX_PATH_LEN 108 +#define UNIX_PATH_MAX 108 struct sockaddr_un { sa_family_t sun_family; /* address family AF_LOCAL/AF_UNIX */ - char sun_path[UNIX_PATH_LEN]; /* 108 bytes of socket address */ + char sun_path[UNIX_PATH_MAX]; /* 108 bytes of socket address */ }; /* Evaluates the actual length of `sockaddr_un' structure. */ |