mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
sync and try changes
This commit is contained in:
commit
dbd7edba10
811 changed files with 2014 additions and 11694 deletions
|
@ -52,19 +52,19 @@
|
|||
} while (0);
|
||||
#endif
|
||||
|
||||
forceinline void stat2linux_xnu(union metastat *ms) {
|
||||
static textstartup void __stat2linux_xnu(union metastat *ms) {
|
||||
SWITCHEROO(ms->xnu, ms->linux, st_dev, st_ino, st_nlink, st_mode, st_uid,
|
||||
st_gid, st_rdev, st_size, st_blksize, st_blocks, st_atim, st_mtim,
|
||||
st_ctim);
|
||||
}
|
||||
|
||||
forceinline void stat2linux_freebsd(union metastat *ms) {
|
||||
static textstartup void __stat2linux_freebsd(union metastat *ms) {
|
||||
SWITCHEROO(ms->freebsd, ms->linux, st_dev, st_ino, st_nlink, st_mode, st_uid,
|
||||
st_gid, st_rdev, st_size, st_blksize, st_blocks, st_atim, st_mtim,
|
||||
st_ctim);
|
||||
}
|
||||
|
||||
forceinline void stat2linux_openbsd(union metastat *ms) {
|
||||
static textstartup void __stat2linux_openbsd(union metastat *ms) {
|
||||
SWITCHEROO(ms->openbsd, ms->linux, st_dev, st_ino, st_nlink, st_mode, st_uid,
|
||||
st_gid, st_rdev, st_size, st_blksize, st_blocks, st_atim, st_mtim,
|
||||
st_ctim);
|
||||
|
@ -74,14 +74,14 @@ forceinline void stat2linux_openbsd(union metastat *ms) {
|
|||
* Transcodes “The Dismal Data Structure” from BSD→Linux ABI.
|
||||
* @asyncsignalsafe
|
||||
*/
|
||||
textstartup void stat2linux(void *ms) {
|
||||
textstartup void __stat2linux(void *ms) {
|
||||
if (ms) {
|
||||
if (SupportsXnu() && IsXnu()) {
|
||||
stat2linux_xnu((union metastat *)ms);
|
||||
__stat2linux_xnu((union metastat *)ms);
|
||||
} else if (SupportsFreebsd() && IsFreebsd()) {
|
||||
stat2linux_freebsd((union metastat *)ms);
|
||||
__stat2linux_freebsd((union metastat *)ms);
|
||||
} else if (SupportsOpenbsd() && IsOpenbsd()) {
|
||||
stat2linux_openbsd((union metastat *)ms);
|
||||
__stat2linux_openbsd((union metastat *)ms);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue