diff options
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r-- | winsup/cygwin/fhandler.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 94615ba83..d9219f6b9 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -43,6 +43,8 @@ details. */ fhandler_dev_mem /dev/mem implementation (fhandler_mem.cc) + fhandler_dev_clipboard /dev/clipboard implementation (fhandler_clipboard.cc) + fhandler_proc Interesting possibility, not implemented yet */ @@ -97,8 +99,9 @@ enum FH_ZERO = 0x00000014, /* is the zero device */ FH_RANDOM = 0x00000015, /* is a random device */ FH_MEM = 0x00000016, /* is a mem device */ + FH_CLIPBOARD = 0x00000017, /* is a clipbaord device */ - FH_NDEV = 0x00000017, /* Maximum number of devices */ + FH_NDEV = 0x00000018, /* Maximum number of devices */ FH_DEVMASK = 0x00000fff, /* devices live here */ FH_BAD = 0xffffffff }; @@ -794,6 +797,20 @@ public: int msync (HANDLE h, caddr_t addr, size_t len, int flags); void dump (); +} ; + +class fhandler_dev_clipboard: public fhandler_base +{ +public: + fhandler_dev_clipboard (const char *name); + int is_windows (void) { return 1; } + int open (const char *path, int flags, mode_t mode = 0); + int write (const void *ptr, size_t len); + int read (void *ptr, size_t len); + off_t lseek (off_t offset, int whence); + int close (void); + + void dump (); }; class fhandler_windows: public fhandler_base |