示例#1
0
文件: openbsd.c 项目: Distrotech/sudo
int
os_init(int argc, char *argv[], char *envp[])
{
#ifdef SUDO_DEVEL
    extern char *malloc_options;
    malloc_options = "AFGJPR";
#endif
    return os_init_common(argc, argv, envp);
}
示例#2
0
文件: solaris.c 项目: aixoss/sudo
int
os_init(int argc, char *argv[], char *envp[])
{
    /*
     * Solaris 11 is unable to load the per-locale shared objects
     * without this.  We must keep the handle open for it to work.
     * This bug was fixed in Solaris 11 Update 1.
     */
    void *handle = sudo_dso_load("/usr/lib/locale/common/methods_unicode.so.3",
	SUDO_DSO_LAZY|SUDO_DSO_GLOBAL);
    (void)&handle;

    return os_init_common(argc, argv, envp);
}