EMILE/libemile/emile_block0_write.c

26 lines
411 B
C
Raw Normal View History

2005-02-04 00:41:37 +00:00
static __attribute__((used)) char* rcsid = "$CVSHeader$";
/*
*
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
*
*/
#include <sys/types.h>
#include <unistd.h>
#include "partition.h"
#include "libemile.h"
int emile_block0_write(emile_map_t *map)
{
int ret;
ret = lseek(map->fd, 0, SEEK_SET);
if (ret != 0)
return -1;
ret = write(map->fd, &map->drivers, sizeof(map->drivers));
return ret;
}