[LTP] [PATCH 2/3] lapi/sem.h: Add SEM_STAT_ANY

Yang Xu xuyang2018.jy@cn.fujitsu.com
Wed Dec 23 09:29:02 CET 2020


Hi Feiyu
> Signed-off-by: Feiyu Zhu<zhufy.jy@cn.fujitsu.com>
> ---
>   include/lapi/sem.h | 15 +++++++++++++++
>   1 file changed, 15 insertions(+)
>   create mode 100644 include/lapi/sem.h
>
> diff --git a/include/lapi/sem.h b/include/lapi/sem.h
> new file mode 100644
> index 0000000..5d86a2f
> --- /dev/null
> +++ b/include/lapi/sem.h
> @@ -0,0 +1,15 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +/*
> + * Copyright (c) 2020 FUJITSU LIMITED. All rights reserved.
> + * Author: Feiyu Zhu<zhufy.jy@cn.fujitsu.com>
> + */
> +
I prefer to add #include <sys/sem.h> in here, so we only need to include 
lapi/sem.h  in subsequent semctl09.c

Reviewed-by:Yang Xu <xuyang2018.jy@cn.fujitsu.com>
> +#ifndef LAPI_SEM_H
> +#define LAPI_SEM_H
> +
> +#ifndef SEM_STAT_ANY
> +# define SEM_STAT_ANY 20
> +#endif
> +
> +#endif /* LAPI_SEM_H */
> +





More information about the ltp mailing list