2 ! This function is called by all the syscall stubs.
4 ! FIXME: We assume errno is the first member of struct _reent.
5 ! Not sure what to do about this.
7 #include <sys/syscallasm.h>
11 GLOBAL (ASM_SYMBOL (errno)) ! FIXME: ASM_PRIVATE_SYMBOL ?
18 GLOBAL (ASM_PRIVATE_SYMBOL (cerror))
19 ASM_PRIVATE_SYMBOL (cerror):
20 sethi %hi (ASM_SYMBOL (errno)),%g1
21 stw %o0,[%g1+%lo (ASM_SYMBOL (errno))]
25 GLOBAL (ASM_PRIVATE_SYMBOL (cerror_r))
26 ASM_PRIVATE_SYMBOL (cerror_r):