* fhandler.h (fhandler_base::fhaccess): Return int for compatibility with

access.
* fhandler.cc (fhandler_base::fhaccess): Return int.  Use consistent variable
name for exit value.  Exit at bottom, printing debugging information, like
other cygwin functions.
This commit is contained in:
Christopher Faylor
2004-01-24 20:34:27 +00:00
parent d5f60b41f4
commit 9157f0f3ec
3 changed files with 23 additions and 12 deletions

View File

@ -364,7 +364,7 @@ class fhandler_base
bool is_auto_device () {return isdevice () && !dev ().isfs ();}
bool is_fs_special () {return pc.is_fs_special ();}
bool device_access_denied (int) __attribute__ ((regparm (2)));
bool fhaccess (int flags) __attribute__ ((regparm (2)));
int fhaccess (int flags) __attribute__ ((regparm (2)));
};
class fhandler_socket: public fhandler_base