Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167185051
D58768.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D58768.id.diff
View Options
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -294,7 +294,7 @@
struct thread *, struct socket **);
static int unp_connect_peer(struct socket *, struct unpcb *,
struct sockaddr **, struct thread *, bool);
-static int unp_connectat_peer(struct thread *, int, const char *,
+static int unp_resolve_peer(struct thread *, int, const char *,
struct socket **);
static int unp_vnode_peer(struct vnode *, struct thread *,
struct socket **);
@@ -3006,7 +3006,7 @@
else
sa = NULL;
- error = unp_connectat_peer(td, fd, buf, &so2);
+ error = unp_resolve_peer(td, fd, buf, &so2);
if (error != 0)
goto out;
error = unp_connect_peer(so, sotounpcb(so2), &sa, td,
@@ -3090,9 +3090,9 @@
}
/*
- * Resolve a connectat(2) target -- descriptor 'fd' together with the pathname
- * in 'buf' (null when len == 0) -- to a referenced peer unix socket in
- * '*so2p', covering all four ways a peer can be named:
+ * Resolve a peer named by descriptor 'fd' together with the pathname in 'buf'
+ * -- empty to name the peer by the descriptor alone -- to a referenced peer
+ * unix socket in '*so2p', covering all four ways a peer can be named:
*
* empty path + socket fd the descriptor is the peer socket
* empty path + O_PATH vnode EMPTYPATH resolves the socket's vnode
@@ -3102,7 +3102,7 @@
* The caller must release the returned socket with sorele().
*/
static int
-unp_connectat_peer(struct thread *td, int fd, const char *buf,
+unp_resolve_peer(struct thread *td, int fd, const char *buf,
struct socket **so2p)
{
struct nameidata nd;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 5:32 PM (10 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36529166
Default Alt Text
D58768.id.diff (1 KB)
Attached To
Mode
D58768: unix: rename unp_connectat_peer() to unp_resolve_peer()
Attached
Detach File
Event Timeline
Log In to Comment