#include <stdlib.h>
#include <stdint.h>
#include "libc.h"
+#include "lock.h"
/* Ensure that at least 32 atexit handlers can be registered without malloc */
#define COUNT 32
} builtin, *head;
static int slot;
-static volatile int lock[2];
+static volatile int lock[1];
void __funcs_on_exit()
{