mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
Add new shared header file
This commit is contained in:
parent
c429e39943
commit
2f50e920ff
1 changed files with 36 additions and 0 deletions
36
arch/um/include/shared/aha.h
Normal file
36
arch/um/include/shared/aha.h
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
#ifndef AHA
|
||||||
|
#define AHA
|
||||||
|
#include "linux/kernel.h" /* printk is declared there */
|
||||||
|
//#include "linux/gfp.h" /* GFP_KERNEL */
|
||||||
|
|
||||||
|
#include "linux/stddef.h"
|
||||||
|
//#include "linux/fs.h"
|
||||||
|
//#include "linux/smp_lock.h"
|
||||||
|
#include "linux/ptrace.h" /* access to kmalloc */
|
||||||
|
//#include "linux/sched.h"
|
||||||
|
//#include "asm/current.h"
|
||||||
|
//#include "asm/processor.h"
|
||||||
|
//#include "asm/uaccess.h"
|
||||||
|
//#include "as-layout.h"
|
||||||
|
//#include "mem_user.h"
|
||||||
|
//#include "skas.h"
|
||||||
|
#include "os.h"
|
||||||
|
#include "linux/delay.h"
|
||||||
|
|
||||||
|
/*FIXME use AHA name space */
|
||||||
|
#define MAX_DUMP_BUF 512
|
||||||
|
struct ReplyMessage{
|
||||||
|
int block;
|
||||||
|
int exitcode;
|
||||||
|
int substitue;
|
||||||
|
int insult;
|
||||||
|
};
|
||||||
|
|
||||||
|
int aha_create_filename(char *fn, int size);
|
||||||
|
char* aha_dump_execve(char __user *file, char __user *__user *argv,\
|
||||||
|
char __user *__user *env);
|
||||||
|
|
||||||
|
void aha_handle_insult_messages(struct ReplyMessage *msg, char __user* file,\
|
||||||
|
char __user* __user* argv);
|
||||||
|
void aha_get_reply_message(char* key, struct ReplyMessage *msg);
|
||||||
|
#endif
|
Loading…
Reference in a new issue