mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
Fixed problem with returning -1 on error when the return value is a
long long. Done by plugging both eax and edx with -1. This will clobber edx unnecessarily when the return value is only 32bit...though probably always an okay thing to do, it could stand a better fix. This was the cause of gawk being broken (boy was THAT ever a subtle bug!!!).
This commit is contained in:
parent
2c6983854a
commit
c501fb74cf
2 changed files with 4 additions and 2 deletions
|
|
@ -33,7 +33,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cerror.S,v 1.2 1994/02/21 05:19:09 rgrimes Exp $
|
||||
* $Id: cerror.S,v 1.1 1994/08/05 01:18:40 wollman Exp $
|
||||
*/
|
||||
|
||||
#if defined(SYSLIBC_SCCS) && !defined(lint)
|
||||
|
|
@ -53,4 +53,5 @@ cerror:
|
|||
movl %eax,_errno
|
||||
#endif
|
||||
movl $-1,%eax
|
||||
movl $-1,%edx
|
||||
ret
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cerror.S,v 1.2 1994/02/21 05:19:09 rgrimes Exp $
|
||||
* $Id: cerror.S,v 1.1 1994/08/05 01:18:40 wollman Exp $
|
||||
*/
|
||||
|
||||
#if defined(SYSLIBC_SCCS) && !defined(lint)
|
||||
|
|
@ -53,4 +53,5 @@ cerror:
|
|||
movl %eax,_errno
|
||||
#endif
|
||||
movl $-1,%eax
|
||||
movl $-1,%edx
|
||||
ret
|
||||
|
|
|
|||
Loading…
Reference in a new issue