Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/tty_pts.c
| Show First 20 Lines • Show All 579 Lines • ▼ Show 20 Lines | ptsdev_close(struct file *fp, struct thread *td) | ||||
| */ | */ | ||||
| if (fp->f_vnode != NULL) | if (fp->f_vnode != NULL) | ||||
| return (vnops.fo_close(fp, td)); | return (vnops.fo_close(fp, td)); | ||||
| return (0); | return (0); | ||||
| } | } | ||||
| static int | static int | ||||
| ptsdev_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp) | ptsdev_fill_kinfo(struct file *fp, struct kinfo_file *kif, | ||||
| struct filedesc *fdp, int lkflags) | |||||
| { | { | ||||
| struct tty *tp; | struct tty *tp; | ||||
| kif->kf_type = KF_TYPE_PTS; | kif->kf_type = KF_TYPE_PTS; | ||||
| tp = fp->f_data; | tp = fp->f_data; | ||||
| kif->kf_un.kf_pts.kf_pts_dev = tty_udev(tp); | kif->kf_un.kf_pts.kf_pts_dev = tty_udev(tp); | ||||
| strlcpy(kif->kf_path, tty_devname(tp), sizeof(kif->kf_path)); | strlcpy(kif->kf_path, tty_devname(tp), sizeof(kif->kf_path)); | ||||
| return (0); | return (0); | ||||
| ▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines | |||||