musl patches [v4] (#15066)

This commit is contained in:
Meghan Denny
2024-11-11 19:23:58 -08:00
committed by GitHub
parent 2b9abc20da
commit 797958082c
9 changed files with 73 additions and 12 deletions

View File

@@ -1,10 +1,10 @@
import { dlopen, ptr } from "bun:ffi";
import { libcPathForDlopen } from "harness";
var lazyMkfifo: any;
export function mkfifo(path: string, permissions: number = 0o666): void {
if (!lazyMkfifo) {
const suffix = process.platform === "darwin" ? "dylib" : "so.6";
lazyMkfifo = dlopen(`libc.${suffix}`, {
lazyMkfifo = dlopen(libcPathForDlopen(), {
mkfifo: {
args: ["ptr", "i32"],
returns: "i32",