]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygwin/include/cygwin/version.h
* configure.in: Reenable building the subauth subdir.
[newlib-cygwin.git] / winsup / cygwin / include / cygwin / version.h
CommitLineData
1fd5e000
CF
1/* version.h -- Cygwin version numbers and accompanying documentation.
2
0ae86d18
CV
3 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 2005, 2006 Red Hat, Inc.
1fd5e000
CF
5
6This file is part of Cygwin.
7
8This software is a copyrighted work licensed under the terms of the
9Cygwin license. Please consult the file "CYGWIN_LICENSE" for
10details. */
11
12/* Cygwin versioning is relatively complicated because of its status
13 as a shared library. Let's start with how versioning used to be done.
14
15 Historical versioning in Cygwin 16.0 to 19.5:
16
17 In the olden days of Cygwin, we had a dll major and minor version
18 and a registry version. The major number started at 16 because the
19 "b15" GNU-Win32 release of the compiler tools was out when this
20 scheme was started. We incremented the DLL name frequently (for
21 every official release) and towards the end of this period every
22 release used a different shared memory area to prevent DLLs from
23 interfering with each other (embedding a build timestamp into the
24 name of the shared memory area). This turned out to be a Bad Idea
25 (tm) because people needed to mingle separate releases and have
26 them work together more than we thought they would. This was
27 especially problematic when tty info needed to be retained when an
28 old Cygwin executable executed a newer one.
29
30 In the old scheme, we incremented the major number whenever a
31 change to the dll invalidated existing executables. This can
32 happen for a number of reasons, including when functions are
33 removed from the export list of the dll. The minor number was
34 incremented when a change was made that we wanted to record, but
35 that didn't invalidate existing executables. Both numbers were
36 recorded in the executable and in the dll.
37
e80cbe3e
CF
38 In October 1998 (starting with Cygwin 19.6), we started a new method
39 of Cygwin versioning: */
1fd5e000
CF
40
41 /* The DLL major and minor numbers correspond to the "version of
a7d42fef 42 the Cygwin shared library". This version is used to track important
1fd5e000
CF
43 changes to the DLL and is mainly informative in nature. */
44
99b1a40d 45#define CYGWIN_VERSION_DLL_MAJOR 1005
e7a8c11c 46#define CYGWIN_VERSION_DLL_MINOR 22
1fd5e000
CF
47
48 /* Major numbers before CYGWIN_VERSION_DLL_EPOCH are
49 incompatible. */
50
51#define CYGWIN_VERSION_DLL_EPOCH 19
52
53 /* CYGWIN_VERSION_DLL_COMBINED gives us a single number
54 representing the combined DLL major and minor numbers. */
55
fcc4976d
DD
56 /* WATCH OUT FOR OCTAL! Don't use, say, "00020" for 0.20 */
57
1fd5e000
CF
58#define CYGWIN_VERSION_DLL_MAKE_COMBINED(maj, min) (((maj) * 1000) + min)
59#define CYGWIN_VERSION_DLL_COMBINED \
1bdc5f1f 60 CYGWIN_VERSION_DLL_MAKE_COMBINED (CYGWIN_VERSION_DLL_MAJOR, CYGWIN_VERSION_DLL_MINOR)
1fd5e000
CF
61
62 /* Every version of cygwin <= this uses an old, incorrect method
63 to determine signal masks. */
64
65#define CYGWIN_VERSION_DLL_BAD_SIGNAL_MASK 19005
66
c34aee9b
CF
67#define CYGWIN_VERSION_USER_API_VERSION_COMBINED \
68 CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor)
69
1fd5e000
CF
70 /* API versions <= this had a termios structure whose members were
71 too small to accomodate modern settings. */
fcc4976d 72#define CYGWIN_VERSION_DLL_OLD_TERMIOS 5
1fd5e000 73#define CYGWIN_VERSION_DLL_IS_OLD_TERMIOS \
c34aee9b 74 (CYGWIN_VERSION_USER_API_VERSION_COMBINED <= CYGWIN_VERSION_DLL_OLD_TERMIOS)
1fd5e000 75
9bc846bd 76#define CYGWIN_VERSION_DLL_MALLOC_ENV 28
56cd25ee
DD
77 /* Old APIs had getc/putc macros that conflict with new CR/LF
78 handling in the stdio buffers */
79#define CYGWIN_VERSION_OLD_STDIO_CRLF_HANDLING \
c34aee9b 80 (CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 20)
56cd25ee 81
95a8465b 82#define CYGWIN_VERSION_CHECK_FOR_S_IEXEC \
c34aee9b 83 (CYGWIN_VERSION_USER_API_VERSION_COMBINED >= 36)
96a3f4ae
CF
84
85#define CYGWIN_VERSION_CHECK_FOR_OLD_O_NONBLOCK \
c34aee9b 86 (CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 28)
c16d0946
CV
87
88#define CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES \
c34aee9b 89 (CYGWIN_VERSION_USER_API_VERSION_COMBINED >= 79)
8b00a766
CV
90
91#define CYGWIN_VERSION_CHECK_FOR_USING_ANCIENT_MSGHDR \
c34aee9b 92 (CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 138)
8b00a766
CV
93
94#define CYGWIN_VERSION_CHECK_FOR_USING_WINSOCK1_VALUES \
c34aee9b 95 (CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 138)
8b00a766 96
1fd5e000
CF
97 /* API_MAJOR 0.0: Initial version. API_MINOR changes:
98 1: Export cygwin32_ calls as cygwin_ as well.
99 2: Export j1, jn, y1, yn.
9c510edc
CF
100 3: Export dll_noncygwin_dllcrt0.
101 4: New socket ioctls, revamped ifconf support.
102 5: Thread support/exports.
103 6: Change in termios handling.
104 7: Export scandir and alphasort.
105 8: Export _ctype_, _sys_errlist, _sys_nerr.
1fd5e000
CF
106 9: Mount-related changes, new cygwin_umount export.
107 Raw device support (tape, floppies).
108 10: Fast math routine support added.
109 11: Export seekdir, telldir.
110 12: Export pthread_join, pthread_detach.
111 13: Export math funcs gamma and friends, also _j0, _j1, etc.
112 14: Export snprintf and vnsprintf.
113 15: Export glob
114 16: Export cygwin_stackdump
4b17897e 115 17: Export fast math stuff
5abc9b83 116 18: Stop exporting _strace_wm
8a06963c 117 19: Export fchown, lchown, lacl
66aea0c5 118 20: regsub, inet_network
56cd25ee 119 21: incompatible change to stdio cr/lf and buffering
64b30629 120 22: Export cygwin_logon_user, cygwin_set_impersonation_token.
9c510edc
CF
121 geteuid, getegid return effective uid/gid.
122 getuid, getgid return real uid/gid.
123 seteuid, setegid set only effective uid/gid.
124 setuid, setgid set effective and real uid/gid.
14a3bc2f
CF
125 23: Export new dll_crt0 interface and cygwin_user_data for use
126 with crt0 startup code.
914e40df 127 24: Export poll and _poll.
bd4ec496 128 25: Export getmode and _getmode.
84c7d409
CF
129 26: CW_GET_CYGDRIVE_PREFIXES addition to external.cc
130 27: CW_GETPINFO_FULL addition to external.cc
cbe4c8e2 131 28: Accidentally bumped by cgf
7d9688b7 132 29: Export hstrerror
9bc846bd 133 30: CW_GET_CYGDRIVE_INFO addition to external.cc
2e68f6b4 134 31: Export inet_aton
8a93913d 135 32: Export getrlimit/setrlimit
c65a3183 136 33: Export setlogmask
ae6c8e4f 137 34: Separated out mount table
f97e7d75 138 35: Export drand48, erand48, jrand48, lcong48, lrand48,
9c510edc 139 mrand48, nrand48, seed48, and srand48.
95a8465b 140 36: Added _cygwin_S_IEXEC, et al
30f326bf 141 37: [f]pathconv support _PC_POSIX_PERMISSIONS and _PC_POSIX_SECURITY
c02e9189 142 38: vscanf, vscanf_r, and random pthread functions
86699e15 143 39: asctime_r, ctime_r, gmtime_r, localtime_r
463513f0 144 40: fchdir
351a8548 145 41: __signgam
8e4e3874 146 42: sys_errlist, sys_nerr
3ca6bcc4 147 43: sigsetjmp, siglongjmp fixed
a71aee46 148 44: Export dirfd
c12a96d1 149 45: perprocess change, gamma_r, gammaf_r, lgamma_r, lgammaf_r
dbc82a87 150 46: Remove cygwin_getshared
b20e2ee6 151 47: Report EOTWarningZoneSize in struct mtget.
4f235c95 152 48: Export "posix" regex functions
971ec8d3 153 49: Export setutent, endutent, utmpname, getutent, getutid, getutline.
104c3be6 154 50: Export fnmatch.
df3af773 155 51: Export recvmsg, sendmsg.
dbe67a81 156 52: Export strptime
feb7f1a9 157 53: Export strlcat, strlcpy.
b7e51146 158 54: Export __fpclassifyd, __fpclassifyf, __signbitd, __signbitf.
bf47141f 159 55: Export fcloseall, fcloseall_r.
667f875d 160 56: Make ntsec on by default.
5519d543 161 57: Export setgroups.
c7e2187a 162 58: Export memalign, valloc, malloc_trim, malloc_usable_size, mallopt,
b59e1aac 163 malloc_stats
8dca9e23 164 59: getsid
281d8a32 165 60: MSG_NOSIGNAL
75d01d9e
CV
166 61: Export getc_unlocked, getchar_unlocked, putc_unlocked,
167 putchar_unlocked
8efb9fd7
CF
168 62: Erroneously bumped
169 63: Export pututline
0be11474 170 64: Export fseeko, ftello
8efb9fd7 171 65: Export siginterrupt
05c728c4 172 66: Export nl_langinfo
cdaf8896 173 67: Export pthread_getsequence_np
838ad582 174 68: Export netdb stuff
11b087d5 175 69: Export strtof
70d61f30 176 70: Export asprintf, _asprintf_r, vasprintf, _vasprintf_r
afa378e7 177 71: Export strerror_r
89f7e8d1 178 72: Export nanosleep
7d33eefa 179 73: Export setreuid32, setreuid, setregid32, setregid
f655eadf
CF
180 74: Export _strtold a64l hcreate hcreate_r hdestroy hdestroy_r hsearch
181 hsearch_r isblank iswalnum iswalpha iswblank iswcntrl iswctype
182 iswdigit iswgraph iswlower iswprint iswpunct iswspace iswupper
183 iswxdigit l64a mbrlen mbrtowc mbsinit mbsrtowcs mempcpy
184 on_exit setbuffer setlinebuf strndup strnlen tdelete tdestroy
185 tfind towctrans towlower towupper tsearch twalk wcrtomb wcscat
186 wcschr wcscpy wcscspn wcslcat wcslcpy wcsncat wcsncmp wcsncpy
187 wcspbrk wcsrchr wcsrtombs wcsspn wcsstr wctob wctob wctrans
188 wctype wmemchr wmemcmp wmemcpy wmemmove wmemset
8fc16812
CF
189 75: Export exp2 exp2f fdim fdimf fma fmaf fmax fmaxf fmin fminf lrint
190 lrintf lround lroundf nearbyint nearbyintf remquo remquof
191 round roundf scalbln scalblnf sincos sincosf tgamma tgammaf
192 truncf
878e60c5 193 76: mallinfo
005c3065 194 77: thread-safe exit/at_exit
f194ba1f 195 78: Use stat and fstat rather than _stat, and _fstat.
de9e39f7 196 Export btowc and trunc.
f194ba1f 197 79: Export acl32 aclcheck32 aclfrommode32 aclfrompbits32 aclfromtext32
b1aae492
CV
198 aclsort32 acltomode32 acltopbits32 acltotext32 facl32
199 fgetpos64 fopen64 freopen64 fseeko64 fsetpos64 ftello64
200 _open64 _lseek64 _fstat64 _stat64 mknod32
00d296a3 201 80: Export pthread_rwlock stuff
5a4a19b3 202 81: CW_CHECK_NTSEC addition to external.cc
ac5ec961 203 82: Export wcscoll wcswidth wcwidth
c448f78f 204 83: Export gethostid
99b1a40d 205 84: Pty open allocates invisible console. 64 bit interface
3e66a81c 206 85: Export new 32/64 functions from API 0.79 only with leading
de9e39f7
CF
207 underscore. No problems with backward compatibility since no
208 official release has been made so far. This change removes
209 exported symbols like fopen64, which might confuse configure.
10bada05 210 86: Export ftok
54152c7e 211 87: Export vsyslog
c433f461 212 88: Export _getreent
1fbeb827 213 89: Export __mempcpy
86ed5c88 214 90: Export _fopen64
dcb6ce0c 215 91: Export argz_add argz_add_sep argz_append argz_count argz_create
24efca14
CV
216 argz_create_sep argz_delete argz_extract argz_insert
217 argz_next argz_replace argz_stringify envz_add envz_entry
218 envz_get envz_merge envz_remove envz_strip
34a1d63d
CV
219 92: Export getusershell, setusershell, endusershell
220 93: Export daemon, forkpty, openpty, iruserok, ruserok, login_tty,
221 openpty, forkpty, revoke, logwtmp, updwtmp
932a40e8 222 94: Export getopt, getopt_long, optarg, opterr, optind, optopt,
de9e39f7 223 optreset, __check_rhosts_file, __rcmd_errstr.
e217832c 224 95: Export shmat, shmctl, shmdt, shmget.
5ec9ea21 225 96: CW_GET_ERRNO_FROM_WINERROR addition to external.cc
07233966 226 97: Export sem_open, sem_close, sem_timedwait, sem_getvalue.
56a4ceac 227 98: Export _tmpfile64.
bcd06214 228 99: CW_GET_POSIX_SECURITY_ATTRIBUTE addition to external.cc.
6ef3b76b 229 100: CW_GET_SHMLBA addition to external.cc.
3e68e19f 230 101: Export err, errx, verr, verrx, warn, warnx, vwarn, vwarnx.
8e68687d 231 102: CW_GET_UID_FROM_SID and CW_GET_GID_FROM_SID addition to external.cc.
6e17cee5 232 103: Export getprogname, setprogname.
a6df500f 233 104: Export msgctl, msgget, msgrcv, msgsnd, semctl, semget, semop.
9a4d574b 234 105: Export sigwait.
f3a1e23e 235 106: Export flock.
dc399868 236 107: Export fcntl64.
29d52c8a 237 108: Remove unused (hopefully) reent_data export.
fba870ac
CF
238 109: Oh well. Someone uses reent_data.
239 110: Export clock_gettime, sigwaitinfo, timer_create, timer_delete,
05726ddd 240 timer_settime
ca713cfa 241 111: Export sigqueue, sighold.
80c74a5f 242 112: Redefine some mtget fields.
dee56309 243 113: Again redefine some mtget fields. Use mt_fileno and mt_blkno as
05726ddd 244 on Linux.
93d66ddc 245 114: Export rand_r, ttyname_r.
68509b30 246 115: Export flockfile, ftrylockfile, funlockfile, getgrgid_r, getgrnam_r,
05726ddd 247 getlogin_r.
41bba72e 248 116: Export atoll.
2ef89b22 249 117: Export utmpx functions, Return utmp * from pututent.
72c1491b 250 118: Export getpriority, setpriority.
9ba51f6d 251 119: Export fdatasync.
24e8fc68 252 120: Export basename, dirname.
c8b404bf 253 122: Export statvfs, fstatvfs.
6b76b0c5 254 123: Export utmpxname.
d2428633 255 124: Add MAP_AUTOGROW flag to mmap.
bc3f9e29 256 125: LD_PRELOAD/CW_HOOK available.
06e18175
CF
257 126: Export lsearch, lfind, timer_gettime.
258 127: Export sigrelese.
d02099f2 259 128: Export pselect.
2a41ee9e 260 129: Export mkdtemp.
5680109c 261 130: Export strtoimax, strtoumax, llabs, imaxabs, lldiv, imaxdiv.
b3ba5059 262 131: Export inet_ntop, inet_pton.
fa2d9fc5 263 132: Add GLOB_LIMIT flag to glob.
2f5de4af 264 133: Export __getline, __getdelim.
4cc9a82e 265 134: Export getline, getdelim.
7d7d09ae 266 135: Export pread, pwrite
723d64e6 267 136: Add TIOCMBIS/TIOCMBIC ioctl codes.
e6ae6cd3
CV
268 137: fts_children, fts_close, fts_get_clientptr, fts_get_stream,
269 fts_open, fts_read, fts_set, fts_set_clientptr, ftw, nftw.
d9a22764 270 138: Export readdir_r.
8b00a766
CV
271 139: Start using POSIX definition of struct msghdr and WinSock2
272 IPPROTO_IP values.
1f5c3042 273 140: Export mlock, munlock.
88d30f0b 274 141: Export futimes, lutimes.
42cd8528 275 142: Export memmem
ecb908f6 276 143: Export clock_getres, clock_setres
19e7c3a0 277 144: Export timelocal, timegm.
e4809ddd 278 145: Add MAP_NORESERVE flag to mmap.
832dd7e6
CV
279 146: Change SI_USER definition. FIXME: Need to develop compatibility
280 macro for this?
281 147: Eliminate problematic d_ino from dirent structure. unsetenv now
282 returns int, as per linux.
e3d14af1 283 148: Add open(2) flags O_SYNC, O_RSYNC, O_DSYNC and O_DIRECT.
52792a77 284 149: Add open(2) flag O_NOFOLLOW.
6c5da678 285 150: Export getsubopt.
868fb2ff 286 151: Export __opendir_with_d_ino
832dd7e6 287 152: Revert to having d_ino in dirent unconditionally.
d6b2195f 288 153: Export updwtmpx, Implement CW_SETUP_WINENV.
c6e48b1c 289 154: Export sigset, sigignore.
6fb7c8ae 290 155: Export __isinff, __isinfd, __isnanf, __isnand.
82a044a5 291 156: Export __srbuf_r, __swget_r.
1fd5e000
CF
292 */
293
77f4a250
CF
294 /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
295
1fd5e000 296#define CYGWIN_VERSION_API_MAJOR 0
82a044a5 297#define CYGWIN_VERSION_API_MINOR 156
1fd5e000
CF
298
299 /* There is also a compatibity version number associated with the
300 shared memory regions. It is incremented when incompatible
301 changes are made to the shared memory region *or* to any named
302 shared mutexes, semaphores, etc. The arbitrary starting
656a999a
CF
303 version was 0 (cygwin release 98r2).
304 Bump to 4 since this hasn't been rigorously updated in a
305 while. */
1fd5e000 306
656a999a 307#define CYGWIN_VERSION_SHARED_DATA 4
1fd5e000
CF
308
309 /* An identifier used in the names used to create shared objects.
310 The full names include the CYGWIN_VERSION_SHARED_DATA version
311 as well as this identifier. */
312
313#define CYGWIN_VERSION_DLL_IDENTIFIER "cygwin1"
314
315 /* The Cygwin mount table interface in the Win32 registry also
316 has a version number associated with it in case that is
317 changed in a non-backwards compatible fashion. Increment this
318 version number whenever incompatible changes in mount table
319 registry usage are made.
320
321 1: Original number version.
322 2: New mount registry layout, system-wide mount accessibility.
323 */
324
325#define CYGWIN_VERSION_MOUNT_REGISTRY 2
326
327 /* Identifiers used in the Win32 registry. */
328
329#define CYGWIN_INFO_CYGNUS_REGISTRY_NAME "Cygnus Solutions"
330#define CYGWIN_INFO_CYGWIN_REGISTRY_NAME "Cygwin"
331#define CYGWIN_INFO_PROGRAM_OPTIONS_NAME "Program Options"
332#define CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME "mounts v2"
a98b1584
CF
333#define CYGWIN_INFO_CYGDRIVE_FLAGS "cygdrive flags"
334#define CYGWIN_INFO_CYGDRIVE_PREFIX "cygdrive prefix"
335#define CYGWIN_INFO_CYGDRIVE_DEFAULT_PREFIX "/cygdrive"
1fd5e000
CF
336
337 /* In addition to the above version number strings, the build
338 process adds some strings that may be useful in
339 debugging/identifying a particular Cygwin DLL:
340
341 The mkvers.sh script at the top level produces a .cc file
342 which initializes a cygwin_version structure based on the
343 above version information and creates a string table for
344 grepping via "fgrep '%%%' cygwinwhatever.dll" if you are
345 using GNU grep. Otherwise you may want to do a
346 "strings cygwinwhatever.dll | fgrep '%%%'" instead.
347
348 This will produce output such as:
349
350 %%% Cygwin dll_identifier: cygwin
351 %%% Cygwin api_major: 0
352 %%% Cygwin api_minor: 0
353 %%% Cygwin dll_major: 19
354 %%% Cygwin dll_minor: 6
355 %%% Cygwin shared_data: 1
356 %%% Cygwin registry: b15
357 %%% Cygwin build date: Wed Oct 14 16:26:51 EDT 1998
358 %%% Cygwin shared id: cygwinS1
359
360 This information can also be obtained through a call to
361 cygwin_internal (CW_GETVERSIONINFO).
362 */
363
082512ae 364#define CYGWIN_VERSION_MAGIC(a, b) ((unsigned) ((((unsigned short) a) << 16) | (unsigned short) b))
77f4a250 365#define CYGWIN_VERSION_MAGIC_VERSION(a) ((unsigned) ((unsigned)a & 0xffff))
This page took 0.30887 seconds and 5 git commands to generate.