/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include <sys/archsystm.h>
#include <sys/pathname.h>
#include <sys/machbrand.h>
#include "sn1_brand.h"
void sn1_init_brand_data(zone_t *);
void sn1_free_brand_data(zone_t *);
void sn1_setbrand(proc_t *);
void sn1_exec();
int sn1_initlwp(klwp_t *);
void sn1_freelwp(klwp_t *);
void sn1_lwpexit(klwp_t *);
/* sn1 brand */
NULL,
NULL,
NSIG,
};
#ifdef sparc
};
#else /* sparc */
#ifdef __amd64
};
#else /* ! __amd64 */
NULL,
};
#endif /* __amd64 */
#endif /* _sparc */
"sn1",
};
&mod_brandops, /* type of module */
"Solaris N-1 Brand", /* description of module */
&sn1_brand /* driver ops */
};
};
void
{
}
/* ARGSUSED */
int
{
return (EINVAL);
}
/* ARGSUSED */
int
{
return (EINVAL);
}
/*ARGSUSED*/
int
{
int res;
*rval = 0;
if (res >= 0)
return (res);
return (EINVAL);
}
void
{
}
void
{
brand_solaris_proc_exit(p, l, &sn1_brand);
}
void
sn1_exec()
{
}
int
{
return (brand_solaris_initlwp(l, &sn1_brand));
}
void
{
brand_solaris_forklwp(p, c, &sn1_brand);
}
void
{
}
void
{
}
/*ARGSUSED*/
void
{
}
/*ARGSUSED*/
void
{
}
int
int brand_action)
{
}
int
_init(void)
{
int err;
/*
* Set up the table indicating which system calls we want to
* interpose on. We should probably build this automatically from
* a list of system calls that is shared with the user-space
* library.
*/
if (err) {
}
return (err);
}
int
{
}
int
_fini(void)
{
&sn1_brand));
}