From nobody@FreeBSD.org  Fri Nov 16 04:32:54 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 67CCE37B41A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Nov 2001 04:32:53 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id fAGCWoZ37057;
	Fri, 16 Nov 2001 04:32:50 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200111161232.fAGCWoZ37057@freefall.freebsd.org>
Date: Fri, 16 Nov 2001 04:32:50 -0800 (PST)
From: Vitezslav Novy <vita@fio.cz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: truss shows wrong return values of linux syscalls
X-Send-Pr-Version: www-1.0

>Number:         32036
>Category:       bin
>Synopsis:       truss shows wrong return values of linux syscalls
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 16 04:40:00 PST 2001
>Closed-Date:    Sat Nov 24 03:51:24 PST 2001
>Last-Modified:  Sat Nov 24 03:51:35 PST 2001
>Originator:     Vitezslav Novy
>Release:        4.4-RELEASE
>Organization:
Fio
>Environment:
FreeBSD vita.private.fio.cz 4.4-RELEASE FreeBSD 4.4-RELEASE #25: Mon Oct 29 14:23:07 CET 2001     root@vita.private.fio.cz:/usr/src/sys/compile/VITA  i386
>Description:
truss shows wrong return values of succesfull linux syscalls. Error return codes are OK.
>How-To-Repeat:

>Fix:
*** i386-linux.c        Fri Nov 16 13:23:12 2001
--- i386-linux.c        Fri Nov 16 13:25:27 2001
***************
*** 244,248 ****
        break;
    }
!   print_syscall_ret(outfile, lsc.name, lsc.nargs, lsc.s_args, errorp, i);
    clear_lsc();
    return;
--- 244,248 ----
        break;
    }
!   print_syscall_ret(outfile, lsc.name, lsc.nargs, lsc.s_args, errorp, errorp?i:retval);
    clear_lsc();
    return;

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Sat Nov 17 06:51:37 PST 2001 
Responsible-Changed-Why:  
DES has been doing alot with truss recently and should be able 
to check this one line patch quickly. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32036 
State-Changed-From-To: open->feedback 
State-Changed-By: des 
State-Changed-When: Sat Nov 17 09:18:41 PST 2001 
State-Changed-Why:  
Committed to -CURRENT, awaiting MFC.  Thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32036 
State-Changed-From-To: feedback->closed 
State-Changed-By: des 
State-Changed-When: Sat Nov 24 03:51:24 PST 2001 
State-Changed-Why:  
MFCed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32036 
>Unformatted:
