1 //===-- Linux implementation of stat --------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "src/sys/stat/stat.h"
10 #include "kernel_statx.h"
12 #include "src/__support/common.h"
17 namespace __llvm_libc
{
19 LLVM_LIBC_FUNCTION(int, stat
,
20 (const char *__restrict path
,
21 struct stat
*__restrict statbuf
)) {
22 return statx(AT_FDCWD
, path
, 0, statbuf
);
25 } // namespace __llvm_libc