Sushant Nirwan wrote:
> I am working on the API(function) of libcontract library libcontract.so.1
> Testing of the function ct_ctl_newct() and ct_ctl_qack() are always
> sucess, even when I pass a buggy input to the function it's success.
> 
> When i go though the source code I come know that the implementation
> of these two functions are not written.
> The file from which is I come this conclusion is
> "..../uts/common/fs/ctfs/ctfs.ctl.c"
> 
> Can anyone tell me why the implementation of these functions is not written?

   They are indeed implemented, they just don't do a lot right now.

   ct_ctl_qack and ct_ctl_newct do nothing for process contracts because
   synchronous departure from a process contracts doesn't make sense.
   It is a bug that ct_ctl_newct returns success for process contracts;
   it should return ENOTSUP or ESRCH.

   ct_ctl_qack and ct_ctl_newct return errors for device contracts
   because they weren't strictly necessary for the initial
   implementation and it was decided during design review that the
   functionality could be deferred to a later point in time.  It is a
   bug that the device_contract man page explicitly states ct_ctl_newct
   works with device contracts.

   Dave


Reply via email to