X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fprctl.h;fp=src%2Fcommon%2Fcompat%2Fprctl.h;h=0000000000000000000000000000000000000000;hp=197b393968c8df21f3694756de644f8f4e48f802;hb=cb8d0d245b5739e7493dcf27314f6e42615f14b1;hpb=97285430b75f44b6ce590e86cb9d996390e514c8 diff --git a/src/common/compat/prctl.h b/src/common/compat/prctl.h deleted file mode 100644 index 197b39396..000000000 --- a/src/common/compat/prctl.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2015 Jérémie Galarneau - * - * SPDX-License-Identifier: GPL-2.0-only - * - */ - -#ifndef _COMPAT_PRCTL_H -#define _COMPAT_PRCTL_H - -#ifdef __linux__ -#include - -static inline -int lttng_prctl(int option, unsigned long arg2, unsigned long arg3, - unsigned long arg4, unsigned long arg5) -{ - return prctl(option, arg2, arg3, arg4, arg5); -} - -#else - -#ifndef PR_SET_NAME -#define PR_SET_NAME 0 -#endif /* PR_SET_NAME */ - -static inline -int lttng_prctl(int option, unsigned long arg2, unsigned long arg3, - unsigned long arg4, unsigned long arg5) -{ - return -ENOSYS; -} - -#endif /* __linux__ */ - -#endif /* _COMPAT_PRCTL_H */