summaryrefslogtreecommitdiffstats
path: root/src/basic/async.h
blob: e0bbaa5658319dd07ff89ddad98384e4a763412d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);