00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _BUCOMM_H
00021 #define _BUCOMM_H
00022
00023 #include "ansidecl.h"
00024 #include <stdio.h>
00025 #include <sys/types.h>
00026
00027 #include <errno.h>
00028 #include <unistd.h>
00029
00030 #include <string.h>
00031
00032 #include <stdlib.h>
00033
00034 #include <fcntl.h>
00035
00036 #ifdef __GNUC__
00037 # undef alloca
00038 # define alloca __builtin_alloca
00039 #else
00040 # if HAVE_ALLOCA_H
00041 # include <alloca.h>
00042 # else
00043 # ifndef alloca
00044 # if !defined (__STDC__) && !defined (__hpux)
00045 char *alloca ();
00046 # else
00047 void *alloca ();
00048 # endif
00049 # endif
00050 # endif
00051 #endif
00052
00053 #ifndef BFD_TRUE_FALSE
00054 #define boolean bfd_boolean
00055 #define true TRUE
00056 #define false FALSE
00057 #endif
00058
00059
00060 void bfd_nonfatal PARAMS ((CONST char *));
00061
00062 void bfd_fatal PARAMS ((CONST char *));
00063
00064 void fatal PARAMS ((CONST char *, ...));
00065
00066 void set_default_bfd_target PARAMS ((void));
00067
00068 void list_matching_formats PARAMS ((char **p));
00069
00070 void list_supported_targets PARAMS ((const char *, FILE *));
00071
00072 void print_arelt_descr PARAMS ((FILE *file, bfd *abfd, boolean verbose));
00073
00074 char *make_tempname PARAMS ((char *));
00075
00076 bfd_vma parse_vma PARAMS ((const char *, const char *));
00077
00078 extern char *program_name;
00079
00080
00081 void mode_string PARAMS ((unsigned long mode, char *buf));
00082
00083
00084 extern void print_version PARAMS ((const char *));
00085
00086
00087 PTR xmalloc PARAMS ((size_t));
00088
00089 PTR xrealloc PARAMS ((PTR, size_t));
00090
00091 #endif