Commit 41063ba
authored
statx: Add an example of using this to determine mountpoint (#831)
- This use case is a specific reason to directly use the `statx`
system call
- It's a bit of a subtle API because there's 4 different flags
involved, and it's not necessarily obvious that the relevant
bitmasks aren't (yet) exposed in rustix, so one needs to use
libc/linux-raw-sys directly
- On the general principle of adding examples1 parent 6556fd9 commit 41063ba
1 file changed
+29
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
24 | 53 | | |
25 | 54 | | |
26 | 55 | | |
| |||
0 commit comments