Sushant Nirwan wrote:
> Hi All,
> 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? 

But it is:

usr/src/lib/libcontract/common/libcontract.c#200

makes an ioctl call and we end up in:

usr/src/uts/common/fs/ctfs/ctfs_ctl.c#208

     208        case CT_CNEWCT:
     209                error = contract_newct(ct);
     210                break;

usr/src/uts/common/os/contract.c#contract_newct

     582 contract_newct(contract_t *ct)
     583 {
     584        return (ct->ct_type->ct_type_ops->contop_newct(ct));
     585 }

That sure looks like an implementation to me.  It uses an ops vector 
that is defined here:

usr/src/uts/common/sys/contract_impl.h#204

-- 
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to