mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
refactor: eliminate os_unix.c #21621
This commit is contained in:
@@ -779,6 +779,38 @@ int os_setperm(const char *const name, int perm)
|
||||
return (r == kLibuvSuccess ? OK : FAIL);
|
||||
}
|
||||
|
||||
#if defined(HAVE_ACL)
|
||||
# ifdef HAVE_SYS_ACL_H
|
||||
# include <sys/acl.h>
|
||||
# endif
|
||||
# ifdef HAVE_SYS_ACCESS_H
|
||||
# include <sys/access.h>
|
||||
# endif
|
||||
|
||||
// Return a pointer to the ACL of file "fname" in allocated memory.
|
||||
// Return NULL if the ACL is not available for whatever reason.
|
||||
vim_acl_T os_get_acl(const char_u *fname)
|
||||
{
|
||||
vim_acl_T ret = NULL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Set the ACL of file "fname" to "acl" (unless it's NULL).
|
||||
void os_set_acl(const char_u *fname, vim_acl_T aclent)
|
||||
{
|
||||
if (aclent == NULL) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void os_free_acl(vim_acl_T aclent)
|
||||
{
|
||||
if (aclent == NULL) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef UNIX
|
||||
/// Checks if the current user owns a file.
|
||||
///
|
||||
|
Reference in New Issue
Block a user