2 * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
7 #include "native_client/src/include/minsfi_syscalls.h"
9 long sysconf(int name) {
10 int32_t ret_val, result;
11 ret_val = __minsfi_syscall_sysconf(name, &result, &errno);
12 return (ret_val == 0) ? result : -1;