-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Avoid varargs in socket syscall layer. NFC #27153
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { | ||
| "a.out.js": 268255, | ||
| "a.out.nodebug.wasm": 587588, | ||
| "total": 855843, | ||
| "a.out.nodebug.wasm": 587563, | ||
| "total": 855818, | ||
| "sent": [ | ||
| "IMG_Init", | ||
| "IMG_Load", | ||
|
|
@@ -4092,6 +4092,7 @@ | |
| "$__syscall_munmap", | ||
| "$__syscall_prlimit64", | ||
| "$__syscall_recvmmsg", | ||
| "$__syscall_sendmmsg", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder why this change effects this list?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably due to identical code folding (ICF). At least it saves 25 bytes. :)
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I think maybe some optimization phase was doing duplicate function merging before on this stub, but its no longer identical maybe. |
||
| "$__syscall_setdomainname", | ||
| "$__syscall_setpgid", | ||
| "$__syscall_setpriority", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The man page calls this
addrlen. Is there some reason to change it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to sync these syscalls argument names with their corresponding callers:
emscripten/system/lib/libc/musl/src/network/getpeername.c
Lines 4 to 7 in 8484a7b