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

Function exec

components/lwp/lwp.c:658–662  ·  view source on GitHub ↗

* @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

Source from the content-addressed store, hash-verified

656 * @see lwp_execve()
657 */
658pid_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/**

Callers 1

_msh_exec_lwpFunction · 0.85

Calls 1

lwp_execveFunction · 0.85

Tested by

no test coverage detected