diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-11-01 21:46:50 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-11-01 21:46:50 -0400 |
commit | 8c3b9aaaab11be9d0fe24a72ebb16e171ca22125 (patch) | |
tree | 1eceebe2763cec5a010a193d48b50edef5fb78a2 /util.h | |
parent | b74261ac825ec2b9c02d73e36f7b44b64c9d184c (diff) | |
download | bfs-8c3b9aaaab11be9d0fe24a72ebb16e171ca22125.tar.xz |
Print device major/minor numbers for -ls
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |