Helpers 🔗

Portable system abstractions and framework interfaces.

Timing Functions 🔗

Monotonic time in milliseconds.

void 
audit_time duration)

Suspends the execution of the current thread until the time-out interval elapses.

I/O Functions 🔗

int 
FILE *stream, void *buf, int count)

Retrieve captured standard stream output.

int 
FILE *stream, const void *buf, int count)

Send standard input to the sandbox.

int 
FILE *stream)

Send EOF to the sandbox.

File System Functions 🔗

bool 
const char *path)

Create a new directory.

bool 
const char *path)

Delete an empty directory.

bool 
const char *path)

Check if a path is a directory.

bool 
const char *path)

Check if a path is a file.

int 
const char *dir, void *cb_data, audit_listdir_cb cb)

Iterates over the files and folders in a directory.

Framework Functions 🔗

int 
int argc, char *argv)

Audition entry point.

bool 
void)

Check if running in the sandbox.

Types 🔗

typedef unsigned long long audit_time

Elapsed time (in milliseconds).

typedef void(*audit_listdir_cb)(void *cb_data, const char *filename, bool directory)

The type signature of the function invoked by the audit_listdir function.