Lines Matching refs:bto
797 struct btobj * bto;
830 MALLOC(bto, struct btobj *, sizeof(struct btobj), M_TEMP, M_WAITOK);
831 bto->iterator.hint.nodeNum = 0;
833 result = buildkey(hfsmp, descp, &bto->key, 0);
838 encoding = hfs_pickencoding(bto->key.nodeName.unicode,
839 bto->key.nodeName.length);
847 datalen = buildthread((void*)&bto->key, &bto->data, std_hfs,
849 btdata.bufferAddress = &bto->data;
865 buildthreadkey(nextCNID, std_hfs, (CatalogKey *) &bto->iterator.key);
867 result = BTInsertRecord(fcb, &bto->iterator, &btdata, datalen);
896 buildrecord(attrp, nextCNID, std_hfs, encoding, &bto->data, &datalen);
897 btdata.bufferAddress = &bto->data;
901 bcopy(&bto->key, &bto->iterator.key, sizeof(bto->key));
903 result = BTInsertRecord(fcb, &bto->iterator, &btdata, datalen);
910 buildthreadkey(nextCNID, std_hfs, (CatalogKey *)&bto->iterator.key);
911 if (BTDeleteRecord(fcb, &bto->iterator)) {
930 promotekey(hfsmp, (HFSCatalogKey *)&bto->iterator.key, pluskey, &encoding);
933 pluskey = (HFSPlusCatalogKey *)&bto->iterator.key;
935 builddesc(pluskey, nextCNID, bto->iterator.hint.nodeNum,
945 FREE(bto, M_TEMP);
1967 struct btobj * bto;
1994 MALLOC(bto, struct btobj *, sizeof(struct btobj), M_TEMP, M_WAITOK);
1995 bto->iterator.hint.nodeNum = 0;
1996 rsrcforkp = &bto->data.hfsPlusFile.resourceFork;
1998 result = buildkey(hfsmp, descp, &bto->key, 0);
2005 encoding = hfs_pickencoding(bto->key.nodeName.unicode, bto->key.nodeName.length);
2008 datalen = buildthread((void*)&bto->key, &bto->data, 0, 0);
2009 btdata.bufferAddress = &bto->data;
2014 buildthreadkey(nextCNID, 0, (CatalogKey *) &bto->iterator.key);
2016 result = BTInsertRecord(fcb, &bto->iterator, &btdata, datalen);
2048 buildrecord(attrp, nextCNID, 0, encoding, &bto->data, &datalen);
2050 bto->data.hfsPlusFile.hl_prevLinkID = 0;
2051 bto->data.hfsPlusFile.hl_nextLinkID = nextlinkid;
2052 bto->data.hfsPlusFile.hl_linkReference = attrp->ca_linkref;
2056 if ((result = cat_makealias(hfsmp, attrp->ca_linkref, &bto->data.hfsPlusFile))) {
2061 btdata.bufferAddress = &bto->data;
2065 bcopy(&bto->key, &bto->iterator.key, sizeof(bto->key));
2067 result = BTInsertRecord(fcb, &bto->iterator, &btdata, datalen);
2081 buildthreadkey(nextCNID, 0, (CatalogKey *)&bto->iterator.key);
2082 if (BTDeleteRecord(fcb, &bto->iterator)) {
2095 FREE(bto, M_TEMP);