1#ifndef EXECUTABLE_FILE_CONTRACT_H
2#define EXECUTABLE_FILE_CONTRACT_H
11#define CHECK(condition) \
14 fprintf(stderr, "EXECUTABLE-FILE-CONTRACT: FAIL %s:%d: %s errno=%d\n", __FILE__, __LINE__, \
22extern char ef_directory[PATH_MAX];
23extern char ef_self[PATH_MAX];
26int ef_create(
const char* name,
char path[PATH_MAX]);
27int ef_copy(
const char* source,
const char* destination);
28int ef_receive(
int fd,
char expected);
29int ef_send(
int fd,
char value);
30int ef_reap(pid_t child);
31int ef_mutations(
void);
33int ef_conflicts(
void);
36int ef_load(
const char* path,
int version);