]> granicus.if.org Git - strace/commitdiff
Use new parsers of adjtimex and clock_adjtime syscalls
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 11 May 2019 22:35:56 +0000 (22:35 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 11 May 2019 22:35:56 +0000 (22:35 +0000)
* print_timex.c (struct_timex, print_timex): Remove.
* time.c (SYS_FUNC(adjtimex), SYS_FUNC(clock_adjtime)): Remove.
* linux/alpha/syscallent.h [303]: Replace SEN(adjtimex)
with SEN(adjtimex32).
[366]: Replace SEN(adjtimex) with SEN(adjtimex64).
[499]: Replace SEN(clock_adjtime) with SEN(clock_adjtime64).
* linux/32/syscallent.h: Replace SEN(adjtimex) and SEN(clock_adjtime)
with SEN(adjtimex32) and SEN(clock_adjtime32), respectively.
* 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/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/64/syscallent.h: Replace SEN(adjtimex) and SEN(clock_adjtime)
with SEN(adjtimex64) and SEN(clock_adjtime64), respectively.
* linux/alpha/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/powerpc64/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* tests/adjtimex.c: Include <stddef.h>.
(main): Print struct timex.tai unconditionally.

28 files changed:
linux/32/syscallent.h
linux/64/syscallent.h
linux/alpha/syscallent.h
linux/arm/syscallent.h
linux/avr32/syscallent.h
linux/bfin/syscallent.h
linux/hppa/syscallent.h
linux/i386/syscallent.h
linux/ia64/syscallent.h
linux/m68k/syscallent.h
linux/microblaze/syscallent.h
linux/mips/syscallent-n32.h
linux/mips/syscallent-n64.h
linux/mips/syscallent-o32.h
linux/powerpc/syscallent.h
linux/powerpc64/syscallent.h
linux/s390/syscallent.h
linux/s390x/syscallent.h
linux/sh/syscallent.h
linux/sh64/syscallent.h
linux/sparc/syscallent.h
linux/sparc64/syscallent.h
linux/x32/syscallent.h
linux/x86_64/syscallent.h
linux/xtensa/syscallent.h
print_timex.c
tests/adjtimex.c
time.c

index 8bebf68af204e79cfa62195e42ea241f5c64681c..b5915bdaaad243c34b3a298e197f387d1d36ef73 100644 (file)
 [168] = { 3,   0,              SEN(getcpu),                    "getcpu"                },
 [169] = { 2,   0,              SEN(gettimeofday),              "gettimeofday"          },
 [170] = { 2,   0,              SEN(settimeofday),              "settimeofday"          },
-[171] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[171] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [172] = { 0,   PU|NF,          SEN(getpid),                    "getpid"                },
 [173] = { 0,   PU|NF,          SEN(getppid),                   "getppid"               },
 [174] = { 0,   PU|NF,          SEN(getuid),                    "getuid"                },
 [263] = { 6,   TD|TF,          SEN(fanotify_mark),             "fanotify_mark"         },
 [264] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [265] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[266] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[266] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [267] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [268] = { 2,   TD,             SEN(setns),                     "setns"                 },
 [269] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
index 6612c384fc19acce4a7e4075611c06cd5f4ebf9a..cb9efc6fa3e05d97fbb9b60f7b3a79fb6b1a9c4e 100644 (file)
 [168] = { 3,   0,              SEN(getcpu),                    "getcpu"                },
 [169] = { 2,   0,              SEN(gettimeofday),              "gettimeofday"          },
 [170] = { 2,   0,              SEN(settimeofday),              "settimeofday"          },
-[171] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[171] = { 1,   0,              SEN(adjtimex64),                "adjtimex"              },
 [172] = { 0,   PU|NF,          SEN(getpid),                    "getpid"                },
 [173] = { 0,   PU|NF,          SEN(getppid),                   "getppid"               },
 [174] = { 0,   PU|NF,          SEN(getuid),                    "getuid"                },
 [263] = { 5,   TD|TF,          SEN(fanotify_mark),             "fanotify_mark"         },
 [264] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [265] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[266] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[266] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime"         },
 [267] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [268] = { 2,   TD,             SEN(setns),                     "setns"                 },
 [269] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
index 78106474820306f7651bec76aa0721ec63092484..2ced0b989d00e3b20608617ed836a84c325f0a6d 100644 (file)
 [300] = { 2,   0,              SEN(bdflush),                   "bdflush"               },
 [301] = { 1,   0,              SEN(printargs),                 "sethae"                },
 [302] = { 5,   TF,             SEN(mount),                     "mount"                 },
-[303] = { 1,   0,              SEN(adjtimex),                  "old_adjtimex"          },
+[303] = { 1,   0,              SEN(adjtimex32),                "old_adjtimex"          },
 [304] = { 1,   TF,             SEN(swapoff),                   "swapoff"               },
 [305] = { 3,   TD,             SEN(getdents),                  "getdents"              },
 [306] = { 2,   0,              SEN(create_module),             "create_module"         }, /* not implemented */
 [363] = { 2,   TF,             SEN(utimes),                    "utimes"                },
 [364] = { 2,   0,              SEN(getrusage),                 "getrusage"             },
 [365] = { 4,   TP,             SEN(wait4),                     "wait4"                 },
-[366] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[366] = { 1,   0,              SEN(adjtimex64),                "adjtimex"              },
 [367] = { 2,   TF,             SEN(getcwd),                    "getcwd"                },
 [368] = { 2,   0,              SEN(capget),                    "capget"                },
 [369] = { 2,   0,              SEN(capset),                    "capset"                },
 [496] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [497] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [498] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[499] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[499] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime"         },
 [500] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [501] = { 2,   TD,             SEN(setns),                     "setns"                 },
 [502] = { 4,   TN,             SEN(accept4),                   "accept4"               },
index 2519db34d70a423e50567a27ce4df1cedeb469e4..8f57affad2f93e6e64803747686d67f69e2cc40b 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 1,   0,              SEN(uname),                     "uname"                 },
 [123] = { 3,   0,              SEN(modify_ldt),                "modify_ldt"            },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [369] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [370] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [371] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[372] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[372] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [373] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [374] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [375] = { 2,   TD,             SEN(setns),                     "setns"                 },
