MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / fs_link

Function fs_link

tinyemu/fs_disk.c:473–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473static int fs_link(FSDevice *fs, FSFile *df, FSFile *f, const char *name)
474{
475 char *path;
476
477 path = compose_path(df->path, name);
478 if (link(f->path, path) < 0) {
479 free(path);
480 return -errno_to_p9(errno);
481 }
482 free(path);
483 return 0;
484}
485
486static int fs_symlink(FSDevice *fs, FSQID *qid,
487 FSFile *f, const char *name, const char *symgt, uint32_t gid)

Callers

nothing calls this directly

Calls 2

errno_to_p9Function · 0.85
compose_pathFunction · 0.70

Tested by

no test coverage detected