Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
2 | #ifndef _LINUX_SEM_H |
3 | #define _LINUX_SEM_H | |
4 | ||
607ca46e | 5 | #include <uapi/linux/sem.h> |
e034d49e | 6 | #include <linux/sem_types.h> |
1da177e4 | 7 | |
8c65b4a6 | 8 | struct task_struct; |
1da177e4 | 9 | |
f567a185 MS |
10 | #ifdef CONFIG_SYSVIPC |
11 | ||
1da177e4 LT |
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 | |
f567a185 | 16 | |
1da177e4 LT |
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 | ||
1da177e4 | 28 | #endif /* _LINUX_SEM_H */ |