You must implement your userspace send/recv as calls to some 3rd
party, e.g. the ipc server. These calls must use sendrec() since a
normal process cannot use any other kernel IPC.
T.
from a normal unix/posix process
> I wanted to implement a new system call that does the work of
> SENDREC() which is in someway different and hopefully better than
> SENDREC()
in what sense different/better?
> in that case can you please help me what files has to be modified /
> added?
> and where do write the system call handler and from the user program
> how I use the this new system call?as a lib function?
> Thanks and sorry if I am asking very basic questions.
I sense here a homework assignment which you have no clue how to solve
and you want us to do your job. We are happy to tell help you with
details, however, we are not going to tell you what line of which file
to change. I advice you go through the code of some simple utility to
see how SENDREC is used and have a look at the kernel sources how the
IPC is implemented.
T.
Define "system call" above.
If you mean, one of the basic IPC primitive of MINIX, SENDREC is really
the only one as Erik and Tomas explained. And Pr Tannenbaum's book
spends a significant part of its text to explain its in great details, I
am sure a deeper reading of that part will answer all your questions.
> in that case can you please help me what files has to be modified /
> added?
No need to "s", there is only one file. Cf. above.
> and where do write the system call handler and from the user program
> how I use the this new system call?as a lib function?
Yes, it ends being a library function (this I know is not as clear as
the above.) The hint to its name lies above.
Antoine