Files
linux-kernelorg-stable/include/linux/sem.h
T

29 lines
515 B
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
2005-04-16 15:20:36 -07:00
#ifndef _LINUX_SEM_H
#define _LINUX_SEM_H
2012-10-13 10:46:48 +01:00
#include <uapi/linux/sem.h>
2023-12-11 15:52:17 -05:00
#include <linux/sem_types.h>
2005-04-16 15:20:36 -07:00
2005-11-07 00:59:43 -08:00
struct task_struct;
2005-04-16 15:20:36 -07:00
#ifdef CONFIG_SYSVIPC
2005-04-16 15:20:36 -07:00
extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
extern void exit_sem(struct task_struct *tsk);
#else
2005-04-16 15:20:36 -07:00
static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk)
{
return 0;
}
static inline void exit_sem(struct task_struct *tsk)
{
return;
}
#endif
#endif /* _LINUX_SEM_H */