[dietlibc] create files in mkstemp() with O_LARGEFILE
ensc
ensc at fedoraproject.org
Sat Mar 12 21:29:11 UTC 2011
commit 26c9d4c27f100da4a521095686fac3d8a2377bdf
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date: Sat Mar 12 22:28:45 2011 +0100
create files in mkstemp() with O_LARGEFILE
dietlibc-github.patch | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/dietlibc-github.patch b/dietlibc-github.patch
index 84a5b44..b6f9402 100644
--- a/dietlibc-github.patch
+++ b/dietlibc-github.patch
@@ -44,6 +44,7 @@
lib/stackgap.c | 37 ++++++++++-
libcompat/syscall.S | 8 ++-
libcruft/getpagesize.c | 28 ++++-----
+ libcruft/mkstemp.c | 1 +
libcruft/sysconf.c | 17 ++++--
libm/ceil.c | 92 +++++++++++++++++++++++++++++
libm/gamma.c | 26 ++++----
@@ -71,7 +72,7 @@
test/byteswap.c | 8 +-
test/cycles.c | 5 +-
test/dirent/.gitignore | 2 +
- test/ftruncate.c | 53 +++++++++++++++++
+ test/ftruncate.c | 54 +++++++++++++++++
test/getmntent.c | 6 +--
test/getservbyname.c | 1 +
test/if_nameindex.c | 4 +
@@ -105,7 +106,7 @@
x86_64/__time.S | 11 ++++
x86_64/start.S | 16 +++++
x86_64/time.S | 12 +----
- 107 files changed, 1536 insertions(+), 466 deletions(-)
+ 108 files changed, 1538 insertions(+), 466 deletions(-)
diff --git a/.gitignore b/.gitignore
new file mode 100644
@@ -2012,6 +2013,15 @@ index 5ff8973..ac701cf 100644
size_t getpagesize(void) __attribute__((weak,alias("__libc_getpagesize")));
-
+diff --git a/libcruft/mkstemp.c b/libcruft/mkstemp.c
+index 7dc19d4..226dec4 100644
+--- a/libcruft/mkstemp.c
++++ b/libcruft/mkstemp.c
+@@ -1,3 +1,4 @@
++#define _FILE_OFFSET_BITS 64
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <string.h>
diff --git a/libcruft/sysconf.c b/libcruft/sysconf.c
index 6865026..089fbd3 100644
--- a/libcruft/sysconf.c
@@ -2752,10 +2762,10 @@ index 0000000..eea7a22
+/tst-seekdir
diff --git a/test/ftruncate.c b/test/ftruncate.c
new file mode 100644
-index 0000000..53b70bd
+index 0000000..e0ebb5d
--- /dev/null
+++ b/test/ftruncate.c
-@@ -0,0 +1,53 @@
+@@ -0,0 +1,54 @@
+#define _GNU_SOURCE
+#define _XOPEN_SOURCE 600
+#define _FILE_OFFSET_BITS 64
@@ -2764,6 +2774,7 @@ index 0000000..53b70bd
+#include <fcntl.h>
+#include <assert.h>
+#include <unistd.h>
++#include <sys/stat.h>
+
+#define CHECK(_sz) \
+ assert(ftruncate(fd, (_sz)) == 0); \
More information about the scm-commits
mailing list