diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-11-02 18:12:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-11-02 18:12:16 +0000 |
commit | 959050826be252a6e8adab38954978158a81a845 (patch) | |
tree | 108dc3b2f53cb92b152d9f9f23177dcc61c0d6cc /toolchain/uClibc/patches-0.9.33.2/616-mips_fix_stat_time.patch | |
parent | 357613e6234830ef3810ce0de338be6484d00dba (diff) | |
download | master-187ad058-959050826be252a6e8adab38954978158a81a845.tar.gz master-187ad058-959050826be252a6e8adab38954978158a81a845.tar.bz2 master-187ad058-959050826be252a6e8adab38954978158a81a845.zip |
uclibc: remove version 0.9.33
Latest uClibc-ng is now the only supported option
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47357 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/uClibc/patches-0.9.33.2/616-mips_fix_stat_time.patch')
-rw-r--r-- | toolchain/uClibc/patches-0.9.33.2/616-mips_fix_stat_time.patch | 123 |
1 files changed, 0 insertions, 123 deletions
diff --git a/toolchain/uClibc/patches-0.9.33.2/616-mips_fix_stat_time.patch b/toolchain/uClibc/patches-0.9.33.2/616-mips_fix_stat_time.patch deleted file mode 100644 index 1559857a44..0000000000 --- a/toolchain/uClibc/patches-0.9.33.2/616-mips_fix_stat_time.patch +++ /dev/null @@ -1,123 +0,0 @@ ---- a/libc/sysdeps/linux/common/xstatconv.c -+++ b/libc/sysdeps/linux/common/xstatconv.c -@@ -39,9 +39,12 @@ void __xstat_conv(struct kernel_stat *kb - buf->st_size = kbuf->st_size; - buf->st_blksize = kbuf->st_blksize; - buf->st_blocks = kbuf->st_blocks; -- buf->st_atim = kbuf->st_atim; -- buf->st_mtim = kbuf->st_mtim; -- buf->st_ctim = kbuf->st_ctim; -+ buf->st_atim.tv_sec = kbuf->st_atim.tv_sec; -+ buf->st_atim.tv_nsec = kbuf->st_atim.tv_nsec; -+ buf->st_mtim.tv_sec = kbuf->st_mtim.tv_sec; -+ buf->st_mtim.tv_nsec = kbuf->st_mtim.tv_nsec; -+ buf->st_ctim.tv_sec = kbuf->st_ctim.tv_sec; -+ buf->st_ctim.tv_nsec = kbuf->st_ctim.tv_nsec; - } - - void __xstat32_conv(struct kernel_stat64 *kbuf, struct stat *buf) -@@ -58,9 +61,12 @@ void __xstat32_conv(struct kernel_stat64 - buf->st_size = kbuf->st_size; - buf->st_blksize = kbuf->st_blksize; - buf->st_blocks = kbuf->st_blocks; -- buf->st_atim = kbuf->st_atim; -- buf->st_mtim = kbuf->st_mtim; -- buf->st_ctim = kbuf->st_ctim; -+ buf->st_atim.tv_sec = kbuf->st_atim.tv_sec; -+ buf->st_atim.tv_nsec = kbuf->st_atim.tv_nsec; -+ buf->st_mtim.tv_sec = kbuf->st_mtim.tv_sec; -+ buf->st_mtim.tv_nsec = kbuf->st_mtim.tv_nsec; -+ buf->st_ctim.tv_sec = kbuf->st_ctim.tv_sec; -+ buf->st_ctim.tv_nsec = kbuf->st_ctim.tv_nsec; - } - - #ifdef __UCLIBC_HAS_LFS__ -@@ -82,9 +88,12 @@ void __xstat64_conv(struct kernel_stat64 - buf->st_size = kbuf->st_size; - buf->st_blksize = kbuf->st_blksize; - buf->st_blocks = kbuf->st_blocks; -- buf->st_atim = kbuf->st_atim; -- buf->st_mtim = kbuf->st_mtim; -- buf->st_ctim = kbuf->st_ctim; -+ buf->st_atim.tv_sec = kbuf->st_atim.tv_sec; -+ buf->st_atim.tv_nsec = kbuf->st_atim.tv_nsec; -+ buf->st_mtim.tv_sec = kbuf->st_mtim.tv_sec; -+ buf->st_mtim.tv_nsec = kbuf->st_mtim.tv_nsec; -+ buf->st_ctim.tv_sec = kbuf->st_ctim.tv_sec; -+ buf->st_ctim.tv_nsec = kbuf->st_ctim.tv_nsec; - } - - #endif /* __UCLIBC_HAS_LFS__ */ ---- a/libc/sysdeps/linux/mips/bits/kernel_stat.h -+++ b/libc/sysdeps/linux/mips/bits/kernel_stat.h -@@ -8,6 +8,18 @@ - #include <sgidefs.h> - - #if _MIPS_SIM == _MIPS_SIM_ABI64 -+typedef struct { -+ unsigned int tv_sec; -+ unsigned int tv_nsec; -+} __ktimespec_t; -+#else -+typedef struct { -+ time_t tv_sec; -+ unsigned long tv_nsec; -+} __ktimespec_t; -+#endif -+ -+#if _MIPS_SIM == _MIPS_SIM_ABI64 - /* The memory layout is the same as of struct stat64 of the 32-bit kernel. */ - struct kernel_stat { - __kernel_dev_t st_dev; -@@ -20,9 +32,9 @@ struct kernel_stat { - __kernel_dev_t st_rdev; - unsigned int st_pad2[3]; - __kernel_off_t st_size; -- struct timespec st_atim; -- struct timespec st_mtim; -- struct timespec st_ctim; -+ __ktimespec_t st_atim; -+ __ktimespec_t st_mtim; -+ __ktimespec_t st_ctim; - unsigned int st_blksize; - unsigned int reserved3; - unsigned long st_blocks; -@@ -41,9 +53,9 @@ struct kernel_stat { - unsigned int st_rdev; - unsigned int st_pad2[3]; - unsigned long long st_size; -- struct timespec st_atim; -- struct timespec st_mtim; -- struct timespec st_ctim; -+ __ktimespec_t st_atim; -+ __ktimespec_t st_mtim; -+ __ktimespec_t st_ctim; - unsigned int st_blksize; - unsigned int reserved3; - unsigned long long st_blocks; -@@ -62,9 +74,9 @@ struct kernel_stat { - long st_pad2[2]; - __kernel_off_t st_size; - long st_pad3; -- struct timespec st_atim; -- struct timespec st_mtim; -- struct timespec st_ctim; -+ __ktimespec_t st_atim; -+ __ktimespec_t st_mtim; -+ __ktimespec_t st_ctim; - long st_blksize; - long st_blocks; - long st_pad4[14]; -@@ -81,9 +93,9 @@ struct kernel_stat64 { - unsigned long st_rdev; - unsigned long st_pad1[3]; /* Reserved for st_rdev expansion */ - long long st_size; -- struct timespec st_atim; -- struct timespec st_mtim; -- struct timespec st_ctim; -+ __ktimespec_t st_atim; -+ __ktimespec_t st_mtim; -+ __ktimespec_t st_ctim; - unsigned long st_blksize; - unsigned long st_pad2; - long long st_blocks; |