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