mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
Add logic to support an NSH-specific system command
This commit is contained in:
@@ -201,6 +201,27 @@ void platform_motd(FAR char *buffer, size_t buflen);
|
||||
int platform_user_verify(FAR const char *username, FAR const char *password);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nsh_system
|
||||
*
|
||||
* Description:
|
||||
* This is the NSH-specific implementation of the standard system()
|
||||
* command.
|
||||
*
|
||||
* NOTE: This assumes that other NSH instances have previously ran and so
|
||||
* common NSH logic is already initialized.
|
||||
*
|
||||
* Input Parameters:
|
||||
* Standard task start-up arguments. Expects argc == 2 with argv[1] being
|
||||
* the command to execute
|
||||
*
|
||||
* Returned Values:
|
||||
* EXIT_SUCCESS or EXIT_FAILURE
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int nsh_system(int argc, char *argv[]);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user