brooks 54c8f3c8e7 Add helper functions to copy strings into struct image_args.
Given a zeroed struct image_args with an allocated buf member,
exec_args_add_fname() must be called to install a file name (or NULL).
Then zero or more calls to exec_args_add_env() followed by zero or
more calls to exec_args_add_env(). exec_args_adjust_args() may be
called after args and/or env to allow an interpreter to be prepended to
the argument list.

To allow code reuse when adding arg and env variables, begin_envv
should be accessed with the accessor exec_args_get_begin_envv()
which handles the case when no environment entries have been added.

Use these functions to simplify exec_copyin_args() and
freebsd32_exec_copyin_args().

Reviewed by:	kib
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D15468
2018-11-29 21:00:56 +00:00
..
2018-03-27 15:20:03 +00:00
2018-02-12 17:42:28 +00:00
2018-07-03 01:55:09 +00:00
2017-12-13 16:13:17 +00:00
2018-06-13 16:48:07 +00:00
2018-02-20 00:06:07 +00:00
2018-02-06 19:14:15 +00:00
2017-12-28 14:26:33 +00:00
2017-11-30 20:33:45 +00:00
2017-12-13 16:13:17 +00:00
2018-10-25 22:16:34 +00:00
2017-12-13 16:13:17 +00:00
2017-12-13 16:13:17 +00:00
2018-03-20 15:51:05 +00:00
2017-12-13 16:30:39 +00:00
2017-12-13 16:30:39 +00:00
2018-10-29 23:43:17 +00:00
2018-03-02 22:13:29 +00:00
2018-11-11 00:04:36 +00:00
2017-12-13 16:13:17 +00:00
2018-05-07 23:36:16 +00:00
2018-11-19 00:54:31 +00:00
2018-07-25 00:18:21 +00:00
2018-01-05 22:26:23 +00:00
2018-11-20 14:58:41 +00:00
2018-11-21 17:18:27 +00:00
2017-12-13 16:13:17 +00:00
2017-11-30 20:33:45 +00:00
2018-03-27 15:20:03 +00:00
2018-08-03 01:37:00 +00:00
2018-10-23 21:43:41 +00:00
2018-01-03 00:56:30 +00:00
2017-12-13 16:13:17 +00:00