#ifndef SELFIE_H
#define SELFIE_H

/* Takes a snapshot of the current process
 * and dumps it to fd.
 * Returns -1 and sets errno in case of
 * error. In case of success 0 is returned
 * in the process taking the selfie and 1
 * is returned in the restored process */
int selfie(int fd);

#endif
