| 308 | ****************************************************************************/ |
| 309 | |
| 310 | int task_spawn(FAR const char *name, main_t entry, |
| 311 | FAR const posix_spawn_file_actions_t *file_actions, |
| 312 | FAR const posix_spawnattr_t *attr, |
| 313 | FAR char * const argv[], FAR char * const envp[]) |
| 314 | { |
| 315 | pid_t pid = INVALID_PROCESS_ID; |
| 316 | int ret; |
| 317 | |
| 318 | sinfo("name=%s entry=%p file_actions=%p attr=%p argv=%p\n", |
| 319 | name, entry, file_actions, attr, argv); |
| 320 | |
| 321 | ret = nxtask_spawn_exec(&pid, name, entry, |
| 322 | file_actions != NULL ? *file_actions : NULL, |
| 323 | attr, argv, envp); |
| 324 | |
| 325 | return ret >= 0 ? pid : ret; |
| 326 | } |
| 327 | |
| 328 | #endif /* CONFIG_BUILD_KERNEL */ |
no test coverage detected