aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-03 14:16:39 +0000
committerOmar Polo <op@omarpolo.com>2021-02-03 14:16:39 +0000
commit9b8f5ed2c0c53467115b3b1d6754642d8e5e4da1 (patch)
tree1a17a27b9637036db4a77ce73453de660735f3f0 /utils.c
parent9edb82825145b2311c547003b9e7ca286ef7db3a (diff)
revert commit 346f28eeaa205d268d1e63c7ffd86cf041f6d1e6
keep mark_nonblock in utils.c, as otherwise the build for the regress suite will fail (mark_nonblock needs fatal which is in gmid.c, and we can't link gmid.o with the regress suite...)
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/utils.c b/utils.c
index c64a181..c32ecb8 100644
--- a/utils.c
+++ b/utils.c
@@ -15,7 +15,6 @@
*/
#include <errno.h>
-#include <fcntl.h>
#include <string.h>
#include "gmid.h"
@@ -64,17 +63,6 @@ filesize(int fd)
return len;
}
-void
-mark_nonblock(int fd)
-{
- int flags;
-
- if ((flags = fcntl(fd, F_GETFL)) == -1)
- fatal("fcntl(F_GETFL): %s", strerror(errno));
- if (fcntl(fd, F_SETFL, flags | O_NONBLOCK) == -1)
- fatal("fcntl(F_SETFL): %s", strerror(errno));
-}
-
char *
absolutify_path(const char *path)
{