#include <proto/socket.h>
#define _INTERNAL_FILE
#include <sys/file.h>
#include <sys/syslog.h>

int __tcpioctl(struct file *f, unsigned int request, int inout, int arglen,char *argp)
{
  if (f->f_type != DTYPE_SOCKET) syslog(LOG_ERR,"tcpioctl found a nonsocket");
  return IoctlSocket((LONG)f->f_fh, request, argp);
}

