RCS_ID_C="$Id: ioctl.c,v 1.2 1994/03/30 07:39:20 jraja Exp $";
/*
 * ioctl.c --- set file control information
 *
 * Author: jraja <Jarno.Rajahalme@hut.fi>
 *
 * This file is part of the AmiTCP/IP Network Support Library.
 *
 * Copyright © 1994 AmiTCP/IP Group, <amitcp-group@hut.fi>
 *                  Helsinki University of Technology, Finland.
 *                  All rights reserved.
 *
 * Created      : Tue Mar 22 03:57:55 1994 jraja
 * Last modified: Wed Mar 30 10:35:36 1994 jraja
 *
 */

#include <sys/param.h>
#include <sys/socket.h>

int ioctl(int fd, unsigned int request, char *argp)
{
  int success;

  /*
   * IoctlSocket will return EBADF if the d is not socket
   */
  success = IoctlSocket(fd, request, argp);

  /*
   * Maybe the EBADF should be converted to EINVAL if the fd is an usual file?
   */

  return success;
}

