Deleted Added
full compact
subr_syscall.c (3436) subr_syscall.c (3476)
1/*-
2 * Copyright (C) 1994, David Greenman
3 * Copyright (c) 1990, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the University of Utah, and William Jolitz.
8 *

--- 21 unchanged lines hidden (view full) ---

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)trap.c 7.4 (Berkeley) 5/13/91
1/*-
2 * Copyright (C) 1994, David Greenman
3 * Copyright (c) 1990, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the University of Utah, and William Jolitz.
8 *

--- 21 unchanged lines hidden (view full) ---

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)trap.c 7.4 (Berkeley) 5/13/91
38 * $Id: trap.c,v 1.35 1994/10/01 02:56:05 davidg Exp $
38 * $Id: trap.c,v 1.36 1994/10/08 22:19:50 phk Exp $
39 */
40
41/*
42 * 386 Trap and System call handling
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>

--- 612 unchanged lines hidden (view full) ---

659 if (KTRPOINT(p, KTR_SYSCALL))
660 ktrsyscall(p->p_tracep, code, callp->sy_narg, args);
661#endif
662 rval[0] = 0;
663 rval[1] = frame.tf_edx;
664
665 error = (*callp->sy_call)(p, args, rval);
666
39 */
40
41/*
42 * 386 Trap and System call handling
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>

--- 612 unchanged lines hidden (view full) ---

659 if (KTRPOINT(p, KTR_SYSCALL))
660 ktrsyscall(p->p_tracep, code, callp->sy_narg, args);
661#endif
662 rval[0] = 0;
663 rval[1] = frame.tf_edx;
664
665 error = (*callp->sy_call)(p, args, rval);
666
667 if (p->p_sysent->sv_errsize)
668 if (error >= p->p_sysent->sv_errsize)
669 error = -1; /* XXX */
670 else
671 error = p->p_sysent->sv_errtbl[error];
672
667 switch (error) {
668
669 case 0:
670 /*
671 * Reinitialize proc pointer `p' as it may be different
672 * if this is a child returning from fork syscall.
673 */
674 p = curproc;

--- 26 unchanged lines hidden ---
673 switch (error) {
674
675 case 0:
676 /*
677 * Reinitialize proc pointer `p' as it may be different
678 * if this is a child returning from fork syscall.
679 */
680 p = curproc;

--- 26 unchanged lines hidden ---