Cygwin: Introduce FH_SOCKET for generic socket file ops
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
b79018ee3a
commit
eaf359574d
|
@ -120,6 +120,9 @@ const _device dev_piper_storage =
|
||||||
const _device dev_pipew_storage =
|
const _device dev_pipew_storage =
|
||||||
{"", {FH_PIPEW}, "", exists_internal};
|
{"", {FH_PIPEW}, "", exists_internal};
|
||||||
|
|
||||||
|
const _device dev_socket_storage =
|
||||||
|
{"", {FH_SOCKET}, "", exists_internal};
|
||||||
|
|
||||||
const _device dev_af_inet_storage =
|
const _device dev_af_inet_storage =
|
||||||
{"", {FH_INET}, "", exists_internal};
|
{"", {FH_INET}, "", exists_internal};
|
||||||
|
|
||||||
|
|
|
@ -242,6 +242,7 @@ enum fh_devices
|
||||||
FH_OSS_DSP = FHDEV (DEV_SOUND_MAJOR, 3),
|
FH_OSS_DSP = FHDEV (DEV_SOUND_MAJOR, 3),
|
||||||
|
|
||||||
DEV_SOCK_MAJOR = 30,
|
DEV_SOCK_MAJOR = 30,
|
||||||
|
FH_SOCKET = FHDEV (DEV_SOCK_MAJOR, 0),
|
||||||
FH_INET = FHDEV (DEV_SOCK_MAJOR, 36),
|
FH_INET = FHDEV (DEV_SOCK_MAJOR, 36),
|
||||||
FH_LOCAL = FHDEV (DEV_SOCK_MAJOR, 120),
|
FH_LOCAL = FHDEV (DEV_SOCK_MAJOR, 120),
|
||||||
|
|
||||||
|
@ -390,10 +391,12 @@ extern const _device *ptmx_dev;
|
||||||
extern const _device *ptys_dev;
|
extern const _device *ptys_dev;
|
||||||
extern const _device *urandom_dev;
|
extern const _device *urandom_dev;
|
||||||
|
|
||||||
extern const _device dev_af_local_storage;
|
extern const _device dev_socket_storage;
|
||||||
#define af_local_dev ((device *) &dev_af_local_storage)
|
#define socket_dev ((device *) &dev_socket_storage)
|
||||||
extern const _device dev_af_inet_storage;
|
extern const _device dev_af_inet_storage;
|
||||||
#define af_inet_dev ((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;
|
extern const _device dev_piper_storage;
|
||||||
#define piper_dev ((device *) &dev_piper_storage)
|
#define piper_dev ((device *) &dev_piper_storage)
|
||||||
|
|
|
@ -116,6 +116,9 @@ const _device dev_piper_storage =
|
||||||
const _device dev_pipew_storage =
|
const _device dev_pipew_storage =
|
||||||
{"", {FH_PIPEW}, "", exists_internal};
|
{"", {FH_PIPEW}, "", exists_internal};
|
||||||
|
|
||||||
|
const _device dev_socket_storage =
|
||||||
|
{"", {FH_SOCKET}, "", exists_internal};
|
||||||
|
|
||||||
const _device dev_af_inet_storage =
|
const _device dev_af_inet_storage =
|
||||||
{"", {FH_INET}, "", exists_internal};
|
{"", {FH_INET}, "", exists_internal};
|
||||||
|
|
||||||
|
|
|
@ -864,7 +864,7 @@ path_conv::check (const char *src, unsigned opt,
|
||||||
if (component == 0)
|
if (component == 0)
|
||||||
{
|
{
|
||||||
fileattr = 0;
|
fileattr = 0;
|
||||||
dev.parse (FH_INET);
|
dev.parse (FH_SOCKET);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case virt_fsdir:
|
case virt_fsdir:
|
||||||
|
|
Loading…
Reference in New Issue