2 * (c) Copyright 1990-1996 OPEN SOFTWARE FOUNDATION, INC.
3 * (c) Copyright 1990-1996 HEWLETT-PACKARD COMPANY
4 * (c) Copyright 1990-1996 DIGITAL EQUIPMENT CORPORATION
5 * (c) Copyright 1991, 1992 Siemens-Nixdorf Information Systems
6 * To anyone who acknowledges that this file is provided "AS IS" without
7 * any express or implied warranty: permission to use, copy, modify, and
8 * distribute this file for any purpose is hereby granted without fee,
9 * provided that the above copyright notices and this notice appears in
10 * all source code copies, and that none of the names listed above be used
11 * in advertising or publicity pertaining to distribution of the software
12 * without specific, written prior permission. None of these organizations
13 * makes any representations about the suitability of this software for
17 * Header file for CMA internal UTIL operations
31 #if _CMA_OS_ == _CMA__VMS
35 #if _CMA_VENDOR_ == _CMA__SUN
36 # include <sys/time.h>
41 #if _CMA_OS_ == _CMA__UNIX
46 * CONSTANTS AND MACROS
49 #define cma__c_buffer_size 256 /* Size of output buffer */
56 * Alternate eol routine
58 typedef void (*cma__t_eol_routine
) (char *);
60 #if _CMA_OS_ == _CMA__VMS
61 typedef struct CMA__T_VMSFILE
{
64 } cma__t_vmsfile
, *cma__t_file
;
65 #elif ( _CMA_UNIX_TYPE == _CMA__SVR4 )
66 typedef int cma__t_file
;
68 typedef FILE *cma__t_file
;
79 extern void cma__abort (void);
81 extern cma_t_integer
cma__atol (char *);
83 extern cma_t_integer
cma__atoi (char *);
85 extern char * cma__getenv (char *,char *,int);
87 extern int cma__gettimespec (struct timespec
*);
89 extern cma__t_file
cma__int_fopen (char *,char *);
92 extern void cma__init_trace (char *_env
);
95 extern char * cma__memcpy (char *,char *,cma_t_integer
);
98 extern char * cma__memset (char *,cma_t_integer
,cma_t_integer
);
101 extern void cma__putformat (char *,char *,...);
103 extern void cma__putstring (char *,char *);
105 extern void cma__putint (char *,cma_t_integer
);
107 extern void cma__putint_5 (char *,cma_t_integer
);
109 extern void cma__putint_10 (char *,cma_t_integer
);
111 extern void cma__puthex (char *,cma_t_integer
);
113 extern void cma__puthex_8 (char *,cma_t_integer
);
115 extern void cma__puteol (char *);
117 extern void cma__set_eol_routine (cma__t_eol_routine
,cma__t_eol_routine
*);
119 extern cma_t_integer
cma__strlen (char *);
121 extern int cma__strncmp (char *,char *,cma_t_integer
);
123 extern char *cma__gets (char *,char *);