Hi all, On alinux3(alibaba cloud linux version 3) system, the /tmp disk partition is mounted as tmpfs filesystem type, this filesystem type doesn't support create time(birth time). This PR is a REDO PR of https://github.com/openjdk/jdk/pull/20687, the diffrent is delete `#include <linux/fcntl.h>` and add `#define AT_SYMLINK_NOFOLLOW 0x100` `#define AT_FDCWD -100`, because the linux header `<linux/fcntl.h>` file can't work on centos6. If anyone at Oracle can help me verify this PR, which include build and jtreg tier1 test, I will be quite appreciate for that.
Additional testing: - [x] build and test on alinux3 - [x] compile libCreationTimeHelper.c in centos6 docker container ------------- Commit messages: - 8341881: [REDO] java/nio/file/attribute/BasicFileAttributeView/CreationTime.java#tmp fails on alinux3 Changes: https://git.openjdk.org/jdk/pull/21462/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21462&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8341881 Stats: 212 lines in 4 files changed: 194 ins; 7 del; 11 mod Patch: https://git.openjdk.org/jdk/pull/21462.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/21462/head:pull/21462 PR: https://git.openjdk.org/jdk/pull/21462