]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: AF_LOCAL: fix fcntl and dup if O_PATH is set
authorKen Brown <kbrown@cornell.edu>
Sat, 25 Jan 2020 18:08:00 +0000 (13:08 -0500)
committerKen Brown <kbrown@cornell.edu>
Thu, 30 Jan 2020 14:43:19 +0000 (09:43 -0500)
commit477121317d01b37d0f6c84f7724487ecf8a9fbbe
treef3348fccdfc1274b44df9d0f31ea6edd08b77c0a
parent23cb58af623c457639fdcf97c1990edda0508d5c
Cygwin: AF_LOCAL: fix fcntl and dup if O_PATH is set

Make fhandler_socket_local::dup and fhandler_socket_local::fcntl (a
new method) call fhandler_base::dup and fhandler_base::fcntl if O_PATH
is set.

We're viewing the socket as a disk file here, but there's no need to
implement the actions of fhandler_disk_file::dup and
fhandler_disk_file::fcntl, which do nothing useful in this case beyond
what the fhandler_base methods do.  (The extra actions are only useful
when I/O is going to be done on the file.)
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_socket_local.cc
This page took 0.028597 seconds and 5 git commands to generate.