This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: add mkstemps
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Jeff Johnston on 6/29/2009 4:36 PM:
>> Jim Meyering raised a good point[1] - we shouldn't have to repeat the
>> stupidity of earlier implementations in using a signed int for a
>> length, when size_t is more appropriate.
>> So, do we want to provide:
>>
>> int mkstemps (char *, size_t)
>>
>> instead of following BSD and Solaris tradition?
>>
>> [1] http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17994/focus=17995
>>
>>
> IMO, no. Until an actual standard defines it, then one should stick
> with the expected documented legacy prototype. This is not a unique
> situation where a function was not originally designed as well as it
> could be.
Good point; I withdraw my desire for a size_t length. So, is the patch
okay to apply as-is (with the int suffixlen parameter)? Also, what about
my fpurge patch?
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpKBPsACgkQ84KuGfSFAYA5JwCgwkvkKFmLBc4hhgNLn8w0j7oc
AtUAniTm8Bf+vZjN6uWrccvB5R8+xnNx
=4Dbn
-----END PGP SIGNATURE-----