4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-05 22:46:03 +08:00

Cygwin: AF_UNIX: SCM_RIGHTS: support floppy descriptors

Untested.
This commit is contained in:
Ken Brown 2021-01-08 14:40:17 -05:00
parent f06ef1382f
commit d262fdde0d
3 changed files with 6 additions and 6 deletions

@ -372,9 +372,9 @@ fhandler_dev_floppy::close ()
}
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)
InterlockedIncrement (&partitions->refcnt);

@ -79,9 +79,9 @@ fhandler_dev_raw::open (int flags, mode_t)
}
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)
{

@ -2029,12 +2029,12 @@ fhandler_socket_unix::serialize (int fd)
case DEV_PTYS_MAJOR:
case DEV_CONS_MAJOR:
case DEV_PTYM_MAJOR:
break;
case DEV_FLOPPY_MAJOR:
case DEV_CDROM_MAJOR:
case DEV_SD_MAJOR:
case DEV_SD1_MAJOR ... DEV_SD7_MAJOR:
case DEV_SD_HIGHPART_START ... DEV_SD_HIGHPART_END:
break;
case DEV_TAPE_MAJOR:
case DEV_SERIAL_MAJOR:
set_errno (EOPNOTSUPP);
@ -2132,12 +2132,12 @@ fhandler_socket_unix::deserialize (void *bufp)
case DEV_PTYS_MAJOR:
case DEV_CONS_MAJOR:
case DEV_PTYM_MAJOR:
break;
case DEV_FLOPPY_MAJOR:
case DEV_CDROM_MAJOR:
case DEV_SD_MAJOR:
case DEV_SD1_MAJOR ... DEV_SD7_MAJOR:
case DEV_SD_HIGHPART_START ... DEV_SD_HIGHPART_END:
break;
case DEV_TAPE_MAJOR:
case DEV_SERIAL_MAJOR:
set_errno (EOPNOTSUPP);