Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Aurelien Jarno committed Mar 23, 2016
1 parent 7a25d6a commit 16d94f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -1 +1,2 @@
ChangeLog merge=merge-changelog
timezone/* -whitespace timezone/* -whitespace
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2016-03-23 Aurelien Jarno <aurelien@aurel32.net>

* sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
Make code unconditional.

2016-03-23 Nick Alcock <nick.alcock@oracle.com> 2016-03-23 Nick Alcock <nick.alcock@oracle.com>


* sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
Expand Down
4 changes: 0 additions & 4 deletions sysdeps/unix/sysv/linux/dl-openat64.c
Expand Up @@ -27,9 +27,5 @@ openat64 (int dfd, const char *file, int oflag, ...)
{ {
assert (!__OPEN_NEEDS_MODE (oflag)); assert (!__OPEN_NEEDS_MODE (oflag));


#ifdef __NR_openat
return INLINE_SYSCALL (openat, 3, dfd, file, oflag | O_LARGEFILE); return INLINE_SYSCALL (openat, 3, dfd, file, oflag | O_LARGEFILE);
#else
return INLINE_SYSCALL_ERROR_RETURN_VALUE (ENOSYS);
#endif
} }

0 comments on commit 16d94f6

Please sign in to comment.