-
-
Notifications
You must be signed in to change notification settings - Fork 164
ABI checker fixes part 2 #1459
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
base: master
Are you sure you want to change the base?
ABI checker fixes part 2 #1459
Conversation
Because `nlink_t` and `blksize_t` had incorrect sizes, the struct was incorrectly defined.
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.
Partial review. I still need to review stat.h
and signal.h
changes.
struct msqid64_ds { | ||
struct ipc64_perm msg_perm; | ||
#if (UINTPTR_MAX == UINT64_MAX) /* || x32 ABI */ | ||
#if (__INTPTR_WIDTH__ == 64) /* || x32 ABI */ |
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.
Why is this done?
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.
iirc the header of these macros was not included, but that did not throw warnings so the check was silently broken.
pid_t shm_cpid; | ||
pid_t shm_lpid; | ||
unsigned long shm_nattch; | ||
unsigned long __unused[3]; | ||
time_t shm_atime; | ||
time_t shm_dtime; | ||
time_t shm_ctime; | ||
unsigned long __unused[2]; | ||
}; |
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.
This does not match glibc/musl. In particular, removing shm_{a,d,c}time
without replacement will most likely break downstream programs.
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.
Fixed in the fixup commit - the layout already matches what glibc exposes, only changing the names was necessary.
No description provided.