Change to the new 12-12-8 device number format.
This commit is contained in:
parent
9ded7f638d
commit
65d21cb64e
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: types.h,v 1.32 1997/11/23 20:39:08 kleink Exp $ */
|
/* $NetBSD: types.h,v 1.33 1998/01/17 12:04:49 mycroft Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1982, 1986, 1991, 1993
|
* Copyright (c) 1982, 1986, 1991, 1993
|
||||||
@ -101,9 +101,12 @@ __END_DECLS
|
|||||||
|
|
||||||
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
|
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
|
||||||
/* Major, minor numbers, dev_t's. */
|
/* Major, minor numbers, dev_t's. */
|
||||||
#define major(x) ((int32_t)(((u_int32_t)(x) >> 8) & 0xff))
|
#define major(x) ((int32_t)((((x) & 0x000fff00) >> 8)))
|
||||||
#define minor(x) ((int32_t)((x) & 0xff))
|
#define minor(x) ((int32_t)((((x) & 0xfff00000) >> 12) | \
|
||||||
#define makedev(x,y) ((dev_t)(((x) << 8) | (y)))
|
(((x) & 0x000000ff) >> 0)))
|
||||||
|
#define makedev(x,y) ((dev_t)((((x) << 8) & 0x000fff00) | \
|
||||||
|
(((y) << 12) & 0xfff00000) | \
|
||||||
|
(((y) << 0) & 0x000000ff)))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _BSD_CLOCK_T_
|
#ifdef _BSD_CLOCK_T_
|
||||||
|
Loading…
Reference in New Issue
Block a user