* @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 */
| 571 | * - Other errors from args_append() if memory allocation fails |
| 572 | */ |
| 573 | rt_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. |
no test coverage detected