]> granicus.if.org Git - strace/commitdiff
Mark various arch-specific syscalls with SYSCALL_NEVER_FAILS
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 7 Feb 2018 01:07:43 +0000 (02:07 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 9 Feb 2018 04:41:55 +0000 (04:41 +0000)
* linux/alpha/syscallent.h (getpagesize, getdtablesize): Add NF flag.
* linux/arc/syscallent.h (arc_gettls): Likewise.
* linux/arm/syscallent.h (get_tls): Likewise.
* linux/ia64/syscallent.h (getpagesize): Likewise.
* linux/m68k/syscallent.h (getpagesize, get_thread_area): Likewise.
* linux/sparc/syscallent.h (getpagesize): Likewise.
* linux/sparc64/syscallent.h (getpagesize): Likewise.

linux/alpha/syscallent.h
linux/arc/syscallent.h
linux/arm/syscallent.h
linux/ia64/syscallent.h
linux/m68k/syscallent.h
linux/sparc/syscallent.h
linux/sparc64/syscallent.h

index be2c5846321e5d6648207cdc4ce7285edfba120d..303633385bccf26fbf3ad5abc8dea519cd9aab31 100644 (file)
@@ -91,7 +91,7 @@
 [ 61] = { 1,   TF,             SEN(chroot),                    "chroot"                },
 [ 62] = { 5,   TD|TFST|TSTA,   SEN(printargs),                 "osf_old_fstat"         }, /* not implemented */
 [ 63] = { 0,   NF,             SEN(getpgrp),                   "getpgrp"               },
-[ 64] = { 0,   0,              SEN(getpagesize),               "getpagesize"           },
+[ 64] = { 0,   NF,             SEN(getpagesize),               "getpagesize"           },
 [ 65] = { 5,   TM,             SEN(printargs),                 "osf_mremap"            }, /* not implemented */
 [ 66] = { 0,   TP,             SEN(vfork),                     "vfork"                 },
 [ 67] = { 2,   TF|TST|TSTA,    SEN(stat),                      "stat"                  },
 [ 86] = { 2,   0,              SEN(osf_getitimer),             "osf_getitimer"         },
 [ 87] = { 2,   0,              SEN(gethostname),               "gethostname"           },
 [ 88] = { 2,   0,              SEN(sethostname),               "sethostname"           },
-[ 89] = { 0,   0,              SEN(getdtablesize),             "getdtablesize"         },
+[ 89] = { 0,   NF,             SEN(getdtablesize),             "getdtablesize"         },
 [ 90] = { 2,   TD,             SEN(dup2),                      "dup2"                  },
 [ 91] = { 2,   TD|TFST|TSTA,   SEN(fstat),                     "fstat"                 },
 [ 92] = { 3,   TD,             SEN(fcntl),                     "fcntl"                 },
index edcdff2e4346a9f505ceee5b6937e5a33b3be545..42ce12b25d514cea5aec9b898e674b72848af8be 100644 (file)
@@ -3,6 +3,6 @@
 /* [244 ... 259] are arch specific */
 [244] = { 3,   0,      SEN(printargs), "cacheflush"    },
 [245] = { 1,   0,      SEN(printargs), "arc_settls"    },
-[246] = { 0,   0,      SEN(printargs), "arc_gettls"    },
+[246] = { 0,   NF,     SEN(printargs), "arc_gettls"    },
 [247] = { 3,   0,      SEN(sysfs),     "sysfs"         },
 [248] = { 3,   0,      SEN(printargs), "arc_usr_cmpxchg"},
index 8f2aa4ac0eca6cbb58a8361ba0926b5fb92695bf..7db7e0213d5270eaf9c4c700522dabf37f106de3 100644 (file)
 [ARM_FIRST_SHUFFLED_SYSCALL+1+3] = { 0,        0,      SEN(printargs), "usr26"                 },
 [ARM_FIRST_SHUFFLED_SYSCALL+1+4] = { 0,        0,      SEN(printargs), "usr32"                 },
 [ARM_FIRST_SHUFFLED_SYSCALL+1+5] = { 1,        0,      SEN(printargs), "set_tls"               },
-[ARM_FIRST_SHUFFLED_SYSCALL+1+6] = { 0,        0,      SEN(printargs), "get_tls"               },
+[ARM_FIRST_SHUFFLED_SYSCALL+1+6] = { 0,        NF,     SEN(printargs), "get_tls"               },
 #define ARM_LAST_SPECIAL_SYSCALL 6
index cbefb6f42bf91ba766b5ee6151a4c6e50dfcd015..4846c1c7bcc56c74798ac0cb44e5e5788c8cc7fa 100644 (file)
 [1168] = { 2,  0,              SEN(nanosleep),                 "nanosleep"             },
 [1169] = { 3,  0,              SEN(nfsservctl),                "nfsservctl"            },
 [1170] = { 5,  0,              SEN(prctl),                     "prctl"                 },
-[1171] = { 0,  0,              SEN(getpagesize),               "getpagesize"           },
+[1171] = { 0,  NF,             SEN(getpagesize),               "getpagesize"           },
 [1172] = { 6,  TD|TM|SI,       SEN(mmap_pgoff),                "mmap2"                 },
 [1173] = { 5,  0,              SEN(printargs),                 "pciconfig_read"        },
 [1174] = { 5,  0,              SEN(printargs),                 "pciconfig_write"       },
index d1a3f64df031d2f8e41f438cfdb69d8c0b9300a5..abfd49c543a9353106071c7c445d8fdcbe869907 100644 (file)
 [163] = { 5,   TM|SI,          SEN(mremap),                    "mremap"                },
 [164] = { 3,   0,              SEN(setresuid16),               "setresuid"             },
 [165] = { 3,   0,              SEN(getresuid16),               "getresuid"             },
-[166] = { 0,   0,              SEN(getpagesize),               "getpagesize"           },
+[166] = { 0,   NF,             SEN(getpagesize),               "getpagesize"           },
 [167] = { 5,   0,              SEN(query_module),              "query_module"          },
 [168] = { 3,   TD,             SEN(poll),                      "poll"                  },
 [169] = { 3,   0,              SEN(nfsservctl),                "nfsservctl"            },
 [330] = { 5,   TD,             SEN(pwritev),                   "pwritev"               },
 [331] = { 4,   TP|TS,          SEN(rt_tgsigqueueinfo),         "rt_tgsigqueueinfo"     },
 [332] = { 5,   TD,             SEN(perf_event_open),           "perf_event_open"       },
-[333] = { 0,   0,              SEN(get_thread_area),           "get_thread_area"       },
+[333] = { 0,   NF,             SEN(get_thread_area),           "get_thread_area"       },
 [334] = { 1,   0,              SEN(set_thread_area),           "set_thread_area"       },
 [335] = { 6,   0,              SEN(printargs),                 "atomic_cmpxchg_32"     },
 [336] = { 0,   0,              SEN(printargs),                 "atomic_barrier"        },
index 8e886887d69bcc5040144bd99f21fca48953ceb9..a72020c2f9cc664e9da86abb9850e123958aaca2 100644 (file)
@@ -62,7 +62,7 @@
 [ 61] = { 1,   TF,             SEN(chroot),                    "chroot"                },
 [ 62] = { 2,   TD|TFST|TSTA,   SEN(fstat),                     "fstat"                 },
 [ 63] = { 2,   TD|TFST|TSTA,   SEN(fstat64),                   "fstat64"               },
-[ 64] = { 0,   0,              SEN(getpagesize),               "getpagesize"           },
+[ 64] = { 0,   NF,             SEN(getpagesize),               "getpagesize"           },
 [ 65] = { 3,   TM,             SEN(msync),                     "msync"                 },
 [ 66] = { 0,   TP,             SEN(vfork),                     "vfork"                 },
 [ 67] = { 5,   TD,             SEN(pread),                     "pread64"               },
index 616b5cf4e71d223b0cec6a845cda128ee262ff4c..e87a1e76e2b578d3e11d1748bd75a67879bc555c 100644 (file)
@@ -61,7 +61,7 @@
 [ 61] = { 1,   TF,             SEN(chroot),                    "chroot"                },
 [ 62] = { 2,   TD|TFST|TSTA,   SEN(fstat),                     "fstat"                 },
 [ 63] = { 2,   TD|TFST|TSTA,   SEN(fstat64),                   "fstat64"               },
-[ 64] = { 0,   0,              SEN(getpagesize),               "getpagesize"           },
+[ 64] = { 0,   NF,             SEN(getpagesize),               "getpagesize"           },
 [ 65] = { 3,   TM,             SEN(msync),                     "msync"                 },
 [ 66] = { 0,   TP,             SEN(vfork),                     "vfork"                 },
 [ 67] = { 4,   TD,             SEN(pread),                     "pread64"               },