diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-10-23 20:16:52 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-10-23 20:16:52 +0000 |
commit | 1eb14bae8cc488dad2da4925cb73e4376c69fe45 (patch) | |
tree | 105a09afcbb92f6c87105b135f26397cc7866f3e /winsup/cygwin/fhandler.h | |
parent | f80cdaeecbe2f65d2b6026bd25923cca7c9ab455 (diff) | |
download | newlib-1eb14bae8cc488dad2da4925cb73e4376c69fe45.zip newlib-1eb14bae8cc488dad2da4925cb73e4376c69fe45.tar.gz newlib-1eb14bae8cc488dad2da4925cb73e4376c69fe45.tar.bz2 |
* fcntl.cc (_fcntl): Rearrange as wrapper function. Move all
functionality except F_DUPFD to fhandler classes.
* fhandler.cc (fhandler_base::fcntl): New method.
* net.cc (fhandler_socket::fcntl): Ditto.
* fhandler.h (class fhandler_base): Add method prototype for fcntl().
(class fhandler_socket): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r-- | winsup/cygwin/fhandler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 3b98457..43b33ed 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -255,6 +255,7 @@ public: virtual int close (); virtual int fstat (struct stat *buf) { return stat_dev (get_device (), get_unit (), get_namehash (), buf); } virtual int ioctl (unsigned int cmd, void *); + virtual int fcntl (int cmd, void *); virtual char const * ttyname () { return get_name(); } virtual int read (void *ptr, size_t len); virtual int write (const void *ptr, size_t len); @@ -327,6 +328,7 @@ public: int write (const void *ptr, size_t len); int read (void *ptr, size_t len); int ioctl (unsigned int cmd, void *); + int fcntl (int cmd, void *); off_t lseek (off_t, int) { return 0; } int close (); void hclose (HANDLE) {close ();} |