FreeBSD Bugzilla – Attachment 13777 Details for
Bug 26072
[Fix] clnt_generic af_unix support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 897 bytes, created by
mb
on 2001-03-25 14:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mb
Created:
2001-03-25 14:30:01 UTC
Size:
897 bytes
patch
obsolete
>--- lib/libc/rpc/clnt_generic.c Sun Mar 25 14:24:24 2001 >+++ lib/libc/rpc/clnt_generic.c Sun Mar 25 14:26:46 2001 >@@ -143,9 +143,28 @@ > struct netconfig *nconf; > CLIENT *clnt = NULL; > void *handle; >+ struct sockaddr_un sun; >+ int sock; >+ static struct timeval tv; > enum clnt_stat save_cf_stat = RPC_SUCCESS; > struct rpc_err save_cf_error; > >+ if (!strcmp(nettype, "unix")) { >+ bzero((char *)&sun, sizeof(sun)); >+ sun.sun_family = AF_UNIX; >+ strcpy(sun.sun_path, hostname); >+ sun.sun_len = sizeof(sun.sun_len) + sizeof(sun.sun_family) + >+ strlen(sun.sun_path) + 1; >+ sock = RPC_ANYSOCK; >+ clnt = clntunix_create(&sun, prog, vers, &sock, 0, 0); >+ if (clnt == NULL) >+ return(NULL); >+ tv.tv_sec = 25; >+ tv.tv_usec = 0; >+ clnt_control(clnt, CLSET_TIMEOUT, &tv); >+ return(clnt); >+ } > > if ((handle = __rpc_setconf(nettype)) == NULL) { > rpc_createerr.cf_stat = RPC_UNKNOWNPROTO;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26072
: 13777