1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Assume __NR_openat is always defined

With the 2.6.32 minimum kernel on x86 and 3.2 on other architectures,
__NR_openat is always defined.

Changelog:
	* sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
	Make code unconditional.
This commit is contained in:
Aurelien Jarno
2016-03-23 23:35:08 +01:00
parent 7a25d6a84d
commit 16d94f67e5
3 changed files with 6 additions and 4 deletions

View File

@ -27,9 +27,5 @@ openat64 (int dfd, const char *file, int oflag, ...)
{
assert (!__OPEN_NEEDS_MODE (oflag));
#ifdef __NR_openat
return INLINE_SYSCALL (openat, 3, dfd, file, oflag | O_LARGEFILE);
#else
return INLINE_SYSCALL_ERROR_RETURN_VALUE (ENOSYS);
#endif
}