summaryrefslogtreecommitdiff
path: root/trans
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2001-02-12 22:18:55 +0000
committerMarcus Brinkmann <marcus@gnu.org>2001-02-12 22:18:55 +0000
commit646ac529c3d679f49f7866ffd65dbd94c3a500a3 (patch)
tree338208fb17e7f5546e19943338efc8def9c432f6 /trans
parent2888457f4fc3ebfd5ec6e4f6baf5e02223b1c5c6 (diff)
auth/
2001-02-12 Marcus Brinkmann <marcus@gnu.org> * auth.c (main): New variable ARGP defining a doc string. Pass address of ARGP to argp_parse(). exec/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * main.c: Change hurd version name from proc to exec. (main): Add period to doc string. ftpfs/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * ftpfs.c: Include <version.h>. Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. hostmux/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * hostmux.c: Include <version.h>. Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. usermux/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * usermux.c (options): Include <version.h>. Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. trans/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * fifo.c: Make version string say `fifo', not `null'. Add period to doc text in ARGP. * firmlink.c: Add period to doc text in ARGP_DOC, convert semi-colon to colon. * magic.c (options): Add period to DOC. * new-fifo.c (fifo_trans_parse_args): Add doc string to ARGP. Include <version.h>, new global variable ARGP_PROGRAM_VERSION. * crash.c: Include <version.h>, add global variable ARGP_PROGRAM_VERSION. * hello.c: Include <version.h>, add global variable ARGP_PROGRAM_VERSION. (hello_argp): Add doc string. * hello-mt.c: Likewise. * streamio.c: Add period to DOC. Change streamdev to streamio in version string. * password.c (main): Add period to doc string in ARGP.
Diffstat (limited to 'trans')
-rw-r--r--trans/ChangeLog19
-rw-r--r--trans/crash.c6
-rw-r--r--trans/fifo.c4
-rw-r--r--trans/firmlink.c4
-rw-r--r--trans/hello-mt.c8
-rw-r--r--trans/hello.c7
-rw-r--r--trans/magic.c2
-rw-r--r--trans/new-fifo.c6
-rw-r--r--trans/password.c2
-rw-r--r--trans/streamio.c4
10 files changed, 50 insertions, 12 deletions
diff --git a/trans/ChangeLog b/trans/ChangeLog
index 7108b6c2..49e8b9b6 100644
--- a/trans/ChangeLog
+++ b/trans/ChangeLog
@@ -1,3 +1,22 @@
+2001-02-12 Marcus Brinkmann <marcus@gnu.org>
+
+ * fifo.c: Make version string say `fifo', not `null'.
+ Add period to doc text in ARGP.
+ * firmlink.c: Add period to doc text in ARGP_DOC, convert
+ semi-colon to colon.
+ * magic.c (options): Add period to DOC.
+ * new-fifo.c (fifo_trans_parse_args): Add doc string to ARGP.
+ Include <version.h>, new global variable ARGP_PROGRAM_VERSION.
+ * crash.c: Include <version.h>, add global variable
+ ARGP_PROGRAM_VERSION.
+ * hello.c: Include <version.h>, add global variable
+ ARGP_PROGRAM_VERSION.
+ (hello_argp): Add doc string.
+ * hello-mt.c: Likewise.
+ * streamio.c: Add period to DOC. Change streamdev to streamio in
+ version string.
+ * password.c (main): Add period to doc string in ARGP.
+
2001-01-17 Neal H Walfield <neal@cs.uml.edu>
* pump.c (start_pfinet): Conform to new fshelp_start_translator
diff --git a/trans/crash.c b/trans/crash.c
index 0a5afe93..827306b2 100644
--- a/trans/crash.c
+++ b/trans/crash.c
@@ -1,5 +1,5 @@
/* GNU Hurd standard crash dump server.
- Copyright (C) 1995,96,97,99,2000 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,99,2000,2001 Free Software Foundation, Inc.
Written by Roland McGrath.
This file is part of the GNU Hurd.
@@ -27,11 +27,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <argz.h>
#include <sys/mman.h>
+#include <version.h>
+
#include "crash_S.h"
#include "crash_reply_U.h"
#include "msg_S.h"
+const char *argp_program_version = STANDARD_HURD_VERSION (crash);
+
process_t procserver; /* Our proc port, for easy access. */
/* Port bucket we service requests on. */
diff --git a/trans/fifo.c b/trans/fifo.c
index 3b62cc21..ce48c2fb 100644
--- a/trans/fifo.c
+++ b/trans/fifo.c
@@ -50,7 +50,7 @@ struct mutex active_fifo_lock;
/* Signal this when ACTIVE_FIFO may have changed. */
struct condition active_fifo_changed;
-const char *argp_program_version = STANDARD_HURD_VERSION (null);
+const char *argp_program_version = STANDARD_HURD_VERSION (fifo);
static struct argp_option options[] =
{
@@ -74,7 +74,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
}
static const struct argp argp = {
- options, parse_opt, 0, "Translator for fifos"
+ options, parse_opt, 0, "Translator for fifos."
};
int
diff --git a/trans/firmlink.c b/trans/firmlink.c
index de9cd19b..bb2d12a3 100644
--- a/trans/firmlink.c
+++ b/trans/firmlink.c
@@ -39,8 +39,8 @@ static const struct argp_option options[] =
};
static const char args_doc[] = "TARGET";
-static const char doc[] = "A translator for firmlinks"
-"\vA firmlink is sort of half-way between a symbolic link and a hard link;"
+static const char doc[] = "A translator for firmlinks."
+"\vA firmlink is sort of half-way between a symbolic link and a hard link:"
"\n"
"\nLike a symbolic link, it is `by name', and contains no actual reference to"
" the target. However, the lookup returns a node which will redirect parent"
diff --git a/trans/hello-mt.c b/trans/hello-mt.c
index 2aebbba0..f0d78614 100644
--- a/trans/hello-mt.c
+++ b/trans/hello-mt.c
@@ -28,6 +28,10 @@
#include <cthreads.h>
#include <rwlock.h>
+#include <version.h>
+
+const char *argp_program_version = STANDARD_HURD_VERSION (hello-mt);
+
/* The message we return when we are read. */
static const char hello[] = "Hello, world!\n";
static char *contents = (char *) hello;
@@ -273,7 +277,9 @@ trivfs_append_args (struct trivfs_control *fsys,
return err;
}
-static struct argp hello_argp = { options, parse_opt, 0, 0 };
+static struct argp hello_argp =
+{ options, parse_opt, 0,
+ "A multi-threaded translator providing a warm greeting." };
/* Setting this variable makes libtrivfs use our argp to
parse options passed in an fsys_set_options RPC. */
diff --git a/trans/hello.c b/trans/hello.c
index d1657dda..4199dd34 100644
--- a/trans/hello.c
+++ b/trans/hello.c
@@ -26,6 +26,10 @@
#include <fcntl.h>
#include <sys/mman.h>
+#include <version.h>
+
+const char *argp_program_version = STANDARD_HURD_VERSION (hello);
+
/* The message we return when we are read. */
static const char hello[] = "Hello, world!\n";
static char *contents = (char *) hello;
@@ -244,7 +248,8 @@ trivfs_append_args (struct trivfs_control *fsys,
return err;
}
-static struct argp hello_argp = { options, parse_opt, 0, 0 };
+static struct argp hello_argp =
+{ options, parse_opt, 0, "A translator providing a warm greeting." };
/* Setting this variable makes libtrivfs use our argp to
parse options passed in an fsys_set_options RPC. */
diff --git a/trans/magic.c b/trans/magic.c
index 680e88e1..670b6f41 100644
--- a/trans/magic.c
+++ b/trans/magic.c
@@ -36,7 +36,7 @@
const char *argp_program_version = STANDARD_HURD_VERSION (magic);
static char args_doc[] = "MAGIC";
-static char doc[] = "A translator that returns the magic retry result MAGIC";
+static char doc[] = "A translator that returns the magic retry result MAGIC.";
static const struct argp_option options[] =
{
{"directory", 'd', 0, 0, "Provide virtual (empty) directory node"},
diff --git a/trans/new-fifo.c b/trans/new-fifo.c
index f57da379..b3b57d84 100644
--- a/trans/new-fifo.c
+++ b/trans/new-fifo.c
@@ -36,8 +36,12 @@
#include <hurd/pipe.h>
#include <hurd/paths.h>
+#include <version.h>
+
#define DEFAULT_SERVER _SERVERS "fifo";
+const char *argp_program_version = STANDARD_HURD_VERSION (new-fifo);
+
struct port_bucket *port_bucket;
struct port_class *fifo_port_class, *server_port_class, *fsys_port_class;
@@ -164,7 +168,7 @@ fifo_trans_parse_args (struct fifo_trans *trans, int argc, char **argv,
}
return 0;
}
- struct argp argp = {options, parse_opt};
+ struct argp argp = {options, parse_opt, 0, "A translator for fifos." };
return argp_parse (&argp, argc, argv, print_errs ? 0 : ARGP_SILENT, 0, 0);
}
diff --git a/trans/password.c b/trans/password.c
index 5f87a10f..6f15a9e8 100644
--- a/trans/password.c
+++ b/trans/password.c
@@ -67,7 +67,7 @@ main (int argc, char *argv[])
error_t err;
mach_port_t bootstrap;
struct trivfs_control *fsys;
- const struct argp argp = { 0, 0, 0, "Hurd standard password server" };
+ const struct argp argp = { 0, 0, 0, "Hurd standard password server." };
argp_parse (&argp, argc, argv, 0, 0, 0);
diff --git a/trans/streamio.c b/trans/streamio.c
index c1acc8a2..bc158e53 100644
--- a/trans/streamio.c
+++ b/trans/streamio.c
@@ -200,9 +200,9 @@ static struct argp_option options[] =
};
static const char args_doc[] = "DEVICE";
-static const char doc[] = "Translator for stream devices";
+static const char doc[] = "Translator for stream devices.";
-const char *argp_program_version = STANDARD_HURD_VERSION (streamdev);
+const char *argp_program_version = STANDARD_HURD_VERSION (streamio);
static char *stream_name;