mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
musl patches [v4] (#15066)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user