2001-03-05 22:29:24 +01:00
|
|
|
/* sys/sysmacros.h
|
|
|
|
|
|
|
|
Copyright 1998, 2001 Red Hat, Inc.
|
|
|
|
|
|
|
|
This file is part of Cygwin.
|
|
|
|
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
#ifndef _SYS_SYSMACROS_H
|
|
|
|
#define _SYS_SYSMACROS_H
|
|
|
|
|
2002-06-03 19:44:09 +02:00
|
|
|
#ifdef __CYGWIN_USE_BIG_TYPES__
|
|
|
|
#define major(dev) ((int)(((dev) >> 16) & 0xffff))
|
|
|
|
#define minor(dev) ((int)((dev) & 0xffff))
|
|
|
|
#define makedev(major, minor) (((major) << 16) | ((minor) & 0xffff))
|
|
|
|
#else
|
2000-02-17 20:38:33 +01:00
|
|
|
#define major(dev) ((int)(((dev) >> 8) & 0xff))
|
|
|
|
#define minor(dev) ((int)((dev) & 0xff))
|
2002-06-03 19:44:09 +02:00
|
|
|
#define makedev(major, minor) (((major) << 8) | ((minor) & 0xff))
|
|
|
|
#endif
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
#endif /* _SYS_SYSMACROS_H */
|