Special parsers for mkdir and mkdirat are redundant because
sys_chmod and sys_fchmodat implement the same decoding.
* file.c (decode_mkdir, sys_mkdir, sys_mkdirat): Remove.
* linux/dummy.h (sys_mkdir): Alias to sys_chmod.
(sys_mkdirat): Alias to sys_fchmodat.
* linux/syscall.h (sys_mkdir, sys_mkdirat): Remove.
* pathtrace.c (pathtrace_match): Do not check for sys_mkdirat.
return 0;
}
-static int
-decode_mkdir(struct tcb *tcp, int offset)
-{
- if (entering(tcp)) {
- printpath(tcp, tcp->u_arg[offset]);
- tprintf(", %#lo", tcp->u_arg[offset + 1]);
- }
- return 0;
-}
-
-int
-sys_mkdir(struct tcb *tcp)
-{
- return decode_mkdir(tcp, 0);
-}
-
-int
-sys_mkdirat(struct tcb *tcp)
-{
- if (entering(tcp))
- print_dirfd(tcp, tcp->u_arg[0]);
- return decode_mkdir(tcp, 1);
-}
-
int
sys_link(struct tcb *tcp)
{
#define sys_getresgid sys_getresuid
#define sys_lstat sys_stat
#define sys_lstat64 sys_stat64
+#define sys_mkdir sys_chmod
+#define sys_mkdirat sys_fchmodat
#define sys_mlock sys_munmap
#define sys_mq_unlink sys_chdir
#define sys_munlock sys_munmap
int sys_mbind();
int sys_migrate_pages();
int sys_mincore();
-int sys_mkdir();
-int sys_mkdirat();
int sys_mknod();
int sys_mknodat();
int sys_mlockall();
s->sys_func == sys_faccessat ||
s->sys_func == sys_fchmodat ||
s->sys_func == sys_futimesat ||
- s->sys_func == sys_mkdirat ||
s->sys_func == sys_unlinkat ||
s->sys_func == sys_newfstatat ||
s->sys_func == sys_mknodat ||