From a22d90e47d420492c98ade168780ba7d3964419b Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 30 Oct 2017 12:52:48 +0000 Subject: Add lock_unx() --- src/libstddjb/lock_unx.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/libstddjb/lock_unx.c (limited to 'src/libstddjb/lock_unx.c') diff --git a/src/libstddjb/lock_unx.c b/src/libstddjb/lock_unx.c new file mode 100644 index 0000000..d2f8483 --- /dev/null +++ b/src/libstddjb/lock_unx.c @@ -0,0 +1,11 @@ +/* ISC license. */ + +#include +#include + +void lock_unx (int fd) +{ + int e = errno ; + lock_un(fd) ; + errno = e ; +} -- cgit v1.2.3