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.
>   */
> 

Attachment: signature.asc
Description: PGP signature

Reply via email to