mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
0ed0082070
Removed the older libmaxsi system call.
16 lines
369 B
C++
16 lines
369 B
C++
#include <stdio.h>
|
|
#include <errno.h>
|
|
#include <error.h>
|
|
#include <unistd.h>
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
printf("Please enter the name of one of the following programs:\n");
|
|
|
|
const char* programname = "ls";
|
|
const char* newargv[] = { programname, "/bin", NULL };
|
|
execv(programname, (char* const*) newargv);
|
|
error(1, errno, "%s", programname);
|
|
|
|
return 1;
|
|
}
|