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

add jfuse-linux-aarch64 #1

Merged
merged 4 commits into from
Jan 21, 2022
Merged

add jfuse-linux-aarch64 #1

merged 4 commits into from
Jan 21, 2022

Conversation

overheadhunter
Copy link
Member

This is basically a copy of jfuse-linux-x86_64 but extracted header files from /usr/aarch64-linux-gnu/include/.

There are subtle differences, e.g. in the stat layout:

     static final  GroupLayout $struct$LAYOUT = MemoryLayout.structLayout(
         Constants$root.C_LONG_LONG$LAYOUT.withName("st_dev"),
         Constants$root.C_LONG_LONG$LAYOUT.withName("st_ino"),
-        Constants$root.C_LONG_LONG$LAYOUT.withName("st_nlink"),
         Constants$root.C_INT$LAYOUT.withName("st_mode"),
+        Constants$root.C_INT$LAYOUT.withName("st_nlink"),
         Constants$root.C_INT$LAYOUT.withName("st_uid"),
         Constants$root.C_INT$LAYOUT.withName("st_gid"),
-        Constants$root.C_INT$LAYOUT.withName("__pad0"),
         Constants$root.C_LONG_LONG$LAYOUT.withName("st_rdev"),
+        Constants$root.C_LONG_LONG$LAYOUT.withName("__pad1"),
         Constants$root.C_LONG_LONG$LAYOUT.withName("st_size"),
-        Constants$root.C_LONG_LONG$LAYOUT.withName("st_blksize"),
+        Constants$root.C_INT$LAYOUT.withName("st_blksize"),
+        Constants$root.C_INT$LAYOUT.withName("__pad2"),
         Constants$root.C_LONG_LONG$LAYOUT.withName("st_blocks"),
         MemoryLayout.structLayout(
             Constants$root.C_LONG_LONG$LAYOUT.withName("tv_sec"),
            Constants$root.C_LONG_LONG$LAYOUT.withName("tv_nsec")
        ).withName("st_atim"),
        MemoryLayout.structLayout(
            Constants$root.C_LONG_LONG$LAYOUT.withName("tv_sec"),
            Constants$root.C_LONG_LONG$LAYOUT.withName("tv_nsec")
        ).withName("st_mtim"),
        MemoryLayout.structLayout(
            Constants$root.C_LONG_LONG$LAYOUT.withName("tv_sec"),
            Constants$root.C_LONG_LONG$LAYOUT.withName("tv_nsec")
        ).withName("st_ctim"),
-        MemoryLayout.sequenceLayout(3, Constants$root.C_LONG_LONG$LAYOUT).withName("__glibc_reserved")
+        MemoryLayout.sequenceLayout(2, Constants$root.C_INT$LAYOUT).withName("__glibc_reserved")
    ).withName("stat");

@sonarcloud
Copy link

sonarcloud bot commented Jan 20, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@overheadhunter overheadhunter merged commit 7fd34a4 into develop Jan 21, 2022
@overheadhunter overheadhunter deleted the feature/linux-arm64 branch January 21, 2022 15:59
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.

1 participant