emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

Typo in library_syscall.js

Open vedadkajtaz opened this issue 7 years ago • 3 comments

Hello,

This seems to be a typo in library_syscall.js regarding the syscall 265:

    SYS_clock_gettime: 265,

vs

  __syscall265: function(which, varargs) { // clock_nanosleep
#if SYSCALL_DEBUG
    err('warning: ignoring SYS_clock_nanosleep');
#endif
    return 0;
  },

That being said, I wonder what is the purpose of this syscall - SYS_clock_gettime is only being referenced from int __clock_gettime(clockid_t clk, struct timespec *ts) in musl's clock_gettime.c, yet the linker retains the implementation in library.js.

vedadkajtaz avatar Feb 26 '19 13:02 vedadkajtaz

I don't think it's used, yeah. Would still be nice to fix the typo - maybe you want to write a PR?

kripken avatar Feb 27 '19 18:02 kripken

This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.

stale[bot] avatar Feb 27 '20 19:02 stale[bot]

Looks like this syscall was removed meanwhile.

kripken avatar Feb 27 '20 21:02 kripken