]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
1. Fix some typos in README.
authorhjl <hjl>
Thu, 28 Oct 1999 19:57:59 +0000 (19:57 +0000)
committerhjl <hjl>
Thu, 28 Oct 1999 19:57:59 +0000 (19:57 +0000)
2. Use int32_t instead of long for rpcgen.

ChangeLog
README
tools/rpcgen/rpc_cout.c
tools/rpcgen/rpc_hout.c
tools/rpcgen/rpc_main.c
tools/rpcgen/rpc_parse.c
tools/rpcgen/rpc_scan.c
tools/rpcgen/rpc_scan.h
tools/rpcgen/rpc_util.c

index ff60dc3cbcf8d210e2ae1cebbd01fb7f3d9a76aa..afe22cff8db0ca633267d911a1be9cc6b8e02d82 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+Thu Oct 28 12:55:42 1999  H.J. Lu <hjl@lucon.org>
+
+       * README: Fix a few typos.
+
+       * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
+       of long.
+       * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
+       * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
+       * tools/rpcgen/rpc_parse.c (get_type): Likewise.
+       (unsigned_dec): Likewise.
+       * tools/rpcgen/rpc_scan.c (symbols): Likewise.
+       * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
+
+       * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
+       instead of LONG.
+       * tools/rpcgen/rpc_parse.c (get_type): Likewise.
+       (unsigned_dec): Likewise.
+       * tools/rpcgen/rpc_scan.c (symbols): Likewise.
+       * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
+       * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
+
 Thu Oct 28 11:27:51 EST 1999 Neil Brown <neilb@cse.unsw.edu.au>
 
         * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
@@ -8,7 +29,6 @@ Thu Oct 28 11:27:51 EST 1999 Neil Brown <neilb@cse.unsw.edu.au>
         * support/export/rmtab.c: rmtab_read didn't quite do the right
           thing if a pathname from rmtab was a subdirectory of an export-point
 
-       
 Tue Oct 26 17:22:40 1999  H.J. Lu <hjl@lucon.org>
 
        * README: Updated ftp site.
diff --git a/README b/README
index 25cfb742a63d361252f93500602c8a0edf219170..55079ca3593bdded4c00b3f88a7903704ce0753c 100644 (file)
--- a/README
+++ b/README
@@ -37,14 +37,13 @@ If there is no NFS patch for the kernel you are interested in, you have
 to make a patch closest to your kernel version and apply it by hand.
 
 There is a Linux NFS kernel source tree for Linux 2.3, linux-2.3, on
-the Linux NFS CVS server. However, it is not maintained. We will need
-all the help we can get. To contribute to the Linux NFS project, please
-go to
+the Linux NFS CVS server. We will need all the help we can get. To
+contribute to the Linux NFS project, please go to
 
 http://www.linuxnfs.sourceforge.org
 
 and login as "beta" with password "beta4u". You register yourself.
-please send an email to nfs-admin@linuxnfs.sourceforge.org with
+Please send an email to nfs-admin@linuxnfs.sourceforge.org with
 
 1. Your user id on www.linuxnfs.sourceforge.org.
 2. The area in NFS you'd like to work on.
@@ -58,7 +57,7 @@ http://lists.varesearch.com/lists/listinfo/nfs/
 You can subscribe it and search the mailing list archive via a web
 browser.
 
-The nfs-utils package is avaible from the CVS server:
+The nfs-utils package is available from the CVS server:
 
 # cvs -z 3 -d:pserver:anonymous@cvs.linuxnfs.sourceforge.org:/cvsroot/nfs co nfs-utils
 
index 9bc20bbd49dfd2a36a2347c249db08e3dc4bc61c..5f4c3e787026f5414f25e78bcd2a3644b2f2a132 100644 (file)
@@ -170,7 +170,7 @@ print_header(definition *def)
        if (Inline == 0)
                return;
        /* May cause lint to complain. but  ... */
-       f_print(fout, "\t register long *buf;\n\n");
+       f_print(fout, "\t register int32_t *buf;\n\n");
 }
 
 static void
