parlib: Add parlib_assert_perror()
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 22 Dec 2016 22:36:06 +0000 (17:36 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 10 Jan 2017 00:01:40 +0000 (19:01 -0500)
commit8b692fd985c0f03727e7af9cf93bb81f75b7cb8d
treee1fcc2adda1aa516265fa229c1518f9555e8a311
parentbf0290d8c79f9f64e1888a558fd3029739ee7a40
parlib: Add parlib_assert_perror()

Unlike glibc's lousy assert_perror(), which just takes an errno (0 being
OK), this actually takes an assertion statement, like assert().  On
assertion failure, it does a perror() and exits.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/parlib/include/parlib/assert.h