freebsd-skq/sys/compat/freebsd32
Brooks Davis f373437a01 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
..
freebsd32_capability.c sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
freebsd32_ioctl.c Move 32-bit compat support for FIODGNAME to the right place. 2018-10-26 17:59:25 +00:00
freebsd32_ioctl.h Move 32-bit compat support for FIODGNAME to the right place. 2018-10-26 17:59:25 +00:00
freebsd32_ipc.h Rename kernel-only members of semid_ds and msgid_ds. 2018-03-02 22:10:48 +00:00
freebsd32_misc.c Add helper functions to copy strings into struct image_args. 2018-11-29 21:00:56 +00:00
freebsd32_misc.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
freebsd32_proto.h Regen after r340302: Fix freebsd32 mknod(at). 2018-11-09 21:02:07 +00:00
freebsd32_signal.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
freebsd32_syscall.h Regen after r340302: Fix freebsd32 mknod(at). 2018-11-09 21:02:07 +00:00
freebsd32_syscalls.c Regen after r340302: Fix freebsd32 mknod(at). 2018-11-09 21:02:07 +00:00
freebsd32_sysent.c Regen after r340302: Fix freebsd32 mknod(at). 2018-11-09 21:02:07 +00:00
freebsd32_systrace_args.c Regen after r340302: Fix freebsd32 mknod(at). 2018-11-09 21:02:07 +00:00
freebsd32_util.h Add const to input-only char * arguments. 2018-11-02 20:50:22 +00:00
freebsd32.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
Makefile Use the main capabilities.conf for freebsd32. 2018-11-14 00:46:02 +00:00
syscalls.conf Use the main capabilities.conf for freebsd32. 2018-11-14 00:46:02 +00:00
syscalls.master Fix freebsd32 mknod(at). 2018-11-09 21:01:16 +00:00