lib: Capture errno on entry
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 Jan 2014 16:56:01 +0000 (16:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 Jan 2014 16:57:17 +0000 (16:57 +0000)
commit48ad03ca0c5f078b8d12a64323fd93b3858041af
tree0c08dce3cc3f442b4f81a013489644b661427b7a
parentbe22e10885eba556428919c2bbc71b4b644cb1a4
lib: Capture errno on entry

When printing the errno, it is important that we capture the user errno
before we make any library calls - as they may alter the value.

References: https://bugs.freedesktop.org/show_bug.cgi?id=74007
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
lib/drmtest.c