- Made pciuhci.device and pciehci.device compile again: completed
[AROS.git] / compiler / clib / sysconf.c
blobef2e4c052f298d3d625a067d8cae15032db627ce
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
32 Currently only _SC_ARG_MAX handling is implemented
34 SEE ALSO
36 INTERNALS
38 ******************************************************************************/
40 switch (name)
42 /* TODO: Implement other names */
43 case _SC_ARG_MAX: return ARG_MAX;
45 default:
46 errno = EINVAL;
47 return -1;
49 } /* sysconf */