glibc/tests/Sanity/basic-linking-sanity/lrt.c
Sergey Kolosov ab4bc8a24e Extend the test coverage
Move some of the RHEL QE testcases upstream to Fedora.
2022-05-31 09:29:27 +02:00

22 lines
427 B
C

#include <stdio.h>
#include <fcntl.h>
int main(){
FILE *fp = fopen("lrt.out", "w");
int opn = shm_open("/stuffz0r", O_RDWR|O_CREAT, 0777);
if ( opn == -1 )
fprintf(fp, "shm_open failed\n");
else
fprintf(fp, "shm_open successful\n");
int unl = shm_unlink("/stuffz0r");
if ( unl == -1 )
fprintf(fp, "shm_unlink failed\n");
else
fprintf(fp, "shm_unlink successful\n");
close(fp);
return 0;
}