~ubuntu-branches/debian/stretch/grub2/stretch

« back to all changes in this revision

Viewing changes to include/grub/misc.h

Tags: upstream-1.98+20100705
ImportĀ upstreamĀ versionĀ 1.98+20100705

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
grub_size_t EXPORT_FUNC(grub_strlen) (const char *s);
238
238
int EXPORT_FUNC(grub_printf) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
239
239
int EXPORT_FUNC(grub_printf_) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
240
 
int EXPORT_FUNC(grub_puts) (const char *s);
 
240
 
 
241
extern void (*EXPORT_VAR (grub_xputs)) (const char *str);
 
242
 
 
243
static inline int
 
244
grub_puts (const char *s)
 
245
{
 
246
  const char nl[2] = "\n";
 
247
  grub_xputs (s);
 
248
  grub_xputs (nl);
 
249
 
 
250
  return 1;     /* Cannot fail.  */
 
251
}
 
252
 
241
253
int EXPORT_FUNC(grub_puts_) (const char *s);
242
254
void EXPORT_FUNC(grub_real_dprintf) (const char *file,
243
255
                                     const int line,
253
265
char *EXPORT_FUNC(grub_xvasprintf) (const char *fmt, va_list args);
254
266
void EXPORT_FUNC(grub_exit) (void) __attribute__ ((noreturn));
255
267
void EXPORT_FUNC(grub_abort) (void) __attribute__ ((noreturn));
256
 
grub_size_t EXPORT_FUNC(grub_utf8_to_ucs4) (grub_uint32_t *dest,
257
 
                                            grub_size_t destsize,
258
 
                                            const grub_uint8_t *src,
259
 
                                            grub_size_t srcsize,
260
 
                                            const grub_uint8_t **srcend);
261
268
grub_uint64_t EXPORT_FUNC(grub_divmod64) (grub_uint64_t n,
262
269
                                          grub_uint32_t d, grub_uint32_t *r);
263
270
 
298
305
}
299
306
 
300
307
/* Reboot the machine.  */
301
 
void EXPORT_FUNC (grub_reboot) (void);
 
308
void EXPORT_FUNC (grub_reboot) (void) __attribute__ ((noreturn));
302
309
 
303
310
#ifdef GRUB_MACHINE_PCBIOS
304
311
/* Halt the system, using APM if possible. If NO_APM is true, don't
305
312
 * use APM even if it is available.  */
306
 
void EXPORT_FUNC (grub_halt) (int no_apm);
 
313
void EXPORT_FUNC (grub_halt) (int no_apm) __attribute__ ((noreturn));
307
314
#else
308
 
void EXPORT_FUNC (grub_halt) (void);
 
315
void EXPORT_FUNC (grub_halt) (void) __attribute__ ((noreturn));
309
316
#endif
310
317
 
311
318
#endif /* ! GRUB_MISC_HEADER */