title: /dev/tcp not present in LINUX
body: <p>I'am porting C/pro*c codes from UNIX to LINUX.  The code is: </p>
  
  <pre><code>#define __NFDBIT       (8 * sizeof(unsigned long))
  #define __FD_SETSIZ    1024
  #define __FDSET_LONG   (__FD_SETSIZ/__NFDBIT)
  typedef struct {
      unsigned long fds_bits [__FDSET_LONG];
  } __ernel_fd_set;
  
  typedef __ernel_fd_set           fd_set_1;
  int main()
  {
      fd_set_1 listen_set;
      int listen_sd;
      int socket_id;
      FD_ZERO(&amp;listen_set);
      socket_id = t_open("/dev/tcp", O_RDWR | O_NONBLOCK, (struct t_info *) 0);
      return 0;
  }
  if ( socket_id &lt;0 )
  {
      exit(FAILURE);
  }
  </code></pre>
  
  <p>In UNIX the value of socket_id is > 0 in Linux it is -1.  Reason is in UNIX under directory /dev the file tcp is present.  But in LINUX it is under /dev this tcp file is not present.   Also in UNIX this tcp file is character special file which is different from normal file. </p>
  
  <p>Is there any way to create same character special file in LINUX as in UNIX or how to proceed this further?</p>