* NAME: file->selectfork() * DESCRIPTION: choose a fork for file operations */
| 101 | * DESCRIPTION: choose a fork for file operations |
| 102 | */ |
| 103 | void 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() |
no outgoing calls
no test coverage detected