]> granicus.if.org Git - strace/blobdiff - tests/setfsugid.c
tests: extend TEST_NETLINK_OBJECT macro
[strace] / tests / setfsugid.c
index a410c9d9e1958e6a904ea959ba050b3a8d8ab7f1..7484db5b71f76218c8905f4fbeebbd0e381b4afb 100644 (file)
@@ -2,6 +2,7 @@
  * Check decoding of setfsuid/setfsgid/setfsuid32/setfsgid32 syscalls.
  *
  * Copyright (c) 2016 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2016-2017 The strace developers.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -30,8 +31,6 @@
 #include <stdio.h>
 #include <unistd.h>
 
-#include "kernel_types.h"
-
 void
 printuid(unsigned UGID_TYPE id)
 {
@@ -49,7 +48,7 @@ main(void)
        const kernel_ulong_t tests[] = {
                ugid,
                0xffff0000U | ugid,
-               (kernel_ulong_t) 0xffffffff00000000ULL | ugid,
+               F8ILL_KULONG_MASK | ugid,
                0xffffU,
                -1U,
                -1L,