index 521af9a91b9df4330ecd2482c2be83b3a286d676..10ba93a9324e1a54780063a695e7595ae9a6a23b 100644 (file)
 [109] = { 4,   TD|TN,          SEN(sendfile),                  "sendfile"              },
 [110] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [111] = { 1,   0,              SEN(uname),                     "uname"                 },
-[112] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[112] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [113] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [114] = { 0,   TP,             SEN(vfork),                     "vfork"                 },
 [115] = { 3,   0,              SEN(init_module),               "init_module"           },
 [303] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [304] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [305] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[306] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[306] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [307] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [308] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [309] = { 6,   0,              SEN(process_vm_readv),          "process_vm_readv"      },
index 9b5cae15a83326f2f05cbf70ec87f487eb36aee3..9ef73a862460b2aae0fc47f58f91c333761d5600 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 1,   0,              SEN(uname),                     "uname"                 },
 [123] = { 3,   0,              SEN(modify_ldt),                "modify_ldt"            },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [374] = { 3,   0,              SEN(cacheflush),                "cacheflush"            },
 [375] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [376] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[377] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[377] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [378] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [379] = { 2,   TD,             SEN(setns),                     "setns"                 },
 [380] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
index af1712088d9d0215a89e209d6aebcddc91d0f326..4e95e669a060ce6a199c19998f4f8aaeadc45ad9 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 4,   TD|TN,          SEN(sendfile),                  "sendfile"              },
 [123] = { 6,   TN,             SEN(recvfrom),                  "recvfrom"              },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [321] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [322] = { 2,   TD,             SEN(fanotify_init),             "fanotify_init"         },
 [323] = { 6,   TD|TF,          SEN(fanotify_mark),             "fanotify_mark"         },
-[324] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[324] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [325] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [326] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
 [327] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
index d77182d776ec63dab94359a6758fd28e95aa56fa..0ebb1b7fcbb4ec68b26b918e8fa462a8fcc72e48 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 1,   0,              SEN(uname),                     "uname"                 },
 [123] = { 3,   0,              SEN(modify_ldt),                "modify_ldt"            },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [340] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [341] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [342] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[343] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[343] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [344] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [345] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [346] = { 2,   TD,             SEN(setns),                     "setns"                 },
