22 lines
518 B
C++
Raw Normal View History

2025-01-12 20:40:08 +08:00
// Copyright 2020 Andrey Semashev
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// See library home page at http://www.boost.org/libs/filesystem
#include "platform_config.hpp"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
int main()
{
struct statx st;
int res = statx(AT_FDCWD, ".", AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT, STATX_BTIME, &st);
st.stx_btime.tv_sec = 1;
st.stx_btime.tv_nsec = 10;
}