/* SPDX-License-Identifier: LGPL-2.1 OR MIT */1/*2* ptrace for NOLIBC3* Copyright (C) 2017-2021 Willy Tarreau <[email protected]>4* Copyright (C) 2025 Intel Corporation5*/67/* make sure to include all global symbols */8#include "../nolibc.h"910#ifndef _NOLIBC_SYS_PTRACE_H11#define _NOLIBC_SYS_PTRACE_H1213#include "../sys.h"1415#include <linux/ptrace.h>1617/*18* long ptrace(int op, pid_t pid, void *addr, void *data);19*/20static __attribute__((unused))21long sys_ptrace(int op, pid_t pid, void *addr, void *data)22{23return my_syscall4(__NR_ptrace, op, pid, addr, data);24}2526static __attribute__((unused))27ssize_t ptrace(int op, pid_t pid, void *addr, void *data)28{29return __sysret(sys_ptrace(op, pid, addr, data));30}3132#endif /* _NOLIBC_SYS_PTRACE_H */333435