No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / osf-share / cma_util.h
blob00451c45a34151e9b2932627422b9ffb3a4621b7
1 /*
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
14 * any purpose.
17 * Header file for CMA internal UTIL operations
20 #ifndef CMA_UTIL
21 #define CMA_UTIL
24 * INCLUDE FILES
27 #include <cma.h>
28 #include <cma_attr.h>
29 #include <cma_defs.h>
31 #if _CMA_OS_ == _CMA__VMS
32 # include <cma_rms.h>
33 #endif
35 #if _CMA_VENDOR_ == _CMA__SUN
36 # include <sys/time.h>
37 #else
38 # include <time.h>
39 #endif
41 #if _CMA_OS_ == _CMA__UNIX
42 # include <stdio.h>
43 #endif
46 * CONSTANTS AND MACROS
49 #define cma__c_buffer_size 256 /* Size of output buffer */
52 * TYPEDEFS
55 /*
56 * Alternate eol routine
58 typedef void (*cma__t_eol_routine) (char *);
60 #if _CMA_OS_ == _CMA__VMS
61 typedef struct CMA__T_VMSFILE {
62 struct RAB rab;
63 struct FAB fab;
64 } cma__t_vmsfile, *cma__t_file;
65 #elif ( _CMA_UNIX_TYPE == _CMA__SVR4 )
66 typedef int cma__t_file;
67 #else
68 typedef FILE *cma__t_file;
69 #endif
72 * GLOBAL DATA
76 * INTERNAL INTERFACES
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 *);
91 #ifndef NDEBUG
92 extern void cma__init_trace (char *_env);
93 #endif
95 extern char * cma__memcpy (char *,char *,cma_t_integer);
97 #ifndef cma__memset
98 extern char * cma__memset (char *,cma_t_integer,cma_t_integer);
99 #endif
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 *);
125 #endif