ae2f_docs
Loading...
Searching...
No Matches
Ftx-_linux.auto.h
1#undef __ae2f_MACRO_GENERATED
2#define __ae2f_MACRO_GENERATED 1
3
4/**
5 * @file Futex-_linux.auto.h
6 * */
7#ifndef ae2f_Sys_Futex_linux__auto_h
8
9#define _ae2f_SysFtxEl__linux int
10#include <ae2f/Sys/Ftx-_linux.h>
11#undef __ae2f_MACRO_GENERATED
12#define __ae2f_MACRO_GENERATED 1
13#define ae2f_Sys_Futex_linux__auto_h
14
15
16#include <ae2f/Sys/Ftx.core.h>
17#undef __ae2f_MACRO_GENERATED
18#define __ae2f_MACRO_GENERATED 1
19#include <ae2f/Macro.h>
20#undef __ae2f_MACRO_GENERATED
21#define __ae2f_MACRO_GENERATED 1
22#include <ae2f/Cast.h>
23#undef __ae2f_MACRO_GENERATED
24#define __ae2f_MACRO_GENERATED 1
25#include <errno.h>
26#undef __ae2f_MACRO_GENERATED
27#define __ae2f_MACRO_GENERATED 1
28
29#if ae2f_Sys__linux(!)0
30
31/**
32 * @brief
33 * @retval ae2f_eSysFtxWait
34 * */
35#define _ae2f_SysFtxWait_imp__linux(
36 /** tparam */
37 unused_0,
38
39 /** param */
40 /* , ae2f_eSysFtxWait */ ret_err,
41 /* ae2f_SysFtxEl_t* const */ prm_uaddr,
42 /* const int */ prm_val,
43 /* const struct timespec* const */ pprm_time_opt \
44)\
45{
46 (ret_err) = syscall(SYS_futex, prm_uaddr, FUTEX_WAIT, prm_val, pprm_time_opt, NULL, 0) == -1 ?
47 ae2f_static_cast(ae2f_eSysFtxWait, (errno)) :
48 ae2f_SysFtxWait_GOOD
49 ; \
50}
51
52#define _ae2f_SysFtxWake__linux(
53 /** tparam */
54
55
56 /** param */
57 /* , ae2f_eSysFtxWake */ ret_err,
58 /* ae2f_SysFtxEl_t* const */ prm_uaddr,
59 /* const int */ prm_numthrd \
60)\
61{
62 (ret_err) = ae2f_static_cast(
63 ae2f_eSysFtxWake
64 , syscall(SYS_futex, prm_uaddr, FUTEX_WAKE, prm_numthrd, NULL, NULL, 0)
65 ); \
66}
67
68#define _ae2f_SysFtxWakeOne__linux(
69 /** tparam */
70
71
72 /** param */
73 /* , ae2f_eSysFtxWake */ ret_err,
74 /* ae2f_SysFtxEl_t* const */ prm_uaddr \
75){
76 _ae2f_SysFtxWake__linux(ret_err, prm_uaddr, 1); \
77}
78
79#endif
80#endif
81
82#undef __ae2f_MACRO_GENERATED
83
84#define __ae2f_MACRO_GENERATED 0
#define ae2f_static_cast(t, v)
static_cast for C++
Definition Cast.h:28
#define ae2f_Sys__linux
Value expected did not match.
Definition Sys.h:15