Cygwin: drop unused device nodes and clean up socket devices
* Rename DEV_TCP_MAJOR to DEV_SOCK_MAJOR * Drop FH_TCP, FH_UDP, FH_ICMP in favor of single FH_INET * Drop FH_UNIX, FH_STREAM, FH_DGRAM in favor of single FH_LOCAL Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@ -871,7 +871,7 @@ fhandler_socket::fstat (struct stat *buf)
|
||||
res = fhandler_socket::fstat (buf);
|
||||
if (!res)
|
||||
{
|
||||
buf->st_dev = FHDEV (DEV_TCP_MAJOR, 0);
|
||||
buf->st_dev = FHDEV (DEV_SOCK_MAJOR, 0);
|
||||
if (!(buf->st_ino = get_plain_ino ()))
|
||||
sscanf (get_name (), "/proc/%*d/fd/socket:[%lld]",
|
||||
(long long *) &buf->st_ino);
|
||||
|
Reference in New Issue
Block a user