This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: API compatibility documentation change


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Corinna Vinschen on 6/20/2007 8:53 AM:
>> fmemopen - missing, but I'm working on it in newlib
>> open_memstream - missing, but I'm working on it in newlib
> 
> How are you going to implement that?  mmap?  shm_open?

Actually, more like I did for fopencookie.  fmemopen doesn't need to worry
about growth, and provided that realloc is intelligent, open_memstream
shouldn't be too slow, either.

> 
>> stpcpy - missing, but gnulib has an emulation
>> stpncpy - missing, but gnulib has an emulation
> 
> Shouldn't be too difficult.

Also, psignal and psiginfo seem pretty easy to implement.

Here's a first patch to the list of functions, by the way, along with
recent newlib additions:

2007-06-20  Eric Blake  <ebb9@byu.net>

	* cygwin.din: Export exp10, exp10f, pow10, pow10f, strcasestr,
	funopen, fopencookie.
	* include/cygwin/version.h: Bump API minor number.
	* posix.sgml: Minor improvements.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGec6O84KuGfSFAYARAk0JAJsFzlSdaZYrrNqdDwodD0mASZl/BACfcuRz
AnTEU2CR0LpH9Pb1rEvHUiE=
=C5fB
-----END PGP SIGNATURE-----
Index: cygwin.din
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/cygwin.din,v
retrieving revision 1.174
diff -u -p -r1.174 cygwin.din
--- cygwin.din	12 Jun 2007 15:24:46 -0000	1.174
+++ cygwin.din	21 Jun 2007 00:55:41 -0000
@@ -350,6 +350,8 @@ _exit SIGFE
 _Exit SIGFE
 exp NOSIGFE
 _exp = exp NOSIGFE
+exp10 NOSIGFE
+exp10f NOSIGFE
 exp2 NOSIGFE
 exp2f NOSIGFE
 expf NOSIGFE
@@ -469,6 +471,7 @@ _fnmatch = fnmatch NOSIGFE
 fopen SIGFE
 _fopen = fopen SIGFE
 _fopen64 = fopen64 SIGFE
+fopencookie SIGFE
 fork SIGFE
 _fork = fork SIGFE
 forkpty SIGFE
@@ -536,6 +539,7 @@ fts_set NOSIGFE
 fts_set_clientptr NOSIGFE
 ftw SIGFE
 funlockfile SIGFE
+funopen SIGFE
 futimes SIGFE
 fwrite SIGFE
 _fwrite = fwrite SIGFE
@@ -1012,6 +1016,8 @@ posix_regexec SIGFE
 posix_regfree SIGFE
 pow NOSIGFE
 _pow = pow NOSIGFE
+pow10 NOSIGFE
+pow10f NOSIGFE
 powf NOSIGFE
 _powf = powf NOSIGFE
 pread SIGFE
@@ -1417,6 +1423,7 @@ _statfs = statfs SIGFE
 statvfs SIGFE
 strcasecmp NOSIGFE
 _strcasecmp = strcasecmp NOSIGFE
+strcasestr NOSIGFE
 strcat NOSIGFE
 _strcat = strcat NOSIGFE
 strchr NOSIGFE
Index: posix.sgml
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/posix.sgml,v
retrieving revision 1.6
diff -u -p -r1.6 posix.sgml
--- posix.sgml	12 Jun 2007 15:24:46 -0000	1.6
+++ posix.sgml	21 Jun 2007 00:55:42 -0000
@@ -171,6 +171,7 @@ also ISO/IEC 9945:2003 and IEEE Std 1003
     fopen
     fork
     fpathconf
+    fpclassify			(see chapter "Implementation Notes")
     fprintf
     fputc
     fputs
@@ -296,21 +297,21 @@ also ISO/IEC 9945:2003 and IEEE Std 1003
     isblank
     iscntrl
     isdigit
-    isfinite
+    isfinite			(see chapter "Implementation Notes")
     isgraph
-    isgreater
-    isgreaterequal
-    isinf
+    isgreater			(see chapter "Implementation Notes")
+    isgreaterequal		(see chapter "Implementation Notes")
+    isinf			(see chapter "Implementation Notes")
     isless
