summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-11-01 21:46:50 -0400
committerTavian Barnes <tavianator@tavianator.com>2018-11-01 21:46:50 -0400
commit8c3b9aaaab11be9d0fe24a72ebb16e171ca22125 (patch)
tree1eceebe2763cec5a010a193d48b50edef5fb78a2 /util.h
parentb74261ac825ec2b9c02d73e36f7b44b64c9d184c (diff)
downloadbfs-8c3b9aaaab11be9d0fe24a72ebb16e171ca22125.tar.xz
Print device major/minor numbers for -ls
Diffstat (limited to 'util.h')
-rw-r--r--util.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/util.h b/util.h
index f0512f7..18fc318 100644
--- a/util.h
+++ b/util.h
@@ -172,4 +172,19 @@ enum bftw_typeflag dirent_to_typeflag(const struct dirent *de);
*/
int ynprompt(void);
+/**
+ * Portable version of makedev().
+ */
+dev_t bfs_makedev(int ma, int mi);
+
+/**
+ * Portable version of major().
+ */
+int bfs_major(dev_t dev);
+
+/**
+ * Portable version of minor().
+ */
+int bfs_minor(dev_t dev);
+
#endif // BFS_UTIL_H