Commit d0f020f
gh-113078: Use uint64 for dev_t and uint32 for make params
Following the implementions from both FreeBSD and GNU glibc,
`PyLong_FromDev should actually be unsigned. This can break
on FreeBSD systems using ZFS, since they wouldn't generate
device IDs with 56 upper bits randomly, therefore the MSB
too.
Also, following the documentation from FreeBSD and Linux,
`makedev` should accept unsigned 32 bit integers. The reason
to that is because on FreeBSD `major` and `minor` can return
anything on the 32 bit int range and on Linux it really specifies
that it returns a unsigned integer.1 parent fddc829 commit d0f020f
2 files changed
+11
-13
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
934 | 934 | | |
935 | 935 | | |
936 | 936 | | |
937 | | - | |
| 937 | + | |
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
| |||
12040 | 12040 | | |
12041 | 12041 | | |
12042 | 12042 | | |
12043 | | - | |
12044 | | - | |
| 12043 | + | |
| 12044 | + | |
12045 | 12045 | | |
12046 | 12046 | | |
12047 | 12047 | | |
12048 | 12048 | | |
12049 | 12049 | | |
12050 | 12050 | | |
12051 | | - | |
12052 | | - | |
| 12051 | + | |
| 12052 | + | |
12053 | 12053 | | |
12054 | 12054 | | |
12055 | 12055 | | |
| |||
0 commit comments