diff options
author | fergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917> | 2008-09-13 17:23:54 +0000 |
---|---|---|
committer | fergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917> | 2008-09-13 17:23:54 +0000 |
commit | 3f13bf43632ac0dd29ca89e2c46233fd63f8c3cd (patch) | |
tree | 5f05cad16696316b8d67c927d6c1642b43fc66ad | |
parent | a5270b90dfac1f586edd858d51f6207242301499 (diff) | |
download | distcc-3f13bf43632ac0dd29ca89e2c46233fd63f8c3cd.tar.gz |
Incorporate 01_distcc_man.dpatch from debian distribution.
This patch adds documentation of all of the exit codes to the man page.
Also add comment to exitcode.h reminding maintainers to update the man page.
Also update the HTML versions of the man pages.
git-svn-id: http://distcc.googlecode.com/svn/trunk@614 01de4be4-8c4a-0410-9132-4925637da917
-rw-r--r-- | doc/web/man/distcc_1.html | 130 | ||||
-rw-r--r-- | man/distcc.1 | 41 | ||||
-rw-r--r-- | src/exitcode.h | 3 |
3 files changed, 165 insertions, 9 deletions
diff --git a/doc/web/man/distcc_1.html b/doc/web/man/distcc_1.html index 563b40d..94cedaa 100644 --- a/doc/web/man/distcc_1.html +++ b/doc/web/man/distcc_1.html @@ -328,19 +328,23 @@ symptoms and causes of violations of distcc-pump mode assumptions.<BR> OPTION SUMMARY</A> </H2> Most options passed to distcc are interpreted as compiler options. -The following options are understood by distcc itself:<BR> +The following options are understood by distcc itself. If any +of these options are specified, distcc will not invoke the compiler.<BR> +<P> <DL> <DT> <B>--help</B> </DT> <DD> Displays summary instructions.<BR> +<P> </DD> <DT> <B>--version</B> </DT> <DD> Displays the distcc client version.<BR> +<P> </DD> <DT> <B>--show-hosts</B> @@ -348,16 +352,54 @@ Displays the distcc client version.<BR> <DD> Displays the host list that distcc would use. See the Host Specifications section.<BR> +<P> </DD> <DT> +<B>--scan-includes</B> +</DT> +<DD> +Displays the list of files that distcc would send to the remote +machine, as computed by the include server. This is a conservative +(over-)approximation of the files that would be read by the C +compiler. This option only works in pump mode. See the "How +Distcc-pump Mode Works" section for details on how this is +computed.<BR> +<P> +The list output by <B>distcc --scan-includes</B> will contain +one entry per line. Each line contains a category followed by +a path. The category is one of FILE, SYMLINK, DIRECTORY, or SYSTEMDIR:<BR> +<P> +</DD> +</DL> +<UL> +<B>FILE</B> indicates a source file or header file that would +be sent to the distcc server host.<BR> +<P> +<B>SYMLINK</B> indicates a symbolic link that would be sent to +the distcc server host.<BR> +<P> +<B>DIRECTORY</B> indicates a directory that may be needed in order +to compile the source file. For example, a directory "foo" +may be needed because of an include of the form #include "foo/../bar.h". +Such directories would be created on the distcc server host.<BR> +<P> +<B>SYSTEMDIR</B> indicates a system include directory, i.e. a +directory which is on the compiler's default include path, such +as "/usr/include"; such directories are assumed to be +present on the distcc server host, and so would not be sent to +the distcc server host.<BR> +</UL> +<P> +<DL> +<DT> <B>-j</B> </DT> <DD> Displays distcc's concurrency level, as calculated from the host list; it is the maximum number of outstanding jobs issued by this -client to all servers By default this will be four times the number -of hosts in the host list, unless the /LIMIT option was used in -the host list. See the Host Specifications section.<BR> +client to all servers. By default this will be four times the +number of hosts in the host list, unless the /LIMIT option was +used in the host list. See the Host Specifications section.<BR> </DD> </DL> <H2> @@ -775,12 +817,60 @@ In particular<BR> General distcc failure.<BR> </DD> <DT> +101 +</DT> +<DD> +Bad arguments.<BR> +</DD> +<DT> +102 +</DT> +<DD> +Bind failed.<BR> +</DD> +<DT> +103 +</DT> +<DD> +Connect failed.<BR> +</DD> +<DT> +104 +</DT> +<DD> +Compiler crashed.<BR> +</DD> +<DT> 105 </DT> <DD> Out of memory.<BR> </DD> <DT> +106 +</DT> +<DD> +Bad Host SPEC<BR> +</DD> +<DT> +107 +</DT> +<DD> +I/O Error<BR> +</DD> +<DT> +108 +</DT> +<DD> +Truncated.<BR> +</DD> +<DT> +109 +</DT> +<DD> +Protocol Error.<BR> +</DD> +<DT> 110 </DT> <DD> @@ -795,14 +885,42 @@ on the search path for distccd.<BR> Recursive call to distcc.<BR> </DD> <DT> +112 +</DT> +<DD> +Failed to discard privileges.<BR> +</DD> +<DT> +113 +</DT> +<DD> +Network access denied.<BR> +</DD> +<DT> +114 +</DT> +<DD> +In use by another process.<BR> +</DD> +<DT> +115 +</DT> +<DD> +No such file.<BR> +</DD> +<DT> 116 </DT> <DD> No hosts defined and fallbacks disabled.<BR> </DD> +<DT> +118 +</DT> +<DD> +Timeout.<BR> +</DD> </DL> -<P> -(Others are listed in exitcode.h.)<BR> <H2> <A NAME=TOC_19> FILES</A> diff --git a/man/distcc.1 b/man/distcc.1 index 904c634..db34539 100644 --- a/man/distcc.1 +++ b/man/distcc.1 @@ -636,20 +636,57 @@ particular .TP 100 General distcc failure. +.TP +101 +Bad arguments. +.TP +102 +Bind failed. +.TP +103 +Connect failed. +.TP +104 +Compiler crashed. .TP 105 Out of memory. +.TP +106 +Bad Host SPEC +.TP +107 +I/O Error +.TP +108 +Truncated. +.TP +109 +Protocol Error. .TP 110 The given compiler was not found on the remote host. Check that $CC is set appropriately and that it's installed in a directory on the search path for distccd. .TP 111 Recursive call to distcc. +.TP +112 +Failed to discard privileges. +.TP +113 +Network access denied. +.TP +114 +In use by another process. +.TP +115 +No such file. .TP 116 No hosts defined and fallbacks disabled. -.PP -(Others are listed in exitcode.h.) +.TP +118 +Timeout. .SH "FILES" If $DISTCC_HOSTS is not set, distcc reads a host list from either .B $DISTCC_DIR/hosts diff --git a/src/exitcode.h b/src/exitcode.h index 9c28f45..3a4c1d0 100644 --- a/src/exitcode.h +++ b/src/exitcode.h @@ -37,7 +37,8 @@ * are fairly high so that they're not confused with the real error code from * gcc. * - * TODO: Put more of these into the manpage. + * WARNING: ANY CHANGES HERE NEED TO BE DUPLICATED IN THE MAN PAGE + * (../man/distcc.1). **/ enum dcc_exitcode { EXIT_DISTCC_FAILED = 100, /**< General failure */ |