2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2013-01-25 22:33:33 +01:00
|
|
|
#pragma once
|
|
|
|
|
2020-12-09 10:07:12 +01:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
#include "macro.h"
|
|
|
|
|
2013-09-16 22:50:38 +02:00
|
|
|
int asynchronous_job(void* (*func)(void *p), void *arg);
|
2014-05-02 17:56:05 +02:00
|
|
|
|
2017-12-22 13:19:56 +01:00
|
|
|
int asynchronous_sync(pid_t *ret_pid);
|
2014-05-02 17:56:05 +02:00
|
|
|
int asynchronous_close(int fd);
|
2020-12-09 10:07:12 +01:00
|
|
|
|
|
|
|
DEFINE_TRIVIAL_CLEANUP_FUNC(int, asynchronous_close);
|