/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2002,2003,2005,2006,2007,2008,2009,2010 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include <errno.h>
#include <setjmp.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <grub/script_sh.h>
#ifdef __sun
#include <limits.h> /* for PATH_MAX */
#endif
#define ENABLE_RELOCATABLE 0
#include "progname.h"
/* Include malloc.h, only if memalign is available. It is known that
memalign is declared in malloc.h in all systems, if present. */
#ifdef HAVE_MEMALIGN
# include <malloc.h>
#endif
#ifdef __MINGW32__
#include <windows.h>
#include <winioctl.h>
#include "dirname.h"
#endif
#ifdef GRUB_UTIL
int
{
int ret;
return ret;
}
#endif
char *
{
char *path;
return path;
}
{
grub_util_error (_("fflush failed"));
grub_util_error (_("fstat failed"));
}
{
}
void
{
grub_util_error (_("seek failed"));
grub_util_error (_("read failed"));
}
char *
{
char *img;
if (! fp)
return img;
}
void
{
if (! fp)
}
void
{
grub_util_error (_("seek failed"));
grub_util_error (_("write failed"));
}
void
{
grub_util_error (_("write failed"));
}
char *
{
return 0;
}
{
return 0;
}
{
return 0;
}
{
return 0;
}
{
return 0;
}
{
return 0;
}
{
return 0;
}
{
return 0;
}
void
grub_putchar (int c)
{
putchar (c);
}
int
grub_getkey (void)
{
return -1;
}
void
grub_refresh (void)
{
}
static void
{
}
int
{
(void) mod;
return 0;
}
int
{
(void) mod;
return 0;
}
/* Some functions that we don't use. */
void
{
}
void
{
}
#ifdef __MINGW32__
void
{
}
#else
void
{
}
#endif
#ifdef __MINGW32__
void sync (void)
{
}
{
return 0;
}
{
0, OPEN_EXISTING, 0, 0);
if (hd == INVALID_HANDLE_VALUE)
return size;
{
0, 0, &g, sizeof (g), &nr, 0))
goto fail;
}
else
{
}
fail:
CloseHandle (hd);
return size;
}
#endif /* __MINGW32__ */
#ifdef GRUB_UTIL
void
grub_util_init_nls (void)
{
#if (defined(ENABLE_NLS) && ENABLE_NLS)
#endif /* (defined(ENABLE_NLS) && ENABLE_NLS) */
}
#endif