| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The Native Client Authors. All rights reserved. | 2 * Copyright 2015 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef GLIBCEMU_SYS_STAT_H | 7 #ifndef GLIBCEMU_SYS_STAT_H |
| 8 #define GLIBCEMU_SYS_STAT_H 1 | 8 #define GLIBCEMU_SYS_STAT_H 1 |
| 9 | 9 |
| 10 #include_next <sys/stat.h> | 10 #include_next <sys/stat.h> |
| 11 | 11 /* 7777 */ |
| 12 #define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO) |
| 12 #ifdef __cplusplus | 13 #ifdef __cplusplus |
| 13 extern "C" { | 14 extern "C" { |
| 14 #endif | 15 #endif |
| 15 | 16 |
| 16 mode_t umask(mode_t mask); | 17 mode_t umask(mode_t mask); |
| 18 int fchmodat(int dirfd, const char *pathname, mode_t mode, int flags); |
| 19 int mkdirat(int dirfd, const char *pathname, mode_t mode); |
| 20 int mknodat(int dirfd, const char *pathname, mode_t mode, dev_t dev); |
| 17 | 21 |
| 18 #ifdef __cplusplus | 22 #ifdef __cplusplus |
| 19 } | 23 } |
| 20 #endif | 24 #endif |
| 21 | 25 |
| 22 #endif | 26 #endif |
| OLD | NEW |