Lines Matching defs:bigwad
319 struct bigwad {
326 } *bigwad; /* kmem_alloc this behemoth so we don't blow stack */
336 bigwad = kmem_alloc(sizeof (struct bigwad), KM_SLEEP);
337 ehdrp = &bigwad->ehdr;
338 dlnp = bigwad->dl_name;
339 pathbufp = bigwad->pathbuf;
594 aux = bigwad->elfargs;
718 if (error && dlnp != bigwad->dl_name) {
734 bigwad->exenv.ex_brkbase = (caddr_t)PAGESIZE;
735 bigwad->exenv.ex_bssbase = (caddr_t)PAGESIZE;
737 bigwad->exenv.ex_bssbase = bssbase;
738 bigwad->exenv.ex_brkbase = brkbase;
740 bigwad->exenv.ex_brksize = brksize;
741 bigwad->exenv.ex_magic = elfmagic;
742 bigwad->exenv.ex_vp = vp;
743 setexecenv(&bigwad->exenv);
758 if ((error = execpermissions(nvp, &bigwad->vattr, args)) != 0) {
863 (char *)bigwad->elfargs));
891 (char *)bigwad->elfargs));
898 postfixsize = (char *)aux - (char *)bigwad->elfargs;
942 error = execpoststack(args, bigwad->elfargs, postfixsize);
954 aux = bigwad->elfargs;
977 bigwad->exenv.ex_brkbase = (caddr_t)0;
978 bigwad->exenv.ex_bssbase = (caddr_t)0;
979 bigwad->exenv.ex_brksize = 0;
981 bigwad->exenv.ex_brkbase = brkbase;
982 bigwad->exenv.ex_bssbase = bssbase;
983 bigwad->exenv.ex_brksize = brksize;
985 bigwad->exenv.ex_magic = elfmagic;
986 bigwad->exenv.ex_vp = vp;
987 setexecenv(&bigwad->exenv);
1006 kmem_free(bigwad, sizeof (struct bigwad));
1874 } *bigwad;
1920 bigsize = MAX(sizeof (*bigwad), MAX(phdrsz, shdrsz));
1921 bigwad = kmem_alloc(bigsize, KM_SLEEP);
1923 ehdr = &bigwad->ehdr;
2000 v = &bigwad->phdr[0];
2125 kmem_free(bigwad, bigsize);
2258 bzero(&bigwad->shdr[0], shdrsz);
2261 bigwad->shdr[0].sh_size = nshdrs;
2264 bigwad->shdr[0].sh_link = nshdrs - 1;
2267 bigwad->shdr[0].sh_info = nphdrs;
2272 &bigwad->shdr[0], nshdrs, rlimit, &doffset,
2281 &bigwad->shdr[0], shdrsz, rlimit, credp)) != 0)
2286 kmem_free(bigwad, bigsize);