133965Sjdp/* bucomm.h -- binutils common include file.
2130561Sobrien   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
3218822Sdim   2001, 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
433965Sjdp
5130561Sobrien   This file is part of GNU Binutils.
633965Sjdp
7130561Sobrien   This program is free software; you can redistribute it and/or modify
8130561Sobrien   it under the terms of the GNU General Public License as published by
9130561Sobrien   the Free Software Foundation; either version 2 of the License, or
10130561Sobrien   (at your option) any later version.
1133965Sjdp
12130561Sobrien   This program is distributed in the hope that it will be useful,
13130561Sobrien   but WITHOUT ANY WARRANTY; without even the implied warranty of
14130561Sobrien   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15130561Sobrien   GNU General Public License for more details.
1633965Sjdp
17130561Sobrien   You should have received a copy of the GNU General Public License
18130561Sobrien   along with this program; if not, write to the Free Software
19218822Sdim   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
2033965Sjdp
2133965Sjdp#ifndef _BUCOMM_H
2233965Sjdp#define _BUCOMM_H
2333965Sjdp
24218822Sdim/* Return the filename in a static buffer.  */
25218822Sdimconst char *bfd_get_archive_filename (bfd *);
2633965Sjdp
27130561Sobrienvoid bfd_nonfatal (const char *);
2833965Sjdp
29130561Sobrienvoid bfd_fatal (const char *) ATTRIBUTE_NORETURN;
3033965Sjdp
31218822Sdimvoid report (const char *, va_list) ATTRIBUTE_PRINTF(1,0);
3233965Sjdp
33130561Sobrienvoid fatal (const char *, ...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
3460484Sobrien
35130561Sobrienvoid non_fatal (const char *, ...) ATTRIBUTE_PRINTF_1;
3660484Sobrien
37130561Sobrienvoid set_default_bfd_target (void);
3833965Sjdp
39130561Sobrienvoid list_matching_formats (char **);
4033965Sjdp
41130561Sobrienvoid list_supported_targets (const char *, FILE *);
4233965Sjdp
43130561Sobrienvoid list_supported_architectures (const char *, FILE *);
4489857Sobrien
45130561Sobrienint display_info (void);
4633965Sjdp
47130561Sobrienvoid print_arelt_descr (FILE *, bfd *, bfd_boolean);
4833965Sjdp
49130561Sobrienchar *make_tempname (char *);
50218822Sdimchar *make_tempdir (char *);
5133965Sjdp
52130561Sobrienbfd_vma parse_vma (const char *, const char *);
53130561Sobrien
54130561Sobrienoff_t get_file_size (const char *);
55130561Sobrien
5633965Sjdpextern char *program_name;
5733965Sjdp
5833965Sjdp/* filemode.c */
59130561Sobrienvoid mode_string (unsigned long, char *);
6033965Sjdp
6133965Sjdp/* version.c */
62130561Sobrienextern void print_version (const char *);
6333965Sjdp
6460484Sobrien/* rename.c */
65130561Sobrienextern void set_times (const char *, const struct stat *);
6660484Sobrien
67130561Sobrienextern int smart_rename (const char *, const char *, int);
6860484Sobrien
69130561Sobrien/* libiberty.  */
70130561Sobrienvoid *xmalloc (size_t);
7133965Sjdp
72130561Sobrienvoid *xrealloc (void *, size_t);
7333965Sjdp
7433965Sjdp#endif /* _BUCOMM_H */
75