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

Function f_selectfork

dep/hfsutils/libhfs/file.c:103–113  ·  view source on GitHub ↗

* NAME: file->selectfork() * DESCRIPTION: choose a fork for file operations */

Source from the content-addressed store, hash-verified

101 * DESCRIPTION: choose a fork for file operations
102 */
103void f_selectfork(hfsfile *file, int fork)
104{
105 file->fork = fork;
106
107 memcpy(&file->ext, fork == fkData ?
108 &file->cat.u.fil.filExtRec : &file->cat.u.fil.filRExtRec,
109 sizeof(ExtDataRec));
110
111 file->fabn = 0;
112 file->pos = 0;
113}
114
115/*
116 * NAME: file->getptrs()

Callers 5

f_initFunction · 0.85
v_readmdbFunction · 0.85
hfs_openFunction · 0.85
hfs_setforkFunction · 0.85
hfs_deleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected