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:
Ulrich Drepper 2003-09-29 22:23:14 +00:00
parent a7c5324235
commit 28f532c89a
3 changed files with 12 additions and 6 deletions

View File

@ -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):

View File

@ -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

View File

@ -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)