1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef _LINUX_SEM_H |
3 | #define _LINUX_SEM_H |
4 | |
5 | #include <uapi/linux/sem.h> |
6 | #include <linux/sem_types.h> |
7 | |
8 | struct task_struct; |
9 | |
10 | #ifdef CONFIG_SYSVIPC |
11 | |
12 | extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk); |
13 | extern void exit_sem(struct task_struct *tsk); |
14 | |
15 | #else |
16 | |
17 | static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) |
18 | { |
19 | return 0; |
20 | } |
21 | |
22 | static inline void exit_sem(struct task_struct *tsk) |
23 | { |
24 | return; |
25 | } |
26 | #endif |
27 | |
28 | #endif /* _LINUX_SEM_H */ |
29 | |