⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ckusig.h

📁 KERMIT工具 这在办公室下载不了,很多人都没有载不到.
💻 H
字号:
/*  C K U S I G . H  *//*  Definitions and prototypes for signal handling  *//*  Author: Jeffrey E Altman (jaltman@secure-endpoints.com),            Secure Endpoints Inc., New York City.  Copyright (C) 1985, 2004,    Trustees of Columbia University in the City of New York.    All rights reserved.  See the C-Kermit COPYING.TXT file or the    copyright text in the ckcmai.c module for disclaimer and permissions.*/#ifdef CK_ANSICtypedef void (*ck_sigfunc)(void *);typedef void (*ck_sighand)(int);#elsetypedef VOID (*ck_sigfunc)();typedef VOID (*ck_sighand)();#endif /* CK_ANSIC *//* Macros for POSIX vs old-style signal handling. */#ifdef CK_POSIX_SIGtypedef sigjmp_buf ckjmpbuf;#elsetypedef jmp_buf ckjmpbuf;#endif /* CK_POSIX_SIG *//*  Suppose you want to pass the address of a jmp_buf bar to a function foo.  Since jmp_buf is normally defined (typedef'd) as an array, you would do  it like this:  foo(bar), where foo = foo(jmp_buf bar).  But suppose a  jmp_buf is (say) a struct rather than an array.  Then you must do  foo(&bar) where foo is foo(jmp_buf * bar).  This is controlled here in  the traditional fashion, by ifdefs.  By default, we assume that jmp_buf  is an array.  Define the symbol JBNOTARRAY if jmp_buf is not an array.*/#ifndef JBNOTARRAY#ifdef NT#define JBNOTARRAY#endif /* NT */#endif /* JBNOTARRAY */#ifdef JBNOTARRAYtypedef ckjmpbuf * ckjptr;#define ckjaddr(x) & x#define ckjdref(x) * x#ifdef CK_POSIX_SIG#define cksetjmp(x) sigsetjmp(x,1)#else#define cksetjmp(x) setjmp(x,1)#endif /* CK_POSIX_SIG */#else  /* jmp_buf is an array */typedef ckjmpbuf ckjptr;#define ckjaddr(x) x#define ckjdref(x) x#ifdef CK_POSIX_SIG#define cksetjmp sigsetjmp#else#define cksetjmp setjmp#endif /* CK_POSIX_SIG */#endif /* JBNOTARRAY */_PROTOTYP( int cc_execute, (ckjptr, ck_sigfunc, ck_sigfunc) );_PROTOTYP( int alrm_execute,	  (ckjptr,	   int timo,	   ck_sighand handler,	   ck_sigfunc, ck_sigfunc) );_PROTOTYP( int cc_alrm_execute,	  (ckjptr,	   int timo,	   ck_sighand handler,	   ck_sigfunc,	   ck_sigfunc) );/* End of ckusig.h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -