Skip to content

Conversation

no92
Copy link
Member

@no92 no92 commented Sep 24, 2025

No description provided.

Copy link
Member

@avdgrinten avdgrinten left a 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 */
Copy link
Member

Choose a reason for hiding this comment

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

Why is this done?

Copy link
Member Author

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.

Comment on lines 59 to 63
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];
};
Copy link
Member

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.

Copy link
Member Author

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.

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.

2 participants