]> sourceware.org Git - newlib-cygwin.git/commit
POSIX Asynchronous I/O support: fhandler files
authorMark Geisert <mark@maxrnd.com>
Tue, 24 Jul 2018 05:31:58 +0000 (22:31 -0700)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 25 Jul 2018 07:36:24 +0000 (09:36 +0200)
commit87253cbe385728c3aafb561f21bb623dbfb4d576
tree7bff1a4e1f7b1fd0ed1c69c029c38d470542f44a
parenta9ffa71a15d96f498865d91adfbe10590c1d788e
POSIX Asynchronous I/O support: fhandler files

This code is where the AIO implementation is wired into existing Cygwin
mechanisms for file and device I/O: the fhandler* functions.  It makes
use of an existing internal routine prw_open to supply a "shadow fd"
that permits asynchronous operations on a file the user app accesses
via its own fd.  This allows AIO to read or write at arbitrary locations
within a file without disturbing the app's file pointer.  (This was
already the case with normal pread|pwrite; we're just adding "async"
to the mix.)
winsup/cygwin/fhandler.cc
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_disk_file.cc
winsup/cygwin/fhandler_tty.cc
This page took 0.031171 seconds and 5 git commands to generate.