Listtree.mcc: use internal inherited class of NListtree
[AROS.git] / compiler / posixc / sysconf.c
blob65a20ed2cd309599c36a38f71364c25959f55d78
1 /*
2 Copyright © 2009-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2008 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
28 Currently only _SC_ARG_MAX handling is implemented
30 EXAMPLE
32 BUGS
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 */