summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/libc/minires.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-04-01 10:22:33 +0000
committerCorinna Vinschen <corinna@vinschen.de>2008-04-01 10:22:33 +0000
commitfabfb1a1ee52bc5ff248e708de5e7dc56cd6a170 (patch)
tree2d471f2e6ebf7757d28a889cec5ec987fdb4e00a /winsup/cygwin/libc/minires.c
parent636c94d8539476b691bdfff748282027a970725b (diff)
downloadcygnal-fabfb1a1ee52bc5ff248e708de5e7dc56cd6a170.tar.gz
cygnal-fabfb1a1ee52bc5ff248e708de5e7dc56cd6a170.tar.bz2
cygnal-fabfb1a1ee52bc5ff248e708de5e7dc56cd6a170.zip
Throughout, call fcntl64 instead of fcntl or fcntl_worker.
* fcntl.cc (fcntl_worker): Remove. (fcntl64): Add fault handler. Move fcntl_worker stuff here. Add case for locking and call fhandler's lock method directly. Make sure that F_FLOCK flag isn't set in lock call. (_fcntl): Add fault handler. * fhandler.cc (fhandler_base::fcntl): Drop lock cases. * flock.cc (flock): Add fault handler. Simplify code. Call fhandlers lock method directly instead of fcntl_worker. Add debug output. (lockf): Add fault handler. Call fhandlers lock method directly instead of fcntl_worker. Add debug output. * winsup.h (fcntl_worker): Drop declaration. (fcntl64): Declare.
Diffstat (limited to 'winsup/cygwin/libc/minires.c')
-rw-r--r--winsup/cygwin/libc/minires.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/libc/minires.c b/winsup/cygwin/libc/minires.c
index f11ff418b..7d0a6ab06 100644
--- a/winsup/cygwin/libc/minires.c
+++ b/winsup/cygwin/libc/minires.c
@@ -427,7 +427,7 @@ int res_nsend( res_state statp, const unsigned char * MsgPtr,
return -1;
}
/* Set close on exec flag */
- if (fcntl(statp->sockfd, F_SETFD, 1) == -1) {
+ if (fcntl64(statp->sockfd, F_SETFD, 1) == -1) {
DPRINTF(debug, "fcntl: %s\n",
strerror(errno));
statp->res_h_errno = NETDB_INTERNAL;