mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 05:20:06 +00:00
Add #error if __NR_vfork required but not defined.
Improve test of error code.
This commit is contained in:
parent
644d82249f
commit
011f9a85d2
@ -38,8 +38,7 @@ ENTRY (__vfork)
|
|||||||
b PLTJMP(C_SYMBOL_NAME(__syscall_error))
|
b PLTJMP(C_SYMBOL_NAME(__syscall_error))
|
||||||
# else
|
# else
|
||||||
/* Check if vfork syscall is known at all. */
|
/* Check if vfork syscall is known at all. */
|
||||||
ldr a2, =-ENOSYS
|
cmn a2, #ENOSYS
|
||||||
teq a1, a2
|
|
||||||
bne PLTJMP(C_SYMBOL_NAME(__syscall_error))
|
bne PLTJMP(C_SYMBOL_NAME(__syscall_error))
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
@ -50,6 +49,8 @@ ENTRY (__vfork)
|
|||||||
cmn a1, #4096
|
cmn a1, #4096
|
||||||
RETINSTR(movcc, pc, lr)
|
RETINSTR(movcc, pc, lr)
|
||||||
b PLTJMP(C_SYMBOL_NAME(__syscall_error))
|
b PLTJMP(C_SYMBOL_NAME(__syscall_error))
|
||||||
|
#elif !defined __NR_vfork
|
||||||
|
# error "__NR_vfork not available and __ASSUME_VFORK_SYSCALL defined"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PSEUDO_END (__vfork)
|
PSEUDO_END (__vfork)
|
||||||
|
Loading…
Reference in New Issue
Block a user