1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

update from main archive 960105

This commit is contained in:
Ulrich Drepper
1997-01-06 22:07:28 +00:00
parent 6f9e7002f3
commit df4ef2ab9c
131 changed files with 5591 additions and 1845 deletions

View File

@ -1,5 +1,5 @@
/* Definitions of macros to access `dev_t' values.
Copyright (C) 1996 Free Software Foundation, Inc.
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -21,12 +21,9 @@
#define _SYS_SYSMACROS_H 1
/* Get definition from kernel header. */
#include <linux/kdev_t.h>
/* For compatibility we provide alternative names. */
#define major(dev) MAJOR ((unsigned int) (dev))
#define minor(dev) MINOR ((unsigned int) (dev))
#define makedev(major, minor) MKDEV (major, minor)
#define major(dev) ((dev) >> 32)
#define minor(dev) ((dev) & 0xffffffff)
#define makedev(major, minor) (((major) << 32) | (monor))
#endif /* _SYS_SYSMACROS_H */