linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] minor patches to cthon tests for FreeBSD
@ 2011-06-23  2:26 Tom Haynes
  2011-06-23  2:26 ` [PATCH 1/2] Multiple clnt_broadcast, rename static reference Tom Haynes
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tom Haynes @ 2011-06-23  2:26 UTC (permalink / raw)
  To: Steve Dickson; +Cc: linux-nfs, Tom Haynes

First allows FreeBSD 9.0 to compile and second allows
for leading space in the time output.

Tom Haynes (2):
  Multiple clnt_broadcast, rename static reference
  Make the stat command handle leading blank spaces

 general/stat.c  |    4 +++-
 tools/pmapbrd.c |    7 ++++---
 2 files changed, 7 insertions(+), 4 deletions(-)

-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] Multiple clnt_broadcast, rename static reference
  2011-06-23  2:26 [PATCH 0/2] minor patches to cthon tests for FreeBSD Tom Haynes
@ 2011-06-23  2:26 ` Tom Haynes
  2011-06-23  2:26 ` [PATCH 2/2] Make the stat command handle leading blank spaces Tom Haynes
  2011-06-27 16:23 ` [PATCH 0/2] minor patches to cthon tests for FreeBSD Steve Dickson
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Haynes @ 2011-06-23  2:26 UTC (permalink / raw)
  To: Steve Dickson; +Cc: linux-nfs, Tom Haynes


Signed-off-by: Tom Haynes <tdh@excfb.com>
---
 tools/pmapbrd.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/tools/pmapbrd.c b/tools/pmapbrd.c
index c447ced..2bb05b6 100644
--- a/tools/pmapbrd.c
+++ b/tools/pmapbrd.c
@@ -98,7 +98,7 @@ static bool_t xdr_rmtcallres ARGS_((XDR *, struct rmtcallres *));
 #define RPROC_NUM (u_long)1
 #endif
 
-static enum clnt_stat clnt_broadcast ARGS_((int, unsigned long, unsigned long,
+static enum clnt_stat clnt_broadcast_time ARGS_((int, unsigned long, unsigned long,
 		unsigned long, xdrproc_t, void *, xdrproc_t, void *,
 		resultproc_t, struct timeval *));
 
@@ -174,7 +174,7 @@ main(argc, argv)
 		 * XXX shouldn't have to cast eachresult?
 		 */
 		clnt_stat =
-		    clnt_broadcast(sock, RPROG, RVERS, RPROC_NUM, xdr_void, &a,
+		    clnt_broadcast_time(sock, RPROG, RVERS, RPROC_NUM, xdr_void, &a,
 		    xdr_void, &b, (resultproc_t)eachresult, &t);
 		if(clnt_stat != RPC_TIMEDOUT) {
 			printf("error: clnt_stat = %d\n", clnt_stat);
@@ -305,7 +305,8 @@ getbroadcastnets(sock, buf)
 }
 
 static enum clnt_stat 
-clnt_broadcast(sock, prog, vers, proc, xargs, argsp, xresults, resultsp, eachresult, t)
+clnt_broadcast_time(sock, prog, vers, proc, xargs, argsp, xresults,
+			resultsp, eachresult, t)
 	int		sock;
 #ifdef SVR3
 	ulong		prog;		/* program number */
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] Make the stat command handle leading blank spaces
  2011-06-23  2:26 [PATCH 0/2] minor patches to cthon tests for FreeBSD Tom Haynes
  2011-06-23  2:26 ` [PATCH 1/2] Multiple clnt_broadcast, rename static reference Tom Haynes
@ 2011-06-23  2:26 ` Tom Haynes
  2011-06-27 16:23 ` [PATCH 0/2] minor patches to cthon tests for FreeBSD Steve Dickson
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Haynes @ 2011-06-23  2:26 UTC (permalink / raw)
  To: Steve Dickson; +Cc: linux-nfs, Tom Haynes


Signed-off-by: Tom Haynes <tdh@excfb.com>
---
 general/stat.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/general/stat.c b/general/stat.c
index 2ce604e..b9128ae 100644
--- a/general/stat.c
+++ b/general/stat.c
@@ -52,7 +52,9 @@ getnewch:
 		exit(1);
 	}
 	c = i & 0x7f;
-	if (c == '\n' || c == '\r' || c == 'r')
+	if (c == ' ' || c == '\t')
+		goto getnewch;
+	else if (c == '\n' || c == '\r' || c == 'r')
 		attfmt = 1;
 	else if (isdigit(c))
 		fmt = "%lf %*s %lf %*s %lf %*s";	/* BSD fmt */
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] minor patches to cthon tests for FreeBSD
  2011-06-23  2:26 [PATCH 0/2] minor patches to cthon tests for FreeBSD Tom Haynes
  2011-06-23  2:26 ` [PATCH 1/2] Multiple clnt_broadcast, rename static reference Tom Haynes
  2011-06-23  2:26 ` [PATCH 2/2] Make the stat command handle leading blank spaces Tom Haynes
@ 2011-06-27 16:23 ` Steve Dickson
  2 siblings, 0 replies; 4+ messages in thread
From: Steve Dickson @ 2011-06-27 16:23 UTC (permalink / raw)
  To: Tom Haynes; +Cc: linux-nfs, Tom Haynes



On 06/22/2011 10:26 PM, Tom Haynes wrote:
> First allows FreeBSD 9.0 to compile and second allows
> for leading space in the time output.
> 
> Tom Haynes (2):
>   Multiple clnt_broadcast, rename static reference
>   Make the stat command handle leading blank spaces
> 
>  general/stat.c  |    4 +++-
>  tools/pmapbrd.c |    7 ++++---
>  2 files changed, 7 insertions(+), 4 deletions(-)
> 
Both committed on the git://linux-nfs.org/~steved/exports/cthon04 tree

steved.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-27 16:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-23  2:26 [PATCH 0/2] minor patches to cthon tests for FreeBSD Tom Haynes
2011-06-23  2:26 ` [PATCH 1/2] Multiple clnt_broadcast, rename static reference Tom Haynes
2011-06-23  2:26 ` [PATCH 2/2] Make the stat command handle leading blank spaces Tom Haynes
2011-06-27 16:23 ` [PATCH 0/2] minor patches to cthon tests for FreeBSD Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).