Re-implement for unix target, address checking in ND_Address_Check: now use sigaction() and siglingjmp() instead of signal().

Minor code clean-up.
This commit is contained in:
agibert
2004-08-02 21:26:03 +00:00
parent 77330558f0
commit 64baaa1bc5
3 changed files with 112 additions and 48 deletions

View File

@@ -1,9 +1,9 @@
/*---------------------------------------------------------------------------------*/
/* $RCSfile: libnode.h,v $ */
/*---------------------------------------------------------------------------------*/
/* $Revision: 2.5 $ */
/* $Revision: 2.6 $ */
/* $Name: $ */
/* $Date: 2004/08/01 23:18:38 $ */
/* $Date: 2004/08/02 21:26:03 $ */
/* $Author: agibert $ */
/*---------------------------------------------------------------------------------*/
@@ -29,11 +29,18 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#if !defined(_MSC_VER)
# include <errno.h>
# include <signal.h>
# include <setjmp.h>
#endif
//#include <dlfcn.h>
#include <node.h>
@@ -78,6 +85,7 @@ typedef struct NDT_Base
char Err_String[512];
FILE *Err_Stream;
int Sig_Trapped;
sigjmp_buf SigLongJmp_Env;
NDT_Symbol *Symbol_First_Ptr;
NDT_Index_Type OpenStruct_Index_Type[1];
NDT_Root *OpenStruct_Ptr;
@@ -89,7 +97,7 @@ NDT_Base NDG_Base =
NDD_TRUE,
"",
(FILE *)-1,
0,
0,{},
(NDT_Symbol *)NULL,
{ NDD_INDEX_STATUS_OPENED | NDD_INDEX_TYPE_LIST | NDD_INDEX_SUBTYPE_FIFO},
(NDT_Root *)NULL