2 * Copyright (c) 2013 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 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYS_FILENAME_H_
8 #define NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYS_FILENAME_H_ 1
10 #include "native_client/src/include/nacl_base.h"
11 #include "native_client/src/include/portability.h"
12 #include "native_client/src/trusted/service_runtime/include/sys/stat.h"
19 int32_t NaClSysOpen(struct NaClAppThread *natp,
24 int32_t NaClSysStat(struct NaClAppThread *natp,
28 int32_t NaClSysMkdir(struct NaClAppThread *natp,
32 int32_t NaClSysRmdir(struct NaClAppThread *natp,
35 int32_t NaClSysChdir(struct NaClAppThread *natp,
38 int32_t NaClSysGetcwd(struct NaClAppThread *natp,
42 int32_t NaClSysUnlink(struct NaClAppThread *natp,
45 int32_t NaClSysTruncate(struct NaClAppThread *natp,
47 uint32_t length_addr);
49 int32_t NaClSysLstat(struct NaClAppThread *natp,
53 int32_t NaClSysLink(struct NaClAppThread *natp,
57 int32_t NaClSysRename(struct NaClAppThread *natp,
61 int32_t NaClSysSymlink(struct NaClAppThread *natp,
65 int32_t NaClSysChmod(struct NaClAppThread *natp,
67 nacl_abi_mode_t mode);
69 int32_t NaClSysAccess(struct NaClAppThread *natp,
73 int32_t NaClSysReadlink(struct NaClAppThread *natp,
78 int32_t NaClSysUtimes(struct NaClAppThread *natp,