mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-05 12:40:55 +08:00
Update.
2001-04-19 Matthew Wilcox <willy@ldl.fc.hp.com> * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Change to return a signed result for compatibility with other architectures, and correctness.
This commit is contained in:
parent
72ae756aa6
commit
6610a14064
@ -1,3 +1,9 @@
|
|||||||
|
2001-04-19 Matthew Wilcox <willy@ldl.fc.hp.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL):
|
||||||
|
Change to return a signed result for compatibility with other
|
||||||
|
architectures, and correctness.
|
||||||
|
|
||||||
2001-04-19 Ulrich Drepper <drepper@redhat.com>
|
2001-04-19 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_32BITUIDS):
|
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_32BITUIDS):
|
||||||
|
@ -192,7 +192,7 @@
|
|||||||
|
|
||||||
#undef INLINE_SYSCALL
|
#undef INLINE_SYSCALL
|
||||||
#define INLINE_SYSCALL(name, nr, args...) ({ \
|
#define INLINE_SYSCALL(name, nr, args...) ({ \
|
||||||
unsigned long __sys_res; \
|
long __sys_res; \
|
||||||
{ \
|
{ \
|
||||||
register unsigned long __res asm("r28"); \
|
register unsigned long __res asm("r28"); \
|
||||||
LOAD_ARGS_##nr(args) \
|
LOAD_ARGS_##nr(args) \
|
||||||
@ -204,9 +204,9 @@
|
|||||||
); \
|
); \
|
||||||
__sys_res = __res; \
|
__sys_res = __res; \
|
||||||
} \
|
} \
|
||||||
if (__sys_res >= (unsigned long)-4095) { \
|
if ((unsigned long)__sys_res >= (unsigned long)-4095) { \
|
||||||
__set_errno(-__sys_res); \
|
__set_errno(-__sys_res); \
|
||||||
__sys_res = (unsigned long)-1; \
|
__sys_res = -1; \
|
||||||
} \
|
} \
|
||||||
__sys_res; \
|
__sys_res; \
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user