diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-05 21:02:53 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-05 21:02:53 +0000 |
commit | c34aee9b232aa388853c37acf29b1869d489072a (patch) | |
tree | f015fb0722bbcdbe2c1b4f1bc54f5cf350f097d1 /winsup/cygwin/include | |
parent | 4535b5961fc6055c9c59838b9fbcff20a71744b9 (diff) | |
download | cygnal-c34aee9b232aa388853c37acf29b1869d489072a.tar.gz cygnal-c34aee9b232aa388853c37acf29b1869d489072a.tar.bz2 cygnal-c34aee9b232aa388853c37acf29b1869d489072a.zip |
* dir.cc (readdir_workdir): Only fill out d_ino when linked into older app.
* include/cygwin/version.h: Bump api minor number to 147, reflecting
obsolescence of d_ino.
(CYGWIN_VERSION_USER_API_VERSION_COMBINED): New convenience macro.
(CYGWIN_VERSION_CHECK_FOR_NEEDS_D_INO): New convenience macro.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/cygwin/version.h | 32 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/dirent.h | 2 |
2 files changed, 15 insertions, 19 deletions
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index 9511d925a..d40dd8786 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -63,43 +63,38 @@ details. */ #define CYGWIN_VERSION_DLL_BAD_SIGNAL_MASK 19005 +#define CYGWIN_VERSION_USER_API_VERSION_COMBINED \ + CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor) + /* API versions <= this had a termios structure whose members were too small to accomodate modern settings. */ #define CYGWIN_VERSION_DLL_OLD_TERMIOS 5 #define CYGWIN_VERSION_DLL_IS_OLD_TERMIOS \ - (CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor) <= \ - CYGWIN_VERSION_DLL_OLD_TERMIOS) + (CYGWIN_VERSION_USER_API_VERSION_COMBINED <= CYGWIN_VERSION_DLL_OLD_TERMIOS) #define CYGWIN_VERSION_DLL_MALLOC_ENV 28 /* Old APIs had getc/putc macros that conflict with new CR/LF handling in the stdio buffers */ #define CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLING \ - (CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor) <= \ - 20) + (CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 20) #define CYGWIN_VERSION_CHECK_FOR_S_IEXEC \ - (CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor) >= \ - 36) + (CYGWIN_VERSION_USER_API_VERSION_COMBINED >= 36) #define CYGWIN_VERSION_CHECK_FOR_OLD_O_NONBLOCK \ - (CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor) <= \ - 28) + (CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 28) #define CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES \ - (CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor) >= \ - 79) + (CYGWIN_VERSION_USER_API_VERSION_COMBINED >= 79) #define CYGWIN_VERSION_CHECK_FOR_USING_ANCIENT_MSGHDR \ - (CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor) <= \ - 138) + (CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 138) #define CYGWIN_VERSION_CHECK_FOR_USING_WINSOCK1_VALUES \ - (CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor) <= \ - 138) + (CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 138) - /* We used to use the DLL major/minor to track - non-backward-compatible interface changes to the API. Now we - use an API major/minor number for this purpose. */ +#define CYGWIN_VERSION_CHECK_FOR_NEEDS_D_INO \ + (CYGWIN_VERSION_USER_API_VERSION_COMBINED < 147) /* API_MAJOR 0.0: Initial version. API_MINOR changes: 1: Export cygwin32_ calls as cygwin_ as well. @@ -285,12 +280,13 @@ details. */ 145: Add MAP_NORESERVE flag to mmap. 146: Change SI_USER definition. FIXME: Need to develop compatibility macro for this? + 147: Eliminate problematic d_ino from dirent structure. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 146 +#define CYGWIN_VERSION_API_MINOR 147 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible diff --git a/winsup/cygwin/include/sys/dirent.h b/winsup/cygwin/include/sys/dirent.h index 5eafbc27b..50cde2882 100644 --- a/winsup/cygwin/include/sys/dirent.h +++ b/winsup/cygwin/include/sys/dirent.h @@ -20,7 +20,7 @@ struct dirent { long d_version; /* Used since Cygwin 1.3.3. */ - __ino64_t d_ino; /* still junk but with more bits */ + __ino64_t __deprecated_d_ino; /* still junk but with more bits */ long d_fd; /* File descriptor of open directory. Used since Cygwin 1.3.3. */ unsigned __ino32; |