]> granicus.if.org Git - strace/blobdiff - fetch_struct_mmsghdr.c
tests: check decoding of prctl PR_GET_TID_ADDRESS operation
[strace] / fetch_struct_mmsghdr.c
index 932de69b22d53d6ebd0cd4708875c0772236f116..04f98abafccf29dbab6ed43f94670db7221acb39 100644 (file)
@@ -43,7 +43,8 @@ typedef struct mmsghdr struct_mmsghdr;
  */
 
 MPERS_PRINTER_DECL(int, fetch_struct_mmsghdr,
-                  struct tcb *tcp, const unsigned long addr, void *p)
+                  struct tcb *const tcp, const kernel_ulong_t addr,
+                  void *const p)
 {
        struct mmsghdr *p_native = p;
        struct_mmsghdr v_compat;
@@ -80,3 +81,8 @@ MPERS_PRINTER_DECL(int, fetch_struct_mmsghdr,
 
        return sizeof(v_compat);
 }
+
+MPERS_PRINTER_DECL(unsigned int, sizeof_struct_mmsghdr, void)
+{
+       return sizeof(struct_mmsghdr);
+}