refer to this web page which gives a tutorial.. Not to be used.. Thats the general idea.. http://fossil.wpi.edu/docs/howto_add_systemcall.html