I am trying to use execve() and fork() in a system call.
I am trying to call sys_fork and sys_exec in my system call.
But both these expect a pointer struct to be passed to them.
struct pt_regs * regs
that is defined in ptrace.h. I dont know how to fill the structure
with the values. All the fields in this struct are register fields.
I would appreciate if someone could direct me in a proper direction.
BTW, I am trying to fork and exec in a system call so that I can
execute a binary(vi/emacs) by calling it from the system call.
Thanks for the help.
Fisher 227, CS Dept,
Michigan Tech. Univ.