mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 11:41:07 +00:00
Linux: statx syscall number is always available
Due to the built-in tables, __NR_statx is always defined. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
276e6080c8
commit
7255ccbec9
@ -25,17 +25,14 @@ int
|
|||||||
statx (int fd, const char *path, int flags,
|
statx (int fd, const char *path, int flags,
|
||||||
unsigned int mask, struct statx *buf)
|
unsigned int mask, struct statx *buf)
|
||||||
{
|
{
|
||||||
#ifdef __NR_statx
|
|
||||||
int ret = INLINE_SYSCALL_CALL (statx, fd, path, flags, mask, buf);
|
int ret = INLINE_SYSCALL_CALL (statx, fd, path, flags, mask, buf);
|
||||||
# ifdef __ASSUME_STATX
|
#ifdef __ASSUME_STATX
|
||||||
return ret;
|
return ret;
|
||||||
# else
|
#else
|
||||||
if (ret == 0 || errno != ENOSYS)
|
if (ret == 0 || errno != ENOSYS)
|
||||||
/* Preserve non-error/non-ENOSYS return values. */
|
/* Preserve non-error/non-ENOSYS return values. */
|
||||||
return ret;
|
return ret;
|
||||||
# endif
|
else
|
||||||
#endif
|
return statx_generic (fd, path, flags, mask, buf);
|
||||||
#ifndef __ASSUME_STATX
|
|
||||||
return statx_generic (fd, path, flags, mask, buf);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user