if (fsbuf.f_type == DEVPTS_SUPER_MAGIC)
if (fsbuf.f_type == DEVPTS_SUPER_MAGIC || fsbuf.f_type == DEVFS_SUPER_MAGIC)
grantpt (int fd){  struct statfs fsbuf;#ifdef PATH_MAX  char _buf[PATH_MAX];#else  char _buf[512];#endif  char *buf = _buf;  if (pts_name (fd, &buf, sizeof (_buf)))    return -1;    if (__statfs (buf, &fsbuf) < 0)    return -1;  /* If the slave pseudo terminal lives on a `devpts' filesystem, the     ownership and access permission are already set.  */  if (fsbuf.f_type == DEVPTS_SUPER_MAGIC)    return 0;  return __unix_grantpt (fd);}