"debut TD0"

This commit is contained in:
JunkJumper
2020-09-04 10:27:13 +02:00
parent ac93b9b2af
commit cf00c53e65
88 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
//******************************************************************/
///* IUT NICE-COTE D'AZUR - Departement INFORMATIQUE - R. CHIGNOLI */
///* Module M311 Theme IPC POSIX */
///******************************************************************/
///* shm_excl.c : voir enonce */
///* UTILISATION : commande nom_segment */
///* Utiliser ls -l /dev/shm et rm /dev/shm/... */
///******************************************************************/
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
int main (int argc, char * argv[]) {
int fd;
int * compteur;
if (argc != 2) {
fprintf(stderr, "Syntaxe : %s nom_segment\n", argv[0]);
exit(EXIT_FAILURE);
}
///
/// A TERMINER
///
return EXIT_SUCCESS;
}