Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/sys_socket.c
| Show First 20 Lines • Show All 304 Lines • ▼ Show 20 Lines | soo_close(struct file *fp, struct thread *td) | ||||
| fp->f_data = NULL; | fp->f_data = NULL; | ||||
| if (so) | if (so) | ||||
| error = soclose(so); | error = soclose(so); | ||||
| return (error); | return (error); | ||||
| } | } | ||||
| static int | static int | ||||
| soo_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp) | soo_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp, | ||||
| int lkflags) | |||||
| { | { | ||||
| struct sockaddr *sa; | struct sockaddr *sa; | ||||
| struct inpcb *inpcb; | struct inpcb *inpcb; | ||||
| struct unpcb *unpcb; | struct unpcb *unpcb; | ||||
| struct socket *so; | struct socket *so; | ||||
| int error; | int error; | ||||
| kif->kf_type = KF_TYPE_SOCKET; | kif->kf_type = KF_TYPE_SOCKET; | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||