mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
26 lines
411 B
C
26 lines
411 B
C
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;
|
|
}
|