version 1.67, 2010/09/01 10:51:10
|
version 1.77.2.4, 2011/05/09 13:52:24
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.19 |
RPL/2 (R) version 4.0.24 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2011 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 98
|
Line 98
|
# include <sys/shm.h> |
# include <sys/shm.h> |
# endif |
# endif |
|
|
# ifndef SEMAPHORES_SYSV |
# ifndef IPCS_SYSV |
# include <semaphore.h> |
# include <semaphore.h> |
# else |
# else |
# include <sys/ipc.h> |
# include <sys/ipc.h> |
Line 244
|
Line 244
|
unsigned char *readline_wrapper(unsigned char *s); |
unsigned char *readline_wrapper(unsigned char *s); |
#endif |
#endif |
|
|
#if ! defined(UNION_SEMUN) && defined(SEMAPHORES_SYSV) |
#if ! defined(UNION_SEMUN) && defined(IPCS_SYSV) |
union semun |
union semun |
{ |
{ |
int val; |
int val; |
Line 261 union semun
|
Line 261 union semun
|
================================================================================ |
================================================================================ |
*/ |
*/ |
|
|
#ifdef SEMAPHORES_SYSV |
#ifdef IPCS_SYSV |
# define sem_init(a, b, c) sem_init_SysV(a, b, c) |
# define sem_init(a, b, c) sem_init_SysV(a, b, c) |
# define sem_destroy(a) sem_destroy_SysV(a) |
# define sem_destroy(a) sem_destroy_SysV(a) |
# define sem_wait(a) sem_wait_SysV(a) |
# define sem_wait(a) sem_wait_SysV(a) |
Line 502 int sem_getvalue2(sem_t *semaphore, int
|
Line 502 int sem_getvalue2(sem_t *semaphore, int
|
# define fopen(...) ({ FILE *desc; \ |
# define fopen(...) ({ FILE *desc; \ |
while((desc = fopen(__VA_ARGS__)) == NULL) \ |
while((desc = fopen(__VA_ARGS__)) == NULL) \ |
{ if ((errno != EINTR) && (errno != 0)) break; } desc; }) |
{ if ((errno != EINTR) && (errno != 0)) break; } desc; }) |
|
# define freopen(...) ({ FILE *desc; \ |
|
while((desc = freopen(__VA_ARGS__)) == NULL) \ |
|
{ if ((errno != EINTR) && (errno != 0)) break; } desc; }) |
# define fclose(...) ({ int ios; \ |
# define fclose(...) ({ int ios; \ |
while((ios = fclose(__VA_ARGS__)) != 0) \ |
while((ios = fclose(__VA_ARGS__)) != 0) \ |
{ if ((errno != EINTR) && (errno != 0)) break; } ios; }) |
{ if ((errno != EINTR) && (errno != 0)) break; } ios; }) |
Line 919 pid_t debug_fork();
|
Line 922 pid_t debug_fork();
|
# define d_ex_clef_inexistante __erreur(80) |
# define d_ex_clef_inexistante __erreur(80) |
# define d_ex_nom_implicite __erreur(81) |
# define d_ex_nom_implicite __erreur(81) |
# define d_ex_version_bibliotheque __erreur(82) |
# define d_ex_version_bibliotheque __erreur(82) |
|
# define d_ex_creation_variable_globale __erreur(83) |
#endif |
#endif |
|
|
|
|
Line 942 pid_t debug_fork();
|
Line 946 pid_t debug_fork();
|
# undef MAX |
# undef MAX |
#endif |
#endif |
|
|
#define ADR __RPL_ADR |
#define ADR __RPL_ADR |
#define ALG __RPL_ALG |
#define ALG __RPL_ALG |
#define BIN __RPL_BIN |
#define BIN __RPL_BIN |
#define CHN __RPL_CHN |
#define CHN __RPL_CHN |
#define CPL __RPL_CPL |
#define CPL __RPL_CPL |
Line 962 pid_t debug_fork();
|
Line 966 pid_t debug_fork();
|
#define RPN __RPL_RPN |
#define RPN __RPL_RPN |
#define SCK __RPL_SCK |
#define SCK __RPL_SCK |
#define SLB __RPL_SLB |
#define SLB __RPL_SLB |
#define SPH __RPL_SPH |
#define SPH __RPL_SPH |
#define SQL __RPL_SQL |
#define SQL __RPL_SQL |
#define TBL __RPL_TBL |
#define TBL __RPL_TBL |
#define VCX __RPL_VCX |
#define VCX __RPL_VCX |
#define VIN __RPL_VIN |
#define VIN __RPL_VIN |
#define VRL __RPL_VRL |
#define VRL __RPL_VRL |
Line 1356 typedef struct descripteur_thread
|
Line 1360 typedef struct descripteur_thread
|
pthread_t thread_pere; |
pthread_t thread_pere; |
|
|
pthread_mutex_t mutex; |
pthread_mutex_t mutex; |
|
pthread_mutex_t mutex_nombre_references; |
|
|
volatile logical1 thread_actif; |
volatile logical1 thread_actif; |
|
|
Line 1703 typedef struct processus
|
Line 1708 typedef struct processus
|
unsigned char mode_interactif; /*Y/N*/ |
unsigned char mode_interactif; /*Y/N*/ |
unsigned char mode_evaluation_expression; /*Y/N*/ |
unsigned char mode_evaluation_expression; /*Y/N*/ |
unsigned char traitement_cycle_exit; /*N/E/C*/ |
unsigned char traitement_cycle_exit; /*N/E/C*/ |
|
unsigned char recherche_type; /*Y/N*/ |
|
|
unsigned long position_courante; |
unsigned long position_courante; |
unsigned long longueur_definitions_chainees; |
unsigned long longueur_definitions_chainees; |
Line 2439 void instruction_lq(struct_processus *s_
|
Line 2445 void instruction_lq(struct_processus *s_
|
void instruction_lsq(struct_processus *s_etat_processus); |
void instruction_lsq(struct_processus *s_etat_processus); |
void instruction_lt(struct_processus *s_etat_processus); |
void instruction_lt(struct_processus *s_etat_processus); |
void instruction_lu(struct_processus *s_etat_processus); |
void instruction_lu(struct_processus *s_etat_processus); |
|
void instruction_l_vers_t(struct_processus *s_etat_processus); |
|
|
void instruction_mant(struct_processus *s_etat_processus); |
void instruction_mant(struct_processus *s_etat_processus); |
void instruction_mark(struct_processus *s_etat_processus); |
void instruction_mark(struct_processus *s_etat_processus); |
Line 2674 void instruction_trn(struct_processus *s
|
Line 2681 void instruction_trn(struct_processus *s
|
void instruction_trnc(struct_processus *s_etat_processus); |
void instruction_trnc(struct_processus *s_etat_processus); |
void instruction_true(struct_processus *s_etat_processus); |
void instruction_true(struct_processus *s_etat_processus); |
void instruction_type(struct_processus *s_etat_processus); |
void instruction_type(struct_processus *s_etat_processus); |
|
void instruction_t_vers_l(struct_processus *s_etat_processus); |
|
|
void instruction_ucase(struct_processus *s_etat_processus); |
void instruction_ucase(struct_processus *s_etat_processus); |
void instruction_uchol(struct_processus *s_etat_processus); |
void instruction_uchol(struct_processus *s_etat_processus); |
Line 2975 unsigned char *formateur_fichier(struct_
|
Line 2983 unsigned char *formateur_fichier(struct_
|
struct_objet *s_objet, struct_objet *s_format, |
struct_objet *s_objet, struct_objet *s_format, |
long longueur, long longueur_champ, unsigned char format, |
long longueur, long longueur_champ, unsigned char format, |
unsigned char type, long *longueur_effective, long *recursivite); |
unsigned char type, long *longueur_effective, long *recursivite); |
|
unsigned char *formateur_flux(struct_processus *s_etat_processus, |
|
unsigned char *donnees, long *longueur); |
unsigned char *formateur_fichier_nombre(struct_processus *s_etat_processus, |
unsigned char *formateur_fichier_nombre(struct_processus *s_etat_processus, |
void *valeur_numerique, unsigned char type, |
void *valeur_numerique, unsigned char type, |
long longueur, long longueur_champ, unsigned char format); |
long longueur, long longueur_champ, unsigned char format); |