#endif
#include <stdio.h>
#include <stdlib.h>
#ifndef __FreeBSD__
#include <malloc.h>
#include <string.h>
#include <fcntl.h>
#include <sys/param.h>