* @brief Execute a new program in the current process context * * @param[in] filename Path to the executable file * @param[in] debug Debug flag (non-zero enables debug mode) * @param[in] argc Number of command line arguments * @param[in] argv Array of command line argument strings * * @return Process ID (PID) of the new process on success * Negative error code on failure * * @not
| 656 | * @see lwp_execve() |
| 657 | */ |
| 658 | pid_t exec(char *filename, int debug, int argc, char **argv) |
| 659 | { |
| 660 | setenv("OS", "RT-Thread", 1); |
| 661 | return lwp_execve(filename, debug, argc, argv, __environ); |
| 662 | } |
| 663 | |
| 664 | #ifdef ARCH_MM_MMU |
| 665 | /** |
no test coverage detected