mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-23 01:29:34 +00:00
remove function obsoleted by EM06
This commit is contained in:
parent
fdd862ea80
commit
e556a2446c
@ -1,27 +0,0 @@
|
||||
static __attribute__((used)) char* rcsid = "$CVSHeader$";
|
||||
/*
|
||||
*
|
||||
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||||
*
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libemile.h"
|
||||
#include "emile.h"
|
||||
|
||||
int emile_second_get_buffer_size(int fd, u_int32_t *buffer_size)
|
||||
{
|
||||
emile_l2_header_t header;
|
||||
int ret;
|
||||
|
||||
ret = read(fd, &header, sizeof(header));
|
||||
if (ret != sizeof(header))
|
||||
return EEMILE_CANNOT_READ_SECOND;
|
||||
|
||||
*buffer_size = read_long(&header.kernel_size);
|
||||
|
||||
return 0;
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
static __attribute__((used)) char* rcsid = "$CVSHeader$";
|
||||
/*
|
||||
*
|
||||
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||||
*
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libemile.h"
|
||||
#include "emile.h"
|
||||
#include "../second/head.h"
|
||||
|
||||
int emile_second_get_cmdline(int fd, char* cmdline)
|
||||
{
|
||||
emile_l2_header_t header;
|
||||
int ret;
|
||||
|
||||
ret = read(fd, &header, sizeof(header));
|
||||
if (ret != sizeof(header))
|
||||
return EEMILE_CANNOT_READ_SECOND;
|
||||
|
||||
if (!EMILE_COMPAT(EMILE_02_SIGNATURE, read_long(&header.signature)))
|
||||
{
|
||||
fprintf(stderr, "Bad Header signature\n");
|
||||
return EEMILE_INVALID_SECOND;
|
||||
}
|
||||
|
||||
strncpy(cmdline, header.command_line, 256);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user