Displaying 3 results from an estimated 3 matches for "__kernel_loff_t".
2019 Jan 21
0
[klibc:master] fcntl: Fix struct flock for 32-bit architectures
...ruct flock" has actually been defined with
- a long off_t, so it's really "struct flock64". It just happens
- to work. Gag. Barf.
+/*
+ * <linux/fcntl.h> defines struct flock with offsets of type
+ * __kernel_off_t (= long) and struct flock64 with offsets of
+ * type __kernel_loff_t (= long long). We want struct flock
+ * to have 64-bit offsets, so we define it here.
+ */
- This happens to work on all 32-bit architectures except MIPS. */
+struct flock {
+ short l_type;
+ short l_whence;
+ __kernel_loff_t l_start;
+ __kernel_loff_t l_len;
+ __kernel_pid_t l_pid;
+...
2012 Jun 29
0
[klibc:master] include: [sys/types.h] bury __kernel_nlink_t
...b/usr/include/sys/types.h
index 229f7d6..b8cdb8c 100644
--- a/usr/include/sys/types.h
+++ b/usr/include/sys/types.h
@@ -25,7 +25,6 @@ typedef __kernel_fd_set fd_set;
typedef uint32_t dev_t;
typedef __kernel_ino_t ino_t;
typedef __kernel_mode_t mode_t;
-typedef __kernel_nlink_t nlink_t;
typedef __kernel_loff_t off_t;
typedef __kernel_loff_t loff_t;
typedef __kernel_pid_t pid_t;
2006 Dec 20
2
Patch to klibc to work with headers from make install_headers
Hi! Now that there are usable userspace headers, we should use the
data from those. In this case, the workaround in
usr/include/sys/types.h was missing some header definitions. Rather
than adding the definitions, I figured that the most correct thing to
do was to just use them from the kernel.
Build tested on i386 and x86_64.
Signed-Off-By: Jeff Bailey <jbailey at ubuntu.com>
--
Jeff