clib/mktemp.c & shell/If: Fix checking for existing file.
[AROS.git] / arch / all-unix / kernel / releaseinput.c
blob73d57dcc3c1a5ae17ef2a374454af38ec6932040
1 /*
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.
4 */
5 #include <fcntl.h>
6 #include <unistd.h>
8 #include <aros/kernel.h>
9 #include <aros/libcall.h>
11 #include "kernel_base.h"
12 #include "kernel_intern.h"
14 AROS_LH0I(void, KrnReleaseInput,
15 struct KernelBase *, KernelBase, 34, Kernel)
17 AROS_LIBFUNC_INIT
19 int res;
21 /* Reset nonblocking mode on STDERR */
22 res = KernelBase->kb_PlatformData->iface->fcntl(STDERR_FILENO, F_GETFL);
23 AROS_HOST_BARRIER
24 KernelBase->kb_PlatformData->iface->fcntl(STDERR_FILENO, F_SETFL, res & ~O_NONBLOCK);
25 AROS_HOST_BARRIER
27 AROS_LIBFUNC_EXIT