From 50432108fb3ef826301626b94c5e82ad2ab2bd75 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 8 Jan 2018 21:43:23 -0500 Subject: stat: New wrapper around the stat() family This lets bfs transparently support the new statx() system call on Linux, giving it access to file birth times. --- bftw.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bftw.h') diff --git a/bftw.h b/bftw.h index 77148f1..ebdd5d3 100644 --- a/bftw.h +++ b/bftw.h @@ -17,8 +17,8 @@ #ifndef BFS_BFTW_H #define BFS_BFTW_H +#include "stat.h" #include -#include /** * Possible file types. @@ -81,8 +81,8 @@ struct BFTW { /** The errno that occurred, if typeflag == BFTW_ERROR. */ int error; - /** A stat() buffer; may be NULL if no stat() call was needed. */ - const struct stat *statbuf; + /** A bfs_stat() buffer; may be NULL if no stat() call was needed. */ + const struct bfs_stat *statbuf; /** A parent file descriptor for the *at() family of calls. */ int at_fd; -- cgit v1.2.3