diff options
author | David Yuste <dyuste@gcc.gnu.org> | 2011-02-24 14:19:21 +0000 |
---|---|---|
committer | David Yuste <dyuste@gcc.gnu.org> | 2011-02-24 14:19:21 +0000 |
commit | e6db3a189c8f65d1352782c38bef3a5803f1b5b8 (patch) | |
tree | d1969403b14429d5191662682bd072b2b3fa3168 | |
parent | 292600a62e237f91e5a4ae41d805ad06b9d58c40 (diff) |
Added sysconf.c (I forgot to do it the last time)
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/st/cli-be@170469 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libstd/src/sysconf.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libstd/src/sysconf.c b/libstd/src/sysconf.c new file mode 100644 index 00000000000..23de918c067 --- /dev/null +++ b/libstd/src/sysconf.c @@ -0,0 +1,35 @@ +/* + + Copyright (C) 2008 Free Software Foundation, Inc. + Contributed by STMicroelectronics + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +GCC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING. If not, write to the Free +Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301, USA. */ + +/* If we are compiling this, we are sure this is to build C-runtime*/ +#define __LIBSTD_CRT_BUILD + +#include <__cdefs.h> +#include <__host.h> + +#include <unistd.h> + +LIBSTD_LPROTO_IMPL(long, sysconf, int name) { + return LIBSTD_HNAME(getsysconf)(name); +} + + |