- Initial support for libnode-2.3.x
- Start to cleanup the code...
This commit is contained in:
parent
0e2be6c11b
commit
604b749d4e
@ -20,7 +20,7 @@ default:all
|
||||
# Here are all the rules allowing to compile sources files
|
||||
# c -> o
|
||||
%.o:%.c
|
||||
$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
|
||||
$(CC) $(CFLAGS) $(INCLUDE) -fPIC -c $< -o $@
|
||||
|
||||
# c -> executable
|
||||
.c :
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <sys/wait.h>
|
||||
|
||||
|
||||
#include <node.h>
|
||||
|
@ -116,7 +116,11 @@ extern "C" {
|
||||
#define TRUE 1
|
||||
#endif
|
||||
|
||||
#ifdef _LIBSHMEM_C_
|
||||
char SM_Error_Msg [512];
|
||||
#else
|
||||
extern char SM_Error_Msg [512];
|
||||
#endif
|
||||
|
||||
#ifndef SM_MODE
|
||||
#define SM_MODE 0
|
||||
@ -189,7 +193,11 @@ extern "C" {
|
||||
|
||||
/* Référence sur la base de heaps */
|
||||
|
||||
#ifdef _LIBSHMEM_C_
|
||||
SMT_Base * SM_Base;
|
||||
#else
|
||||
extern SMT_Base * SM_Base;
|
||||
#endif
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Structure d'un MHH (Memory Heap Header) */
|
||||
|
1093
lib/libshmem.c
1093
lib/libshmem.c
File diff suppressed because it is too large
Load Diff
@ -217,12 +217,12 @@ SMT_Status SM_Base_Unlock (SMT_Flags);
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Fonction manager de la liste des heaps ouverts */
|
||||
/*------------------------------------------------------------------------------*/
|
||||
NDT_Status SM_Opened_Heap_List_Manager ( NDT_Root *, NDT_Index_Id, NDT_Node *, NDT_Command, va_list);
|
||||
NDT_Status SM_Opened_Heap_List_Manager ( NDT_Root *, NDT_Index_Id, NDT_Node *, NDT_Command, va_list *);
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Fonction manager du MHR (Memory Heap Root) */
|
||||
/*------------------------------------------------------------------------------*/
|
||||
NDT_Status MHR_Manager( NDT_Root *, NDT_Index_Id, NDT_Node *, NDT_Command, va_list);
|
||||
NDT_Status MHR_Manager( NDT_Root *, NDT_Index_Id, NDT_Node *, NDT_Command, va_list *);
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Destruction d'un MHH (Memory Heap Header) */
|
||||
@ -232,7 +232,7 @@ SMT_Status SM_MHH_End (SMT_MHH *);
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Fonction manager pour un DSR (Data Segment Root) */
|
||||
/*------------------------------------------------------------------------------*/
|
||||
NDT_Status SM_DSR_Manager( NDT_Root *, NDT_Index_Id, NDT_Node *, NDT_Command, va_list);
|
||||
NDT_Status SM_DSR_Manager( NDT_Root *, NDT_Index_Id, NDT_Node *, NDT_Command, va_list *);
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Ouverture d'un segment de données */
|
||||
@ -252,12 +252,12 @@ size_t SM_DataSegment_Compress (SMT_DSH *, NDT_Root *);
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Fonction manager pour un ACR (Allocated Chunk Root) */
|
||||
/*------------------------------------------------------------------------------*/
|
||||
NDT_Status SM_ACR_Manager( NDT_Root *, NDT_Index_Id, NDT_Node *, NDT_Command, va_list);
|
||||
NDT_Status SM_ACR_Manager( NDT_Root *, NDT_Index_Id, NDT_Node *, NDT_Command, va_list *);
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Fonction manager pour un FCR (Free Chunk Root) */
|
||||
/*------------------------------------------------------------------------------*/
|
||||
NDT_Status SM_FCR_Manager( NDT_Root *, NDT_Index_Id, NDT_Node *, NDT_Command, va_list);
|
||||
NDT_Status SM_FCR_Manager( NDT_Root *, NDT_Index_Id, NDT_Node *, NDT_Command, va_list *);
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* Pose d'un verrou sur un heap : */
|
||||
|
Loading…
Reference in New Issue
Block a user