From: Abhishek Tiwari Date: Tue, 28 Mar 2017 03:50:07 +0000 (+0530) Subject: alpha, mips: fix missing flags in stat related compatibility syscalls X-Git-Tag: v4.17~143 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b7681cf05bbf33957989c07cb30eb7499fa1f6a;p=strace alpha, mips: fix missing flags in stat related compatibility syscalls Following commands do the fix: Add TF flag, fixed by: git grep -Fl '_stat' linux/*/syscallent* | xargs sed -i \ 's/0\(,[[:space:]]*SEN(.*_l\?stat[^i]\)/TF\1/' Add TD flag, fixed by: git grep -Fl '_stat' linux/*/syscallent* | xargs sed -i \ 's/0\(,[[:space:]]*SEN(.*_fstat\)/TD\1/' * linux/alpha/syscallent.h: Add TF and TD flags to stat related compat syscall entries. * linux/mips/syscallent-compat.h: Likewise. --- diff --git a/linux/alpha/syscallent.h b/linux/alpha/syscallent.h index c7ef90af..e1b6933b 100644 --- a/linux/alpha/syscallent.h +++ b/linux/alpha/syscallent.h @@ -64,9 +64,9 @@ [ 35] = { 5, 0, SEN(printargs), "osf_fchflags" }, /* not implemented */ [ 36] = { 0, 0, SEN(sync), "sync" }, [ 37] = { 2, TS, SEN(kill), "kill" }, -[ 38] = { 5, 0, SEN(printargs), "osf_old_stat" }, /* not implemented */ +[ 38] = { 5, TF, SEN(printargs), "osf_old_stat" }, /* not implemented */ [ 39] = { 2, 0, SEN(setpgid), "setpgid" }, -[ 40] = { 5, 0, SEN(printargs), "osf_old_lstat" }, /* not implemented */ +[ 40] = { 5, TF, SEN(printargs), "osf_old_lstat" }, /* not implemented */ [ 41] = { 1, TD, SEN(dup), "dup" }, [ 42] = { 0, TD, SEN(pipe), "pipe" }, [ 43] = { 4, 0, SEN(printargs), "osf_set_program_attributes" }, @@ -88,7 +88,7 @@ [ 59] = { 3, TF|TP|SE|SI, SEN(execve), "execve" }, [ 60] = { 1, NF, SEN(umask), "umask" }, [ 61] = { 1, TF, SEN(chroot), "chroot" }, -[ 62] = { 5, 0, SEN(printargs), "osf_old_fstat" }, /* not implemented */ +[ 62] = { 5, TD, SEN(printargs), "osf_old_fstat" }, /* not implemented */ [ 63] = { 0, 0, SEN(getpgrp), "getpgrp" }, [ 64] = { 0, 0, SEN(getpagesize), "getpagesize" }, [ 65] = { 5, TM, SEN(printargs), "osf_mremap" }, /* not implemented */ @@ -185,8 +185,8 @@ [157] = { 5, 0, SEN(printargs), "osf_sigwaitprim" }, /* not implemented */ [158] = { 5, 0, SEN(printargs), "osf_nfssvc" }, /* not implemented */ [159] = { 4, 0, SEN(printargs), "osf_getdirentries" }, -[160] = { 3, 0, SEN(osf_statfs), "osf_statfs" }, -[161] = { 3, 0, SEN(osf_fstatfs), "osf_fstatfs" }, +[160] = { 3, TF, SEN(osf_statfs), "osf_statfs" }, +[161] = { 3, TD, SEN(osf_fstatfs), "osf_fstatfs" }, [162] = { }, [163] = { 5, 0, SEN(printargs), "osf_asynch_daemon" }, /* not implemented */ [164] = { 5, 0, SEN(printargs), "osf_getfh" }, /* not implemented */ @@ -227,11 +227,11 @@ [221] = { }, [222] = { 5, 0, SEN(printargs), "osf_security" }, /* not implemented */ [223] = { 5, 0, SEN(printargs), "osf_kloadcall" }, /* not implemented */ -[224] = { 2, 0, SEN(printargs), "osf_stat" }, -[225] = { 2, 0, SEN(printargs), "osf_lstat" }, -[226] = { 2, 0, SEN(printargs), "osf_fstat" }, -[227] = { 3, 0, SEN(osf_statfs), "osf_statfs64" }, -[228] = { 3, 0, SEN(osf_fstatfs), "osf_fstatfs64" }, +[224] = { 2, TF, SEN(printargs), "osf_stat" }, +[225] = { 2, TF, SEN(printargs), "osf_lstat" }, +[226] = { 2, TD, SEN(printargs), "osf_fstat" }, +[227] = { 3, TF, SEN(osf_statfs), "osf_statfs64" }, +[228] = { 3, TD, SEN(osf_fstatfs), "osf_fstatfs64" }, [229 ... 232] = { }, [233] = { 1, 0, SEN(getpgid), "getpgid" }, [234] = { 1, 0, SEN(getsid), "getsid" }, diff --git a/linux/mips/syscallent-compat.h b/linux/mips/syscallent-compat.h index 82a373b6..5d449184 100644 --- a/linux/mips/syscallent-compat.h +++ b/linux/mips/syscallent-compat.h @@ -16,7 +16,7 @@ [ 15] = { 0, 0, SEN(printargs), "svr4_chmod" }, [ 16] = { 0, 0, SEN(printargs), "svr4_chown" }, [ 17] = { 0, TM, SEN(printargs), "svr4_sbreak" }, -[ 18] = { 0, 0, SEN(printargs), "svr4_stat" }, +[ 18] = { 0, TF, SEN(printargs), "svr4_stat" }, [ 19] = { 0, 0, SEN(printargs), "svr4_lseek" }, [ 20] = { 0, 0, SEN(printargs), "svr4_getpid" }, [ 21] = { 0, 0, SEN(printargs), "svr4_mount" }, @@ -26,17 +26,17 @@ [ 25] = { 0, 0, SEN(printargs), "svr4_stime" }, [ 26] = { 0, 0, SEN(printargs), "svr4_ptrace" }, [ 27] = { 0, 0, SEN(printargs), "svr4_alarm" }, -[ 28] = { 0, 0, SEN(printargs), "svr4_fstat" }, +[ 28] = { 0, TD, SEN(printargs), "svr4_fstat" }, [ 29] = { 0, 0, SEN(printargs), "svr4_pause" }, [ 30] = { 0, 0, SEN(printargs), "svr4_utime" }, [ 31] = { 0, 0, SEN(printargs), "svr4_stty" }, [ 32] = { 0, 0, SEN(printargs), "svr4_gtty" }, [ 33] = { 0, 0, SEN(printargs), "svr4_access" }, [ 34] = { 0, 0, SEN(printargs), "svr4_nice" }, -[ 35] = { 0, 0, SEN(printargs), "svr4_statfs" }, +[ 35] = { 0, TF, SEN(printargs), "svr4_statfs" }, [ 36] = { 0, 0, SEN(printargs), "svr4_sync" }, [ 37] = { 0, 0, SEN(printargs), "svr4_kill" }, -[ 38] = { 0, 0, SEN(printargs), "svr4_fstatfs" }, +[ 38] = { 0, TD, SEN(printargs), "svr4_fstatfs" }, [ 39] = { 0, 0, SEN(printargs), "svr4_setpgrp" }, [ 40] = { 0, 0, SEN(printargs), "svr4_cxenix" }, [ 41] = { 0, 0, SEN(printargs), "svr4_dup" }, @@ -81,7 +81,7 @@ [ 85] = { 0, 0, SEN(printargs), "svr4_getmsg" }, [ 86] = { 0, 0, SEN(printargs), "svr4_putmsg" }, [ 87] = { 0, 0, SEN(printargs), "svr4_poll" }, -[ 88] = { 0, 0, SEN(printargs), "svr4_lstat" }, +[ 88] = { 0, TF, SEN(printargs), "svr4_lstat" }, [ 89] = { 0, 0, SEN(printargs), "svr4_symlink" }, [ 90] = { 0, 0, SEN(printargs), "svr4_readlink" }, [ 91] = { 0, 0, SEN(printargs), "svr4_setgroups" }, @@ -96,8 +96,8 @@ [ 100] = { 0, 0, SEN(printargs), "svr4_setcontext" }, [ 101] = { 0, 0, SEN(printargs), "svr4_evsys" }, [ 102] = { 0, 0, SEN(printargs), "svr4_evtrapret" }, -[ 103] = { 0, 0, SEN(printargs), "svr4_statvfs" }, -[ 104] = { 0, 0, SEN(printargs), "svr4_fstatvfs" }, +[ 103] = { 0, TF, SEN(printargs), "svr4_statvfs" }, +[ 104] = { 0, TD, SEN(printargs), "svr4_fstatvfs" }, [ 105] = { }, [ 106] = { 0, 0, SEN(printargs), "svr4_nfssys" }, [ 107] = { 0, 0, SEN(printargs), "svr4_waitid" }, @@ -167,7 +167,7 @@ [1015] = { 0, 0, SEN(printargs), "sysv_chmod" }, [1016] = { 0, 0, SEN(printargs), "sysv_chown" }, [1017] = { 0, TM|SI, SEN(printargs), "sysv_brk" }, -[1018] = { 0, 0, SEN(printargs), "sysv_stat" }, +[1018] = { 0, TF, SEN(printargs), "sysv_stat" }, [1019] = { 0, 0, SEN(printargs), "sysv_lseek" }, [1020] = { 0, 0, SEN(printargs), "sysv_getpid" }, [1021] = { 0, 0, SEN(printargs), "sysv_mount" }, @@ -177,17 +177,17 @@ [1025] = { 0, 0, SEN(printargs), "sysv_stime" }, [1026] = { 0, 0, SEN(printargs), "sysv_ptrace" }, [1027] = { 0, 0, SEN(printargs), "sysv_alarm" }, -[1028] = { 0, 0, SEN(printargs), "sysv_fstat" }, +[1028] = { 0, TD, SEN(printargs), "sysv_fstat" }, [1029] = { 0, 0, SEN(printargs), "sysv_pause" }, [1030] = { 0, 0, SEN(printargs), "sysv_utime" }, [1031] = { 0, 0, SEN(printargs), "sysv_stty" }, [1032] = { 0, 0, SEN(printargs), "sysv_gtty" }, [1033] = { 0, 0, SEN(printargs), "sysv_access" }, [1034] = { 0, 0, SEN(printargs), "sysv_nice" }, -[1035] = { 0, 0, SEN(printargs), "sysv_statfs" }, +[1035] = { 0, TF, SEN(printargs), "sysv_statfs" }, [1036] = { 0, 0, SEN(printargs), "sysv_sync" }, [1037] = { 0, 0, SEN(printargs), "sysv_kill" }, -[1038] = { 0, 0, SEN(printargs), "sysv_fstatfs" }, +[1038] = { 0, TD, SEN(printargs), "sysv_fstatfs" }, [1039] = { 0, 0, SEN(printargs), "sysv_setpgrp" }, [1040] = { 0, 0, SEN(printargs), "sysv_syssgi" }, [1041] = { 0, 0, SEN(printargs), "sysv_dup" }, @@ -261,7 +261,7 @@ [1114] = { 0, 0, SEN(printargs), "sysv_rename" }, [1115] = { 0, 0, SEN(printargs), "sysv_symlink" }, [1116] = { 0, 0, SEN(printargs), "sysv_readlink" }, -[1117] = { 0, 0, SEN(printargs), "sysv_lstat" }, +[1117] = { 0, TF, SEN(printargs), "sysv_lstat" }, [1118] = { 0, 0, SEN(printargs), "sysv_nfsmount" }, [1119] = { 0, 0, SEN(printargs), "sysv_nfssvc" }, [1120] = { 0, 0, SEN(printargs), "sysv_getfh" }, @@ -318,8 +318,8 @@ [1171] = { 0, 0, SEN(printargs), "sysv_sigstack" }, [1172] = { 0, 0, SEN(printargs), "sysv_sigaltstack" }, [1173] = { 0, 0, SEN(printargs), "sysv_sigsendset" }, -[1174] = { 0, 0, SEN(printargs), "sysv_statvfs" }, -[1175] = { 0, 0, SEN(printargs), "sysv_fstatvfs" }, +[1174] = { 0, TF, SEN(printargs), "sysv_statvfs" }, +[1175] = { 0, TD, SEN(printargs), "sysv_fstatvfs" }, [1176] = { 0, 0, SEN(printargs), "sysv_getpmsg" }, [1177] = { 0, 0, SEN(printargs), "sysv_putpmsg" }, [1178] = { 0, 0, SEN(printargs), "sysv_lchown" }, @@ -372,9 +372,9 @@ [2035] = { 0, 0, SEN(printargs), "bsd43_ftime" }, [2036] = { 0, 0, SEN(printargs), "bsd43_sync" }, [2037] = { 0, 0, SEN(printargs), "bsd43_kill" }, -[2038] = { 0, 0, SEN(printargs), "bsd43_stat" }, +[2038] = { 0, TF, SEN(printargs), "bsd43_stat" }, [2039] = { 0, 0, SEN(printargs), "bsd43_oldsetpgrp" }, -[2040] = { 0, 0, SEN(printargs), "bsd43_lstat" }, +[2040] = { 0, TF, SEN(printargs), "bsd43_lstat" }, [2041] = { 0, 0, SEN(printargs), "bsd43_dup" }, [2042] = { 0, 0, SEN(printargs), "bsd43_pipe" }, [2043] = { 0, 0, SEN(printargs), "bsd43_times" }, @@ -396,7 +396,7 @@ [2059] = { 0, 0, SEN(printargs), "bsd43_execve" }, [2060] = { 0, 0, SEN(printargs), "bsd43_umask" }, [2061] = { 0, 0, SEN(printargs), "bsd43_chroot" }, -[2062] = { 0, 0, SEN(printargs), "bsd43_fstat" }, +[2062] = { 0, TD, SEN(printargs), "bsd43_fstat" }, [2063] = { }, [2064] = { 0, 0, SEN(printargs), "bsd43_getpagesize" }, [2065] = { 0, TM|SI, SEN(printargs), "bsd43_mremap" }, @@ -494,8 +494,8 @@ [2157] = { 0, 0, SEN(printargs), "bsd43_nfs_mount" }, [2158] = { 0, 0, SEN(printargs), "bsd43_nfs_svc" }, [2159] = { 0, 0, SEN(printargs), "bsd43_getdirentries" }, -[2160] = { 0, 0, SEN(printargs), "bsd43_statfs" }, -[2161] = { 0, 0, SEN(printargs), "bsd43_fstatfs" }, +[2160] = { 0, TF, SEN(printargs), "bsd43_statfs" }, +[2161] = { 0, TD, SEN(printargs), "bsd43_fstatfs" }, [2162] = { 0, 0, SEN(printargs), "bsd43_unmount" }, [2163] = { 0, 0, SEN(printargs), "bsd43_async_daemon" }, [2164] = { 0, 0, SEN(printargs), "bsd43_nfs_getfh" }, @@ -545,7 +545,7 @@ [3015] = { 0, 0, SEN(printargs), "posix_chmod" }, [3016] = { 0, 0, SEN(printargs), "posix_chown" }, [3017] = { 0, TM, SEN(printargs), "posix_sbreak" }, -[3018] = { 0, 0, SEN(printargs), "posix_stat" }, +[3018] = { 0, TF, SEN(printargs), "posix_stat" }, [3019] = { 0, 0, SEN(printargs), "posix_lseek" }, [3020] = { 0, 0, SEN(printargs), "posix_getpid" }, [3021] = { 0, 0, SEN(printargs), "posix_mount" }, @@ -555,17 +555,17 @@ [3025] = { 0, 0, SEN(printargs), "posix_stime" }, [3026] = { 0, 0, SEN(printargs), "posix_ptrace" }, [3027] = { 0, 0, SEN(printargs), "posix_alarm" }, -[3028] = { 0, 0, SEN(printargs), "posix_fstat" }, +[3028] = { 0, TD, SEN(printargs), "posix_fstat" }, [3029] = { 0, 0, SEN(printargs), "posix_pause" }, [3030] = { 0, 0, SEN(printargs), "posix_utime" }, [3031] = { 0, 0, SEN(printargs), "posix_stty" }, [3032] = { 0, 0, SEN(printargs), "posix_gtty" }, [3033] = { 0, 0, SEN(printargs), "posix_access" }, [3034] = { 0, 0, SEN(printargs), "posix_nice" }, -[3035] = { 0, 0, SEN(printargs), "posix_statfs" }, +[3035] = { 0, TF, SEN(printargs), "posix_statfs" }, [3036] = { 0, 0, SEN(printargs), "posix_sync" }, [3037] = { 0, 0, SEN(printargs), "posix_kill" }, -[3038] = { 0, 0, SEN(printargs), "posix_fstatfs" }, +[3038] = { 0, TD, SEN(printargs), "posix_fstatfs" }, [3039] = { 0, 0, SEN(printargs), "posix_getpgrp" }, [3040] = { 0, 0, SEN(printargs), "posix_syssgi" }, [3041] = { 0, 0, SEN(printargs), "posix_dup" }, @@ -639,7 +639,7 @@ [3114] = { 0, 0, SEN(printargs), "posix_rename" }, [3115] = { 0, 0, SEN(printargs), "posix_symlink" }, [3116] = { 0, 0, SEN(printargs), "posix_readlink" }, -[3117] = { 0, 0, SEN(printargs), "posix_lstat" }, +[3117] = { 0, TF, SEN(printargs), "posix_lstat" }, [3118] = { 0, 0, SEN(printargs), "posix_nfs_mount" }, [3119] = { 0, 0, SEN(printargs), "posix_nfs_svc" }, [3120] = { 0, 0, SEN(printargs), "posix_nfs_getfh" },