aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/fdopen.c4
-rw-r--r--sysdeps/posix/tempname.c6
2 files changed, 3 insertions, 7 deletions
diff --git a/sysdeps/posix/fdopen.c b/sysdeps/posix/fdopen.c
index 4e7d3051eb..39d8463b70 100644
--- a/sysdeps/posix/fdopen.c
+++ b/sysdeps/posix/fdopen.c
@@ -25,7 +25,7 @@ extern int __getmode (const char *mode, __io_mode *mptr);
/* Open a new stream on a given system file descriptor. */
FILE *
-fdopen (fd, mode)
+__fdopen (fd, mode)
int fd;
const char *mode;
{
@@ -71,3 +71,5 @@ fdopen (fd, mode)
return stream;
}
+
+weak_alias (__fdopen, fdopen)
diff --git a/sysdeps/posix/tempname.c b/sysdeps/posix/tempname.c
index 6dd893e613..d49971db26 100644
--- a/sysdeps/posix/tempname.c
+++ b/sysdeps/posix/tempname.c
@@ -145,15 +145,9 @@ __gen_tempname (char *tmpl, int openit, int largefile)
if (openit)
{
- /* XXX Do we want to fail on largefile if 64 bit fileops
- are not implemented, or just fall back to the old stuff? */
-#ifndef __stub_open64
fd = (largefile
? __open (tmpl, O_RDWR | O_CREAT | O_EXCL, 0666)
: __open64 (tmpl, O_RDWR | O_CREAT | O_EXCL, 0666));
-#else
- fd = __open (tmpl, O_RDWR | O_CREAT | O_EXCL, 0666);
-#endif
if (fd >= 0)
{
__set_errno (save_errno);