diff options
-rw-r--r-- | crt/aarch64/crti.s | 2 | ||||
-rw-r--r-- | include/sys/reg.h | 2 | ||||
-rw-r--r-- | include/sys/user.h | 2 | ||||
-rw-r--r-- | src/dirent/posix_getdents.c | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/crt/aarch64/crti.s b/crt/aarch64/crti.s index 775df0ac..3776fa64 100644 --- a/crt/aarch64/crti.s +++ b/crt/aarch64/crti.s @@ -1,6 +1,7 @@ .section .init .global _init .type _init,%function +.align 2 _init: stp x29,x30,[sp,-16]! mov x29,sp @@ -8,6 +9,7 @@ _init: .section .fini .global _fini .type _fini,%function +.align 2 _fini: stp x29,x30,[sp,-16]! mov x29,sp diff --git a/include/sys/reg.h b/include/sys/reg.h index 4e6ce222..0272e137 100644 --- a/include/sys/reg.h +++ b/include/sys/reg.h @@ -4,7 +4,7 @@ #include <limits.h> #include <unistd.h> -#include <bits/alltype.h> +#include <bits/alltypes.h> #undef __WORDSIZE #if __LONG_MAX == 0x7fffffffL diff --git a/include/sys/user.h b/include/sys/user.h index 78036da3..511caba3 100644 --- a/include/sys/user.h +++ b/include/sys/user.h @@ -8,7 +8,7 @@ extern "C" { #include <stdint.h> #include <unistd.h> -#include <bits/alltype.h> +#include <bits/alltypes.h> #undef __WORDSIZE #if __LONG_MAX == 0x7fffffffL diff --git a/src/dirent/posix_getdents.c b/src/dirent/posix_getdents.c index b19e8127..26c16ac6 100644 --- a/src/dirent/posix_getdents.c +++ b/src/dirent/posix_getdents.c @@ -3,7 +3,7 @@ #include <errno.h> #include "syscall.h" -int posix_getdents(int fd, void *buf, size_t len, int flags) +ssize_t posix_getdents(int fd, void *buf, size_t len, int flags) { if (flags) return __syscall_ret(-EOPNOTSUPP); if (len>INT_MAX) len = INT_MAX; |