Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 May 2017 08:43:33 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Jonathan Anderson <jonathan@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r318431 - head/libexec/rtld-elf
Message-ID:  <20170518064333.5767zwjk46vxi6fw@ivaldir.net>
In-Reply-To: <201705172251.v4HMpSr3076792@repo.freebsd.org>
References:  <201705172251.v4HMpSr3076792@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--befnp3zp4ufyadls
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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
>=20
> Log:
>   Allow rtld direct-exec to take a file descriptor.
>  =20
[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);
>  }
> =20
> +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.
>   */
>=20

--befnp3zp4ufyadls
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAlkdQpAACgkQY4mL3PG3
PlqWFBAAsfCYUNgUff7orua4KEEYjuDPpvQAq+iOTsfu2Ph4Z6IOvR4hDBE/9BIG
KSbkEgLjEGkeL3TKQNWjFboY8itqXdYDXFv2zkOuLLnkP7Gf+uBOQ4xw5Ukzslxc
urbvHQqd0q8Hv5H2UXMy4AjJr7VQM2Z28zY8DEL4In4pd0cKbAL0ydYfkF5QYGRZ
k5WVlZX2ri207jS9ztREI9K1+Fibn6uxEwgCMo0fZ14kPjfsNV9Y9qnq14SzZgyu
yuo9WTKaimU6rxvZhB8/otZl/Wu+JKQbA76XQxACTZMOaVnGVkTNd6j6AGWVhjYP
YUlj1xKSy6QZf8S17qHikMBVyT4ZdqZbZvqqzLZeClpxrW3ZrdRchTAzTHuoDrex
tdjOAyIaHp9f8mHdQMqms142MtOrya4x/mg3rDqW3ADWyydO+tAOV4CuGv9oyFhN
5PQ+mKXSorc4vP1FCE841Wf/Fpf6jD1NqAk9VUAXM/sj5k+1mh57oZQCetoSbkWW
5zFNwkbeljELVbmMtRApyHtPShR86wqAbtHKVqw5kY+WuVGzPVTJ8ntAMW/F8cKE
lj2VUvG1IaN/1vuPG4KeZLmHAHmKaI0+HwBx9rbGwiMq+5KZ3KCzYZFRQrBCwJZy
GaTZTvg35mRGUemxq5335O+4yqReR4Ta39uVZL8+T/2NqOxcfuw=
=7GjP
-----END PGP SIGNATURE-----

--befnp3zp4ufyadls--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170518064333.5767zwjk46vxi6fw>