Debian Codegraph @

debian/missing-sources/rustix/src/fs/mod.rs

raw symbols SCIP
1 //! Filesystem operations.
2
3 mod abs;
4 #[cfg(not(target_os = "redox"))]
5 mod at;
6 mod constants;
7 #[cfg(linux_kernel)]
8 mod copy_file_range;
9 #[cfg(all(feature = "alloc", not(any(target_os = "espidf", target_os = "redox"))))]
10 mod dir;
11 #[cfg(not(any(
12 apple,
13 netbsdlike,
14 target_os = "dragonfly",
15 target_os = "espidf",
16 target_os = "haiku",
17 target_os = "horizon",
18 target_os = "redox",
19 target_os = "solaris",
20 target_os = "vita",
21 )))]
22 mod fadvise;
23 pub(crate) mod fcntl;
24 #[cfg(apple)]
25 mod fcntl_apple;
26 #[cfg(apple)]
27 mod fcopyfile;
28 pub(crate) mod fd;
29 #[cfg(all(apple, feature = "alloc"))]
30 mod getpath;
31 #[cfg(not(target_os = "wasi"))] // WASI doesn't have get[gpu]id.
32 mod id;
33 #[cfg(linux_raw_dep)]
34 pub mod inotify;
35 #[cfg(linux_kernel)]
36 mod ioctl;
37 #[cfg(not(any(
38 target_os = "espidf",
39 target_os = "haiku",
40 target_os = "horizon",
41 target_os = "vita",
42 target_os = "wasi"
43 )))]
44 mod makedev;
45 #[cfg(any(linux_kernel, target_os = "freebsd"))]
46 mod memfd_create;
47 #[cfg(linux_raw_dep)]
48 mod openat2;
49 #[cfg(linux_kernel)]
50 mod raw_dir;
51 mod seek_from;
52 #[cfg(target_os = "linux")]
53 mod sendfile;
54 #[cfg(not(any(target_os = "espidf", target_os = "redox")))]
55 mod special;
56 #[cfg(linux_kernel)]
57 mod statx;
58 #[cfg(not(any(
59 target_os = "espidf",
60 target_os = "horizon",
61 target_os = "redox",
62 target_os = "vita",
63 target_os = "wasi"
64 )))]
65 mod sync;
66 #[cfg(any(apple, linux_kernel, target_os = "hurd"))]
67 mod xattr;
68
69 pub use abs::*;
70 #[cfg(not(target_os = "redox"))]
71 pub use at::*;
72 pub use constants::*;
73 #[cfg(linux_kernel)]
74 pub use copy_file_range::copy_file_range;
75 #[cfg(all(feature = "alloc", not(any(target_os = "espidf", target_os = "redox"))))]
76 pub use dir::{Dir, DirEntry};
77 #[cfg(not(any(
78 apple,
79 netbsdlike,
80 target_os = "dragonfly",
81 target_os = "espidf",
82 target_os = "haiku",
83 target_os = "horizon",
84 target_os = "redox",
85 target_os = "solaris",
86 target_os = "vita",
87 )))]
88 pub use fadvise::fadvise;
89 pub use fcntl::*;
90 #[cfg(apple)]
91 pub use fcntl_apple::*;
92 #[cfg(apple)]
93 pub use fcopyfile::*;
94 pub use fd::*;
95 #[cfg(all(apple, feature = "alloc"))]
96 pub use getpath::getpath;
97 #[cfg(not(target_os = "wasi"))]
98 pub use id::*;
99 #[cfg(linux_kernel)]
100 pub use ioctl::*;
101 #[cfg(not(any(
102 target_os = "espidf",
103 target_os = "haiku",
104 target_os = "horizon",
105 target_os = "vita",
106 target_os = "wasi"
107 )))]
108 pub use makedev::*;
109 #[cfg(any(linux_kernel, target_os = "freebsd"))]
110 pub use memfd_create::memfd_create;
111 #[cfg(linux_raw_dep)]
112 pub use openat2::openat2;
113 #[cfg(linux_kernel)]
114 pub use raw_dir::{RawDir, RawDirEntry};
115 pub use seek_from::SeekFrom;
116 #[cfg(target_os = "linux")]
117 pub use sendfile::sendfile;
118 #[cfg(not(any(target_os = "espidf", target_os = "redox")))]
119 pub use special::*;
120 #[cfg(linux_kernel)]
121 pub use statx::*;
122 #[cfg(not(any(
123 target_os = "espidf",
124 target_os = "horizon",
125 target_os = "redox",
126 target_os = "vita",
127 target_os = "wasi"
128 )))]
129 pub use sync::sync;
130 #[cfg(any(apple, linux_kernel, target_os = "hurd"))]
131 pub use xattr::*;
132
133 /// Re-export types common to POSIX-ish platforms.
134 #[cfg(feature = "std")]
135 #[cfg(unix)]
136 pub use std::os::unix::fs::{DirEntryExt, FileExt, FileTypeExt, MetadataExt, OpenOptionsExt};
137 #[cfg(feature = "std")]
138 #[cfg(all(wasi_ext, target_os = "wasi"))]
139 pub use std::os::wasi::fs::{DirEntryExt, FileExt, FileTypeExt, MetadataExt, OpenOptionsExt};