18 lines
467 B
C++
18 lines
467 B
C++
/* Generated by configure */
|
|
#include <sys/types.h>
|
|
#include <sys/ipc.h>
|
|
#include <sys/sem.h>
|
|
#include <sys/shm.h>
|
|
#include <fcntl.h>
|
|
int main(int argc, char **argv)
|
|
{
|
|
(void)argc; (void)argv;
|
|
/* BEGIN TEST: */
|
|
key_t unix_key = ftok("test", 'Q');
|
|
semctl(semget(unix_key, 1, 0666 | IPC_CREAT | IPC_EXCL), 0, IPC_RMID, 0);
|
|
shmget(unix_key, 0, 0666 | IPC_CREAT | IPC_EXCL);
|
|
shmctl(0, 0, (struct shmid_ds *)(0));
|
|
/* END TEST */
|
|
return 0;
|
|
}
|