mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 23:10:06 +00:00
Update.
1999-06-07 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/sys/sysmacros.h (makedev): Handle signed parameters.
This commit is contained in:
parent
9a8fcca0b3
commit
f21aa4c28f
@ -1,3 +1,8 @@
|
||||
1999-06-07 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/sys/sysmacros.h (makedev): Handle signed
|
||||
parameters.
|
||||
|
||||
1999-06-06 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/kernel-features.h: Define
|
||||
|
@ -27,11 +27,13 @@
|
||||
#if defined __GNUC__ && __GNUC__ >= 2
|
||||
# define major(dev) ((int)(((dev) >> 8) & 0xff))
|
||||
# define minor(dev) ((int)((dev) & 0xff))
|
||||
# define makedev(major, minor) (((major) << 8) | (minor))
|
||||
# define makedev(major, minor) ((((unsigned int) (major)) << 8) \
|
||||
| ((unsigned int) (minor)))
|
||||
#else
|
||||
# define major(dev) (((dev).__val[0] >> 8) & 0xff)
|
||||
# define minor(dev) ((dev).__val[0] & 0xff)
|
||||
# define makedev(major, minor) { (((major) << 8) | (minor)), 0 }
|
||||
# define makedev(major, minor) { ((((unsigned int) (major)) << 8) \
|
||||
| ((unsigned int) (minor))), 0 }
|
||||
#endif
|
||||
|
||||
#endif /* sys/sysmacros.h */
|
||||
|
Loading…
Reference in New Issue
Block a user