nova-nix-0.9.0.0: cbits/nn_winfs.h
/* Platform filesystem capabilities the store layer probes at runtime.
* Windows-only functionality. Every other platform compiles the constant
* 0 stub because the cabal c-sources entry is unconditional and the C99
* strict job lints every C file under cbits on Linux; the Haskell side
* picks the platform's answer at compile time and never calls the stub. */
#ifndef NN_WINFS_H
#define NN_WINFS_H
#include <wchar.h>
/* Make an EMPTY directory's namespace case-sensitive (the NTFS
* per-directory flag, the same mechanism WSL uses to host Linux trees).
* Returns 1 on success, 0 when refused or unsupported - a non-NTFS
* volume, policy, a non-empty directory, or a non-Windows build - and
* the caller falls back to the case-hack. The check guards external
* input (NAR trees choose which directories need it), so the failure
* path is a live branch, never an assert. */
int nn_dir_set_case_sensitive(const wchar_t *path);
#endif