[LTP] [PATCH 1/4] lapi/sem.h: Add SEMMSL macro

Yang Xu xuyang2018.jy@fujitsu.com
Mon Mar 20 07:30:19 CET 2023


This macro is used to trigger semget EINVAL error.

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
 include/lapi/sem.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/lapi/sem.h b/include/lapi/sem.h
index 495afe937..ba559d2f1 100644
--- a/include/lapi/sem.h
+++ b/include/lapi/sem.h
@@ -24,4 +24,8 @@ union semun {
 # define SEM_STAT_ANY 20
 #endif
 
+#ifndef SEMMSL
+# define SEMMSL 32000
+#endif
+
 #endif /* LAPI_SEM_H__ */
-- 
2.39.1



More information about the ltp mailing list