diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-05-04 11:51:56 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-05-04 11:55:07 -0400 |
commit | d8e10d648b12b8595e9f177ec8f1a71d24aecea5 (patch) | |
tree | 2a14407a2ae5ff5efa01ff25d89de8a94d553e34 /stat.h | |
parent | d40691e31e2674d7d95ec9160b9897805ce3f43b (diff) | |
download | bfs-d8e10d648b12b8595e9f177ec8f1a71d24aecea5.tar.xz |
stat: Get rid of bfs_fstat()
We can just use bfs_stat() with a NULL at_path.
Diffstat (limited to 'stat.h')
-rw-r--r-- | stat.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 @@ -132,11 +133,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. */ const struct timespec *bfs_stat_time(const struct bfs_stat *buf, enum bfs_stat_field field); |