From 846cd5b2b12947753f5fd3f02c49f7d828fb763d Mon Sep 17 00:00:00 2001
From: Laurent Bercot
- int fd_close (int fd)
+ void fd_close (int fd)
Closes fd.
-Returns 0 if it succeeds, or -1 (and sets errno) if it fails.
This is a safe wrapper around
-close(),
-or rather as safe a wrapper as is possible to write: the close()
-specification does not allow a 100% safe behaviour. So, in rare cases
-it is possible for fd_close() to return 0 (instead of -1 EBADF)
-when it is provided an argument that is not an open fd. This should not
-be a problem, because giving wrong arguments to fd_close() is
-always a static programming error.
+close().
-- cgit v1.2.3