• Home
  • Raw
  • Download

Lines Matching +full:linux +full:- +full:s390x

1 //! Get filesystem statistics, non-portably
4 #[cfg(not(any(target_os = "linux", target_os = "android")))]
23 #[cfg(target_os = "linux")]
37 if #[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))] {
40 (fd: libc::c_int, buf: *mut type_of_statfs) -> libc::c_int
43 (path: *const libc::c_char, buf: *mut type_of_statfs) -> libc::c_int
48 (fd: libc::c_int, buf: *mut type_of_statfs) -> libc::c_int
51 (path: *const libc::c_char, buf: *mut type_of_statfs) -> libc::c_int
65 #[cfg(all(target_os = "linux", target_arch = "s390x"))]
67 #[cfg(all(target_os = "linux", any(target_env = "musl", target_env = "ohos")))]
69 #[cfg(all(target_os = "linux", target_env = "uclibc"))]
72 target_os = "linux",
74 target_arch = "s390x",
86 all(target_os = "linux", target_arch = "s390x"),
87 all(target_os = "linux", any(target_env = "musl", target_env = "ohos")),
89 target_os = "linux",
90 not(any(target_arch = "s390x", target_env = "musl", target_env = "ohos"))
96 // These constants are defined without documentation in the Linux headers, so we
98 #[cfg(any(target_os = "linux", target_os = "android"))]
102 #[cfg(any(target_os = "linux", target_os = "android"))]
106 #[cfg(any(target_os = "linux", target_os = "android"))]
109 #[cfg(any(target_os = "linux", target_os = "android"))]
113 #[cfg(any(target_os = "linux", target_os = "android"))]
116 #[cfg(any(target_os = "linux", target_os = "android"))]
120 #[cfg(any(target_os = "linux", target_os = "android"))]
124 #[cfg(any(target_os = "linux", target_os = "android"))]
128 #[cfg(any(target_os = "linux", target_os = "android"))]
132 #[cfg(any(target_os = "linux", target_os = "android"))]
135 #[cfg(any(target_os = "linux", target_os = "android"))]
138 #[cfg(any(target_os = "linux", target_os = "android"))]
142 #[cfg(any(target_os = "linux", target_os = "android"))]
146 #[cfg(any(target_os = "linux", target_os = "android"))]
149 #[cfg(any(target_os = "linux", target_os = "android"))]
153 #[cfg(any(target_os = "linux", target_os = "android"))]
157 #[cfg(any(target_os = "linux", target_os = "android"))]
161 #[cfg(any(target_os = "linux", target_os = "android"))]
165 #[cfg(any(target_os = "linux", target_os = "android"))]
169 #[cfg(any(target_os = "linux", target_os = "android"))]
173 #[cfg(any(target_os = "linux", target_os = "android"))]
177 #[cfg(any(target_os = "linux", target_os = "android"))]
181 #[cfg(any(target_os = "linux", target_os = "android"))]
184 #[cfg(any(target_os = "linux", target_os = "android"))]
188 #[cfg(any(target_os = "linux", target_os = "android"))]
192 #[cfg(any(target_os = "linux", target_os = "android"))]
196 #[cfg(any(target_os = "linux", target_os = "android"))]
200 #[cfg(any(target_os = "linux", target_os = "android"))]
204 #[cfg(any(target_os = "linux", target_os = "android"))]
208 #[cfg(any(target_os = "linux", target_os = "android"))]
212 #[cfg(any(target_os = "linux", target_os = "android"))]
216 #[cfg(any(target_os = "linux", target_os = "android"))]
219 #[cfg(any(target_os = "linux", target_os = "android"))]
222 #[cfg(any(target_os = "linux", target_os = "android"))]
226 #[cfg(any(target_os = "linux", target_os = "android"))]
230 #[cfg(any(target_os = "linux", target_os = "android"))]
234 #[cfg(any(target_os = "linux", target_os = "android"))]
238 #[cfg(any(target_os = "linux", target_os = "android"))]
242 #[cfg(any(target_os = "linux", target_os = "android"))]
246 #[cfg(any(target_os = "linux", target_os = "android"))]
250 #[cfg(any(target_os = "linux", target_os = "android"))]
254 #[cfg(any(target_os = "linux", target_os = "android"))]
258 #[cfg(any(target_os = "linux", target_os = "android"))]
262 #[cfg(any(target_os = "linux", target_os = "android"))]
265 #[cfg(any(target_os = "linux", target_os = "android"))]
268 #[cfg(any(target_os = "linux", target_os = "android"))]
271 #[cfg(any(target_os = "linux", target_os = "android"))]
274 #[cfg(any(target_os = "linux", target_os = "android"))]
277 #[cfg(any(target_os = "linux", target_os = "android"))]
280 #[cfg(any(target_os = "linux", target_os = "android"))]
283 #[cfg(any(target_os = "linux", target_os = "android"))]
287 #[cfg(any(target_os = "linux", target_os = "android"))]
291 #[cfg(any(target_os = "linux", target_os = "android"))]
295 any(target_os = "linux", target_os = "android"),
310 pub fn filesystem_type(&self) -> FsType { in filesystem_type()
315 #[cfg(not(any(target_os = "linux", target_os = "android")))]
317 pub fn filesystem_type_name(&self) -> &str { in filesystem_type_name()
325 pub fn optimal_transfer_size(&self) -> i32 { in optimal_transfer_size()
332 pub fn optimal_transfer_size(&self) -> u32 { in optimal_transfer_size()
337 #[cfg(all(target_os = "linux", target_arch = "s390x"))]
339 pub fn optimal_transfer_size(&self) -> u32 { in optimal_transfer_size()
346 all(target_os = "linux", any(target_env = "musl", target_env = "ohos"))
349 pub fn optimal_transfer_size(&self) -> libc::c_ulong { in optimal_transfer_size()
355 target_os = "linux",
357 target_arch = "s390x",
364 pub fn optimal_transfer_size(&self) -> libc::__fsword_t { in optimal_transfer_size()
369 #[cfg(all(target_os = "linux", target_env = "uclibc"))]
371 pub fn optimal_transfer_size(&self) -> libc::c_int { in optimal_transfer_size()
378 pub fn optimal_transfer_size(&self) -> libc::c_long { in optimal_transfer_size()
385 pub fn optimal_transfer_size(&self) -> u64 { in optimal_transfer_size()
392 pub fn block_size(&self) -> u32 { in block_size()
397 // f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
398 #[cfg(all(target_os = "linux", target_arch = "s390x"))]
400 pub fn block_size(&self) -> u32 { in block_size()
405 // f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
406 #[cfg(all(target_os = "linux", any(target_env = "musl", target_env = "ohos")))]
408 pub fn block_size(&self) -> libc::c_ulong { in block_size()
413 // f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
414 #[cfg(all(target_os = "linux", target_env = "uclibc"))]
416 pub fn block_size(&self) -> libc::c_int { in block_size()
421 // f_bsize on linux: https://github.com/torvalds/linux/blob/master/fs/nfs/super.c#L471
423 target_os = "linux",
425 target_arch = "s390x",
432 pub fn block_size(&self) -> libc::__fsword_t { in block_size()
439 pub fn block_size(&self) -> u64 { in block_size()
446 pub fn block_size(&self) -> libc::c_ulong { in block_size()
453 pub fn block_size(&self) -> libc::c_long { in block_size()
470 pub fn flags(&self) -> MntFlags { in flags()
477 #[cfg(target_os = "linux")]
479 pub fn flags(&self) -> FsFlags { in flags()
486 pub fn maximum_name_length(&self) -> u32 { in maximum_name_length()
491 #[cfg(all(target_os = "linux", target_arch = "s390x"))]
493 pub fn maximum_name_length(&self) -> u32 { in maximum_name_length()
498 #[cfg(all(target_os = "linux", any(target_env = "musl", target_env = "ohos")))]
500 pub fn maximum_name_length(&self) -> libc::c_ulong { in maximum_name_length()
505 #[cfg(all(target_os = "linux", target_env = "uclibc"))]
507 pub fn maximum_name_length(&self) -> libc::c_int { in maximum_name_length()
513 target_os = "linux",
515 target_arch = "s390x",
522 pub fn maximum_name_length(&self) -> libc::__fsword_t { in maximum_name_length()
529 pub fn maximum_name_length(&self) -> libc::c_ulong { in maximum_name_length()
541 target_os = "linux",
544 pub fn blocks(&self) -> u64 { in blocks()
551 pub fn blocks(&self) -> libc::c_long { in blocks()
558 pub fn blocks(&self) -> u32 { in blocks()
570 target_os = "linux",
573 pub fn blocks_free(&self) -> u64 { in blocks_free()
580 pub fn blocks_free(&self) -> libc::c_long { in blocks_free()
587 pub fn blocks_free(&self) -> u32 { in blocks_free()
597 target_os = "linux",
600 pub fn blocks_available(&self) -> u64 { in blocks_available()
607 pub fn blocks_available(&self) -> libc::c_long { in blocks_available()
614 pub fn blocks_available(&self) -> i64 { in blocks_available()
621 pub fn blocks_available(&self) -> u32 { in blocks_available()
633 target_os = "linux",
636 pub fn files(&self) -> u64 { in files()
643 pub fn files(&self) -> libc::c_long { in files()
650 pub fn files(&self) -> u32 { in files()
661 target_os = "linux",
664 pub fn files_free(&self) -> u64 { in files_free()
671 pub fn files_free(&self) -> libc::c_long { in files_free()
678 pub fn files_free(&self) -> i64 { in files_free()
685 pub fn files_free(&self) -> u32 { in files_free()
690 pub fn filesystem_id(&self) -> fsid_t { in filesystem_id()
696 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
723 /// The result is OS-dependent. For a portable alternative, see
728 /// `path` - Path to any file within the file system to describe
729 pub fn statfs<P: ?Sized + NixPath>(path: &P) -> Result<Statfs> { in statfs()
741 /// The result is OS-dependent. For a portable alternative, see
746 /// `fd` - File descriptor of any open file within the file system to describe
747 pub fn fstatfs<T: AsRawFd>(fd: &T) -> Result<Statfs> { in fstatfs()