async: add trivial cleanup wrapper for asynchronous_close()

This commit is contained in:
Lennart Poettering 2020-12-09 10:07:12 +01:00
parent 9e36b885b8
commit 1d9aa4d572
1 changed files with 6 additions and 0 deletions

View File

@ -1,7 +1,13 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <sys/types.h>
#include "macro.h"
int asynchronous_job(void* (*func)(void *p), void *arg);
int asynchronous_sync(pid_t *ret_pid);
int asynchronous_close(int fd);
DEFINE_TRIVIAL_CLEANUP_FUNC(int, asynchronous_close);