mirror of
https://github.com/openharmony/third_party_ltp.git
synced 2026-07-01 12:25:45 -04:00
04dd74dfe9
Signed-off-by: gaoxue <gaoxue15@huawei.com>
32 lines
731 B
C
Executable File
32 lines
731 B
C
Executable File
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Copyright (c) 2015 Linux Test Project
|
|
*/
|
|
#ifndef LAPI_SEM_H__
|
|
#define LAPI_SEM_H__
|
|
|
|
#include <sys/sem.h>
|
|
|
|
#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)
|
|
/* union semun is defined by including <sys/sem.h> */
|
|
#else
|
|
/* according to X/OPEN we have to define it ourselves */
|
|
union semun {
|
|
int val; /* value for SETVAL */
|
|
struct semid_ds *buf; /* buffer for IPC_STAT, IPC_SET */
|
|
unsigned short *array; /* array for GETALL, SETALL */
|
|
/* Linux specific part: */
|
|
struct seminfo *__buf; /* buffer for IPC_INFO */
|
|
};
|
|
#endif
|
|
|
|
#ifndef SEM_STAT_ANY
|
|
# define SEM_STAT_ANY 20
|
|
#endif
|
|
|
|
#ifndef SEMMSL
|
|
# define SEMMSL 32000
|
|
#endif
|
|
|
|
#endif /* LAPI_SEM_H__ */
|