2 * Include these before AROS includes, because __unused as a macro in AROS,
3 * causing conflicts with __unused being a structure member name in Linux bits/stat.h.
9 #include <aros/kernel.h>
10 #include <aros/libcall.h>
12 #include "kernel_base.h"
13 #include "kernel_intern.h"
15 AROS_LH0I(int, KrnObtainInput
,
16 struct KernelBase
*, KernelBase
, 33, Kernel
)
22 /* Set our STDERR to non-blocking mode for RawMayGetChar() to work */
23 res
= KernelIFace
.fcntl(STDERR_FILENO
, F_GETFL
);
25 res
= KernelIFace
.fcntl(STDERR_FILENO
, F_SETFL
, res
|O_NONBLOCK
);
28 return (res
== -1) ? 0 : 1;