From owner-freebsd-current Tue Apr 30 20:04:42 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA07129 for current-outgoing; Tue, 30 Apr 1996 20:04:42 -0700 (PDT) Received: from jolt.eng.umd.edu (jolt.eng.umd.edu [129.2.102.5]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id UAA07122 for ; Tue, 30 Apr 1996 20:04:39 -0700 (PDT) Received: from ginger.eng.umd.edu (ginger.eng.umd.edu [129.2.98.204]) by jolt.eng.umd.edu (8.7.5/8.7.3) with ESMTP id XAA07751 for ; Tue, 30 Apr 1996 23:04:37 -0400 (EDT) Received: (from chuckr@localhost) by ginger.eng.umd.edu (8.7.5/8.7.3) id XAA32306; Tue, 30 Apr 1996 23:04:36 -0400 (EDT) Date: Tue, 30 Apr 1996 23:04:36 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@ginger.eng.umd.edu To: FreeBSD-current@FreeBSD.org Subject: execve Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk I am stumped, could I get some help in understanding some code? Referring to /usr/src/sys/kern/kern_exec.c, in the execve() code, there's a line like: /* * Loop through list of image activators, calling each one. * If there is no match, the activator returns -1. If there * is a match, but there was an error during the activation, * the error is returned. Otherwise 0 means success. If the * image is interpreted, loop back up and try activating * the interpreter. */ for (i = 0; execsw[i]; ++i) { if (execsw[i]->ex_imgact) error = (*execsw[i]->ex_imgact)(imgp); else continue; (I'd give the line numbers, but Bruce has just made some changes in this file, and ctm hasn't updated me yet. It's about line 192) I can't figure out where the execsw array gets built. Could someone point me at the right file? ========================================================================== Chuck Robey chuckr@eng.umd.edu, I run FreeBSD-current on n3lxx + Journey2 Three Accounts for the Super-users in the sky, Seven for the Operators in their halls of fame, Nine for Ordinary Users doomed to crie, One for the Illegal Cracker with his evil game In the Domains of Internet where the data lie. One Account to rule them all, One Account to watch them, One Account to make them all and in the network bind them.