@@ -668,14 +668,14 @@ emit_single_in_line(declaration *decl, int flag, relation rel)
        {
                free(upp_case);
                freed=1;
-               upp_case="LONG";
+               upp_case="INT32";
        }
 
        if(strcmp(upp_case,"U_INT") == 0)
        {
                free(upp_case);
                freed=1;
-               upp_case="U_LONG";
+               upp_case="U_INT32";
        }
 
 
index 06835cdaf5e3d1ad486650873e52286cba0e5fb8..27ed4d5ba5f29cf79ea42bdd768878a9b5882547 100644 (file)
@@ -222,7 +222,7 @@ pdefine(char *name, char *num)
 static void
 puldefine(char *name, char *num)
 {
-       f_print(fout, "#define %s ((u_long)%s)\n", name, num);
+       f_print(fout, "#define %s ((u_int32_t)%s)\n", name, num);
 }
 
 static int
index bd1a2c0d225d3b59dfa241beb693e1b329f6a2ba..9b600f3b134fe4268c88d8b2da289dbf72c3c0a3 100644 (file)
@@ -426,12 +426,12 @@ c_initialize(void)
   /* add all the starting basic types */
 
   add_type(1,"int");
-  add_type(1,"long");
+  add_type(1,"int32_t");
   add_type(1,"short");
   add_type(1,"bool");
 
   add_type(1,"u_int");
-  add_type(1,"u_long");
+  add_type(1,"u_int32_t");
   add_type(1,"u_short");
 
 }
index 1e5b80a2c783f26e8694b59065ab490ce15c674a..dcbe8dbb13b29db87d44368e45d0e08ab0fd5fed 100644 (file)
@@ -564,8 +564,8 @@ get_type(char **prefixp, char **typep, defkind dkind)
                *typep = "short";
                (void) peekscan(TOK_INT, &tok);
                break;
-       case TOK_LONG:
-               *typep = "long";
+       case TOK_INT32:
+               *typep = "int32_t";
                (void) peekscan(TOK_INT, &tok);
                break;
        case TOK_VOID:
@@ -604,9 +604,9 @@ unsigned_dec(char **typep)
                *typep = "u_short";
                (void) peekscan(TOK_INT, &tok);
                break;
-       case TOK_LONG:
+       case TOK_INT32:
                get_token(&tok);
-               *typep = "u_long";
+               *typep = "u_int32_";
                (void) peekscan(TOK_INT, &tok);
                break;
        case TOK_INT:
index 07565a17045d35b9d5a8414c372e881ae4239ce0..62d906d7d077de540a42eac607c3e6b7420e1664 100644 (file)
@@ -382,7 +382,7 @@ static token symbols[] = {
                          {TOK_INT, "int"},
                          {TOK_UNSIGNED, "unsigned"},
                          {TOK_SHORT, "short"},
-                         {TOK_LONG, "long"},
+                         {TOK_INT32, "int32"},
                          {TOK_FLOAT, "float"},
                          {TOK_DOUBLE, "double"},
                          {TOK_STRING, "string"},
index 0683dbe8f9727af55b15b98706ac7bdf125c8152..cbbe6e4b13238b26b18176be01630ab914bc001b 100644 (file)
@@ -64,7 +64,7 @@ enum tok_kind {
        TOK_TYPEDEF,
        TOK_INT,
        TOK_SHORT,
-       TOK_LONG,
+       TOK_INT32,
        TOK_UNSIGNED,
        TOK_FLOAT,
        TOK_DOUBLE,
index 2fd5f59e95e823332de1f6702ab8100abdcdfca4..252b181c8fc4c74f3366f1fd06175db663f5f9a1 100644 (file)
@@ -352,7 +352,7 @@ static token tokstrings[] = {
                             {TOK_TYPEDEF, "typedef"},
                             {TOK_INT, "int"},
                             {TOK_SHORT, "short"},
-                            {TOK_LONG, "long"},
+                            {TOK_INT32, "int32"},
                             {TOK_UNSIGNED, "unsigned"},
                             {TOK_DOUBLE, "double"},
                             {TOK_FLOAT, "float"},