]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r215338:
authornetchild <netchild@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 22 Nov 2010 08:21:58 +0000 (08:21 +0000)
committernetchild <netchild@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 22 Nov 2010 08:21:58 +0000 (08:21 +0000)
commit8ec08c781e18fbab37d73ddbf02bb800c499e542
tree82e2eecfaec6eec89005fa013153b0a3041112a7
parent6ab38fd487a84c567e5b5b9ec7e91fd69b3f82f5
MFC r215338:
  - print out the PID and program name of the program trying to use an
    unsupported futex operation
  - for those futex operations which are known to be not supported,
    print out which futex operation it is
  - shortcut the error return of the unsupported FUTEX_CLOCK_REALTIME in
    some cases:
      FUTEX_CLOCK_REALTIME can be used to tell linux to use
      CLOCK_REALTIME instead of CLOCK_MONOTONIC. FUTEX_CLOCK_REALTIME
      however must only be set, if either FUTEX_WAIT_BITSET or
      FUTEX_WAIT_REQUEUE_PI are set too. If that's not the case
      we can die with ENOSYS right at the beginning.

  Submitted by: arundel
  Reviewed by: rdivacky (earlier iteration of the patch)
  MFC after: 1 week

git-svn-id: svn://svn.freebsd.org/base/stable/8@215661 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/compat/linux/linux_futex.c
sys/compat/linux/linux_futex.h