about summary refs log tree commit diff
path: root/misc/mkostemp64.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-08-01 10:42:38 -0700
committerRoland McGrath <roland@hack.frob.com>2012-08-01 10:42:38 -0700
commitcd97c9668814f7ec6d03e3c7e3653a92b97651e6 (patch)
tree80a8a9a6db13853b00be0380616f6127b4ab1556 /misc/mkostemp64.c
parent09c0ee5f8c2e52ff64347c39a586e8a23b9421e5 (diff)
downloadglibc-cd97c9668814f7ec6d03e3c7e3653a92b97651e6.tar.gz
glibc-cd97c9668814f7ec6d03e3c7e3653a92b97651e6.tar.xz
glibc-cd97c9668814f7ec6d03e3c7e3653a92b97651e6.zip
Clean up mkstemp64/mkostemp64 for O_LARGEFILE==0.
Diffstat (limited to 'misc/mkostemp64.c')
-rw-r--r--misc/mkostemp64.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/mkostemp64.c b/misc/mkostemp64.c
index b7a803a932..104e6d98ad 100644
--- a/misc/mkostemp64.c
+++ b/misc/mkostemp64.c
@@ -1,4 +1,4 @@
-/* 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
@@ -19,6 +19,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+/* If O_LARGEFILE is zero, mkostemp.c defines mkostemp64 as an alias.  */
+#if defined O_LARGEFILE && O_LARGEFILE != 0
+
 /* Generate a unique temporary file name from TEMPLATE.
    The last six characters of TEMPLATE must be "XXXXXX";
    they are replaced with a string that makes the filename unique.
@@ -30,3 +33,5 @@ mkostemp64 (template, flags)
 {
   return __gen_tempname (template, 0, flags | O_LARGEFILE, __GT_FILE);
 }
+
+#endif