mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-06 15:06:25 +08:00
Cygwin: AF_UNIX: SCM_RIGHTS: support floppy descriptors
Untested.
This commit is contained in:
parent
f06ef1382f
commit
d262fdde0d
@ -372,9 +372,9 @@ fhandler_dev_floppy::close ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
fhandler_dev_floppy::dup (fhandler_base *child, int flags, DWORD)
|
fhandler_dev_floppy::dup (fhandler_base *child, int flags, DWORD src_pid)
|
||||||
{
|
{
|
||||||
int ret = fhandler_dev_raw::dup (child, flags);
|
int ret = fhandler_dev_raw::dup (child, flags, src_pid);
|
||||||
|
|
||||||
if (!ret && partitions)
|
if (!ret && partitions)
|
||||||
InterlockedIncrement (&partitions->refcnt);
|
InterlockedIncrement (&partitions->refcnt);
|
||||||
|
@ -79,9 +79,9 @@ fhandler_dev_raw::open (int flags, mode_t)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
fhandler_dev_raw::dup (fhandler_base *child, int flags, DWORD)
|
fhandler_dev_raw::dup (fhandler_base *child, int flags, DWORD src_pid)
|
||||||
{
|
{
|
||||||
int ret = fhandler_base::dup (child, flags);
|
int ret = fhandler_base::dup (child, flags, src_pid);
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
|
@ -2029,12 +2029,12 @@ fhandler_socket_unix::serialize (int fd)
|
|||||||
case DEV_PTYS_MAJOR:
|
case DEV_PTYS_MAJOR:
|
||||||
case DEV_CONS_MAJOR:
|
case DEV_CONS_MAJOR:
|
||||||
case DEV_PTYM_MAJOR:
|
case DEV_PTYM_MAJOR:
|
||||||
break;
|
|
||||||
case DEV_FLOPPY_MAJOR:
|
case DEV_FLOPPY_MAJOR:
|
||||||
case DEV_CDROM_MAJOR:
|
case DEV_CDROM_MAJOR:
|
||||||
case DEV_SD_MAJOR:
|
case DEV_SD_MAJOR:
|
||||||
case DEV_SD1_MAJOR ... DEV_SD7_MAJOR:
|
case DEV_SD1_MAJOR ... DEV_SD7_MAJOR:
|
||||||
case DEV_SD_HIGHPART_START ... DEV_SD_HIGHPART_END:
|
case DEV_SD_HIGHPART_START ... DEV_SD_HIGHPART_END:
|
||||||
|
break;
|
||||||
case DEV_TAPE_MAJOR:
|
case DEV_TAPE_MAJOR:
|
||||||
case DEV_SERIAL_MAJOR:
|
case DEV_SERIAL_MAJOR:
|
||||||
set_errno (EOPNOTSUPP);
|
set_errno (EOPNOTSUPP);
|
||||||
@ -2132,12 +2132,12 @@ fhandler_socket_unix::deserialize (void *bufp)
|
|||||||
case DEV_PTYS_MAJOR:
|
case DEV_PTYS_MAJOR:
|
||||||
case DEV_CONS_MAJOR:
|
case DEV_CONS_MAJOR:
|
||||||
case DEV_PTYM_MAJOR:
|
case DEV_PTYM_MAJOR:
|
||||||
break;
|
|
||||||
case DEV_FLOPPY_MAJOR:
|
case DEV_FLOPPY_MAJOR:
|
||||||
case DEV_CDROM_MAJOR:
|
case DEV_CDROM_MAJOR:
|
||||||
case DEV_SD_MAJOR:
|
case DEV_SD_MAJOR:
|
||||||
case DEV_SD1_MAJOR ... DEV_SD7_MAJOR:
|
case DEV_SD1_MAJOR ... DEV_SD7_MAJOR:
|
||||||
case DEV_SD_HIGHPART_START ... DEV_SD_HIGHPART_END:
|
case DEV_SD_HIGHPART_START ... DEV_SD_HIGHPART_END:
|
||||||
|
break;
|
||||||
case DEV_TAPE_MAJOR:
|
case DEV_TAPE_MAJOR:
|
||||||
case DEV_SERIAL_MAJOR:
|
case DEV_SERIAL_MAJOR:
|
||||||
set_errno (EOPNOTSUPP);
|
set_errno (EOPNOTSUPP);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user