version 1.62, 2015/01/27 14:18:05
|
version 1.72, 2017/07/03 11:47:05
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.20 |
RPL/2 (R) version 4.1.27 |
Copyright (C) 1989-2015 Dr. BERTRAND Joël |
Copyright (C) 1989-2017 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 57 chargement_bibliotheque(struct_processus
|
Line 57 chargement_bibliotheque(struct_processus
|
unsigned char *tampon; |
unsigned char *tampon; |
|
|
void *descripteur_bibliotheque; |
void *descripteur_bibliotheque; |
int (*onloading)(struct_rpl_arguments *); |
int (*onloading)(struct_rpl_arguments *, void *); |
|
|
/* |
/* |
* On vérifie que la bibliothèque n'est pas déjà chargée. |
* On vérifie que la bibliothèque n'est pas déjà chargée. |
Line 172 chargement_bibliotheque(struct_processus
|
Line 172 chargement_bibliotheque(struct_processus
|
return(NULL); |
return(NULL); |
} |
} |
|
|
(*onloading)(&rpl_arguments); |
(*onloading)(&rpl_arguments, descripteur_bibliotheque); |
|
|
# ifndef SEMAPHORES_NOMMES |
# ifndef SEMAPHORES_NOMMES |
while(sem_wait(&((*s_etat_processus).semaphore_fork)) != 0) |
while(sem_wait(&((*s_etat_processus).semaphore_fork)) != 0) |
Line 305 chargement_bibliotheque(struct_processus
|
Line 305 chargement_bibliotheque(struct_processus
|
} |
} |
|
|
dlerror(); |
dlerror(); |
fonction = dlsym(descripteur_bibliotheque, "__external_symbols"); |
fonction = dlsym(descripteur_bibliotheque, "___external_symbols"); |
|
|
if (fonction == NULL) |
if (fonction == NULL) |
{ |
{ |
Line 490 retrait_bibliotheque(struct_processus *s
|
Line 490 retrait_bibliotheque(struct_processus *s
|
integer8 j; |
integer8 j; |
integer8 nombre_symboles_residuels; |
integer8 nombre_symboles_residuels; |
|
|
int (*onclosing)(struct_rpl_arguments *); |
int (*onclosing)(struct_rpl_arguments *, void *); |
|
|
l_element_courant = (*s_etat_processus).s_bibliotheques; |
l_element_courant = (*s_etat_processus).s_bibliotheques; |
presence_bibliotheque = d_faux; |
presence_bibliotheque = d_faux; |
Line 591 retrait_bibliotheque(struct_processus *s
|
Line 591 retrait_bibliotheque(struct_processus *s
|
return(d_erreur); |
return(d_erreur); |
} |
} |
|
|
(*onclosing)(&rpl_arguments); |
(*onclosing)(&rpl_arguments, (*descripteur).descripteur); |
|
|
# ifndef SEMAPHORES_NOMMES |
# ifndef SEMAPHORES_NOMMES |
while(sem_wait(&((*s_etat_processus).semaphore_fork)) != 0) |
while(sem_wait(&((*s_etat_processus).semaphore_fork)) != 0) |