diff options
Diffstat (limited to 'src/libunixonacid/dd_close.c')
-rw-r--r-- | src/libunixonacid/dd_close.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libunixonacid/dd_close.c b/src/libunixonacid/dd_close.c new file mode 100644 index 0000000..74961a1 --- /dev/null +++ b/src/libunixonacid/dd_close.c @@ -0,0 +1,9 @@ +/* ISC license. */ + +#include <skalibs/djbunix.h> +#include <skalibs/unix-transactional.h> + +int dd_close (dirdescriptor_t_ref dd) +{ + return (fd_close(dd->fd) >= 0) ; +} |