54 const char *shellPath =
"/bin/mksh";
56#ifdef LOSCFG_QUICK_START
57 const char *samplePath =
"/dev/shm/sample_quickstart";
61 printf(
"Failed to fork for sample_quickstart\n");
62 }
else if (ret == 0) {
63 (
void)execve(samplePath, NULL, NULL);
69 int fd = open(
"/dev/quickstart", O_RDONLY);
71 ioctl(fd, QUICKSTART_INITSTEP2);
77 printf(
"Failed to fork for shell\n");
78 }
else if (ret == 0) {
81 printf(
"get group id failed, pgrpid %d, errno %d\n", gid, errno);
84 ret = tcsetpgrp(STDIN_FILENO, gid);
86 printf(
"tcsetpgrp failed, errno %d\n", errno);
89 (
void)execve(shellPath, NULL, NULL);
94 ret = waitpid(-1, 0, WNOHANG);
ARG_NUM_3 ARG_NUM_1 ARG_NUM_2 ARG_NUM_2 ARG_NUM_3 ARG_NUM_1 ARG_NUM_4 ARG_NUM_2 ARG_NUM_2 ARG_NUM_5 ARG_NUM_2 void
unsigned int sleep(unsigned int seconds)
int usleep(unsigned long useconds) int usleep(unsigned useconds)