-    islessequal
-    islessgreater
+    islessequal			(see chapter "Implementation Notes")
+    islessgreater		(see chapter "Implementation Notes")
     islower
-    isnan
-    isnormal
+    isnan			(see chapter "Implementation Notes")
+    isnormal			(see chapter "Implementation Notes")
     isprint
     ispunct
     isspace
-    isunordered
+    isunordered			(see chapter "Implementation Notes")
     isupper
     iswalnum
     iswalpha
@@ -597,6 +598,7 @@ also ISO/IEC 9945:2003 and IEEE Std 1003
     send
     sendmsg
     sendto
+    setbuf
     setegid
     setenv
     seteuid
@@ -641,7 +643,7 @@ also ISO/IEC 9945:2003 and IEEE Std 1003
     sigismember
     siglongjmp
     signal
-    signbit
+    signbit			(see chapter "Implementation Notes")
     signgam
     sigpause
     sigpending
@@ -764,6 +766,7 @@ also ISO/IEC 9945:2003 and IEEE Std 1003
     utime
     utimes
     va_arg
+    va_copy
     va_end
     va_start
     vfork			(see chapter "Implementation Notes")
@@ -842,6 +845,7 @@ also ISO/IEC 9945:2003 and IEEE Std 1003
     fts_read
     fts_set
     fts_set_clientptr
+    funopen
     gamma
     gamma_r
     gammaf
@@ -895,6 +899,7 @@ also ISO/IEC 9945:2003 and IEEE Std 1003
     settimeofday
     setusershell
     statfs
+    strcasestr
     strlcat
     strlcpy
     strsep
@@ -943,13 +948,18 @@ also ISO/IEC 9945:2003 and IEEE Std 1003
     envz_merge
     envz_remove
     envz_strip
+    exp10
+    exp10f
     fcloseall
     fcloseall_r
+    fopencookie
     getline
     getopt_long
     getopt_long_only
     memmem
     mempcpy
+    pow10
+    pow10f
     strndup
     strnlen
     tdestroy
@@ -1004,7 +1014,6 @@ also ISO/IEC 9945:2003 and IEEE Std 1003
     pthread_suspend		(XPG2)
     pututline			(XPG2)
     putw			(SVID)
-    setbuf			(C89, C99)
     setutent			(XPG2)
     sys_errlist			(BSD)
     sys_nerr			(BSD)
@@ -1223,7 +1232,6 @@ also ISO/IEC 9945:2003 and IEEE Std 1003
     timer_getoverrun
     truncl
     ulimit
-    va_copy
     vfwprintf
     vfwscanf
     vswprintf
@@ -1262,6 +1270,14 @@ Windows however.</para>
 and <function>clock_setres</function> only support CLOCK_REALTIME for
 now.</para>
 
+<para><function>fpclassify</function>, <function>isfinite</function>,
+<function>isgreater</function>, <function>isgreaterequal</function>,
+<function>isinf</function>, <function>isless</function>,
+<function>islessequal</function>, <function>islessgreater</function>,
+<function>isnan</function>, <function>isnormal</function>,
+<function>isunordered</function>, and <function>signbit</function>
+only support float and double arguments, not long double arguments.</para>
+
 <para><function>getitimer</function> and <function>setitimer</function>
 only support ITIMER_REAL for now.</para>
 
Index: include/cygwin/version.h
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/include/cygwin/version.h,v
retrieving revision 1.244
diff -u -p -r1.244 version.h
--- include/cygwin/version.h	12 Jun 2007 15:24:46 -0000	1.244
+++ include/cygwin/version.h	21 Jun 2007 00:55:42 -0000
@@ -310,12 +310,14 @@ details. */
       168: Export asnprintf, dprintf, _Exit, vasnprintf, vdprintf.
       169: Export confstr.
       170: Export insque, remque.
+      171: Export exp10, exp10f, pow10, pow10f, strcasestr, funopen,
+           fopencookie.
      */
 
      /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
 
 #define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 170
+#define CYGWIN_VERSION_API_MINOR 171
 
      /* There is also a compatibity version number associated with the
 	shared memory regions.  It is incremented when incompatible

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]