2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
7 * Include these before AROS includes, because __unused as a macro in AROS,
8 * causing conflicts with __unused being a structure member name in Linux bits/stat.h.
13 #include <aros/kernel.h>
14 #include <aros/libcall.h>
16 #include "kernel_base.h"
17 #include "kernel_intern.h"
19 AROS_LH0(int, KrnObtainInput
,
20 struct KernelBase
*, KernelBase
, 33, Kernel
)
26 /* Set our STDERR to non-blocking mode for RawMayGetChar() to work */
27 res
= KernelBase
->kb_PlatformData
->iface
->fcntl(STDERR_FILENO
, F_GETFL
);
29 res
= KernelBase
->kb_PlatformData
->iface
->fcntl(STDERR_FILENO
, F_SETFL
, res
|O_NONBLOCK
);
32 return (res
== -1) ? 0 : 1;