Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: WebAssembly/wasi-libc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 04a7f78ae34986f3579adb522756fcdd1126067b
Choose a base ref
..
head repository: WebAssembly/wasi-libc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ac16f48453ec507ea744774dd9fa2abf180aa015
Choose a head ref
Showing with 6 additions and 4 deletions.
  1. +6 −4 libc-bottom-half/sources/__wasilibc_dt.c
10 changes: 6 additions & 4 deletions libc-bottom-half/sources/__wasilibc_dt.c
Original file line number Diff line number Diff line change
@@ -10,9 +10,9 @@ int __wasilibc_iftodt(int x) {
case S_IFIFO: return DT_FIFO;
case S_IFLNK: return DT_LNK;
#ifdef DT_SOCK
case S_IFSCK: return DT_SOCK;
case S_IFSOCK: return DT_SOCK;
#endif
case default: return DT_UNKNOWN;
default: return DT_UNKNOWN;
}
}

@@ -25,8 +25,10 @@ int __wasilibc_dttoif(int x) {
case DT_FIFO: return S_IFIFO;
case DT_LNK: return S_IFLNK;
#ifdef DT_SOCK
case DT_SOCK: return S_IFSCK;
case DT_SOCK: return S_IFSOCK;
#endif
case DT_UNKNOWN: return S_IFSCK;
case DT_UNKNOWN:
default:
return S_IFSOCK;
}
}