memset

#include <string.h>

void *memset(void *ptr, int value, size_t num);

usleep

#include <unistd.h>

void usleep(unsigned long useconds);

gettimeofday

#include <sys/time.h>
#include <unistd.h>

int gettimeofday(struct timeval *tv, struct timezone *tz);

pthread_create

#include <pthread.h>

pthread_create(pthread_t *thread, const pthread_attr_t *attr,
		void *(*start_routine)(void *), void *arg);