\
if (__a3 == 0) \
return (type) __v0; \
- return (type) -1; \
+ return (type) 0 - __v0; \
}
#define io_syscall2(type,fname,sname,atype,a,btype,b) \
\
if (__a3 == 0) \
return (type) __v0; \
- return (type) -1; \
+ return (type) 0 - __v0; \
}
#define io_syscall3(type,fname,sname,atype,a,btype,b,ctype,c) \
\
if (__a3 == 0) \
return (type) __v0; \
- return (type) -1; \
+ return (type) 0 - __v0; \
}
#define io_syscall4(type,fname,sname,atype,a,btype,b,ctype,c,dtype,d) \
\
if (__a3 == 0) \
return (type) __v0; \
- return (type) -1; \
+ return (type) 0 - __v0; \
}
#if (_MIPS_SIM == _MIPS_SIM_ABI32)
\
if (__a3 == 0) \
return (type) __v0; \
- return (type) -1; \
+ return (type) 0 - __v0; \
}
#endif /* (_MIPS_SIM == _MIPS_SIM_ABI32) */
\
if (__a3 == 0) \
return (type) __v0; \
- return (type) -1; \
+ return (type) 0 - __v0; \
}
#endif /* (_MIPS_SIM == _MIPS_SIM_NABI32) || (_MIPS_SIM == _MIPS_SIM_ABI64) */