|
|
716654 |
/**************************************************************************/
|
|
|
716654 |
/* mmglue: midipix architecture- and target-specific bits for musl libc */
|
|
|
716654 |
/* Copyright (C) 2013--2023 SysDeer Technologies, LLC */
|
|
|
716654 |
/* Released under the Standard MIT License; see COPYING.MMGLUE. */
|
|
|
716654 |
/**************************************************************************/
|
|
|
716654 |
|
|
|
e1f10b |
#include <sys/fs.h>
|
|
|
e1f10b |
#include "syscall.h"
|
|
|
e1f10b |
|
|
|
e1f10b |
int __fs_rpath(int fdat, const char * path, int options,
|
|
|
e1f10b |
char * buffer, size_t buflen)
|
|
|
e1f10b |
{
|
|
|
1509ed |
return syscall(SYS_fs_rpath,fdat,path,options,buffer,buflen);
|
|
|
e1f10b |
}
|
|
|
e1f10b |
|
|
|
e1f10b |
int __fs_apath(int fdat, const char * path, int options,
|
|
|
e1f10b |
char * buffer, size_t buflen)
|
|
|
e1f10b |
{
|
|
|
1509ed |
return syscall(SYS_fs_apath,fdat,path,options,buffer,buflen);
|
|
|
e1f10b |
}
|
|
|
e1f10b |
|
|
|
e1f10b |
int __fs_npath(int fdat, const char * path, int options,
|
|
|
e1f10b |
char * buffer, size_t buflen)
|
|
|
e1f10b |
{
|
|
|
1509ed |
return syscall(SYS_fs_npath,fdat,path,options,buffer,buflen);
|
|
|
e1f10b |
}
|
|
|
e1f10b |
|
|
|
e1f10b |
int __fs_dpath(int fdat, const char * path, int options,
|
|
|
e1f10b |
char * buffer, size_t buflen)
|
|
|
e1f10b |
{
|
|
|
1509ed |
return syscall(SYS_fs_dpath,fdat,path,options,buffer,buflen);
|
|
|
e1f10b |
}
|
|
|
307129 |
|
|
|
307129 |
int __fs_mkdir(int fdat, const char * path, mode_t mode, uint32_t ace_flags)
|
|
|
307129 |
{
|
|
|
307129 |
return syscall(SYS_fs_mkdir,fdat,path,mode,ace_flags);
|
|
|
307129 |
}
|
|
|
307129 |
|
|
|
307129 |
int __fs_chmod(int fdat, const char * path, mode_t mode, int flags, uint32_t ace_flags)
|
|
|
307129 |
{
|
|
|
307129 |
return syscall(SYS_fs_chmod,fdat,path,mode,flags,ace_flags);
|
|
|
307129 |
}
|
|
|
5ea34c |
|
|
|
5ea34c |
int __fs_tmpfile(int flags)
|
|
|
5ea34c |
{
|
|
|
5ea34c |
return syscall(SYS_fs_tmpfile,flags);
|
|
|
5ea34c |
}
|
|
|
5ea34c |
|
|
|
5ea34c |
int __fs_tmpdir(int flags)
|
|
|
5ea34c |
{
|
|
|
5ea34c |
return syscall(SYS_fs_tmpdir,flags);
|
|
|
5ea34c |
}
|