Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 1996 23:04:36 -0400 (EDT)
From:      Chuck Robey <chuckr@Glue.umd.edu>
To:        FreeBSD-current@FreeBSD.org
Subject:   execve
Message-ID:  <Pine.OSF.3.91.960430230008.32527A@ginger.eng.umd.edu>

next in thread | raw e-mail | index | archive | help
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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.91.960430230008.32527A>