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

xuyang2018.jy@fujitsu.com xuyang2018.jy@fujitsu.com
Wed Mar 29 09:52:40 CEST 2023


HI

Ping.

Best Regards
Yang Xu

> 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__ */


More information about the ltp mailing list