index fa63824e43809d68f4cdfce53144f62e9f22f241..bb931e9954ddd93e526e40eecccd3fa28121566f 100644 (file)
 [1024 + 104] = { 5,    TP,             SEN(clone),                     "clone"                 },
 [1024 + 105] = { 2,    0,              SEN(setdomainname),             "setdomainname"         },
 [1024 + 106] = { 1,    0,              SEN(uname),                     "uname"                 },
-[1024 + 107] = { 1,    0,              SEN(adjtimex),                  "adjtimex"              },
+[1024 + 107] = { 1,    0,              SEN(adjtimex64),                "adjtimex"              },
 [1024 + 108] = { 2,    0,              SEN(create_module),             "create_module"         },
 [1024 + 109] = { 3,    0,              SEN(init_module),               "init_module"           },
 [1024 + 110] = { 2,    0,              SEN(delete_module),             "delete_module"         },
 [1024 + 301] = { 4,    0,              SEN(prlimit64),                 "prlimit64"             },
 [1024 + 302] = { 5,    TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [1024 + 303] = { 3,    TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[1024 + 304] = { 2,    0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[1024 + 304] = { 2,    0,              SEN(clock_adjtime64),           "clock_adjtime"         },
 [1024 + 305] = { 1,    TD,             SEN(syncfs),                    "syncfs"                },
 [1024 + 306] = { 2,    TD,             SEN(setns),                     "setns"                 },
 [1024 + 307] = { 4,    TN,             SEN(sendmmsg),                  "sendmmsg"              },
index bf27442fad5c33b74a4f1826fff3e83abbff89dd..13ec4bb65fadac9d039192f074b44144af3bd2ba 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 1,   0,              SEN(uname),                     "uname"                 },
 [123] = { 4,   0,              SEN(cacheflush),                "cacheflush"            },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [339] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [340] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [341] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[342] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[342] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [343] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [344] = { 2,   TD,             SEN(setns),                     "setns"                 },
 [345] = { 6,   0,              SEN(process_vm_readv),          "process_vm_readv"      },
index b1eea3b4fc5b291197a77f533cdf71486fb37977..9c547571991ed370db90d3ce8121d8dcbec4d626 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 1,   0,              SEN(uname),                     "uname"                 },
 [123] = { 3,   0,              SEN(modify_ldt),                "modify_ldt"            },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [370] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [371] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [372] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[373] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[373] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [374] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [375] = { 2,   TD,             SEN(setns),                     "setns"                 },
 [376] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
index e30c99cf81f66b36255d4ce3faaf4f8d3376b337..ba156b29f2d9b9a3af5dc301d5481b32c590467a 100644 (file)
 [6151] = { 2,  TF,             SEN(pivotroot),                 "pivot_root"            },
 [6152] = { 1,  0,              SEN(sysctl),                    "_sysctl"               },
 [6153] = { 5,  0,              SEN(prctl),                     "prctl"                 },
-[6154] = { 1,  0,              SEN(adjtimex),                  "adjtimex"              },
+[6154] = { 1,  0,              SEN(adjtimex32),                "adjtimex"              },
 [6155] = { 2,  0,              SEN(setrlimit),                 "setrlimit"             },
 [6156] = { 1,  TF,             SEN(chroot),                    "chroot"                },
 [6157] = { 0,  0,              SEN(sync),                      "sync"                  },
 [6302] = { 4,  0,              SEN(prlimit64),                 "prlimit64"             },
 [6303] = { 5,  TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [6304] = { 3,  TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[6305] = { 2,  0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[6305] = { 2,  0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [6306] = { 1,  TD,             SEN(syncfs),                    "syncfs"                },
 [6307] = { 4,  TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [6308] = { 2,  TD,             SEN(setns),                     "setns"                 },
index 5fca5a41a61c661285abc49b5b95f54642ae2c42..d3ca8d936c5de464b0c488cd023fc768f0823601 100644 (file)
 [5151] = { 2,  TF,             SEN(pivotroot),                 "pivot_root"            },
 [5152] = { 1,  0,              SEN(sysctl),                    "_sysctl"               },
 [5153] = { 5,  0,              SEN(prctl),                     "prctl"                 },
-[5154] = { 1,  0,              SEN(adjtimex),                  "adjtimex"              },
+[5154] = { 1,  0,              SEN(adjtimex64),                "adjtimex"              },
 [5155] = { 2,  0,              SEN(setrlimit),                 "setrlimit"             },
 [5156] = { 1,  TF,             SEN(chroot),                    "chroot"                },
 [5157] = { 0,  0,              SEN(sync),                      "sync"                  },
 [5297] = { 4,  0,              SEN(prlimit64),                 "prlimit64"             },
 [5298] = { 5,  TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [5299] = { 3,  TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[5300] = { 2,  0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[5300] = { 2,  0,              SEN(clock_adjtime64),           "clock_adjtime"         },
 [5301] = { 1,  TD,             SEN(syncfs),                    "syncfs"                },
 [5302] = { 4,  TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [5303] = { 2,  TD,             SEN(setns),                     "setns"                 },
index f779a0c68f872b91a59437d47184f828982648e1..26f459c5704058e5e8d7d106f4a21f0460c8cb22 100644 (file)
 [4121] = { 2,  0,              SEN(setdomainname),             "setdomainname"         },
 [4122] = { 1,  0,              SEN(uname),                     "uname"                 },
 [4123] = { 0,  0,              SEN(modify_ldt),                "modify_ldt"            },
-[4124] = { 1,  0,              SEN(adjtimex),                  "adjtimex"              },
+[4124] = { 1,  0,              SEN(adjtimex32),                "adjtimex"              },
 [4125] = { 3,  TM|SI,          SEN(mprotect),                  "mprotect"              },
 [4126] = { 3,  TS,             SEN(sigprocmask),               "sigprocmask"           },
 [4127] = { 2,  0,              SEN(create_module),             "create_module"         },
 [4338] = { 4,  0,              SEN(prlimit64),                 "prlimit64"             },
 [4339] = { 5,  TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [4340] = { 3,  TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[4341] = { 2,  0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[4341] = { 2,  0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [4342] = { 1,  TD,             SEN(syncfs),                    "syncfs"                },
 [4343] = { 4,  TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [4344] = { 2,  TD,             SEN(setns),                     "setns"                 },
index e8992984afbd9e8f57f6e8581371a91651b832e0..103a70b5d5b224ded9f6809f1271c1eb8a559a16 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 1,   0,              SEN(uname),                     "uname"                 },
 [123] = { 5,   0,              SEN(printargs),                 "modify_ldt"            },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [344] = { 4,   TN,             SEN(accept4),                   "accept4"               },
 [345] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [346] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[347] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[347] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [348] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [349] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [350] = { 2,   TD,             SEN(setns),                     "setns"                 },
index 6c1d433c825933b3175a999453ce297233f2ffdc..4f4c06787e7ac06b257482c3124c3f3d2a3e71f3 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 1,   0,              SEN(uname),                     "uname"                 },
 [123] = { 5,   0,              SEN(printargs),                 "modify_ldt"            },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex64),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [344] = { 4,   TN,             SEN(accept4),                   "accept4"               },
 [345] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [346] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[347] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[347] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime"         },
 [348] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [349] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [350] = { 2,   TD,             SEN(setns),                     "setns"                 },
index 5baf00cb844a01cce954a9698208c4baf2b99fa0..069a74faf457c9718f5ae989854c88dbe39d9e4e 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 1,   0,              SEN(uname),                     "uname"                 },
 [123] = { },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [334] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [335] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [336] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[337] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[337] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [338] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [339] = { 2,   TD,             SEN(setns),                     "setns"                 },
 [340] = { 6,   0,              SEN(process_vm_readv),          "process_vm_readv"      },
index 379c0e294b9e31efd061d008641538ca624ac0da..18416b3e0dbf3764230ab23288bc10413f21e40d 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 1,   0,              SEN(uname),                     "uname"                 },
 [123] = { },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex64),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [334] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [335] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [336] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[337] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[337] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime"         },
 [338] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [339] = { 2,   TD,             SEN(setns),                     "setns"                 },
 [340] = { 6,   0,              SEN(process_vm_readv),          "process_vm_readv"      },
index f7104d12494f0dc0a0eabbbb6de45949e6fc9d49..8492c4e81ce4080ad1df8b641fa81a158a604656 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 1,   0,              SEN(uname),                     "uname"                 },
 [123] = { 3,   0,              SEN(cacheflush),                "cacheflush"            },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [358] = { 4,   TN,             SEN(accept4),                   "accept4"               },
 [359] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [360] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[361] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[361] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [362] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [363] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [364] = { 2,   TD,             SEN(setns),                     "setns"                 },
index 86ca406161e13a76b71b09100b54303511af1419..a5157558e1bd10259df75e13ce00a4a588860355 100644 (file)
 [121] = { 2,   0,              SEN(setdomainname),             "setdomainname"         },
 [122] = { 1,   0,              SEN(uname),                     "uname"                 },
 [123] = { 3,   0,              SEN(printargs),                 "cacheflush"            },
-[124] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[124] = { 1,   0,              SEN(adjtimex64),                "adjtimex"              },
 [125] = { 3,   TM|SI,          SEN(mprotect),                  "mprotect"              },
 [126] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [127] = { 2,   0,              SEN(create_module),             "create_module"         },
 [369] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [370] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [371] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[372] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[372] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime"         },
 [373] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [374] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [375] = { 2,   TD,             SEN(setns),                     "setns"                 },
index 4debb45bee85fcbcd2c40dda05c537d4a7fbcc79..ece46b9fa370e510ee079326e133d7ad1b076852 100644 (file)
 [216] = { 0,   TS,             SEN(sigreturn),                 "sigreturn"             },
 [217] = { 5,   TP,             SEN(clone),                     "clone"                 },
 [218] = { 2,   0,              SEN(ioprio_get),                "ioprio_get"            },
-[219] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[219] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [220] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [221] = { 2,   0,              SEN(create_module),             "create_module"         },
 [222] = { 2,   0,              SEN(delete_module),             "delete_module"         },
 [331] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [332] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [333] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[334] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[334] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [335] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [336] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [337] = { 2,   TD,             SEN(setns),                     "setns"                 },
index e079d388fb515b35468a06411df2cd59c53f676d..5f5fa8b2fd17fab37e1fe8a6c1ef4d72dce02506 100644 (file)
 [216] = { 0,   TS,             SEN(sigreturn),                 "sigreturn"             },
 [217] = { 5,   TP,             SEN(clone),                     "clone"                 },
 [218] = { 2,   0,              SEN(ioprio_get),                "ioprio_get"            },
-[219] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[219] = { 1,   0,              SEN(adjtimex64),                "adjtimex"              },
 [220] = { 3,   TS,             SEN(sigprocmask),               "sigprocmask"           },
 [221] = { 2,   0,              SEN(create_module),             "create_module"         },
 [222] = { 2,   0,              SEN(delete_module),             "delete_module"         },
 [331] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [332] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [333] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[334] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[334] = { 2,   0,              SEN(clock_sparc64_adjtime),     "clock_adjtime"         },
 [335] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [336] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [337] = { 2,   TD,             SEN(setns),                     "setns"                 },
index 38287592e58d2afac094f9b0df611b4c7e9fae8d..1cf38e891f69813166bbfe5af7d43a97f76a563a 100644 (file)
 [156] = { 1,   0,              SEN(printargs),                 "_sysctl#64"            },
 [157] = { 5,   0,              SEN(prctl),                     "prctl"                 },
 [158] = { 2,   TP,             SEN(arch_prctl),                "arch_prctl"            },
-[159] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[159] = { 1,   0,              SEN(adjtimex64),                "adjtimex"              },
 [160] = { 2,   0,              SEN(setrlimit),                 "setrlimit"             },
 [161] = { 1,   TF,             SEN(chroot),                    "chroot"                },
 [162] = { 0,   0,              SEN(sync),                      "sync"                  },
 [302] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [303] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [304] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[305] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[305] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime"         },
 [306] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [307] = { 4,   TN,             SEN(printargs),                 "sendmmsg#64"           },
 [308] = { 2,   TD,             SEN(setns),                     "setns"                 },
index b6bf049dcc76841556af36a8c3d91156d6962258..fd1c50e5d428551d658d75cc80f98e0ed5f08ba0 100644 (file)
 [156] = { 1,   0,              SEN(sysctl),                    "_sysctl"               },
 [157] = { 5,   0,              SEN(prctl),                     "prctl"                 },
 [158] = { 2,   TP,             SEN(arch_prctl),                "arch_prctl"            },
-[159] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[159] = { 1,   0,              SEN(adjtimex64),                "adjtimex"              },
 [160] = { 2,   0,              SEN(setrlimit),                 "setrlimit"             },
 [161] = { 1,   TF,             SEN(chroot),                    "chroot"                },
 [162] = { 0,   0,              SEN(sync),                      "sync"                  },
 [302] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [303] = { 5,   TD|TF,          SEN(name_to_handle_at),         "name_to_handle_at"     },
 [304] = { 3,   TD,             SEN(open_by_handle_at),         "open_by_handle_at"     },
-[305] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[305] = { 2,   0,              SEN(clock_adjtime64),           "clock_adjtime"         },
 [306] = { 1,   TD,             SEN(syncfs),                    "syncfs"                },
 [307] = { 4,   TN,             SEN(sendmmsg),                  "sendmmsg"              },
 [308] = { 2,   TD,             SEN(setns),                     "setns"                 },
index 4ed9575387a91b0fa90106b34e0d050014274824..cd7e2e778f1beb7e58412f4e2073db3c73eb6aa4 100644 (file)
 [191] = { 6,   0,              SEN(futex),                     "futex"                 },
 [192] = { 2,   0,              SEN(gettimeofday),              "gettimeofday"          },
 [193] = { 2,   0,              SEN(settimeofday),              "settimeofday"          },
-[194] = { 1,   0,              SEN(adjtimex),                  "adjtimex"              },
+[194] = { 1,   0,              SEN(adjtimex32),                "adjtimex"              },
 [195] = { 2,   0,              SEN(nanosleep),                 "nanosleep"             },
 [196] = { 2,   0,              SEN(getgroups),                 "getgroups"             },
 [197] = { 2,   0,              SEN(setgroups),                 "setgroups"             },
 [326] = { 6,   TD,             SEN(sync_file_range2),          "sync_file_range2"      },
 [327] = { 5,   TD,             SEN(perf_event_open),           "perf_event_open"       },
 [328] = { 4,   TP|TS,          SEN(rt_tgsigqueueinfo),         "rt_tgsigqueueinfo"     },
-[329] = { 2,   0,              SEN(clock_adjtime),             "clock_adjtime"         },
+[329] = { 2,   0,              SEN(clock_adjtime32),           "clock_adjtime"         },
 [330] = { 4,   0,              SEN(prlimit64),                 "prlimit64"             },
 [331] = { 5,   0,              SEN(kcmp),                      "kcmp"                  },
 [332] = { 3,   TD,             SEN(finit_module),              "finit_module"          },
index 98d135250a59bc096f532878fdaddc53033226d6..6e141d874f80a898ff8ad3eee78216669ad14193 100644 (file)
  */
 
 #include "defs.h"
-
-#include DEF_MPERS_TYPE(struct_timex)
-
+#include "kernel_timex.h"
 #include <sys/timex.h>
-typedef struct timex struct_timex;
-
-#include MPERS_DEFS
 
 #include "xlat/adjtimex_modes.h"
 #include "xlat/adjtimex_status.h"
 
-MPERS_PRINTER_DECL(int, print_timex,
-                  struct tcb *const tcp, const kernel_ulong_t addr)
-{
-       struct_timex tx;
 
-       if (umove_or_printaddr(tcp, addr, &tx))
-               return -1;
+#define PRINT_TIMEX print_timex64
+#define TIMEX_T kernel_timex64_t
+#include "print_timex.h"
+#undef TIMEX_T
+#undef PRINT_TIMEX
 
-       tprints("{modes=");
-       printflags(adjtimex_modes, tx.modes, "ADJ_???");
-       tprintf(", offset=%jd, freq=%jd, maxerror=%ju, esterror=%ju, status=",
-               (intmax_t) tx.offset, (intmax_t) tx.freq,
-               (uintmax_t) tx.maxerror, (uintmax_t) tx.esterror);
-       printflags(adjtimex_status, tx.status, "STA_???");
-       tprintf(", constant=%jd, precision=%ju, tolerance=%jd, time=",
-               (intmax_t) tx.constant, (uintmax_t) tx.precision,
-               (intmax_t) tx.tolerance);
-       MPERS_FUNC_NAME(print_struct_timeval)(&tx.time);
-       tprintf(", tick=%jd, ppsfreq=%jd, jitter=%jd",
-               (intmax_t) tx.tick, (intmax_t) tx.ppsfreq, (intmax_t) tx.jitter);
-       tprintf(", shift=%d, stabil=%jd, jitcnt=%jd",
-               tx.shift, (intmax_t) tx.stabil, (intmax_t) tx.jitcnt);
-       tprintf(", calcnt=%jd, errcnt=%jd, stbcnt=%jd",
-               (intmax_t) tx.calcnt, (intmax_t) tx.errcnt, (intmax_t) tx.stbcnt);
-#ifdef HAVE_STRUCT_TIMEX_TAI
-       tprintf(", tai=%d", tx.tai);
-#endif
-       tprints("}");
-       return 0;
-}
+#if HAVE_ARCH_TIME32_SYSCALLS
 
-#ifndef IN_MPERS
-
-# include "kernel_timex.h"
-
-# define PRINT_TIMEX print_timex64
-# define TIMEX_T kernel_timex64_t
+# define PRINT_TIMEX print_timex32
+# define TIMEX_T kernel_timex32_t
 # include "print_timex.h"
 # undef TIMEX_T
 # undef PRINT_TIMEX
 
-# if HAVE_ARCH_TIME32_SYSCALLS
-
-#  define PRINT_TIMEX print_timex32
-#  define TIMEX_T kernel_timex32_t
-#  include "print_timex.h"
-#  undef TIMEX_T
-#  undef PRINT_TIMEX
+#endif /* HAVE_ARCH_TIME32_SYSCALLS */
 
-# endif /* HAVE_ARCH_TIME32_SYSCALLS */
+#ifdef SPARC64
 
-# ifdef SPARC64
-
-#  define PRINT_TIMEX print_sparc64_timex
-#  define TIMEX_T kernel_sparc64_timex_t
-#  include "print_timex.h"
-#  undef TIMEX_T
-#  undef PRINT_TIMEX
-
-# endif /* SPARC64 */
+# define PRINT_TIMEX print_sparc64_timex
+# define TIMEX_T kernel_sparc64_timex_t
+# include "print_timex.h"
+# undef TIMEX_T
+# undef PRINT_TIMEX
 
-#endif /* !IN_MPERS */
+#endif /* SPARC64 */
index 65e130288ec9dff8ecff3eb6a698f1a0c69b8dd3..c287f9762ab61e38aa92db15bfb44f8eb12d2e64 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include "tests.h"
+#include <stddef.h>
 #include <stdio.h>
 #include <stdint.h>
 #include <string.h>
@@ -43,10 +44,7 @@ main(void)
        printf(", constant=%jd, precision=%jd"
               ", tolerance=%jd, time={tv_sec=%lld, tv_usec=%llu}, tick=%jd"
               ", ppsfreq=%jd, jitter=%jd, shift=%d, stabil=%jd, jitcnt=%jd"
-              ", calcnt=%jd, errcnt=%jd, stbcnt=%jd"
-#ifdef HAVE_STRUCT_TIMEX_TAI
-              ", tai=%d"
-#endif
+              ", calcnt=%jd, errcnt=%jd, stbcnt=%jd, tai=%d"
               "}) = %d (",
               (intmax_t) tx->constant,
               (intmax_t) tx->precision,
@@ -64,6 +62,8 @@ main(void)
               (intmax_t) tx->stbcnt,
 #ifdef HAVE_STRUCT_TIMEX_TAI
               tx->tai,
+#else
+              *(const int *)((const void *) tx + offsetofend(struct timex, stbcnt)),
 #endif
               state);
        printxval(adjtimex_state, (unsigned int) state, NULL);
diff --git a/time.c b/time.c
index f150fda29e6336ac356f8659c7dc5c76c2d68dec..e912ba3c442190839ad47f700cbb89cd36fe3e3d 100644 (file)
--- a/time.c
+++ b/time.c
@@ -162,13 +162,6 @@ do_adjtimex(struct tcb *const tcp, const print_obj_by_addr_fn print_tx,
        return RVAL_STR;
 }
 
-SYS_FUNC(adjtimex)
-{
-       if (exiting(tcp))
-               return do_adjtimex(tcp, print_timex, tcp->u_arg[0]);
-       return 0;
-}
-
 #if HAVE_ARCH_TIME32_SYSCALLS
 SYS_FUNC(adjtimex32)
 {
@@ -304,11 +297,6 @@ do_clock_adjtime(struct tcb *const tcp, const print_obj_by_addr_fn print_tx)
        return 0;
 }
 
-SYS_FUNC(clock_adjtime)
-{
-       return do_clock_adjtime(tcp, print_timex);
-}
-
 #if HAVE_ARCH_TIME32_SYSCALLS
 SYS_FUNC(clock_adjtime32)
 {