%{ #include #include #include #include #include #include #include %} function nfs_client:string(_clp:long) %{ struct nfs_client *clp = (struct nfs_client *)(long) kread(&(THIS->_clp)); char buf[MAXSTRINGLEN], *str, octet[10]; int cc=0, i, j; unsigned short ofs, len; sprintf(buf+cc, "clp: %p: fscache %p ", clp, clp->fscache); cc = strlen(buf); snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s", buf); CATCH_DEREF_FAULT(); %}