summaryrefslogtreecommitdiffhomepage
path: root/src/arch
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-05-01 03:47:02 +0000
committermidipix <writeonce@midipix.org>2020-05-01 19:03:04 +0000
commit5ea34cb56684081537ee33b2b786d332c91764f4 (patch)
treef3c1e9b9b6cfc0ebca304ab8e1bbef9a7d6f9209 /src/arch
parent8524cb9777da57ee070d5971e9426165daf96fb2 (diff)
downloadmmglue-5ea34cb56684081537ee33b2b786d332c91764f4.tar.bz2
mmglue-5ea34cb56684081537ee33b2b786d332c91764f4.tar.xz
glue layer: added __fs_tmp{file|dir}(), for fast & atomic tmpfs obj creation.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/nt32/fs.c10
-rw-r--r--src/arch/nt64/fs.c10
2 files changed, 20 insertions, 0 deletions
diff --git a/src/arch/nt32/fs.c b/src/arch/nt32/fs.c
index 93ccd82..11c9b7d 100644
--- a/src/arch/nt32/fs.c
+++ b/src/arch/nt32/fs.c
@@ -34,3 +34,13 @@ int __fs_chmod(int fdat, const char * path, mode_t mode, int flags, uint32_t ace
{
return syscall(SYS_fs_chmod,fdat,path,mode,flags,ace_flags);
}
+
+int __fs_tmpfile(int flags)
+{
+ return syscall(SYS_fs_tmpfile,flags);
+}
+
+int __fs_tmpdir(int flags)
+{
+ return syscall(SYS_fs_tmpdir,flags);
+}
diff --git a/src/arch/nt64/fs.c b/src/arch/nt64/fs.c
index 93ccd82..11c9b7d 100644
--- a/src/arch/nt64/fs.c
+++ b/src/arch/nt64/fs.c
@@ -34,3 +34,13 @@ int __fs_chmod(int fdat, const char * path, mode_t mode, int flags, uint32_t ace
{
return syscall(SYS_fs_chmod,fdat,path,mode,flags,ace_flags);
}
+
+int __fs_tmpfile(int flags)
+{
+ return syscall(SYS_fs_tmpfile,flags);
+}
+
+int __fs_tmpdir(int flags)
+{
+ return syscall(SYS_fs_tmpdir,flags);
+}