Skip to content

Commit

Permalink
jsc/wasm32/wasm32.jsc: add linkat stub
Browse files Browse the repository at this point in the history
  • Loading branch information
pipcet committed Feb 3, 2021
1 parent 43b1184 commit b0318c5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jsc/wasm32/wasm32.jsc
Original file line number Diff line number Diff line change
Expand Up @@ -5537,6 +5537,18 @@ ThinThin.pipe2 = function (ptr, flags)
return 0;
};

ThinThin.linkat = function (oldfdno, coldpath,
newfdno, cnewpath,
flags)
{
let oldpath = CStringAt(this.HEAPU8, coldpath);
let newpath = CStringAt(this.HEAPU8, cnewpath);

console.log("linkat", oldpath, newpath);

return 0;
};

ThinThin.renameat2 = function (oldfdno, oldpathptr, newfdno, newpathptr, flags)
{
var oldpath = CStringAt(this.HEAPU8, oldpathptr);
Expand Down

0 comments on commit b0318c5

Please sign in to comment.