Test initialisation of MUIA_List_AdjustWidth and MUIA_List_AdjustHeight, and
[AROS.git] / arch / all-unix / kernel / maygetchar.c
blobd0b16f3968436d010cd5484b91b21a868dc1edfa
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/libcall.h>
8 #include <unistd.h>
10 #include "kernel_base.h"
11 #include "kernel_intern.h"
13 AROS_LH0(int, KrnMayGetChar,
14 struct KernelBase *, KernelBase, 26, Kernel)
16 AROS_LIBFUNC_INIT
18 char c;
19 int ret;
21 ret = KernelBase->kb_PlatformData->iface->read (STDERR_FILENO, &c, 1);
22 AROS_HOST_BARRIER
24 return (ret == 1) ? c : -1;
26 AROS_LIBFUNC_EXIT