Displaying 3 results from an estimated 3 matches for "691d0e4".
2019 Jan 18
0
[klibc:master] include sys/types.h in more places
...ex 0d8c3b1..1ac3075 100644
--- a/usr/klibc/pread.c
+++ b/usr/klibc/pread.c
@@ -4,6 +4,7 @@
* Some architectures need to wrap the system call
*/
+#include <sys/types.h>
#include <endian.h>
#include <sys/syscall.h>
diff --git a/usr/klibc/pwrite.c b/usr/klibc/pwrite.c
index 691d0e4..19b219f 100644
--- a/usr/klibc/pwrite.c
+++ b/usr/klibc/pwrite.c
@@ -4,6 +4,7 @@
* Some architectures need to wrap the system call
*/
+#include <sys/types.h>
#include <endian.h>
#include <sys/syscall.h>
2016 Jan 06
0
[klibc:master] Add pread and pwrite 32bit syscall wrappers for parisc
...unsigned int hi = offset >> 32;
+ unsigned int lo = (unsigned int) offset;
+ return __pread(fd, buf, count, __LONG_LONG_PAIR(hi, lo));
+#else
+ return __pread(fd, buf, count, offset);
+#endif
+}
+
+#endif
diff --git a/usr/klibc/pwrite.c b/usr/klibc/pwrite.c
new file mode 100644
index 0000000..691d0e4
--- /dev/null
+++ b/usr/klibc/pwrite.c
@@ -0,0 +1,29 @@
+/*
+ * pwrite.c
+ *
+ * Some architectures need to wrap the system call
+ */
+
+#include <endian.h>
+#include <sys/syscall.h>
+
+#if defined(__hppa__)
+
+#if _BITSIZE == 32
+extern ssize_t __pwrite(int, const void *, size_t, unsig...
2016 Jan 06
5
[PATCH klibc 0/5] klibc architecture fixes
Here's an assortment of build and run-time fixes for various
architectures that we've applied in Debian.
Ben.
Aurelien Jarno (1):
ppc64: fix struct stat
Ben Hutchings (2):
MIPS: Update archfcntl.h
syscalls: Override detection of direct socket syscalls on i386, m68k,
s390
Helge Deller (1):
Add pread and pwrite 32bit syscall wrappers for parisc
Mauricio Faria de Oliveira