mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
Update.
2003-09-29 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as well to cover using long long in C90.
This commit is contained in:
parent
a7c5324235
commit
28f532c89a
@ -1,3 +1,8 @@
|
||||
2003-09-29 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __extension__ as
|
||||
well to cover using long long in C90.
|
||||
|
||||
2003-09-28 Alfred M. Szmidt <ams@kemisten.nu>
|
||||
|
||||
* sysdeps/mach/hurd/bits/libc-lock.h (__libc_cleanup_pop):
|
||||
|
@ -4,8 +4,6 @@
|
||||
|
||||
+ use UID/GID in access(2), chmod(2), chown(2), link(2)
|
||||
|
||||
- pgrp & session are process properties
|
||||
|
||||
- nice level is process property
|
||||
|
||||
- rlimit should be process-wide and SIGXCPU should be sent if all threads
|
||||
|
@ -26,28 +26,31 @@
|
||||
not going to hack weird hacks to support the dev_t representation
|
||||
they need. */
|
||||
#ifdef __GLIBC_HAVE_LONG_LONG
|
||||
__extension__
|
||||
extern __inline unsigned int gnu_dev_major (unsigned long long int __dev)
|
||||
__THROW;
|
||||
__extension__
|
||||
extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
|
||||
__THROW;
|
||||
__extension__
|
||||
extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
|
||||
unsigned int __minor)
|
||||
unsigned int __minor)
|
||||
__THROW;
|
||||
|
||||
# if defined __GNUC__ && __GNUC__ >= 2
|
||||
extern __inline unsigned int
|
||||
__extension__ extern __inline unsigned int
|
||||
gnu_dev_major (unsigned long long int __dev) __THROW
|
||||
{
|
||||
return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
|
||||
}
|
||||
|
||||
extern __inline unsigned int
|
||||
__extension__ extern __inline unsigned int
|
||||
gnu_dev_minor (unsigned long long int __dev) __THROW
|
||||
{
|
||||
return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
|
||||
}
|
||||
|
||||
extern __inline unsigned long long int
|
||||
__extension__ extern __inline unsigned long long int
|
||||
gnu_dev_makedev (unsigned int __major, unsigned int __minor) __THROW
|
||||
{
|
||||
return ((__minor & 0xff) | ((__major & 0xfff) << 8)
|
||||
|
Loading…
Reference in New Issue
Block a user