Define mkstemps64 as an alias.
* misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
Define mkostemp64 as an alias.
+ * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
+ Define mkostemps64 as an alias.
* misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
Conditionalize body on this.
* misc/mkostemp64.c: Likewise.
+ * misc/mkostemps64.c: Likewise.
* misc/mkstemps64.c: Likewise.
* sysdeps/wordsize-64/mkstemp64.c: File removed.
* sysdeps/wordsize-64/mkostemp64.c: File removed.
-/* Copyright (C) 2009 Free Software Foundation, Inc.
+/* Copyright (C) 2009-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
return __gen_tempname (template, suffixlen, flags, __GT_FILE);
}
+
+#if !defined O_LARGEFILE || O_LARGEFILE == 0
+weak_alias (mkostemps, mkostemps64)
+#endif
-/* Copyright (C) 2000, 2007, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 2000-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
#include <stdio.h>
#include <stdlib.h>
+/* If O_LARGEFILE is zero, mkostemps.c defines mkostemps64 as an alias. */
+#if defined O_LARGEFILE && O_LARGEFILE != 0
+
/* Generate a unique temporary file name from TEMPLATE. The last six
characters before a suffix of length SUFFIXLEN of TEMPLATE must be
"XXXXXX"; they are replaced with a string that makes the filename
return __gen_tempname (template, suffixlen, flags | O_LARGEFILE, __GT_FILE);
}
+
+#endif