summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/sys/stat.h
diff options
context:
space:
mode:
authorJean-Baptiste Boric <jblbeurope@gmail.com>2021-05-14 17:55:39 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-14 22:24:02 +0200
commitd76987be96aa68fbad81b419a4c27e34391e2c9a (patch)
treed90365d03356504f775160449442134f9d119a02 /Userland/Libraries/LibC/sys/stat.h
parenteecf7a20972b492d249884c1f725e7ae7cd36c8e (diff)
downloadserenity-d76987be96aa68fbad81b419a4c27e34391e2c9a.zip
LibC: Move makedev(), major(), minor(), to sys/types.h
It's technically not specified by POSIX, but it appears most Unix-like systems worth mentioning put those definitions there. Also, it's more logical since the dev_t type is defined there.
Diffstat (limited to 'Userland/Libraries/LibC/sys/stat.h')
-rw-r--r--Userland/Libraries/LibC/sys/stat.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Userland/Libraries/LibC/sys/stat.h b/Userland/Libraries/LibC/sys/stat.h
index ed0936985c..46e9f48f0e 100644
--- a/Userland/Libraries/LibC/sys/stat.h
+++ b/Userland/Libraries/LibC/sys/stat.h
@@ -78,8 +78,4 @@ int fstat(int fd, struct stat* statbuf);
int lstat(const char* path, struct stat* statbuf);
int stat(const char* path, struct stat* statbuf);
-inline dev_t makedev(unsigned int major, unsigned int minor) { return (minor & 0xffu) | (major << 8u) | ((minor & ~0xffu) << 12u); }
-inline unsigned int major(dev_t dev) { return (dev & 0xfff00u) >> 8u; }
-inline unsigned int minor(dev_t dev) { return (dev & 0xffu) | ((dev >> 12u) & 0xfff00u); }
-
__END_DECLS