Repository navigation
Expand file tree
/
Copy pathfs.wave
More file actions
45 lines (40 loc) · 2.01 KB
/
Copy pathfs.wave
File metadata and controls
45 lines (40 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// This file is part of the Wave language project.
// Copyright (c) 2024-2026 Wave Foundation and contributors
// SPDX-License-Identifier: Apache-2.0
// Linux filesystem provider selected by target architecture.
#[target(arch="x86_64")]
pub import("std::sys::linux::amd64::fs")::{
FS_O_RDONLY, FS_O_WRONLY, FS_O_RDWR, FS_O_CREAT, FS_O_EXCL,
FS_O_TRUNC, FS_O_APPEND, FS_O_NONBLOCK,
FS_F_OK, FS_X_OK, FS_W_OK, FS_R_OK,
FS_SEEK_SET, FS_SEEK_CUR, FS_SEEK_END, FS_F_GETFL, FS_F_SETFL,
open, close, dup, dup2, pipe, fsync, fcntl, read, write, getcwd,
chdir, access, lseek, unlink, mkdir, rmdir, rename_path, Stat, stat, fstat, ftruncate, same_file,
};
#[target(arch="aarch64")]
pub import("std::sys::linux::arm64::fs")::{
FS_O_RDONLY, FS_O_WRONLY, FS_O_RDWR, FS_O_CREAT, FS_O_EXCL,
FS_O_TRUNC, FS_O_APPEND, FS_O_NONBLOCK,
FS_F_OK, FS_X_OK, FS_W_OK, FS_R_OK,
FS_SEEK_SET, FS_SEEK_CUR, FS_SEEK_END, FS_F_GETFL, FS_F_SETFL,
open, close, dup, dup2, pipe, fsync, fcntl, read, write, getcwd,
chdir, access, lseek, unlink, mkdir, rmdir, rename_path, Stat, stat, fstat, ftruncate, same_file,
};
#[target(arch="riscv64")]
pub import("std::sys::linux::riscv64::fs")::{
FS_O_RDONLY, FS_O_WRONLY, FS_O_RDWR, FS_O_CREAT, FS_O_EXCL,
FS_O_TRUNC, FS_O_APPEND, FS_O_NONBLOCK,
FS_F_OK, FS_X_OK, FS_W_OK, FS_R_OK,
FS_SEEK_SET, FS_SEEK_CUR, FS_SEEK_END, FS_F_GETFL, FS_F_SETFL,
open, close, dup, dup2, pipe, fsync, fcntl, read, write, getcwd,
chdir, access, lseek, unlink, mkdir, rmdir, rename_path, Stat, stat, fstat, ftruncate, same_file,
};
#[target(arch="loongarch64")]
pub import("std::sys::linux::loong64::fs")::{
FS_O_RDONLY, FS_O_WRONLY, FS_O_RDWR, FS_O_CREAT, FS_O_EXCL,
FS_O_TRUNC, FS_O_APPEND, FS_O_NONBLOCK,
FS_F_OK, FS_X_OK, FS_W_OK, FS_R_OK,
FS_SEEK_SET, FS_SEEK_CUR, FS_SEEK_END, FS_F_GETFL, FS_F_SETFL,
open, close, dup, dup2, pipe, fsync, fcntl, read, write, getcwd,
chdir, access, lseek, unlink, mkdir, rmdir, rename_path, Stat, stat, fstat, ftruncate, same_file,
};