&& fsbuf.f_type == DEVPTS_SUPER_MAGIC))
&& fsbuf.f_type == DEVPTS_SUPER_MAGIC) || (__statfs (_PATH_DEV, &fsbuf) == 0 && fsbuf.f_type == DEVFS_SUPER_MAGIC))
__getpt (void){  static int have_no_dev_ptmx;  int fd;  if (!have_no_dev_ptmx)    {      fd = __open (_PATH_DEVPTMX, O_RDWR);      if (fd != -1)	{	  struct statfs fsbuf;	  static int devpts_mounted;	  /* Check that the /dev/pts filesystem is mounted.  */	  if (devpts_mounted	      || (__statfs (_PATH_DEVPTS, &fsbuf) == 0		  && fsbuf.f_type == DEVPTS_SUPER_MAGIC))	    {	      /* Everything is ok.  */	      devpts_mounted = 1;	      return fd;	    }	  /* If /dev/pts is not mounted then the UNIX98 pseudo terminals             are not usable.  */	  __close (fd);	  have_no_dev_ptmx = 1;	}      else	{	  if (errno == ENOENT || errno == ENODEV)	    have_no_dev_ptmx = 1;	  else	    return -1;	}    }  return __bsd_getpt ();}