Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/uipc_socket.c
Show First 20 Lines • Show All 856 Lines • ▼ Show 20 Lines | sobind(struct socket *so, struct sockaddr *nam, struct thread *td) | ||||
CURVNET_SET(so->so_vnet); | CURVNET_SET(so->so_vnet); | ||||
error = (*so->so_proto->pr_usrreqs->pru_bind)(so, nam, td); | error = (*so->so_proto->pr_usrreqs->pru_bind)(so, nam, td); | ||||
CURVNET_RESTORE(); | CURVNET_RESTORE(); | ||||
return (error); | return (error); | ||||
} | } | ||||
int | int | ||||
sosockaddr(struct socket *so, struct sockaddr **nam) | |||||
Lint: Possible Spelling Mistake: Possible spelling error. You wrote 'nam', but did you mean 'name'? | |||||
melifaroUnsubmitted Not Done Inline ActionsGiven other similar functions follow the pattern of so verb something, maybe it's worth naming this sogetsockaddr() or sofillsockaddr() for consistency? melifaro: Given other similar functions follow the pattern of `so` `verb` `something`, maybe it's worth… | |||||
kevansAuthorUnsubmitted Done Inline ActionsOh, true, sorry; I'll rename it to sogetsockaddr for symmetry with, e.g., in_getsockaddr. kevans: Oh, true, sorry; I'll rename it to `sogetsockaddr` for symmetry with, e.g., in_getsockaddr. | |||||
{ | |||||
int error; | |||||
CURVNET_SET(so->so_vnet); | |||||
error = (*so->so_proto->pr_usrreqs->pru_sockaddr)(so, nam); | |||||
Lint: Possible Spelling Mistake Possible spelling error. You wrote 'nam', but did you mean 'name'? Lint: Possible Spelling Mistake: Possible spelling error. You wrote 'nam', but did you mean 'name'? | |||||
CURVNET_RESTORE(); | |||||
return (error); | |||||
} | |||||
int | |||||
sobindat(int fd, struct socket *so, struct sockaddr *nam, struct thread *td) | sobindat(int fd, struct socket *so, struct sockaddr *nam, struct thread *td) | ||||
{ | { | ||||
int error; | int error; | ||||
CURVNET_SET(so->so_vnet); | CURVNET_SET(so->so_vnet); | ||||
error = (*so->so_proto->pr_usrreqs->pru_bindat)(fd, so, nam, td); | error = (*so->so_proto->pr_usrreqs->pru_bindat)(fd, so, nam, td); | ||||
CURVNET_RESTORE(); | CURVNET_RESTORE(); | ||||
return (error); | return (error); | ||||
▲ Show 20 Lines • Show All 3,543 Lines • Show Last 20 Lines |
Possible spelling error. You wrote 'nam', but did you mean 'name'?