diff options
author | Eric Blake <eblake@redhat.com> | 2007-05-01 23:03:36 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2007-05-01 23:03:36 +0000 |
commit | b4f095585f1e139cba8d2e078c807e384b3e102d (patch) | |
tree | e7ee261d556586898030b9ac5252c6a2ab3d5c1d /newlib/libc/stdio/mktemp.c | |
parent | 2babeb3d94cb8a507ca12b46252995b453600290 (diff) | |
download | cygnal-b4f095585f1e139cba8d2e078c807e384b3e102d.tar.gz cygnal-b4f095585f1e139cba8d2e078c807e384b3e102d.tar.bz2 cygnal-b4f095585f1e139cba8d2e078c807e384b3e102d.zip |
* libc/stdio64/local64.h: Delete, move contents to...
* libc/stdio/local.h: ...here.
* libc/stdio64/fdopen64.c: Update includes.
* libc/stdio64/fopen64.c: Likewise.
* libc/stdio64/freopen64.c: Likewise.
* libc/stdio64/fseeko64.c: Likewise.
* libc/stdio64/ftello64.c: Likewise.
* libc/stdio/findfp.c (std) [__LARGE64_FILES]: Open stdin, stdout,
and stderr with 64-bit offset.
* libc/stdio/fseek.c (_fseek_r): Avoid compile warning.
* libc/stdio/makebuf.c (__smakebuf_r): Likewise.
* libc/stdio/mktemp.c (_gettemp): Likewise.
Diffstat (limited to 'newlib/libc/stdio/mktemp.c')
-rw-r--r-- | newlib/libc/stdio/mktemp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/stdio/mktemp.c b/newlib/libc/stdio/mktemp.c index 59e7a5c66..e00228e15 100644 --- a/newlib/libc/stdio/mktemp.c +++ b/newlib/libc/stdio/mktemp.c @@ -60,7 +60,7 @@ TRAD_SYNOPSIS DESCRIPTION <<mktemp>> and <<mkstemp>> attempt to generate a file name that is not -yet in use for any existing file. <<mkstemp>> creates the file and +yet in use for any existing file. <<mkstemp>> creates the file and opens it for reading and writing; <<mktemp>> simply generates the file name. You supply a simple pattern for the generated file name, as the string @@ -108,7 +108,11 @@ _DEFUN(_gettemp, (ptr, path, doopen), register int *doopen) { register char *start, *trv; +#ifdef __USE_INTERNAL_STAT64 + struct stat64 sbuf; +#else struct stat sbuf; +#endif unsigned int pid; pid = _getpid_r (ptr); |