PATH_PTMDEV
fd = open(PATH_PTMDEV, O_RDWR);
return (open(PATH_PTMDEV, O_RDWR|O_CLOEXEC));
fatal("getptmfd %s", PATH_PTMDEV);