svn commit: r318431 - head/libexec/rtld-elf
Baptiste Daroussin
bapt at FreeBSD.org
Thu May 18 06:43:34 UTC 2017
On Wed, May 17, 2017 at 10:51:28PM +0000, Jonathan Anderson wrote:
> Author: jonathan
> Date: Wed May 17 22:51:28 2017
> New Revision: 318431
> URL: https://svnweb.freebsd.org/changeset/base/318431
>
> Log:
> Allow rtld direct-exec to take a file descriptor.
>
[snip]
> +}
> +
> +/*
> * Parse a file descriptor number without pulling in more of libc (e.g. atoi).
> */
> static int
> @@ -5300,6 +5378,20 @@ parse_integer(const char *str)
> return (n);
> }
>
> +void print_usage(const char *argv0)
Style(9) bug :)
> +{
> +
> + rtld_printf("Usage: %s [-h] [-f <FD>] [--] <binary> [<args>]\n"
> + "\n"
> + "Options:\n"
> + " -h Display this help message\n"
> + /* TODO: " -p Search in PATH for named binary\n" */
> + " -f <FD> Execute <FD> instead of searching for <binary>\n"
> + " -- End of RTLD options\n"
> + " <binary> Name of process to execute\n"
> + " <args> Arguments to the executed process\n", argv0);
> +}
> +
> /*
> * Overrides for libc_pic-provided functions.
> */
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20170518/e67e4855/attachment.sig>
More information about the svn-src-head
mailing list