1#ifndef MEMORY_LOCK_CONTRACT_H
2#define MEMORY_LOCK_CONTRACT_H
10#define CHECK(condition) \
13 fprintf(stderr, "%s:%d: %s (errno=%d)\n", __FILE__, __LINE__, #condition, errno); \
20int ml_limit(
size_t bytes);
21int ml_unprivileged(
void);
22int ml_resident(
void* address,
size_t pages,
unsigned bits,
const char* stage);
23int ml_reap(pid_t child,
int milliseconds);
24int ml_send(
int fd,
char byte);
25int ml_receive(
int fd,
char byte);
31int ml_exec(
int argc,
char** argv);