ARPDAS_QNX6 1.0
nortlib.h
Go to the documentation of this file.
00001 /* nortlib.h include file for nortlib
00002  * $Log: nortlib.h,v $
00003  * Revision 1.23  2012/04/20 19:30:23  ntallen
00004  * const char.
00005  *
00006  * Revision 1.22  2012/02/27 01:03:50  ntallen
00007  * Added ascii_escape() function
00008  *
00009  * Revision 1.21  2009/03/02 17:11:30  ntallen
00010  * Added const to char* declarations as necessary.
00011  *
00012  * Revision 1.20  2008/08/16 14:44:26  ntallen
00013  * MSG codes from msg.h
00014  *
00015  * Revision 1.19  2007/05/09 17:14:47  ntallen
00016  * Delete functions from another library
00017  *
00018  * Revision 1.18  2001/12/04 15:06:05  nort
00019  * Debugging, etc.
00020  *
00021  * Revision 1.17  2001/10/11 16:34:41  nort
00022  * Added compiler.oui. Fixed compiler.h.
00023  *
00024  * Revision 1.16  2001/09/10 17:31:47  nort
00025  *
00026  * Patch to nl_error.c to match correct prototype
00027  * Patch to nortlib.h to exclude functions not ported QNX6
00028  * Add GNU support files
00029  *
00030  * Revision 1.15  2001/01/18 15:07:20  nort
00031  * Getcon functions, memo_shutdown() and ci_time_str()
00032  *
00033  * Revision 1.14  1999/06/18 18:04:05  nort
00034  * Added ci_settime (a long time ago?)
00035  * Added DigSelect() from dccc.c
00036  *
00037  * Revision 1.13  1996/04/02  19:06:44  nort
00038  * Put back some tma.h defs to support old version (temporarily)
00039  *
00040  * Revision 1.12  1996/04/02  18:35:56  nort
00041  * Pruned log, removed tmcalgo funcs to tma.h
00042  *
00043  * Revision 1.1  1992/08/25  15:31:42  nort
00044  * Initial revision
00045  *
00046  */
00047 #ifndef _NORTLIB_H_INCLUDED
00048 #define _NORTLIB_H_INCLUDED
00049 
00050 #include <stdio.h>
00051 #include <sys/types.h>
00052 
00053 #ifdef __cplusplus
00054 extern "C" {
00055 #endif
00056 
00057 int Skel_open(const char *name);
00058 int Skel_copy(FILE *ofp, const char *label, int copyout);
00059 
00060 extern int (*nl_error)(int level, const char *s, ...); /* nl_error.c */
00061 int nl_err(int level, const char *s, ...); /* nl_error.c */
00062 #ifdef va_start
00063   int nl_verror(FILE *ef, int level, const char *fmt, va_list args); /* nl_verr.c */
00064 #endif
00065 
00066 /* These codes are taken from the old msg.h */
00067 #define MSG_DEBUG -2
00068 #define MSG_EXIT -1
00069 #define MSG_EXIT_NORM MSG_EXIT
00070 #define MSG 0
00071 #define MSG_PASS MSG
00072 #define MSG_WARN 1
00073 #define MSG_FAIL 2
00074 #define MSG_FATAL 3
00075 #define MSG_EXIT_ABNORM 4
00076 #define MSG_DBG(X) (MSG_DEBUG-(X))
00077 
00078 extern int nl_debug_level; /* nldbg.c */
00079 extern int nl_response; /* nlresp.c */
00080 int set_response(int newval); /* nlresp.c */
00081 #define NLRSP_DIE 3
00082 #define NLRSP_WARN 1
00083 #define NLRSP_QUIET 0
00084 
00085 /* guaranteed memory allocator, memlib.h subset.
00086  * Include memlib.h to obtain the full definition
00087  */
00088 #ifndef MEMLIB_H_INCLUDED
00089   #define new_memory(x) nl_new_memory(x)
00090   #define free_memory(x) nl_free_memory(x)
00091   #define nl_strdup(x) nrtl_strdup(x)
00092 #endif
00093 void *nl_new_memory(size_t size);
00094 void nl_free_memory(void *p);
00095 char *nrtl_strdup(const char *s);
00096 
00097 /* ascii_escape.c */
00098 const char *ascii_escape(const char *ibuf);
00099 
00100 #if defined(__QNXNTO__)
00101   #define OPTIND_RESET 1
00102 #else
00103   #define OPTIND_RESET 0
00104 #endif
00105 
00106 #ifdef __cplusplus
00107 };
00108 #endif
00109 
00110 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines