From 61c4849bd7e3d424cfaf0246d4a80dec89a16878 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Wed, 23 Aug 2017 02:05:34 +0200 Subject: [PATCH] libposix: add POSIX_chmod and POSIX_fchmodat to posix.h --- sys/include/posix.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/include/posix.h b/sys/include/posix.h index f32bea9..35bbb45 100644 --- a/sys/include/posix.h +++ b/sys/include/posix.h @@ -87,6 +87,8 @@ typedef unsigned long clock_t; #define __POSIX_SIGNAL_PREFIX "posix: " extern void POSIX_exit(int code) __attribute__((noreturn)); +extern int POSIX_chmod(int *errnop, const char *path, int mode); +extern int POSIX_fchmodat(int *errnop, int fd, const char *path, long mode, int flag); extern int POSIX_close(int *errnop, int file); extern int POSIX_execve(int *errnop, const char *name, char * const*argv, char * const*env); extern int POSIX_fork(int *errnop);