Skip to content

Commit bc12225

Browse files
committed
autoargs: Add a prototype for fchmodat(3)
It seems fchmodat() was added in POSIX 2008. Add that to the prototype. int fchmodat(int dirfd, const char *pathname, oct_mode_t mode, int flags); Signed-off-by: Namhyung Kim <[email protected]>
1 parent a26f9d6 commit bc12225

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

misc/prototypes.h

+1
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ int lstat(const char *pathname, void *statbuf);
501501

502502
int chmod(const char *pathname, oct_mode_t mode);
503503
int fchmod(int fd, oct_mode_t mode);
504+
int fchmodat(int dirfd, const char *pathname, oct_mode_t mode, int flags);
504505
void umask(oct_mode_t mask);
505506

506507
int creat(const char *file, oct_mode_t mode);

utils/auto-args.h

+2
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ static char *auto_args_list =
232232
"lstat@arg1/s,arg2/p;"
233233
"chmod@arg1/s,arg2/o;"
234234
"fchmod@arg1/d32,arg2/o;"
235+
"fchmodat@arg1/d32,arg2/s,arg3/o,arg4/d32;"
235236
"umask@arg1/o;"
236237
"creat@arg1/s,arg2/o;"
237238
"creat64@arg1/s,arg2/o;"
@@ -451,6 +452,7 @@ static char *auto_retvals_list =
451452
"lstat@retval/d32;"
452453
"chmod@retval/d32;"
453454
"fchmod@retval/d32;"
455+
"fchmodat@retval/d32;"
454456
"creat@retval/d32;"
455457
"creat64@retval/d32;"
456458
"isatty@retval/d32;"

0 commit comments

Comments
 (0)