kern

diff src/fs.h @ 91:f83f50c17c3b

continuing with the fs added strtol and strstr to klibc
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Dec 2011 15:29:54 +0200
parents 7ff2b4971216
children 083849df660b
line diff
     1.1 --- a/src/fs.h	Fri Dec 09 13:44:15 2011 +0200
     1.2 +++ b/src/fs.h	Fri Dec 09 15:29:54 2011 +0200
     1.3 @@ -8,6 +8,7 @@
     1.4  
     1.5  #define SECT_TO_BLK(x)	((x) / (BLKSZ / 512))
     1.6  
     1.7 +#define DEVNO(maj, min)	((((maj) & 0xff) << 8) | ((min) & 0xff))
     1.8  #define DEV_MAJOR(dev)	(((dev) >> 8) & 0xff)
     1.9  #define DEV_MINOR(dev)	((dev) & 0xff)
    1.10