You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
349 B
23 lines
349 B
#include <unistd.h>
|
|
//#include <sys.h>
|
|
#include <errno.h>
|
|
#include <string.h>
|
|
#include<asm/segment.h>
|
|
#include <linux/kernel.h>
|
|
|
|
|
|
char sys_name[24];//系统内核的内存区域
|
|
|
|
int sys_execve2(const char * name)
|
|
{
|
|
printk("yes");
|
|
return 0;
|
|
}
|
|
|
|
int sys_getdents(char * name,unsigned int size)
|
|
{
|
|
printk("yes2");
|
|
return 0;
|
|
}
|
|
|