Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-10-25 20:16:50 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-10-25 20:16:50 +0400
commit2118eee1ced45667230c654fc53de0b4ed87a017 (patch)
treeebd82b1b2622277146af9a22672a9da51c5639ba /winsup/cygwin/devices.cc
parent46943206dcc5f090968532259ed20092217885ba (diff)
* devices.in (dev_storage): Map /dev/clipboard to \Device\Null.
* devices.cc: Regenerate. * fhandler.h (fhandler_dev_clipboard::open): Drop declaration. * fhandler_clipboard.cc (fhandler_dev_clipboard::dup): Drop call to open. Set private members to 0 and call fhandler_base::dup. (fhandler_dev_clipboard::open): Remove so that default fhandler_base::open is used to open \Device\Null. (set_clipboard): Drop gratuitios call to RegisterClipboardFormatW. (fhandler_dev_clipboard::close): Call fhandler_base::close from here.
Diffstat (limited to 'winsup/cygwin/devices.cc')
-rw-r--r--winsup/cygwin/devices.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/devices.cc b/winsup/cygwin/devices.cc
index 2e36dc85f..6c6960c2f 100644
--- a/winsup/cygwin/devices.cc
+++ b/winsup/cygwin/devices.cc
@@ -142,7 +142,7 @@ const device dev_error_storage =
const _RDATA device dev_storage[] =
{
{"/dev", BRACK(FH_DEV), "/dev", exists, S_IFDIR, false},
- {"/dev/clipboard", BRACK(FH_CLIPBOARD), "/dev/clipboard", exists, S_IFCHR, true},
+ {"/dev/clipboard", BRACK(FH_CLIPBOARD), "\\Device\\Null", exists_ntdev, S_IFCHR, true},
{"/dev/com1", BRACK(FHDEV(DEV_SERIAL_MAJOR, 0)), "\\??\\COM1", exists_ntdev_silent, S_IFCHR, true},
{"/dev/com2", BRACK(FHDEV(DEV_SERIAL_MAJOR, 1)), "\\??\\COM2", exists_ntdev_silent, S_IFCHR, true},
{"/dev/com3", BRACK(FHDEV(DEV_SERIAL_MAJOR, 2)), "\\??\\COM3", exists_ntdev_silent, S_IFCHR, true},