freebsd-dev/lib/libc
John Baldwin e68d07ff16 Fix a few bugs with the _gettemp() routine which implements mkstemp(),
mkstemps(), and mkdtemp().
- Add proper range checking for the 'slen' parameter passed to mkstemps().
- Try all possible permutations of a template if a collision is encountered.
  Previously, once a single template character reached 'z', it would not wrap
  around to '0' and keep going until it encountered the original starting
  letter.  In the edge case that the randomly generated starting name used
  all 'z' characters, only that single name would be tried before giving up.

PR:		standards/66531
Submitted by:	Jim Luther
Obtained from:	Apple
MFC after:	1 week
2008-07-28 21:18:59 +00:00
..
amd64 Two FP-related setjmp/longjmp changes: 2008-06-28 17:55:43 +00:00
arm Arrange so that the NaN returned by strtod("nan", NULL) is the same as 2007-12-16 21:15:09 +00:00
compat-43 Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
db getopt(3) returns -1, not EOF. 2008-02-18 03:19:25 +00:00
gdtoa Unbreak the build for arm and powerpc. 2008-04-12 14:53:52 +00:00
gen Fix the email address formats in some posix_spawn(3) manpages. 2008-07-28 09:36:56 +00:00
gmon Remove .mcount from gmon's Symbol map and add it to the appropriate 2007-05-13 14:16:55 +00:00
i386 We should also save and restore the MXCSR as on amd64, but detecting 2008-06-28 17:58:06 +00:00
ia64 Add an alternative view of the bits in an 80-bit long double (64+16 2008-01-17 16:39:07 +00:00
include Turn execvpe() into an internal libc routine. 2008-06-23 05:22:06 +00:00
inet Fix issues which allow snooping on ptys. [08:01] 2008-01-14 22:56:05 +00:00
isc Merge BIND 9.4.1 into main chunk. 2007-06-03 17:20:27 +00:00
locale Don't allocate the constant array "props" on the stack in wctype. 2008-03-17 18:22:23 +00:00
mips Add mips support libc from the mips2-jnpr branch of perforce. 2008-04-26 12:08:02 +00:00
nameser This commit was generated by cvs2svn to compensate for changes in r174223, 2007-12-03 15:07:58 +00:00
net - AI_ALL and AI_V4MAPPED flags are currently not supported 2008-07-01 22:59:20 +00:00
nls Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
posix1e The libc acl_valid(3) function validates the contents of a POSIX.1e ACL. 2008-07-13 16:37:51 +00:00
powerpc Add support files for compiling with soft-float. This has been 2008-04-27 18:34:34 +00:00
quad Fix a typo that prevented the quad symbols from being exported 2007-07-06 13:42:24 +00:00
regex getopt(3) returns -1, not EOF. 2008-02-18 03:19:25 +00:00
resolv Allow underscore in domain names while resolving. While having underscore 2008-02-16 00:16:49 +00:00
rpc Don't call xdrrec_skiprecord in the non-blocking case. If 2008-03-30 09:36:17 +00:00
softfloat Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
sparc64 Fix some bugs that caused sparc64's quad precision sqrt to get 2008-04-12 03:10:13 +00:00
stdio Fix a few bugs with the _gettemp() routine which implements mkstemp(), 2008-07-28 21:18:59 +00:00
stdlib Enhance arena_chunk_map_t to directly support run coalescing, and use 2008-07-18 19:35:44 +00:00
stdtime Clarify that "ante meridiem" and "post meridiem" mean the same thing 2008-05-16 04:33:04 +00:00
string Add memrchr(3). 2008-04-10 00:12:44 +00:00
sys Fix cut-n-paste-o 2008-07-25 01:09:36 +00:00
uuid Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
xdr Don't assume that there is readable data on the stream after the 2008-03-30 09:35:04 +00:00
yp Fix some "in in" typos in comments. 2008-03-26 07:32:08 +00:00
Makefile Enable GCC stack protection (aka Propolice) for userland: 2008-06-25 21:33:28 +00:00
Versions.def Keep versions on a dependency chain to exclude even remote possiblity 2008-05-07 15:39:34 +00:00