version 1.307, 2017/06/30 13:11:26
|
version 1.309, 2017/07/04 10:28:09
|
Line 1
|
Line 1
|
#define DEBUG_ERREURS |
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.27 |
RPL/2 (R) version 4.1.27 |
Line 554 union semun
|
Line 553 union semun
|
sem_t *sem_open2(pid_t pid, int ordre); |
sem_t *sem_open2(pid_t pid, int ordre); |
#endif |
#endif |
|
|
|
__EXTERN__ int affichage_rplso; |
|
|
// Le mutex est là uniquement pour pouvoir émuler le comportement |
// Le mutex est là uniquement pour pouvoir émuler le comportement |
// de sem_getvalue() sur un système comme MacOS X qui ne possède pas |
// de sem_getvalue() sur un système comme MacOS X qui ne possède pas |
// cette fonction. |
// cette fonction. |
Line 629 union semun
|
Line 630 union semun
|
} while(0) |
} while(0) |
|
|
#ifdef __GLIBC__ |
#ifdef __GLIBC__ |
#include <execinfo.h> |
# include <execinfo.h> |
#define __BACKTRACE |
# define __BACKTRACE |
#define BACKTRACE(n) \ |
# define BACKTRACE(n) \ |
do \ |
do \ |
{ \ |
{ \ |
void *buffer[n]; \ |
void *buffer[n]; \ |
Line 656 union semun
|
Line 657 union semun
|
pthread_mutex_unlock(&mutex); \ |
pthread_mutex_unlock(&mutex); \ |
} while(0) |
} while(0) |
#else |
#else |
#define BACKTRACE(n) NOTICE("BACKTRACE only defined in glibc") |
# define BACKTRACE(n) NOTICE("BACKTRACE only defined in glibc") |
#endif |
#endif |
|
|
#ifdef __BACKTRACE |
#ifdef __BACKTRACE |
Line 702 pid_t debug_fork();
|
Line 703 pid_t debug_fork();
|
#endif |
#endif |
|
|
#ifdef DEBUG_RETURN |
#ifdef DEBUG_RETURN |
#define return uprintf("[%d] Return from <%s()> at line #%d " \ |
# define return uprintf("[%d] Return from <%s()> at line #%d " \ |
"(%s [%d])\n", (int) getpid(), __FUNCTION__, \ |
"(%s [%d])\n", (int) getpid(), __FUNCTION__, \ |
__LINE__, strerror(errno), errno); fflush(stdout); errno = 0; return |
__LINE__, strerror(errno), errno); fflush(stdout); errno = 0; return |
#endif |
#endif |
|
|
#ifdef DEBUG_MUTEX |
#ifdef DEBUG_MUTEX |
#define pthread_mutex_lock(mutex) uprintf("[%d-%llu] Mutex %s (%p) " \ |
# define pthread_mutex_lock(mutex) uprintf("[%d-%llu] Mutex %s (%p) " \ |
"locking at %s() " \ |
"locking at %s() " \ |
"line #%d\n", (int) getpid(), (unsigned long long) pthread_self(), \ |
"line #%d\n", (int) getpid(), (unsigned long long) pthread_self(), \ |
#mutex, mutex, __FUNCTION__, __LINE__), fflush(stdout), \ |
#mutex, mutex, __FUNCTION__, __LINE__), fflush(stdout), \ |
pthread_mutex_lock(mutex) |
pthread_mutex_lock(mutex) |
#define pthread_mutex_unlock(mutex) uprintf("[%d-%llu] Mutex %s (%p) " \ |
# define pthread_mutex_unlock(mutex) uprintf("[%d-%llu] Mutex %s (%p) " \ |
"unlocking at " \ |
"unlocking at " \ |
"%s() line #%d\n", (int) getpid(), (unsigned long long) \ |
"%s() line #%d\n", (int) getpid(), (unsigned long long) \ |
pthread_self(), #mutex, mutex, __FUNCTION__, __LINE__), \ |
pthread_self(), #mutex, mutex, __FUNCTION__, __LINE__), \ |
Line 2485 typedef struct processus
|
Line 2486 typedef struct processus
|
variables_tableau_noeuds_partages) |
variables_tableau_noeuds_partages) |
|
|
CACHE2(struct_buffer, enveloppes_buffers) |
CACHE2(struct_buffer, enveloppes_buffers) |
unsigned char ***cache_buffer; |
unsigned char ***cache_buffer; |
int *pointeur_cache_buffer; |
int *pointeur_cache_buffer; |
} struct_processus; |
} struct_processus; |
#endif |
#endif |
|
|
Line 3448 logical1 retrait_variable_statique(struc
|
Line 3449 logical1 retrait_variable_statique(struc
|
logical1 retrait_variables_statiques_locales( |
logical1 retrait_variables_statiques_locales( |
struct_processus *s_etat_processus); |
struct_processus *s_etat_processus); |
logical1 sequenceur(struct_processus *s_etat_processus); |
logical1 sequenceur(struct_processus *s_etat_processus); |
logical1 sequenceur_optimise(struct_processus *s_etat_processus); |
logical1 sequenceur_optimise(struct_processus *s_etat_processus, |
|
struct_liste_chainee *l_bibliotheques); |
#endif |
#endif |
|
|
/* |
/* |