Skip to content

Commit

Permalink
* sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed May 9, 2009
1 parent 2221e33 commit 4300afc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2009-05-08 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_AT_RANDOM.

* sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
count is zero.

Expand Down
5 changes: 5 additions & 0 deletions sysdeps/unix/sysv/linux/kernel-features.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,11 @@
# define __ASSUME_FUTEX_CLOCK_REALTIME 1
#endif

/* Support for the AT_RANDOM auxiliary vector entry was added in 2.6.29. */
#if __LINUX_KERNEL_VERSION >= 0x02061d
# define __ASSUME_AT_RANDOM 1
#endif

/* Support for preadv and pwritev was added in 2.6.30. */
#if __LINUX_KERNEL_VERSION >= 0x02061e
# define __ASSUME_PREADV 1
Expand Down

0 comments on commit 4300afc

Please sign in to comment.