From: Eugene Syromyatnikov Date: Wed, 7 Feb 2018 00:58:51 +0000 (+0100) Subject: Add SYSCALL_NEVER_FAILS flag to getpgrp X-Git-Tag: v4.21~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8048b4888149cea6d25bd93dc0e6ba5f84dd84f4;p=strace Add SYSCALL_NEVER_FAILS flag to getpgrp As glibc, at least, treats it this way. * linux/aarch64/syscallent.h (getpgrp): Add NF flag. * linux/alpha/syscallent.h: Likewise. * linux/arm/syscallent.h: Likewise. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/powerpc64/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/sparc64/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise. --- diff --git a/linux/aarch64/syscallent.h b/linux/aarch64/syscallent.h index 4ff6118c..09142610 100644 --- a/linux/aarch64/syscallent.h +++ b/linux/aarch64/syscallent.h @@ -49,7 +49,7 @@ [1057] = { 3, TD, SEN(lseek), "lseek" }, [1058] = { 6, TD|TM|SI, SEN(mmap), "mmap" }, [1059] = { 1, 0, SEN(alarm), "alarm" }, -[1060] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[1060] = { 0, NF, SEN(getpgrp), "getpgrp" }, [1061] = { 0, TS, SEN(pause), "pause" }, [1062] = { 1, 0, SEN(time), "time" }, [1063] = { 2, TF, SEN(utime), "utime" }, diff --git a/linux/alpha/syscallent.h b/linux/alpha/syscallent.h index c343f612..be2c5846 100644 --- a/linux/alpha/syscallent.h +++ b/linux/alpha/syscallent.h @@ -90,7 +90,7 @@ [ 60] = { 1, NF, SEN(umask), "umask" }, [ 61] = { 1, TF, SEN(chroot), "chroot" }, [ 62] = { 5, TD|TFST|TSTA, SEN(printargs), "osf_old_fstat" }, /* not implemented */ -[ 63] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 63] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 64] = { 0, 0, SEN(getpagesize), "getpagesize" }, [ 65] = { 5, TM, SEN(printargs), "osf_mremap" }, /* not implemented */ [ 66] = { 0, TP, SEN(vfork), "vfork" }, diff --git a/linux/arm/syscallent.h b/linux/arm/syscallent.h index 6f4220f0..8f2aa4ac 100644 --- a/linux/arm/syscallent.h +++ b/linux/arm/syscallent.h @@ -92,7 +92,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 3, TS, SEN(sigaction), "sigaction" }, [ 68] = { 0, TS, SEN(sgetmask), "sgetmask" }, diff --git a/linux/avr32/syscallent.h b/linux/avr32/syscallent.h index d9975588..a14be553 100644 --- a/linux/avr32/syscallent.h +++ b/linux/avr32/syscallent.h @@ -91,7 +91,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 4, TS, SEN(rt_sigaction), "rt_sigaction" }, [ 68] = { 0, TS, SEN(rt_sigreturn), "rt_sigreturn" }, diff --git a/linux/bfin/syscallent.h b/linux/bfin/syscallent.h index ad2f5c0e..260e4ea9 100644 --- a/linux/bfin/syscallent.h +++ b/linux/bfin/syscallent.h @@ -92,7 +92,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 3, TS, SEN(sigaction), "sigaction" }, [ 68] = { 0, TS, SEN(sgetmask), "sgetmask" }, diff --git a/linux/hppa/syscallent.h b/linux/hppa/syscallent.h index 95f6cbed..4085be4a 100644 --- a/linux/hppa/syscallent.h +++ b/linux/hppa/syscallent.h @@ -68,7 +68,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 2, TF, SEN(pivotroot), "pivot_root" }, [ 68] = { 0, TS, SEN(sgetmask), "sgetmask" }, diff --git a/linux/i386/syscallent.h b/linux/i386/syscallent.h index ceaeac30..761a97aa 100644 --- a/linux/i386/syscallent.h +++ b/linux/i386/syscallent.h @@ -92,7 +92,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 3, TS, SEN(sigaction), "sigaction" }, [ 68] = { 0, TS, SEN(sgetmask), "sgetmask" }, diff --git a/linux/m68k/syscallent.h b/linux/m68k/syscallent.h index e7d95459..d1a3f64d 100644 --- a/linux/m68k/syscallent.h +++ b/linux/m68k/syscallent.h @@ -92,7 +92,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 3, TS, SEN(sigaction), "sigaction" }, [ 68] = { 0, TS, SEN(sgetmask), "sgetmask" }, diff --git a/linux/microblaze/syscallent.h b/linux/microblaze/syscallent.h index a745f9eb..2dc4fce7 100644 --- a/linux/microblaze/syscallent.h +++ b/linux/microblaze/syscallent.h @@ -92,7 +92,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 3, TS, SEN(sigaction), "sigaction" }, [ 68] = { 0, TS, SEN(sgetmask), "sgetmask" }, diff --git a/linux/powerpc/syscallent.h b/linux/powerpc/syscallent.h index 7cb02351..c2511ee8 100644 --- a/linux/powerpc/syscallent.h +++ b/linux/powerpc/syscallent.h @@ -92,7 +92,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 3, TS, SEN(sigaction), "sigaction" }, [ 68] = { 0, TS, SEN(sgetmask), "sgetmask" }, diff --git a/linux/powerpc64/syscallent.h b/linux/powerpc64/syscallent.h index 69b01a38..9d730a6d 100644 --- a/linux/powerpc64/syscallent.h +++ b/linux/powerpc64/syscallent.h @@ -92,7 +92,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 3, TS, SEN(sigaction), "sigaction" }, [ 68] = { 0, TS, SEN(sgetmask), "sgetmask" }, diff --git a/linux/s390/syscallent.h b/linux/s390/syscallent.h index d34cd42f..80d813b1 100644 --- a/linux/s390/syscallent.h +++ b/linux/s390/syscallent.h @@ -94,7 +94,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 3, TS, SEN(sigaction), "sigaction" }, [ 68] = { }, diff --git a/linux/s390x/syscallent.h b/linux/s390x/syscallent.h index 0c842747..74793c41 100644 --- a/linux/s390x/syscallent.h +++ b/linux/s390x/syscallent.h @@ -93,7 +93,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 3, TS, SEN(sigaction), "sigaction" }, [ 68 ... 71] = { }, diff --git a/linux/sh/syscallent.h b/linux/sh/syscallent.h index 365ee134..8c01e3f0 100644 --- a/linux/sh/syscallent.h +++ b/linux/sh/syscallent.h @@ -94,7 +94,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 3, TS, SEN(sigaction), "sigaction" }, [ 68] = { 0, TS, SEN(sgetmask), "sgetmask" }, diff --git a/linux/sh64/syscallent.h b/linux/sh64/syscallent.h index acc73797..737c9dec 100644 --- a/linux/sh64/syscallent.h +++ b/linux/sh64/syscallent.h @@ -92,7 +92,7 @@ [ 62] = { 2, TSFA, SEN(ustat), "ustat" }, [ 63] = { 2, TD, SEN(dup2), "dup2" }, [ 64] = { 0, NF, SEN(getppid), "getppid" }, -[ 65] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 65] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 66] = { 0, 0, SEN(setsid), "setsid" }, [ 67] = { 3, TS, SEN(sigaction), "sigaction" }, [ 68] = { 0, TS, SEN(sgetmask), "sgetmask" }, diff --git a/linux/sparc/syscallent.h b/linux/sparc/syscallent.h index 5a02923b..8e886887 100644 --- a/linux/sparc/syscallent.h +++ b/linux/sparc/syscallent.h @@ -79,7 +79,7 @@ [ 78] = { 3, TM, SEN(mincore), "mincore" }, [ 79] = { 2, 0, SEN(getgroups16), "getgroups" }, [ 80] = { 2, 0, SEN(setgroups16), "setgroups" }, -[ 81] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 81] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 82] = { 2, 0, SEN(setgroups), "setgroups32" }, [ 83] = { 3, 0, SEN(setitimer), "setitimer" }, [ 84] = { 3, TD, SEN(ftruncate64), "ftruncate64" }, diff --git a/linux/sparc64/syscallent.h b/linux/sparc64/syscallent.h index dafb2231..616b5cf4 100644 --- a/linux/sparc64/syscallent.h +++ b/linux/sparc64/syscallent.h @@ -77,7 +77,7 @@ [ 78] = { 3, TM, SEN(mincore), "mincore" }, [ 79] = { 2, 0, SEN(getgroups), "getgroups" }, [ 80] = { 2, 0, SEN(setgroups), "setgroups" }, -[ 81] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[ 81] = { 0, NF, SEN(getpgrp), "getpgrp" }, [ 82] = { }, [ 83] = { 3, 0, SEN(setitimer), "setitimer" }, [ 84] = { }, diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h index 6af92499..54cedabf 100644 --- a/linux/x32/syscallent.h +++ b/linux/x32/syscallent.h @@ -109,7 +109,7 @@ [108] = { 0, NF, SEN(getegid), "getegid" }, [109] = { 2, 0, SEN(setpgid), "setpgid" }, [110] = { 0, NF, SEN(getppid), "getppid" }, -[111] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[111] = { 0, NF, SEN(getpgrp), "getpgrp" }, [112] = { 0, 0, SEN(setsid), "setsid" }, [113] = { 2, 0, SEN(setreuid), "setreuid" }, [114] = { 2, 0, SEN(setregid), "setregid" }, diff --git a/linux/x86_64/syscallent.h b/linux/x86_64/syscallent.h index 3ccb5369..b31a3061 100644 --- a/linux/x86_64/syscallent.h +++ b/linux/x86_64/syscallent.h @@ -109,7 +109,7 @@ [108] = { 0, NF, SEN(getegid), "getegid" }, [109] = { 2, 0, SEN(setpgid), "setpgid" }, [110] = { 0, NF, SEN(getppid), "getppid" }, -[111] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[111] = { 0, NF, SEN(getpgrp), "getpgrp" }, [112] = { 0, 0, SEN(setsid), "setsid" }, [113] = { 2, 0, SEN(setreuid), "setreuid" }, [114] = { 2, 0, SEN(setregid), "setregid" }, diff --git a/linux/xtensa/syscallent.h b/linux/xtensa/syscallent.h index c1439c36..9e9b5c85 100644 --- a/linux/xtensa/syscallent.h +++ b/linux/xtensa/syscallent.h @@ -144,7 +144,7 @@ [148] = { 2, 0, SEN(setpgid), "setpgid" }, [149] = { 1, 0, SEN(getpgid), "getpgid" }, [150] = { 0, NF, SEN(getppid), "getppid" }, -[151] = { 0, 0, SEN(getpgrp), "getpgrp" }, +[151] = { 0, NF, SEN(getpgrp), "getpgrp" }, [152 ... 153] = { }, [154] = { 1, 0, SEN(times), "times" }, [155] = { 1, TF, SEN(acct), "acct" },