search for: 92343f1

Displaying 3 results from an estimated 3 matches for "92343f1".

2013 Nov 08
1
[PATCH 2/3] syscalls: Add syscalls needed by arm64
...buf) > +{ > + int fd = open(path, O_RDONLY | O_PATH | O_NOFOLLOW); > + int ret = fstat(fd, buf); > + close(fd); > + return ret; > +} > + > +#endif /* __NR_lstat */ [...] > diff --git a/usr/klibc/stat.c b/usr/klibc/stat.c > new file mode 100644 > index 0000000..92343f1 > --- /dev/null > +++ b/usr/klibc/stat.c > @@ -0,0 +1,17 @@ > +#include <fcntl.h> > +#include <unistd.h> > +#include <sys/types.h> > +#include <sys/stat.h> > +#include <sys/syscall.h> > + > +#ifndef __NR_stat > + > +int stat(const ch...
2013 Nov 08
0
[PATCH 2/3] syscalls: Add syscalls needed by arm64
...+ } + + result = __pselect6(nfds, readfds, writefds, exceptfds, &ts, NULL); + + if (timeout) { + timeout->tv_sec = ts.tv_sec; + timeout->tv_usec = ts.tv_nsec / 1000; + } + + return result; +} + +#endif diff --git a/usr/klibc/stat.c b/usr/klibc/stat.c new file mode 100644 index 0000000..92343f1 --- /dev/null +++ b/usr/klibc/stat.c @@ -0,0 +1,17 @@ +#include <fcntl.h> +#include <unistd.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <sys/syscall.h> + +#ifndef __NR_stat + +int stat(const char *path, struct stat *buf) +{ + int fd = open(path, O_RDONL...
2013 Nov 08
9
[PATCH 0/3] Introduce arm64 support
Hello, This series introduces arm64 support to klibc. I've rebased the work from Neil Williams and Anil Singhar into the following three patches. Most of the code changes are due to new syscall implementations being needed for arm64 as a only a minimal set of syscalls are defined in the arm64 kernel. This series is to be applied against the latest klibc, just after 25a66fa README.klibc: