search for: fstatat

Displaying 20 results from an estimated 151 matches for "fstatat".

2013 Nov 08
1
[PATCH 2/3] syscalls: Add syscalls needed by arm64
...+int stat(const char *path, struct stat *buf) > +{ > + int fd = open(path, O_RDONLY); > + int ret = fstat(fd, buf); > + close(fd); > + return ret; > +} > + > +#endif /* __NR_stat */ No. Just... no. Especially not O_RDONLY without O_PATH. But do an implementation based on fstatat() instead. -hpa
2023 Jan 13
0
[klibc:master] ls: Handle relative directory names correctly
...ath) and opendir(path). This obviously fails for relative names. That could be fixed by using opendir(".") instead. However, if multiple relative directory names are given, this would still fail after the first such directory. Instead, leave the current directory unchanged and use the fstatat() and readlinkat() functions to get information about files in each directory. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/utils/ls.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/usr/utils/ls.c b/usr/utils/ls.c index 9677bc0f..50...
2019 Sep 18
2
[PATCH] build: remove unused gnulib modules
...bootstrap b/bootstrap index aaf038d98..ee253b471 100755 --- a/bootstrap +++ b/bootstrap @@ -104,7 +104,6 @@ gnulib_tool=$GNULIB_SRCDIR/gnulib-tool modules=' accept4 -areadlink areadlinkat arpa_inet base64 @@ -113,15 +112,11 @@ c-ctype cloexec closeout connect -dup3 error -filevercmp fstatat -fts full-read full-write futimens -getaddrinfo getline getprogname gitlog-to-changelog @@ -143,22 +138,18 @@ mkstemps netdb netinet_in nonblocking -openat perror pipe2 pread -ptsname_r read-file readlink select setenv sleep socket -stat-time strchrnul strerror strndup -symlink...
2016 Aug 18
5
[PATCH v2 0/4] New getprogname module
...| 1 - modules/copy-file-tests | 1 - modules/error | 1 + modules/exclude-tests | 1 - modules/fchownat-tests | 1 - modules/fdopendir-tests | 1 - modules/filenamecat-tests | 1 - modules/fstatat-tests | 1 - modules/fstrcmp-tests | 1 - modules/getprogname | 28 ++++++ modules/git-merge-changelog | 2 +- modules/linked-list-tests | 1 - modules/linkedhash-list-tests | 1 - modules/mkdirat-tests...
2023 May 30
1
O_PATH, FreeBSD & acl_xx_fd
...t as the fd argument to > openat() with empty path and flag O_EMPTY_PATH. Such an open behaves as > if the current path of the file referenced by fd is passed, except that > the path walk permissions are not checked. See also the description of > AT_EMPTY_PATH flag for fstatat(2) and related syscalls. Hmm? I?ll have to test it. Yes, this seems to work - after this I can read & write ACLs and stuff: fd = openat(fd, ??, O_EMPTY_PATH); - Peter > On 30 May 2023, at 19:20, Jeremy Allison <jra at samba.org> wrote: > > On Tue, May 30, 2023 at 09:57:3...
2013 Nov 12
0
[klibc:master] syscalls: Add syscalls needed by arm64
...at *); <!ppc64> int fstat64,fstat::fstat(int, struct stat *); <ppc64> int stat::stat(const char *, struct stat *); <ppc64> int lstat::lstat(const char *, struct stat *); @@ -141,14 +141,15 @@ int readlink(const char *, char *, size_t); /* XXX: Is this right?! */ <?> int fstatat64,newfstatat,fstatat::fstatat(int, const char *, struct stat *, int); int getdents64,getdents::getdents(unsigned int, struct dirent *, unsigned int); -int chown32,chown::chown(const char *, uid_t, gid_t); +<?> int chown32,chown::chown(const char *, uid_t, gid_t); int fchown32,fchown::fchown...
2019 Sep 18
0
Re: [PATCH] build: remove unused gnulib modules
...otstrap > @@ -104,7 +104,6 @@ gnulib_tool=$GNULIB_SRCDIR/gnulib-tool > > modules=' > accept4 > -areadlink > areadlinkat > arpa_inet > base64 > @@ -113,15 +112,11 @@ c-ctype > cloexec > closeout > connect > -dup3 > error > -filevercmp > fstatat > -fts > full-read > full-write > futimens > -getaddrinfo > getline > getprogname > gitlog-to-changelog > @@ -143,22 +138,18 @@ mkstemps > netdb > netinet_in > nonblocking > -openat > perror > pipe2 > pread > -ptsname_r > read-file...
2019 Sep 23
0
[PATCH v2 5/5] build: remove unused gnulib modules
...--git a/bootstrap b/bootstrap index aaf038d98..9e5a8b72d 100755 --- a/bootstrap +++ b/bootstrap @@ -104,34 +104,26 @@ gnulib_tool=$GNULIB_SRCDIR/gnulib-tool modules=' accept4 -areadlink areadlinkat -arpa_inet base64 byteswap c-ctype cloexec closeout connect -dup3 error -filevercmp fstatat -fts full-read full-write futimens -getaddrinfo getline getprogname gitlog-to-changelog glob -gnu-make gnumakefile hash hash-pjw human -iconv ignore-value intprops lock @@ -141,24 +133,18 @@ memmem mkdtemp mkstemps netdb -netinet_in nonblocking -openat perror pipe2 pread -ptsna...
2010 Oct 29
2
[LLVMdev] "multiple definition of .. " in clang 2.8
...o: In function `lstat': Hostname.c:(.text+0x470): multiple definition of `lstat' av.o:av.c:(.text+0x470): first defined here Hostname.o: In function `fstat': Hostname.c:(.text+0x490): multiple definition of `fstat' av.o:av.c:(.text+0x490): first defined here Hostname.o: In function `fstatat': Hostname.c:(.text+0x4b0): multiple definition of `fstatat' av.o:av.c:(.text+0x4b0): first defined here Hostname.o: In function `mknod': Hostname.c:(.text+0x4d0): multiple definition of `mknod' av.o:av.c:(.text+0x4d0): first defined here Hostname.o: In function `mknodat': Hostn...
2010 Dec 14
8
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...r.h lib/exitfail.c lib/exitfail.h lib/fchdir.c lib/fchmodat.c lib/fchown-stub.c lib/fchownat.c lib/fclose.c lib/fcntl--.h lib/fcntl-safer.h lib/fcntl.c lib/fcntl.in.h lib/fd-safer.c lib/fdopendir.c lib/filevercmp.c lib/filevercmp.h lib/float+.h lib/float.in.h lib/fstatat.c lib/fts-cycle.c lib/fts.c lib/fts_.h lib/full-write.c lib/full-write.h lib/getcwd.c lib/getdtablesize.c lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/gettext.h lib/hash-pjw.c lib/hash-pjw.h lib/hash.c lib/hash.h lib/i-ring.c lib/i-ring.h lib...
2011 Jan 14
7
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...r.h lib/exitfail.c lib/exitfail.h lib/fchdir.c lib/fchmodat.c lib/fchown-stub.c lib/fchownat.c lib/fclose.c lib/fcntl--.h lib/fcntl-safer.h lib/fcntl.c lib/fcntl.in.h lib/fd-safer.c lib/fdopendir.c lib/filevercmp.c lib/filevercmp.h lib/float+.h lib/float.in.h lib/fstatat.c lib/fts-cycle.c lib/fts.c lib/fts_.h lib/full-write.c lib/full-write.h lib/getcwd.c lib/getdtablesize.c lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/gettext.h lib/hash-pjw.c lib/hash-pjw.h lib/hash.c lib/hash.h lib/i-ring.c lib/i-ring.h lib...
2011 Feb 15
7
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...r.h lib/exitfail.c lib/exitfail.h lib/fchdir.c lib/fchmodat.c lib/fchown-stub.c lib/fchownat.c lib/fclose.c lib/fcntl--.h lib/fcntl-safer.h lib/fcntl.c lib/fcntl.in.h lib/fd-safer.c lib/fdopendir.c lib/filevercmp.c lib/filevercmp.h lib/float+.h lib/float.in.h lib/fstatat.c lib/fts-cycle.c lib/fts.c lib/fts_.h lib/full-write.c lib/full-write.h lib/getcwd.c lib/getdtablesize.c lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/gettext.h lib/hash-pjw.c lib/hash-pjw.h lib/hash.c lib/hash.h lib/i-ring.c lib/i-ring.h lib...
2011 Jan 14
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...r.h lib/exitfail.c lib/exitfail.h lib/fchdir.c lib/fchmodat.c lib/fchown-stub.c lib/fchownat.c lib/fclose.c lib/fcntl--.h lib/fcntl-safer.h lib/fcntl.c lib/fcntl.in.h lib/fd-safer.c lib/fdopendir.c lib/filevercmp.c lib/filevercmp.h lib/float+.h lib/float.in.h lib/fstatat.c lib/fts-cycle.c lib/fts.c lib/fts_.h lib/full-write.c lib/full-write.h lib/getcwd.c lib/getdtablesize.c lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/gettext.h lib/hash-pjw.c lib/hash-pjw.h lib/hash.c lib/hash.h lib/i-ring.c lib/i-ring.h lib...
2011 Feb 15
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...r.h lib/exitfail.c lib/exitfail.h lib/fchdir.c lib/fchmodat.c lib/fchown-stub.c lib/fchownat.c lib/fclose.c lib/fcntl--.h lib/fcntl-safer.h lib/fcntl.c lib/fcntl.in.h lib/fd-safer.c lib/fdopendir.c lib/filevercmp.c lib/filevercmp.h lib/float+.h lib/float.in.h lib/fstatat.c lib/fts-cycle.c lib/fts.c lib/fts_.h lib/full-write.c lib/full-write.h lib/getcwd.c lib/getdtablesize.c lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/gettext.h lib/hash-pjw.c lib/hash-pjw.h lib/hash.c lib/hash.h lib/i-ring.c lib/i-ring.h lib...
2010 Dec 14
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...r.h lib/exitfail.c lib/exitfail.h lib/fchdir.c lib/fchmodat.c lib/fchown-stub.c lib/fchownat.c lib/fclose.c lib/fcntl--.h lib/fcntl-safer.h lib/fcntl.c lib/fcntl.in.h lib/fd-safer.c lib/fdopendir.c lib/filevercmp.c lib/filevercmp.h lib/float+.h lib/float.in.h lib/fstatat.c lib/fts-cycle.c lib/fts.c lib/fts_.h lib/full-write.c lib/full-write.h lib/getcwd.c lib/getdtablesize.c lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/gettext.h lib/hash-pjw.c lib/hash-pjw.h lib/hash.c lib/hash.h lib/i-ring.c lib/i-ring.h lib...
2011 May 13
3
builder-debian febootstrap success 6ab9465001dfaa52edc5992ee71f2e9aecc2085d
...r.h lib/exitfail.c lib/exitfail.h lib/fchdir.c lib/fchmodat.c lib/fchown-stub.c lib/fchownat.c lib/fclose.c lib/fcntl--.h lib/fcntl-safer.h lib/fcntl.c lib/fcntl.in.h lib/fd-safer.c lib/fdopendir.c lib/filevercmp.c lib/filevercmp.h lib/float+.h lib/float.in.h lib/fstatat.c lib/fts-cycle.c lib/fts.c lib/fts_.h lib/full-write.c lib/full-write.h lib/getcwd.c lib/getdtablesize.c lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/gettext.h lib/hash-pjw.c lib/hash-pjw.h lib/hash.c lib/hash.h lib/i-ring.c lib/i-ring.h lib...
2010 Dec 07
0
builder-debian febootstrap FAILED configure step af9f9305a0a48829392a57d24aee30978b449d1d
...r.h lib/exitfail.c lib/exitfail.h lib/fchdir.c lib/fchmodat.c lib/fchown-stub.c lib/fchownat.c lib/fclose.c lib/fcntl--.h lib/fcntl-safer.h lib/fcntl.c lib/fcntl.in.h lib/fd-safer.c lib/fdopendir.c lib/filevercmp.c lib/filevercmp.h lib/float+.h lib/float.in.h lib/fstatat.c lib/fts-cycle.c lib/fts.c lib/fts_.h lib/full-write.c lib/full-write.h lib/getcwd.c lib/getdtablesize.c lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/gettext.h lib/hash-pjw.c lib/hash-pjw.h lib/hash.c lib/hash.h lib/i-ring.c lib/i-ring.h lib...
2011 Mar 22
1
builder-debian febootstrap success 6720ad28eddbcd671032c151f7219a35ba615b1b
...r.h lib/exitfail.c lib/exitfail.h lib/fchdir.c lib/fchmodat.c lib/fchown-stub.c lib/fchownat.c lib/fclose.c lib/fcntl--.h lib/fcntl-safer.h lib/fcntl.c lib/fcntl.in.h lib/fd-safer.c lib/fdopendir.c lib/filevercmp.c lib/filevercmp.h lib/float+.h lib/float.in.h lib/fstatat.c lib/fts-cycle.c lib/fts.c lib/fts_.h lib/full-write.c lib/full-write.h lib/getcwd.c lib/getdtablesize.c lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/gettext.h lib/hash-pjw.c lib/hash-pjw.h lib/hash.c lib/hash.h lib/i-ring.c lib/i-ring.h lib...
2010 Dec 07
0
builder-ubuntu febootstrap success 2dfc659c33c5ceb298e8027e219547416b286661
...r.h lib/exitfail.c lib/exitfail.h lib/fchdir.c lib/fchmodat.c lib/fchown-stub.c lib/fchownat.c lib/fclose.c lib/fcntl--.h lib/fcntl-safer.h lib/fcntl.c lib/fcntl.in.h lib/fd-safer.c lib/fdopendir.c lib/filevercmp.c lib/filevercmp.h lib/float+.h lib/float.in.h lib/fstatat.c lib/fts-cycle.c lib/fts.c lib/fts_.h lib/full-write.c lib/full-write.h lib/getcwd.c lib/getdtablesize.c lib/getopt.c lib/getopt.in.h lib/getopt1.c lib/getopt_int.h lib/gettext.h lib/hash-pjw.c lib/hash-pjw.h lib/hash.c lib/hash.h lib/i-ring.c lib/i-ring.h lib...
2013 Nov 11
5
[PATCH V2 0/3] Introduce arm64 support
Hello, Here is V2 of the arm64 support for klibc patch set. Notable changes since the original series: * fp regs dropped from setjmp/longjmp * chmod, lstat and stat re-implemented with *at functions. * open64 merged into open. As with the original, this series is to be applied against the latest klibc, just after 25a66fa README.klibc: update build information V2 has been tested on x86_64