Move everything to negative errno return types (#1499)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled

This commit is contained in:
trapexit 2025-07-25 17:53:48 -05:00 • committed by GitHub
parent 2b500f194a
commit e8cd74cab0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
177 changed files with 5952 additions and 5843 deletions

View file

@ -161,8 +161,8 @@ _create_core(const Branch *branch_,
fullpath = fs::path::make(branch_->path,fusepath_);
rv = ::_create_core(fullpath,mode_,umask_,ffi_->flags);
if(rv == -1)
return -errno;
if(rv < 0)
return rv;
fi = new FileInfo(rv,branch_,fusepath_,ffi_->direct_io);
@ -190,18 +190,18 @@ _create(const Policy::Search &searchFunc_,
fusedirpath = fs::path::dirname(fusepath_);
rv = searchFunc_(branches_,fusedirpath,existingpaths);
if(rv == -1)
return -errno;
if(rv < 0)
return rv;
rv = createFunc_(branches_,fusedirpath,createpaths);
if(rv == -1)
return -errno;
if(rv < 0)
return rv;
rv = fs::clonepath_as_root(existingpaths[0]->path,
createpaths[0]->path,
fusedirpath);
if(rv == -1)
return -errno;
if(rv < 0)
return rv;
return ::_create_core(createpaths[0],
fusepath_,
@ -319,7 +319,7 @@ _create_update_lambda()
return
[=](auto &val_)
{
fmt::print(stderr,"THIS SHOULD NOT HAPPEN");
fmt::println(stderr,"THIS SHOULD NOT HAPPEN");
abort();
};
}