CVSROOT:        /cvs/src
Module name:    src
Changes by:     cori...@sourceware.org  2013-10-30 09:44:47

Modified files:
        winsup/cygwin  : ChangeLog devices.cc devices.in dir.cc 
                         fhandler.h fhandler_dev.cc 
                         fhandler_disk_file.cc fhandler_windows.cc 
                         path.h select.cc 

Log message:
        * devices.in (dev_cygdrive_storage): Map to \Device\Null.
        (dev_storage): Map /dev and /dev/windows to \Device\Null.
        * devices.cc: Regenerate.
        * dir.cc (opendir): Create unique id.  Explain why.
        * fhandler.h (fhandler_dev::get_dev): Implement inline.
        (fhandler_cygdrive::close): Drop declaration.
        (fhandler_cygdrive::get_dev): Implement inline.
        (fhandler_windows::get_hwnd): Ditto.
        (fhandler_windows::set_close_on_exec): Drop declaration.
        (fhandler_windows::fixup_after_fork): Ditto.
        * fhandler_dev.cc (fhandler_dev::open): Call fhandler_disk_file::open
        without O_CREAT flag.  Explain why.  Create \Device\Null handle if
        /dev/ doesn't actually exist.
        (fhandler_dev::close): Drop nohandle case.
        (fhandler_dev::fstatvfs): Drop nohandle check.  Test for fs_got_fs
        instead.  Set ST_RDONLY fs flag for simulated /dev.
        (fhandler_dev::opendir): If /dev doesn't exist, call open() to create
        fake \Device\Null handle.  Don't set nohandle.  Set dir_exists
        correctly.
        (fhandler_dev::rewinddir): Call fhandler_disk_file::rewinddir only if
        /dev is a real directory.
        * fhandler_disk_file.cc (fhandler_disk_file::opendir): If called for
        the cygdrive dir, call open() to create fake \Device\Null handle.
        Only attach __DIR_mounts buffer to dir if not called for cygdrive dir.
        Don't set nohandle.
        (fhandler_cygdrive::open): Create \Device\Null handle.
        (fhandler_cygdrive::close): Remove.
        (fhandler_cygdrive::fstatvfs): Set ST_RDONLY fs flag.
        * fhandler_windows.cc (fhandler_windows::open): Create \Device\Null
        handle.
        (fhandler_windows::read): Don't add io_handle to WFMO handle array.
        Change subsequent test for return value accordingly.  Fix test for
        "message arrived".
        (fhandler_windows::set_close_on_exec): Remove.
        (fhandler_windows::fixup_after_fork): Remove.
        * path.h (path_conv::set_path): Make sure wide_path is NULL when
        setting a new path.
        * select.cc (peek_windows): Use correct hWnd value, not io_handle.
        (fhandler_windows::select_read): Don't use io_handle as wait object.
        (fhandler_windows::select_write): Ditto.
        (fhandler_windows::select_except): Ditto.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=src&r1=1.6246&r2=1.6247
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/devices.cc.diff?cvsroot=src&r1=1.54&r2=1.55
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/devices.in.diff?cvsroot=src&r1=1.45&r2=1.46
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/dir.cc.diff?cvsroot=src&r1=1.133&r2=1.134
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler.h.diff?cvsroot=src&r1=1.489&r2=1.490
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_dev.cc.diff?cvsroot=src&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_disk_file.cc.diff?cvsroot=src&r1=1.391&r2=1.392
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_windows.cc.diff?cvsroot=src&r1=1.39&r2=1.40
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/path.h.diff?cvsroot=src&r1=1.179&r2=1.180
http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/select.cc.diff?cvsroot=src&r1=1.217&r2=1.218

Reply via email to