Skip to content

Conversation

@the-horo
Copy link
Contributor

I've taken the definitions from glibc's
sysdeps/unix/sysv/linux/**/bits/typesizes.h.

For convenience:

alpha/bits/typesizes.h       #define  __NLINK_T_TYPE  __U32_TYPE
arm/bits/typesizes.h         #define  __NLINK_T_TYPE  __UWORD_TYPE
hppa/bits/typesizes.h        #define  __NLINK_T_TYPE  __UWORD_TYPE
m68k/bits/typesizes.h        #define  __NLINK_T_TYPE  __UWORD_TYPE
microblaze/bits/typesizes.h  #define  __NLINK_T_TYPE  __UWORD_TYPE
mips/bits/typesizes.h        #define  __NLINK_T_TYPE  __UWORD_TYPE
powerpc/bits/typesizes.h     #define  __NLINK_T_TYPE  __UWORD_TYPE
s390/bits/typesizes.h        #define  __NLINK_T_TYPE  __UWORD_TYPE
sh/bits/typesizes.h          #define  __NLINK_T_TYPE  __UWORD_TYPE
sparc/bits/typesizes.h       #define  __NLINK_T_TYPE  __U32_TYPE

bits/typesizes.h             #define  __NLINK_T_TYPE  __U32_TYPE

And x86:

 // sysdeps/unix/sysv/linux/x86/bits/typesizes.h
 #ifdef __x86_64__
 # define __NLINK_T_TYPE         __SYSCALL_ULONG_TYPE
 #else
 # define __NLINK_T_TYPE         __UWORD_TYPE
 #endif

I've taken the definitions from glibc's
sysdeps/unix/sysv/linux/**/bits/typesizes.h.

For convenience:
```
alpha/bits/typesizes.h       #define  __NLINK_T_TYPE  __U32_TYPE
arm/bits/typesizes.h         #define  __NLINK_T_TYPE  __UWORD_TYPE
hppa/bits/typesizes.h        #define  __NLINK_T_TYPE  __UWORD_TYPE
m68k/bits/typesizes.h        #define  __NLINK_T_TYPE  __UWORD_TYPE
microblaze/bits/typesizes.h  #define  __NLINK_T_TYPE  __UWORD_TYPE
mips/bits/typesizes.h        #define  __NLINK_T_TYPE  __UWORD_TYPE
powerpc/bits/typesizes.h     #define  __NLINK_T_TYPE  __UWORD_TYPE
s390/bits/typesizes.h        #define  __NLINK_T_TYPE  __UWORD_TYPE
sh/bits/typesizes.h          #define  __NLINK_T_TYPE  __UWORD_TYPE
sparc/bits/typesizes.h       #define  __NLINK_T_TYPE  __U32_TYPE

bits/typesizes.h             #define  __NLINK_T_TYPE  __U32_TYPE
```

And x86:
```
 // sysdeps/unix/sysv/linux/x86/bits/typesizes.h
 #ifdef __x86_64__
 # define __NLINK_T_TYPE         __SYSCALL_ULONG_TYPE
 #else
 # define __NLINK_T_TYPE         __UWORD_TYPE
 #endif
```

Signed-off-by: Andrei Horodniceanu <[email protected]>
@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @the-horo! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#21770"

@the-horo
Copy link
Contributor Author

Tested on aarch64 in ldc-developers/ldc#4971

@thewilsonator thewilsonator merged commit e8a67c0 into dlang:master Aug 24, 2025
41 of 44 checks passed
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.

3 participants