Cygwin: Introduce FH_SOCKET for generic socket file ops

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2018-02-23 19:45:59 +01:00
parent b79018ee3a
commit eaf359574d
4 changed files with 12 additions and 3 deletions

View File

@ -120,6 +120,9 @@ const _device dev_piper_storage =
const _device dev_pipew_storage =
{"", {FH_PIPEW}, "", exists_internal};
const _device dev_socket_storage =
{"", {FH_SOCKET}, "", exists_internal};
const _device dev_af_inet_storage =
{"", {FH_INET}, "", exists_internal};

View File

@ -242,6 +242,7 @@ enum fh_devices
FH_OSS_DSP = FHDEV (DEV_SOUND_MAJOR, 3),
DEV_SOCK_MAJOR = 30,
FH_SOCKET = FHDEV (DEV_SOCK_MAJOR, 0),
FH_INET = FHDEV (DEV_SOCK_MAJOR, 36),
FH_LOCAL = FHDEV (DEV_SOCK_MAJOR, 120),
@ -390,10 +391,12 @@ extern const _device *ptmx_dev;
extern const _device *ptys_dev;
extern const _device *urandom_dev;
extern const _device dev_af_local_storage;
#define af_local_dev ((device *) &dev_af_local_storage)
extern const _device dev_socket_storage;
#define socket_dev ((device *) &dev_socket_storage)
extern const _device dev_af_inet_storage;
#define af_inet_dev ((device *) &dev_af_inet_storage)
extern const _device dev_af_local_storage;
#define af_local_dev ((device *) &dev_af_local_storage)
extern const _device dev_piper_storage;
#define piper_dev ((device *) &dev_piper_storage)

View File

@ -116,6 +116,9 @@ const _device dev_piper_storage =
const _device dev_pipew_storage =
{"", {FH_PIPEW}, "", exists_internal};
const _device dev_socket_storage =
{"", {FH_SOCKET}, "", exists_internal};
const _device dev_af_inet_storage =
{"", {FH_INET}, "", exists_internal};

View File

@ -864,7 +864,7 @@ path_conv::check (const char *src, unsigned opt,
if (component == 0)
{
fileattr = 0;
dev.parse (FH_INET);
dev.parse (FH_SOCKET);
}
break;
case virt_fsdir: