[PVFS2-CVS] commit by pcarns in pvfs2/src/proto: endecode-funcs.h

CVS commit program cvs at parl.clemson.edu
Sun Sep 19 21:26:05 EDT 2004


Update of /projects/cvsroot/pvfs2/src/proto
In directory parlweb:/tmp/cvs-serv16654/src/proto

Modified Files:
	endecode-funcs.h 
Log Message:
make statfs return load averages from sysinfo()


Index: endecode-funcs.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/proto/endecode-funcs.h,v
diff -p -u -r1.5 -r1.6
--- endecode-funcs.h	21 Jan 2004 19:29:27 -0000	1.5
+++ endecode-funcs.h	20 Sep 2004 00:26:05 -0000	1.6
@@ -168,6 +168,34 @@ static inline void decode_##name(char **
     decode_##t8(pptr, &x->x8); \
 }
 
+#define endecode_fields_11(name,t1,x1,t2,x2,t3,x3,t4,x4,t5,x5,t6,x6,t7,x7,t8,x8,t9,x9,t10,x10,t11,x11) \
+static inline void encode_##name(char **pptr, const name *x) { \
+    encode_##t1(pptr, &x->x1); \
+    encode_##t2(pptr, &x->x2); \
+    encode_##t3(pptr, &x->x3); \
+    encode_##t4(pptr, &x->x4); \
+    encode_##t5(pptr, &x->x5); \
+    encode_##t6(pptr, &x->x6); \
+    encode_##t7(pptr, &x->x7); \
+    encode_##t8(pptr, &x->x8); \
+    encode_##t9(pptr, &x->x9); \
+    encode_##t10(pptr, &x->x10); \
+    encode_##t11(pptr, &x->x11); \
+} \
+static inline void decode_##name(char **pptr, name *x) { \
+    decode_##t1(pptr, &x->x1); \
+    decode_##t2(pptr, &x->x2); \
+    decode_##t3(pptr, &x->x3); \
+    decode_##t4(pptr, &x->x4); \
+    decode_##t5(pptr, &x->x5); \
+    decode_##t6(pptr, &x->x6); \
+    decode_##t7(pptr, &x->x7); \
+    decode_##t8(pptr, &x->x8); \
+    decode_##t9(pptr, &x->x9); \
+    decode_##t10(pptr, &x->x10); \
+    decode_##t11(pptr, &x->x11); \
+}
+
 #define endecode_fields_1_struct(name, t1, x1) \
 static inline void encode_##name(char **pptr, const struct name *x) { \
     encode_##t1(pptr, &x->x1); \



More information about the PVFS2-CVS mailing list