version 1.333, 2019/02/28 12:40:44
|
version 1.343, 2021/03/13 12:50:52
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.31 |
RPL/2 (R) version 4.1.33 |
Copyright (C) 1989-2019 Dr. BERTRAND Joël |
Copyright (C) 1989-2021 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 269
|
Line 269
|
|
|
#ifndef RPLARGS |
#ifndef RPLARGS |
# ifndef UNIX_PATH_MAX |
# ifndef UNIX_PATH_MAX |
struct sockaddr_un sizecheck; |
# pragma GCC diagnostic push |
|
# pragma GCC diagnostic ignored "-Wunused-variable" |
|
static struct sockaddr_un sizecheck; |
# define UNIX_PATH_MAX sizeof(sizecheck.sun_path) |
# define UNIX_PATH_MAX sizeof(sizecheck.sun_path) |
|
# pragma GCC diagnostic pop |
# endif |
# endif |
#endif |
#endif |
|
|
Line 731 void *debug_memoire_modification(void *p
|
Line 734 void *debug_memoire_modification(void *p
|
void debug_memoire_retrait(void *ptr); |
void debug_memoire_retrait(void *ptr); |
void debug_memoire_verification(); |
void debug_memoire_verification(); |
|
|
pid_t debug_fork(); |
|
|
|
#define malloc(s) debug_memoire_ajout(s, __FUNCTION__, __LINE__, #s) |
|
#define free(s) debug_memoire_retrait(s) |
#define free(s) debug_memoire_retrait(s) |
#define realloc(s, t) debug_memoire_modification(s, t, \ |
#ifdef RPLCXX |
__FUNCTION__, __LINE__, #t) |
# define malloc(s) debug_memoire_ajout(s, \ |
#define fork() debug_fork() |
const_cast<const unsigned char *> \ |
|
(reinterpret_cast<unsigned char *> \ |
|
(const_cast<char *>(__FUNCTION__))), __LINE__, \ |
|
const_cast<const unsigned char *> \ |
|
(reinterpret_cast<unsigned char *> \ |
|
(const_cast<char *>(#s)))) |
|
# define realloc(s, t) debug_memoire_modification(s, t, \ |
|
const_cast<const unsigned char *> \ |
|
(reinterpret_cast<unsigned char *> \ |
|
(const_cast<char *>(__FUNCTION__))), __LINE__, \ |
|
const_cast<const unsigned char *> \ |
|
(reinterpret_cast<unsigned char *> \ |
|
(const_cast<char *>(#t)))) |
|
#else |
|
# define malloc(s) debug_memoire_ajout(s, __FUNCTION__, __LINE__, \ |
|
(const unsigned char *) #s) |
|
# define realloc(s, t) debug_memoire_modification(s, t, \ |
|
__FUNCTION__, __LINE__, (const unsigned char *) #t) |
|
#endif |
|
#define fork() debug_fork(s_etat_processus) |
#endif |
#endif |
|
|
#ifdef DEBUG_RETURN |
#ifdef DEBUG_RETURN |
Line 1062 pid_t debug_fork();
|
Line 1081 pid_t debug_fork();
|
# define d_ex_taille_message __erreur(92) |
# define d_ex_taille_message __erreur(92) |
# define d_ex_type_externe_dup __erreur(93) |
# define d_ex_type_externe_dup __erreur(93) |
# define d_ex_type_externe_drop __erreur(94) |
# define d_ex_type_externe_drop __erreur(94) |
|
# define d_ex_simplification __erreur(95) |
#endif |
#endif |
|
|
|
|
Line 1114 pid_t debug_fork();
|
Line 1134 pid_t debug_fork();
|
#define VIN __RPL_VIN |
#define VIN __RPL_VIN |
#define VRL __RPL_VRL |
#define VRL __RPL_VRL |
|
|
enum t_rplcas_commandes { RPLCAS_INTEGRATION = 0, RPLCAS_LIMITE }; |
enum t_rplcas_commandes { RPLCAS_INTEGRATION = 0, RPLCAS_LIMITE, |
|
RPLCAS_SIMPLIFICATION }; |
|
|
enum t_type { ADR = 0, ALG, BIN, CHN, CPL, EXT, FCH, FCT, INT, LST, |
enum t_type { ADR = 0, ALG, BIN, CHN, CPL, EXT, FCH, FCT, INT, LST, |
MCX, MIN, MRL, MTX, NOM, NON, PRC, REC, REL, RPN, SCK, |
MCX, MIN, MRL, MTX, NOM, NON, PRC, REC, REL, RPN, SCK, |
Line 2556 typedef struct processus
|
Line 2577 typedef struct processus
|
} struct_processus; |
} struct_processus; |
#endif |
#endif |
|
|
|
#ifdef DEBUG_MEMOIRE |
|
pid_t debug_fork(struct_processus *s_etat_processus); |
|
#endif |
|
|
|
|
/* |
/* |
================================================================================ |
================================================================================ |
Line 3560 logical1 validation_chaine(unsigned char
|
Line 3585 logical1 validation_chaine(unsigned char
|
#ifndef RPLARGS |
#ifndef RPLARGS |
ssize_t read_atomic(struct_processus *s_etat_processus, |
ssize_t read_atomic(struct_processus *s_etat_processus, |
int fd, void *buf, size_t count); |
int fd, void *buf, size_t count); |
|
ssize_t read_atomic_signal(struct_processus *s_etat_processus, |
|
int fd, void *buf, size_t count); |
ssize_t write_atomic(struct_processus *s_etat_processus, |
ssize_t write_atomic(struct_processus *s_etat_processus, |
int fd, void *buf, size_t count); |
int fd, void *buf, size_t count); |
#endif |
#endif |