1 /* bucomm.h -- binutils common include file.
2 Copyright (C) 1992, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
4 This file is part of GNU Binutils.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
25 #include <sys/types.h>
29 #ifdef USE_BINARY_FOPEN
30 #include "fopen-bin.h"
32 #include "fopen-same.h"
50 extern char *strchr ();
51 extern char *strrchr ();
62 #ifdef HAVE_SYS_FILE_H
67 #ifdef NEED_DECLARATION_STRSTR
68 extern char *strstr ();
72 #ifdef NEED_DECLARATION_SBRK
77 #ifdef NEED_DECLARATION_GETENV
78 extern char *getenv ();
101 # define alloca __builtin_alloca
106 # ifndef alloca /* predefined by HP cc +Olibcalls */
107 # if !defined (__STDC__) && !defined (__hpux)
111 # endif /* __STDC__, __hpux */
113 # endif /* HAVE_ALLOCA_H */
117 void bfd_nonfatal PARAMS ((CONST char *));
119 void bfd_fatal PARAMS ((CONST char *));
121 void fatal PARAMS ((CONST char *, ...));
123 void set_default_bfd_target PARAMS ((void));
125 void list_matching_formats PARAMS ((char **p));
127 void list_supported_targets PARAMS ((const char *, FILE *));
129 void print_arelt_descr PARAMS ((FILE *file, bfd *abfd, boolean verbose));
131 char *make_tempname PARAMS ((char *));
133 bfd_vma parse_vma PARAMS ((const char *, const char *));
135 extern char *program_name;
138 void mode_string PARAMS ((unsigned long mode, char *buf));
141 extern void print_version PARAMS ((const char *));
144 PTR xmalloc PARAMS ((size_t));
146 PTR xrealloc PARAMS ((PTR, size_t));
148 #endif /* _BUCOMM_H */