OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The Native Client Authors. All rights reserved. | 2 * Copyright 2008 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /* | 7 /* |
8 * NaCl Service Runtime. Host Directory descriptor / Handle abstraction. | 8 * NaCl Service Runtime. Host Directory descriptor / Handle abstraction. |
9 */ | 9 */ |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void *buf, | 59 void *buf, |
60 size_t len); | 60 size_t len); |
61 | 61 |
62 /* | 62 /* |
63 * Dtor for the NaClHostDir object. Close the directory. | 63 * Dtor for the NaClHostDir object. Close the directory. |
64 * | 64 * |
65 * Underlying host-OS functions: closedir(Mac) / close(Linux) / FindClose | 65 * Underlying host-OS functions: closedir(Mac) / close(Linux) / FindClose |
66 */ | 66 */ |
67 extern int NaClHostDirClose(struct NaClHostDir *d); | 67 extern int NaClHostDirClose(struct NaClHostDir *d); |
68 | 68 |
| 69 extern int NaClHostDirFchdir(struct NaClHostDir *d) NACL_WUR; |
| 70 |
| 71 extern int NaClHostDirFchmod(struct NaClHostDir *d, int mode) NACL_WUR; |
| 72 |
| 73 extern int NaClHostDirFsync(struct NaClHostDir *d) NACL_WUR; |
| 74 |
| 75 extern int NaClHostDirFdatasync(struct NaClHostDir *d) NACL_WUR; |
| 76 |
69 EXTERN_C_END | 77 EXTERN_C_END |
70 | 78 |
71 #endif /* NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_NACL_HOST_DIR_H__ */ | 79 #endif /* NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_NACL_HOST_DIR_H__ */ |
OLD | NEW |