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

Implement various syscalls on Linux for systemd #1197

Closed
wants to merge 36 commits into from

Conversation

Dennisbonke
Copy link
Member

Part of the systemd on Linux project.

@@ -83,6 +83,12 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result);

[[gnu::weak]] int sys_getifaddrs(struct ifaddrs **);

[[gnu::weak]] int sys_sendfile(int outfd, int infd, off_t *offset, size_t count, size_t *out);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of off_t introduces compilation errors, this is missing #include <bits/off_t.h>.

Dennisbonke and others added 20 commits January 9, 2025 09:42
Without this, the compiler can (and will) hoist the inline assembly in
potentially broken ways.
All resolution functions now optionally take the version of the symbol
to resolve to. Specifying no version means the default is picked (for
dlsym etc).
Some compiler optimizations done via builtins can cause the tests to
fail (e.g. compiler optimizes out failing call to calloc, and assumes
that it succeeds).
@Dennisbonke Dennisbonke closed this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants