diff options
author | Christopher Faylor <me@cgf.cx> | 2001-08-07 00:01:42 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-08-07 00:01:42 +0000 |
commit | 96a3f4ae6884bbf0c2e96d8ab332c3fad85613bf (patch) | |
tree | 68d8717111e5f046c192a1dd0f0dbd2481367f20 /winsup/cygwin/cygheap.cc | |
parent | 386abb05d958a410c90cd4b7ea25187c7f6f1fbc (diff) | |
download | cygnal-96a3f4ae6884bbf0c2e96d8ab332c3fad85613bf.tar.gz cygnal-96a3f4ae6884bbf0c2e96d8ab332c3fad85613bf.tar.bz2 cygnal-96a3f4ae6884bbf0c2e96d8ab332c3fad85613bf.zip |
* cygheap.cc (cygheap_root::set): Avoid treating '/' specially.
* fhandler.cc (fhandler_base::fcntl): Only set specific O_NDELAY style flag
passed in from application.
* fhandler_socket.cc (fhandler_socket::fcntl): Ditto.
* fhandler.h: Set constant for future use.
* winsup.h: Define OLD_O_NDELAY only for old programs.
* include/cygwin/version.h: Define CYGWIN_VERSION_CHECK_FOR_OLD_O_NONBLOCK.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index d6caf3355..f0efabf2f 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -330,6 +330,15 @@ cstrdup1 (const char *s) void cygheap_root::set (const char *posix, const char *native) { + if (*posix == '/' && posix[1] == '\0') + { + if (m) + { + cfree (m); + m = NULL; + } + return; + } if (!m) m = (struct cygheap_root_mount_info *) ccalloc (HEAP_MOUNT, 1, sizeof (*m)); strcpy (m->posix_path, posix); |