1/* Create-if-absent for remotes that have no hard links.2 *3 * The folder backend publishes by hard-linking a temp file into place, which4 * fails when the name is taken. exFAT, FAT and many SMB shares have no hard5 * links at all, so there `link` fails even on an absent name and every put6 * looks like a collision. O_CREAT|O_EXCL is the same test — the kernel creates7 * the name or reports it taken — and works on those filesystems.8 */910#ifndef KOH_CREATE_H11#define KOH_CREATE_H1213#include <stddef.h>1415/* Creates `path` with `data`. Returns 1 when created, 0 when the name already16 * exists, -1 on any other error (nothing is left behind in that case). */17int koh_create_exclusive(const char *path, const void *data, size_t len);1819#endif