Displaying 5 results from an estimated 5 matches for "rpc_call".
2012 Jan 11
1
[PATCH] nfsmount: defeat dummypmap compiler warning
...100644
--- a/usr/kinit/nfsmount/dummypmap.c
+++ b/usr/kinit/nfsmount/dummypmap.c
@@ -150,7 +150,7 @@ static int dummy_portmap(int sock, FILE *portmap_file)
int pktlen, addrlen;
unsigned char pkt[65536]; /* Max UDP packet size */
/* RPC UDP packets do not include TCP fragment size */
- struct rpc_call *rpc = (struct rpc_call *) &pkt[-4];
+ struct rpc_call *rpc = (struct rpc_call *)((uintptr_t)pkt - 4);
struct rpc_auth *cred;
struct rpc_auth *vrf;
struct portmap_args *args;
--
1.7.3.1
2020 Nov 09
4
[[PATCH v1 0/3] Fix clang build warnings
New clangs emit some warnings. The code isn't wrong, but should be updated to
prevent warning creep.
Bill Wendling (3):
[klibc] dash: shell: Fix clang warnings
[klibc] dash: shell: Fix clang warnings about format string
[klibc] Kbuild: use an enum to silence a clang warning
usr/dash/eval.c | 6 +++---
usr/dash/jobs.c | 2 +-
usr/kinit/nfsmount/dummypmap.c
2005 Jun 05
0
[PATCH] avoid spurious umount error message
...ekonijn@xs4all.nl>
Index: klibc-1.0.14/nfsmount/mount.c
===================================================================
--- klibc-1.0.14.orig/nfsmount/mount.c 2005-05-27 07:02:31.000000000 +0200
+++ klibc-1.0.14/nfsmount/mount.c 2005-06-04 13:36:33.000000000 +0200
@@ -166,6 +166,10 @@
if (rpc_call(clnt, &rpc) < 0)
goto bail;
+ if (proc != MNTPROC_MNT) {
+ goto done;
+ }
+
if (rpc.reply_len < MNT_REPLY_MINSIZE) {
fprintf(stderr, "incomplete reply: %zu < %zu\n",
rpc.reply_len, MNT_REPLY_MINSIZE);
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
Various coding style fixes checkpatch warns about.
The goal is not to be 100% checkpatch compliant,
but to have more consistent coding style.
As this is a trivial patch serie, will land in 24 hours in klibc git,
unless of course ml review hits a bugger.
Checked with size(3) that the generated kinit, fstype, ipconfig and
nfsmount are the same.
maximilian attems (4):
[klibc] ipconfig: reduce
2003 May 22
0
[PATCH 2.5.69 2/3] Remove NFS root support from the kernel
...signed)ntohl(addr->sin_addr.s_addr), path);
-
- sprintf(hostname, "%u.%u.%u.%u", NIPQUAD(addr->sin_addr.s_addr));
- if (!(mnt_clnt = mnt_create(hostname, addr, version, protocol)))
- return -EACCES;
-
- call = (version == NFS_MNT3_VERSION) ? MOUNTPROC3_MNT : MNTPROC_MNT;
- status = rpc_call(mnt_clnt, call, path, &result, 0);
- return status < 0? status : (result.status? -EACCES : 0);
-}
-
-static struct rpc_clnt *
-mnt_create(char *hostname, struct sockaddr_in *srvaddr, int version,
- int protocol)
-{
- struct rpc_xprt *xprt;
- struct rpc_clnt *clnt;
-
- if (!(xprt = xprt_crea...