I'm working on a school project (Santa Clara Univ, not Novell), and need
the guidance of a unix guru who knows the source code for Sun SparcStations.
I believe I have the source code to SunOS4.1.1.
What I want to do is modify the system interface, kernel, and inetd. What I
need is to take timestamps of a block of data being sent down write()
to an open TCP socket stream, to IP and to the ethernet driver. So,
I would like to create a new system call (so the c compiler will know what
to do with it) that is a duplicate of write, that will take an extra
parameter (pointer to my timestamp structure). Then I want to similarly
expand the write -> tcp_output interface to do the same, then ip_output,
then the same to the ethernet driver. In each case I'll duplicate the code,
rename it, expand the interface, add timestamp code. At least this is what
seems appropriate to me.
Any sparc source code gurus willing to give some quick advice? Please?!
First thing, where is the source to write? I've heard it's in sysgeneric.c,
but I did not get that file in the source code distribution.
Thanks in advance,
Internetworking Products Division
Novell, Inc. San Jose, CA