freebsd-skq/sys/compat/cloudabi64
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
..
cloudabi64_fd.c Catch up with changes to structure member names. 2017-01-17 22:05:52 +00:00
cloudabi64_module.c Add helper functions to copy strings into struct image_args. 2018-11-29 21:00:56 +00:00
cloudabi64_poll.c Allow timed waits with relative timeouts on locks and condvars. 2018-01-04 21:57:37 +00:00
cloudabi64_proto.h Regenerated assorted syscall related files after: 2018-10-09 20:42:17 +00:00
cloudabi64_sock.c Use mallocarray(9) in CloudABI kernel code where possible. 2018-01-07 22:38:45 +00:00
cloudabi64_syscall.h Import the latest CloudABI definitions, version 0.16. 2017-10-18 19:22:53 +00:00
cloudabi64_syscalls.c Import the latest CloudABI definitions, version 0.16. 2017-10-18 19:22:53 +00:00
cloudabi64_sysent.c Import the latest CloudABI definitions, version 0.16. 2017-10-18 19:22:53 +00:00
cloudabi64_systrace_args.c Upgrade to CloudABI v0.17. 2017-11-08 14:21:52 +00:00
cloudabi64_thread.c Catch up with changes to structure member names. 2017-01-17 22:05:52 +00:00
cloudabi64_util.h Don't forget to define __ELF_WORD_SIZE. 2016-08-21 15:37:49 +00:00
Makefile Don't use an .OBJDIR for 'make sysent'. 2018-01-29 19:14:15 +00:00
syscalls.conf