mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-14 22:04:43 +00:00
26 lines
407 B
C
26 lines
407 B
C
static __attribute__((used)) char* rcsid = "$CVSHeader$";
|
|
/*
|
|
*
|
|
* (c) 2004 Laurent Vivier <Laurent@lvivier.info>
|
|
*
|
|
*/
|
|
|
|
#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;
|
|
}
|