diff options
author | Ruediger Meier | 2016-02-29 12:38:58 +0100 |
---|---|---|
committer | Karel Zak | 2016-03-07 15:33:56 +0100 |
commit | 2208b3ccb298be2675cf005b761b1668f8cd576f (patch) | |
tree | 2321d7e68e87a87be24220824a47453f67a3881a /misc-utils/lslocks.c | |
parent | taskset: fix description of `-c` option in the man page (diff) | |
download | kernel-qcow2-util-linux-2208b3ccb298be2675cf005b761b1668f8cd576f.tar.gz kernel-qcow2-util-linux-2208b3ccb298be2675cf005b761b1668f8cd576f.tar.xz kernel-qcow2-util-linux-2208b3ccb298be2675cf005b761b1668f8cd576f.zip |
lib: remove openat fallback functions (include/at.h)
I have validated that we are still compatible at least back to
- openSUSE 11.4
- SLE 11
- RHEL/CentOS 6
- OSX 10.10.x, (Xcode 6.3)
- FreeBSD 10.2
Confirmed incompatibility:
- OSX 10.9.x, (Xcode 6.2)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'misc-utils/lslocks.c')
-rw-r--r-- | misc-utils/lslocks.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/misc-utils/lslocks.c b/misc-utils/lslocks.c index 389a3e42f..a47c1d0ad 100644 --- a/misc-utils/lslocks.c +++ b/misc-utils/lslocks.c @@ -39,7 +39,6 @@ #include "canonicalize.h" #include "nls.h" #include "xalloc.h" -#include "at.h" #include "strutils.h" #include "c.h" #include "list.h" @@ -180,12 +179,11 @@ static char *get_filename_sz(ino_t inode, pid_t lock_pid, size_t *size) if (!strtol(dp->d_name, (char **) NULL, 10)) continue; - if (!fstat_at(fd, path, dp->d_name, &sb, 0) + if (!fstatat(fd, dp->d_name, &sb, 0) && inode != sb.st_ino) continue; - if ((len = readlink_at(fd, path, dp->d_name, - sym, sizeof(sym) - 1)) < 1) + if ((len = readlinkat(fd, dp->d_name, sym, sizeof(sym) - 1)) < 1) goto out; *size = sb.st_size; |