On Tue, Jan 20, 2009 at 10:54 PM, yang <yanggongming at huawei.com> wrote: > Hi all, > when define _KERNEL, I use: > FILE * fp; > fp=fileopen("path","w"); > > > and the sun studio compile promp errors. > > So in C files , how can I open a fild and write something into it in _KERNEL > stat?
"FILE" is a structure defined by the c library. FILE along with operations on it is not something you can use in the kernel. kobj_[open|read|write] functions allows you to access files using a path string as in user mode. AFAIK kobj_* functions are not public and hence are not supported in any way. BTW, this is more a generic solaris question than a cluster question. You would get a more suitable response if you ask the correct forum in opensolaris. Maybe the file system forum. cheers Binu > Thanks > -- > This message posted from opensolaris.org > _______________________________________________ > ha-clusters-discuss mailing list > ha-clusters-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/ha-clusters-discuss >