Skip to content

Commit

Permalink
struct statx cannot be used "as" struct stat
Browse files Browse the repository at this point in the history
The field names are different.
  • Loading branch information
xry111 committed Jul 4, 2024
1 parent f4e2279 commit be4dc08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/world-compat-details/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,8 @@ glibc 提供了两个函数,可以被用于注册信号处理函数,这两
`newfstatat`

在未来新的 32 位平台 (含 32 位 LoongArch) 中,为了避免 2037 年问题,
所有 `*stat*` 函数仍将调用 `statx`但将直接以 `struct statx` 作为
`struct stat` 以避免数据结构转换
所有 `*stat*` 函数仍将调用 `statx`但将令 `struct stat``struct statx`
具有相同布局以避免数据结构转换

[^7]: 这些函数最终会调用 [__fstatat64_time64](https://elixir.bootlin.com/glibc/glibc-2.38/source/sysdeps/unix/sysv/linux/fstatat64.c#L157)

Expand Down

0 comments on commit be4dc08

Please sign in to comment.