MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / adfBlockPtr2EntryName

Function adfBlockPtr2EntryName

dep/adflib/src/adf_link.c:39–61  ·  view source on GitHub ↗

* * */

Source from the content-addressed store, hash-verified

37 *
38 */
39RETCODE adfBlockPtr2EntryName(struct Volume *vol, SECTNUM nSect, SECTNUM lPar,
40 char **name, int32_t *size)
41{
42 struct bEntryBlock entryBlk;
43 struct Entry entry;
44
45 if (*name==0) {
46 adfReadEntryBlock(vol, nSect, &entryBlk);
47 *size = entryBlk.byteSize;
48return RC_OK;
49 adfEntBlock2Entry(&entryBlk, &entry); /*error*/
50/* if (entryBlk.secType!=ST_ROOT && entry.parent!=lPar)
51 printf("path=%s\n",path(vol,entry.parent));
52*/
53 *name = strdup("");
54 if (*name==NULL)
55 return RC_MALLOC;
56 return RC_OK;
57 }
58 else
59
60 return RC_OK;
61}
62
63/*##################################################################################*/

Callers

nothing calls this directly

Calls 2

adfReadEntryBlockFunction · 0.85
adfEntBlock2EntryFunction · 0.85

Tested by

no test coverage detected