brintos

brintos / linux-shallow public Read only

0
0
Text · 425 B · 281f861 Raw
23 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef __TASK_LOCAL_STORAGE_HELPER_H3#define __TASK_LOCAL_STORAGE_HELPER_H4 5#include <unistd.h>6#include <sys/syscall.h>7#include <sys/types.h>8 9#ifndef __NR_pidfd_open10#ifdef __alpha__11#define __NR_pidfd_open 54412#else13#define __NR_pidfd_open 43414#endif15#endif16 17static inline int sys_pidfd_open(pid_t pid, unsigned int flags)18{19	return syscall(__NR_pidfd_open, pid, flags);20}21 22#endif23