summaryrefslogtreecommitdiffstats
path: root/stat.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-05-04 11:51:56 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-05-04 11:55:07 -0400
commitd8e10d648b12b8595e9f177ec8f1a71d24aecea5 (patch)
tree2a14407a2ae5ff5efa01ff25d89de8a94d553e34 /stat.h
parentd40691e31e2674d7d95ec9160b9897805ce3f43b (diff)
downloadbfs-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.h8
1 files changed, 2 insertions, 6 deletions
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
@@ -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);