MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / lwp_args_put_envp

Function lwp_args_put_envp

components/lwp/lwp_args.c:573–576  ·  view source on GitHub ↗

* @brief Put environment variables into LWP arguments info structure * * @param[in,out] args Pointer to the lwp_args_info structure to store the arguments * @param[in] envp_uaddr Pointer to the string array (envp) to be processed * * @return rt_err_t * - RT_EOK on success * - -EFAULT if user-space string access fails * - Other errors from args_append() if memory allocation fails */

Source from the content-addressed store, hash-verified

571 * - Other errors from args_append() if memory allocation fails
572 */
573rt_err_t lwp_args_put_envp(struct lwp_args_info *args, const char **envp_uaddr)
574{
575 return lwp_args_put(args, envp_uaddr, LWP_ARGS_TYPE_ENVP);
576}
577
578/**
579 * read words until reach nextline or EOF.

Callers 1

sys_execveFunction · 0.85

Calls 1

lwp_args_putFunction · 0.85

Tested by

no test coverage detected