tempname: resync from glibc
authorEric Blake <ebb9@byu.net>
Mon, 2 Nov 2009 20:19:27 +0000 (13:19 -0700)
committerEric Blake <ebb9@byu.net>
Thu, 5 Nov 2009 02:07:39 +0000 (19:07 -0700)
commit8eb3f17fc7fd54d63cb8f92cee955b398ce63599
tree58381234d9cc9253f7421eb584f28bb7ea565c64
parentba79e984f96e1470e583cc1731b2f80da9de9afc
tempname: resync from glibc

* lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
same values for __GT_FILE as glibc.  Abort even when assertions
are disabled.
* lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
match its value otherwise.  Allow idempotent inclusion.
* lib/mkdtemp.c (mkdtemp): Adjust caller.
* lib/mkostemp.c (mkostemp): Likewise.
* lib/mkstemp.c (mkstemp): Likewise.
* lib/tmpfile.c (tmpfile): Likewise.
* NEWS: Document this.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
NEWS
lib/mkdtemp.c
lib/mkostemp.c
lib/mkstemp.c
lib/tempname.c
lib/tempname.h
lib/tmpfile.c