Commit | Line | Data |
---|---|---|
252b5132 | 1 | /* bucomm.h -- binutils common include file. |
b34976b6 | 2 | Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
aa820537 AM |
3 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 |
4 | Free Software Foundation, Inc. | |
252b5132 | 5 | |
06d86cf7 | 6 | This file is part of GNU Binutils. |
252b5132 | 7 | |
06d86cf7 NC |
8 | This program is free software; you can redistribute it and/or modify |
9 | it under the terms of the GNU General Public License as published by | |
32866df7 | 10 | the Free Software Foundation; either version 3 of the License, or |
06d86cf7 | 11 | (at your option) any later version. |
252b5132 | 12 | |
06d86cf7 NC |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
252b5132 | 17 | |
06d86cf7 NC |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software | |
32866df7 NC |
20 | Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
21 | MA 02110-1301, USA. */ | |
252b5132 RH |
22 | \f |
23 | #ifndef _BUCOMM_H | |
24 | #define _BUCOMM_H | |
25 | ||
77f762d6 | 26 | /* Return the filename in a static buffer. */ |
8d8e0703 | 27 | const char *bfd_get_archive_filename (const bfd *); |
77f762d6 | 28 | |
2da42df6 | 29 | void bfd_nonfatal (const char *); |
37cc8ec1 | 30 | |
2db6cde7 NS |
31 | void bfd_nonfatal_message (const char *, const bfd *, const asection *, |
32 | const char *, ...); | |
33 | ||
2da42df6 | 34 | void bfd_fatal (const char *) ATTRIBUTE_NORETURN; |
252b5132 | 35 | |
0fd3a477 | 36 | void report (const char *, va_list) ATTRIBUTE_PRINTF(1,0); |
cba12006 | 37 | |
2da42df6 | 38 | void fatal (const char *, ...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN; |
252b5132 | 39 | |
2da42df6 | 40 | void non_fatal (const char *, ...) ATTRIBUTE_PRINTF_1; |
252b5132 | 41 | |
2da42df6 | 42 | void set_default_bfd_target (void); |
252b5132 | 43 | |
2da42df6 | 44 | void list_matching_formats (char **); |
252b5132 | 45 | |
2da42df6 | 46 | void list_supported_targets (const char *, FILE *); |
252b5132 | 47 | |
2da42df6 | 48 | void list_supported_architectures (const char *, FILE *); |
2f83960e | 49 | |
2da42df6 | 50 | int display_info (void); |
252b5132 | 51 | |
2da42df6 | 52 | void print_arelt_descr (FILE *, bfd *, bfd_boolean); |
252b5132 | 53 | |
2da42df6 | 54 | char *make_tempname (char *); |
f9c026a8 | 55 | char *make_tempdir (char *); |
2da42df6 AJ |
56 | |
57 | bfd_vma parse_vma (const char *, const char *); | |
252b5132 | 58 | |
f24ddbdd NC |
59 | off_t get_file_size (const char *); |
60 | ||
252b5132 RH |
61 | extern char *program_name; |
62 | ||
63 | /* filemode.c */ | |
2da42df6 | 64 | void mode_string (unsigned long, char *); |
252b5132 RH |
65 | |
66 | /* version.c */ | |
2da42df6 | 67 | extern void print_version (const char *); |
252b5132 RH |
68 | |
69 | /* rename.c */ | |
2da42df6 | 70 | extern void set_times (const char *, const struct stat *); |
252b5132 | 71 | |
2da42df6 | 72 | extern int smart_rename (const char *, const char *, int); |
252b5132 | 73 | |
06d86cf7 | 74 | /* libiberty. */ |
2da42df6 | 75 | void *xmalloc (size_t); |
252b5132 | 76 | |
2da42df6 | 77 | void *xrealloc (void *, size_t); |
252b5132 RH |
78 | |
79 | #endif /* _BUCOMM_H */ |