From d8e10d648b12b8595e9f177ec8f1a71d24aecea5 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 4 May 2019 11:51:56 -0400 Subject: stat: Get rid of bfs_fstat() We can just use bfs_stat() with a NULL at_path. --- stat.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'stat.h') diff --git a/stat.h b/stat.h index 6c915da..4e4cbaf 100644 --- a/stat.h +++ b/stat.h @@ -121,7 +121,8 @@ struct bfs_stat { * @param at_fd * The base file descriptor for the lookup. * @param at_path - * The path to stat, relative to at_fd. + * The path to stat, relative to at_fd. Pass NULL to fstat() at_fd + * itself. * @param flags * Flags that affect the lookup. * @param[out] buf @@ -131,11 +132,6 @@ struct bfs_stat { */ int bfs_stat(int at_fd, const char *at_path, enum bfs_stat_flag flags, struct bfs_stat *buf); -/** - * Facade over fstat(). - */ -int bfs_fstat(int fd, struct bfs_stat *buf); - /** * Get a particular time field from a bfs_stat() buffer. */ -- cgit v1.2.3