Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System calls: simple stubs #50

Open
mrsmkl opened this issue Oct 10, 2017 · 2 comments
Open

System calls: simple stubs #50

mrsmkl opened this issue Oct 10, 2017 · 2 comments

Comments

@mrsmkl
Copy link
Member

mrsmkl commented Oct 10, 2017

The following system calls just need simple stubs. They could be handled using the generic system calls, but it will be more efficient to add stubs.
29. Pause:nothing to implement
34. Nice: nothing to implement
35. Sync: nothing to implement
42. Pipe: nothing to implement
51. Acct: nothing to implement, but what is it?
66. Setsid: nothing to implement
75. Setrlimit: nothing to implement
96. Getpriority: nothing to implement
97. Setpriority: nothing to implement
104. Setitimer: nothing to implement
114. Wait4: nothing to implement
118. Fsync: nothing to implement?
121. setdomainname: nothing to implement
125. Mprotect: nothing to implement
148. Fdatasync: Nothing
150. Mlock: nothing
151. Munlock: nothing
152. Mlockall: nothing
153. Munlockall: nothing
163. Mremap: nothing
199, 200, 201, 202: getuid32, getgid32, geteuid32, getgid32: nothing
203, 204, 213, 214. Setreuid32, setregid32, setuid32, getuid32: nothing
218. Mincore: nothing
219. Madvise: nothing
265. Clock_nanosleep: nothing
272. Fadvise64: nothing
299. Futimesat: nothing
303. Linkat: nothing
308. Pselect: nothing
331. Pipe2: nothing

@terminaldweller
Copy link
Collaborator

how do you want them stubbed?

@mrsmkl
Copy link
Member Author

mrsmkl commented Oct 15, 2017

So that they work like in https://github.com/kripken/emscripten/blob/master/src/library_syscall.js
Mostly this means that they will just return some constant value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants