Fix cross compilation (e.g. on Darwin). Following changes to make.tmpl,
[AROS.git] / arch / all-pc / boot / grub2-aros / include / grub / util / misc.h
blob192874d42b9d11ab85e6f48586a5807b18a19c6f
1 /*
2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2002,2003,2005,2006,2007,2008,2009,2010 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef GRUB_UTIL_MISC_HEADER
20 #define GRUB_UTIL_MISC_HEADER 1
22 #include <stdlib.h>
23 #include <stdio.h>
24 #include <stdarg.h>
25 #include <setjmp.h>
26 #include <unistd.h>
28 #include <config.h>
29 #include <grub/types.h>
30 #include <grub/symbol.h>
31 #include <grub/emu/misc.h>
33 char *grub_util_get_path (const char *dir, const char *file);
34 size_t grub_util_get_image_size (const char *path);
35 char *grub_util_read_image (const char *path);
36 void grub_util_load_image (const char *path, char *buf);
37 void grub_util_write_image (const char *img, size_t size, FILE *out,
38 const char *name);
39 void grub_util_write_image_at (const void *img, size_t size, off_t offset,
40 FILE *out, const char *name);
42 char *make_system_path_relative_to_its_root (const char *path);
44 char *canonicalize_file_name (const char *path);
46 void grub_util_init_nls (void);
48 void grub_util_host_init (int *argc, char ***argv);
50 int grub_qsort_strcmp (const void *, const void *);
52 #endif /* ! GRUB_UTIL_MISC_HEADER */