compiler/clib: Rename IoErr2errno() to __arosc_ioerr2errno(); function is now defined...
[AROS.git] / compiler / clib / sysconf.c
blobc37d860f437611db63dc9f063aab1449a4a5d223
1 /*
2 Copyright © 2009, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX function sysconf().
6 */
8 #include <errno.h>
9 #include <limits.h>
11 /*****************************************************************************
13 NAME */
14 #include <unistd.h>
16 long sysconf(
18 /* SYNOPSIS */
19 int name)
21 /* FUNCTION
23 INPUTS
25 RESULT
27 NOTES
29 EXAMPLE
31 BUGS
33 SEE ALSO
35 INTERNALS
37 ******************************************************************************/
39 switch (name)
41 case _SC_ARG_MAX: return ARG_MAX;
43 default:
44 errno = EINVAL;
45 return -1;
47 } /* sysconf */