execsw
static struct execsw linux_execsw = { exec_linux_imgact, "Linux a.out" };
static struct execsw aout_execsw = {
static struct execsw imgact_binmisc_execsw = {
static struct execsw __elfN(execsw) = {
EXEC_SET(ELF_ABI_ID, __elfN(execsw));
static struct execsw shell_execsw = {
exec_register(const struct execsw *execsw_arg)
const struct execsw **es, **xs, **newexecsw;
if (execsw)
for (es = execsw; *es; es++)
if (execsw)
for (es = execsw; *es; es++)
if (execsw)
free(execsw, M_TEMP);
execsw = newexecsw;
exec_unregister(const struct execsw *execsw_arg)
const struct execsw **es, **xs, **newexecsw;
if (execsw == NULL)
for (es = execsw; *es; es++) {
for (es = execsw; *es; es++)
for (es = execsw; *es; es++)
if (execsw)
free(execsw, M_TEMP);
execsw = newexecsw;
static const struct execsw **execsw;
for (i = 0; error == -1 && execsw[i]; ++i) {
if (execsw[i]->ex_imgact == NULL)
error = (*execsw[i]->ex_imgact)(imgp);
struct execsw *exec = (struct execsw *)data; \
int exec_register(const struct execsw *);
int exec_unregister(const struct execsw *);