~darkmuggle-deactivatedaccount/ubuntu/quantal/grub2/fix-872244

« back to all changes in this revision

Viewing changes to include/grub/misc.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-01-11 11:12:55 UTC
  • mfrom: (17.3.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100111111255-lr8ebkqw5x41gq6j
Tags: 1.98~20100101-1ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Adjust for default Ubuntu boot options ("quiet splash").
  - Default to hiding the menu; holding down Shift at boot will show it.
  - Set a monochromatic theme for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
    recovery mode, quiet option, tweak how memtest86+ is displayed, and
    use UUIDs where appropriate.
  - Conflict with grub (<< 0.97-54) as well as grub-legacy.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel= options if kdump and makedumpfile are available.
  - If other operating systems are installed, then automatically unhide
    the menu. Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
    if available to check whether Shift is pressed. If it is, show the
    menu, otherwise boot immediately. If keystatus is not available, then
    fall back to a short delay interruptible with Escape.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Don't display introductory message about line editing unless we're
    actually offering a shell prompt. Don't clear the screen just before
    booting if we never drew the menu in the first place.
  - Remove some verbose messages printed before reading the configuration
    file.
  - If the environment variable "quiet" is set to something other than 0,
    suppress progress messages as the kernel and initrd load. Set this for
    non-recovery kernel menu entries.
  - Add GRUB_DEFAULT=saved, as well as grub-set-default and grub-reboot
    utilities. Provides functionality essentially equivalent to GRUB
    Legacy's savedefault.
  - Keep the loopback file open so that subsequent changes to the "root"
    environment variable don't affect it.
  - Change prepare_grub_to_access_device to handle filesystems
    loop-mounted on file images.
  - Ignore devices loop-mounted from files in 10_linux.
  - Show the boot menu if the previous boot failed, that is if it failed
    to get to the end of one of the normal runlevels.
  - Handle RAID devices containing virtio components.
* Update savedefault patch from current Bazaar branch, fixing grub-reboot
  to have distinct behaviour from grub-set-default (LP: #497326).
* Fix grub-mkisofs compilation error with FORTIFY_SOURCE.
* Convert recordfail boilerplate in each menu entry to use a function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
void *EXPORT_FUNC(grub_memset) (void *s, int c, grub_size_t n);
172
172
grub_size_t EXPORT_FUNC(grub_strlen) (const char *s);
173
173
int EXPORT_FUNC(grub_printf) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
 
174
int EXPORT_FUNC(grub_printf_) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
 
175
int EXPORT_FUNC(grub_puts) (const char *s);
 
176
int EXPORT_FUNC(grub_puts_) (const char *s);
174
177
void EXPORT_FUNC(grub_real_dprintf) (const char *file,
175
178
                                     const int line,
176
179
                                     const char *condition,
180
183
int EXPORT_FUNC(grub_vsprintf) (char *str, const char *fmt, va_list args);
181
184
void EXPORT_FUNC(grub_exit) (void) __attribute__ ((noreturn));
182
185
void EXPORT_FUNC(grub_abort) (void) __attribute__ ((noreturn));
183
 
grub_uint8_t *EXPORT_FUNC(grub_utf16_to_utf8) (grub_uint8_t *dest,
184
 
                                               grub_uint16_t *src,
185
 
                                               grub_size_t size);
186
186
grub_ssize_t EXPORT_FUNC(grub_utf8_to_ucs4) (grub_uint32_t *dest,
187
187
                                             grub_size_t destsize,
188
188
                                             const grub_uint8_t *src,
222
222
  return (x + y - 1) / y;
223
223
}
224
224
 
 
225
/* Reboot the machine.  */
 
226
void EXPORT_FUNC (grub_reboot) (void);
 
227
 
 
228
#ifdef GRUB_MACHINE_PCBIOS
 
229
/* Halt the system, using APM if possible. If NO_APM is true, don't
 
230
 * use APM even if it is available.  */
 
231
void EXPORT_FUNC (grub_halt) (int no_apm);
 
232
#else
 
233
void EXPORT_FUNC (grub_halt) (void);
 
234
#endif
 
235
 
225
236
#endif /* ! GRUB_MISC_HEADER */