version 1.163, 2012/05/16 09:14:04
|
version 1.165, 2012/05/21 17:25:46
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.8 |
RPL/2 (R) version 4.1.9 |
Copyright (C) 1989-2012 Dr. BERTRAND Joël |
Copyright (C) 1989-2012 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
Line 229
|
Line 229
|
================================================================================ |
================================================================================ |
*/ |
*/ |
|
|
|
// Néant |
|
|
|
/* |
|
================================================================================ |
|
TYPES |
|
================================================================================ |
|
*/ |
|
|
|
typedef FILE file; |
|
typedef unsigned char t_8_bits; |
|
|
|
#ifndef RPLARGS |
|
# include "rpltypes-conv.h" |
|
#else |
|
# include "rpltypes.h" |
|
#endif |
|
|
enum signaux_rpl |
enum signaux_rpl |
{ |
{ |
rpl_signull = 0, |
rpl_signull = 0, |
Line 263 typedef struct queue_signaux
|
Line 280 typedef struct queue_signaux
|
# ifndef IPCS_SYSV |
# ifndef IPCS_SYSV |
# ifndef SEMAPHORES_NOMMES |
# ifndef SEMAPHORES_NOMMES |
sem_t semaphore; |
sem_t semaphore; |
|
sem_t signalisation; |
# endif |
# endif |
# else |
# else |
sem_t semaphore; |
sem_t semaphore; |
|
sem_t signalisation; |
# endif |
# endif |
|
|
volatile int pointeur_lecture; |
volatile int pointeur_lecture; |
volatile int pointeur_ecriture; |
volatile int pointeur_ecriture; |
|
pthread_t thread_signaux; |
|
volatile logical1 requete_arret; |
|
|
volatile struct |
volatile struct |
{ |
{ |
Line 283 __EXTERN__ int f_queue_signaux;
|
Line 304 __EXTERN__ int f_queue_signaux;
|
|
|
# ifdef SEMAPHORES_NOMMES |
# ifdef SEMAPHORES_NOMMES |
__EXTERN__ sem_t *semaphore_queue_signaux; |
__EXTERN__ sem_t *semaphore_queue_signaux; |
|
__EXTERN__ sem_t *semaphore_signalisation; |
# endif |
# endif |
#endif |
#endif |
|
|
Line 388 union semun
|
Line 410 union semun
|
|
|
/* |
/* |
================================================================================ |
================================================================================ |
TYPES |
|
================================================================================ |
|
*/ |
|
|
|
typedef FILE file; |
|
typedef unsigned char t_8_bits; |
|
|
|
#ifndef RPLARGS |
|
# include "rpltypes-conv.h" |
|
#else |
|
# include "rpltypes.h" |
|
#endif |
|
|
|
/* |
|
================================================================================ |
|
Variables globales |
Variables globales |
================================================================================ |
================================================================================ |
*/ |
*/ |
Line 446 typedef unsigned char t_8_bits;
|
Line 453 typedef unsigned char t_8_bits;
|
#define SEM_FORK 0 |
#define SEM_FORK 0 |
#define SEM_QUEUE 1 |
#define SEM_QUEUE 1 |
#define SEM_SIGNAUX 2 |
#define SEM_SIGNAUX 2 |
|
#define SEM_SIGNALISATION 3 |
sem_t *sem_init2(unsigned int valeur, pid_t pid, int ordre); |
sem_t *sem_init2(unsigned int valeur, pid_t pid, int ordre); |
sem_t *sem_init3(unsigned int valeur, pid_t pid, pthread_t tid, int ordre); |
sem_t *sem_init3(unsigned int valeur, pid_t pid, pthread_t tid, int ordre); |
int sem_destroy2(sem_t *semaphore_p, pid_t pid, int ordre); |
int sem_destroy2(sem_t *semaphore_p, pid_t pid, int ordre); |
Line 2164 typedef struct processus
|
Line 2172 typedef struct processus
|
pthread_mutex_t mutex_allocation; |
pthread_mutex_t mutex_allocation; |
|
|
// Mutex autorisant les fork() |
// Mutex autorisant les fork() |
sem_t |
sem_t __PTR__ semaphore_fork; |
# ifdef SEMAPHORES_NOMMES |
|
* |
|
# endif |
|
semaphore_fork; |
|
|
|
/* Mutexes */ |
/* Mutexes */ |
|
|