~ubuntu-branches/debian/sid/grub2/sid-200907171837

« back to all changes in this revision

Viewing changes to include/grub/util/misc.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2009-07-02 13:23:51 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702132351-tanpn0ryyijp93gu
Tags: 1.96+20090702-1
* New SVN snapshot.
* rules: Remove duplicated files in sparc64-ieee1275 port.
* rules: Comment out -DGRUB_ASSUME_LINUX_HAS_FB_SUPPORT=1 setting.  We'll
  re-evaluate using it when it's more mature.  (Closes: #535026).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  GRUB  --  GRand Unified Bootloader
3
 
 *  Copyright (C) 2002,2003,2005,2006,2007  Free Software Foundation, Inc.
 
3
 *  Copyright (C) 2002,2003,2005,2006,2007,2008  Free Software Foundation, Inc.
4
4
 *
5
5
 *  GRUB is free software: you can redistribute it and/or modify
6
6
 *  it under the terms of the GNU General Public License as published by
24
24
#include <setjmp.h>
25
25
#include <unistd.h>
26
26
 
 
27
#include <config.h>
 
28
#include <grub/types.h>
 
29
 
27
30
#ifdef __NetBSD__
28
31
/* NetBSD uses /boot for its boot block.  */
29
32
# define DEFAULT_DIRECTORY      "/grub"
35
38
 
36
39
extern char *progname;
37
40
extern int verbosity;
38
 
extern jmp_buf main_env;
39
41
 
 
42
void grub_util_warn (const char *fmt, ...);
40
43
void grub_util_info (const char *fmt, ...);
41
44
void grub_util_error (const char *fmt, ...) __attribute__ ((noreturn));
42
45
 
53
56
void grub_util_write_image (const char *img, size_t size, FILE *out);
54
57
void grub_util_write_image_at (const void *img, size_t size, off_t offset,
55
58
                               FILE *out);
56
 
char *grub_util_get_disk_name (int disk, char *name);
 
59
 
 
60
#ifndef  HAVE_ASPRINTF
 
61
 
 
62
int asprintf (char **buf, const char *fmt, ...);
 
63
 
 
64
#endif
 
65
 
 
66
#ifdef __MINGW32__
 
67
 
 
68
#define fseeko fseeko64
 
69
#define ftello ftello64
 
70
 
 
71
void sync (void);
 
72
int fsync (int fno);
 
73
void sleep(int s);
 
74
 
 
75
grub_int64_t grub_util_get_disk_size (char *name);
 
76
 
 
77
#endif
57
78
 
58
79
#endif /* ! GRUB_UTIL_MISC_HEADER */