* Copyright (c) 2008 Jan Kratochvil <jan.kratochvil@redhat.com>
* Copyright (c) 2009-2013 Denys Vlasenko <dvlasenk@redhat.com>
* Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
+ * Copyright (c) 2014-2017 The strace developers.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*/
#include "defs.h"
-
#include <sched.h>
+#include <asm/unistd.h>
#ifndef CSIGNAL
# define CSIGNAL 0x000000ff
tcp->u_arg[ARG_STACKSIZE]);
#endif
tprints("flags=");
- if (!printflags64(clone_flags, flags &~ CSIGNAL, NULL))
+ if (!printflags64(clone_flags, flags & ~CSIGNAL, NULL))
sep = "";
if ((flags & CSIGNAL) != 0)
tprintf("%s%s", sep, signame(flags & CSIGNAL));
SYS_FUNC(unshare)
{
- printflags64(unshare_flags, getarg_klu(tcp, 0), "CLONE_???");
+ printflags64(unshare_flags, tcp->u_arg[0], "CLONE_???");
return RVAL_DECODED;
}