From owner-svn-src-head@freebsd.org Thu May 18 06:43:34 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F966D6C301; Thu, 18 May 2017 06:43:34 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 783A21381; Thu, 18 May 2017 06:43:34 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by freefall.freebsd.org (Postfix, from userid 1235) id A1C952A13; Thu, 18 May 2017 06:43:33 +0000 (UTC) Date: Thu, 18 May 2017 08:43:33 +0200 From: Baptiste Daroussin To: Jonathan Anderson 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> References: <201705172251.v4HMpSr3076792@repo.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="befnp3zp4ufyadls" Content-Disposition: inline In-Reply-To: <201705172251.v4HMpSr3076792@repo.freebsd.org> User-Agent: NeoMutt/20170428 (1.8.2) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2017 06:43:34 -0000 --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 ] [--] []\n" > + "\n" > + "Options:\n" > + " -h Display this help message\n" > + /* TODO: " -p Search in PATH for named binary\n" */ > + " -f Execute instead of searching for \n" > + " -- End of RTLD options\n" > + " Name of process to execute\n" > + " 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--