/src/games/hack/ |
hack.bones.c | 83 struct monst *mtmp; local in function:savebones 112 if (!(mtmp = makemon(PM_GHOST, u.ux, u.uy))) 114 mtmp->mx = u.ux; 115 mtmp->my = u.uy; 116 mtmp->msleep = 1; 117 (void) strcpy((char *) mtmp->mextra, plname); 119 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) [all...] |
hack.steal.c | 86 stealgold(struct monst *mtmp) 91 mtmp->mgold += gold->amount; 96 Monnam(mtmp)); 98 rloc(mtmp); 99 mtmp->mflee = 1; 104 mtmp->mgold += tmp; 105 rloc(mtmp); 106 mtmp->mflee = 1; 117 struct monst *mtmp; local in function:stealarm 122 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon [all...] |
hack.wizard.c | 90 struct monst *mtmp; local in function:amulet 95 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 96 if (mtmp->data->mlet == '1' && mtmp->msleep && !rn2(40)) 99 mtmp->msleep = 0; 100 if (dist(mtmp->mx, mtmp->my) > 2 262 struct monst *mtmp; local in function:aggravate [all...] |
hack.mkmaze.c | 92 struct monst *mtmp; local in function:makemaz 106 if ((mtmp = makemon(&hell_hound, zx, zy)) != NULL) 107 mtmp->msleep = 1; 108 if ((mtmp = makemon(PM_WIZARD, zx + 1, zy)) != NULL) { 109 mtmp->msleep = 1;
|
hack.potion.c | 78 struct monst *mtmp; local in function:dodrink 150 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 151 if (mtmp->mx > 0) 152 at(mtmp->mx, mtmp->my, mtmp->data->mlet); 453 struct monst *mtmp; local in function:ghost_from_bottle [all...] |
hack.save.c | 225 struct monst *mtmp; local in function:dorecover 227 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 228 if (mtmp->m_id == mid) 232 u.ustuck = mtmp; 273 struct monst *mtmp, *mtmp2 = NULL; local in function:restmonchn 291 mtmp = newmonst(xl); 293 first = mtmp; [all...] |
hack.search.c | 78 struct monst *mtmp; local in function:findit 109 } else if ((mtmp = m_at(zx, zy)) != NULL) 110 if (mtmp->mimic) { 111 seemimic(mtmp); 123 struct monst *mtmp; local in function:dosearch 151 if ((mtmp = m_at(x, y)) != NULL) 152 if (mtmp->mimic) { 153 seemimic(mtmp); 198 wakeup(struct monst *mtmp) 200 mtmp->msleep = 0 [all...] |
hack.do.c | 280 struct monst *mtmp = m_at(u.ux, u.uy); local in function:goto_level 281 if (mtmp) 282 mnexto(mtmp); 304 struct monst *mtmp; local in function:goto_level 305 if ((mtmp = m_at(u.ux, u.uy)) != NULL) 306 mnexto(mtmp); /* riv05!a3 */
|
hack.main.c | 341 struct monst *mtmp; local in function:main 342 if ((mtmp = m_at(u.ux, u.uy)) != NULL) 343 mnexto(mtmp); /* riv05!a3 */
|
hack.makemon.c | 85 struct monst *mtmp; local in function:makemon 119 mtmp = newmonst(ptr->pxlth); 120 *mtmp = zeromonst; /* clear all entries in structure */ 122 ((char *) &(mtmp->mextra[0]))[i] = 0; 123 mtmp->nmon = fmon; 124 fmon = mtmp; 125 mtmp->m_id = flags.ident++; 126 mtmp->data = ptr; 127 mtmp->mxlth = ptr->pxlth; 129 mtmp->mhpmax = mtmp->mhp = 80 [all...] |
hack.read.c | 167 struct monst *mtmp; local in function:doread 169 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 170 if (cansee(mtmp->mx, mtmp->my)) { 172 mtmp->mflee = mtmp->mfroz = 173 mtmp->msleep = 0 246 struct monst *mtmp; local in function:doread 257 struct monst *mtmp, *mtmp2; local in function:doread 470 struct monst *mtmp; local in function:doread [all...] |
hack.apply.c | 141 struct monst *mtmp; local in function:use_camera 155 if ((mtmp = bchit(u.dx, u.dy, COLNO, '!')) != NULL) { 156 if (mtmp->msleep) { 157 mtmp->msleep = 0; 158 pline("The flash awakens %s.", monnam(mtmp)); /* a3 */ 159 } else if (mtmp->data->mlet != 'y') 160 if (mtmp->mcansee || mtmp->mblinded) { 161 int tmp = dist(mtmp->mx, mtmp->my) 273 struct monst *mtmp = (struct monst *) 0; local in function:bchit 300 struct monst *mtmp = fmon; local in function:use_whistle 317 struct monst *mtmp = fmon; local in function:use_magic_whistle 441 struct monst *mtmp; local in function:use_pick_axe [all...] |
hack.do_name.c | 125 struct monst *mtmp, *mtmp2; local in function:do_mname 131 mtmp = m_at(cx, cy); 132 if (!mtmp) { 140 if (mtmp->mimic) { 148 pline("What do you want to call %s? ", lmonnam(mtmp)); 158 mtmp2 = newmonst(mtmp->mxlth + lth); 159 *mtmp2 = *mtmp; 160 for (i = 0; i < mtmp->mxlth; i++) 161 ((char *) mtmp2->mextra)[i] = ((char *) mtmp->mextra)[i]; 164 replmon(mtmp, mtmp2) [all...] |
hack.lev.c | 160 savemonchn(int fd, struct monst *mtmp) 169 while (mtmp) { 170 mtmp2 = mtmp->nmon; 171 xl = mtmp->mxlth + mtmp->mnamelth; 173 bwrite(fd, mtmp, xl + sizeof(struct monst)); 174 if (mtmp->minvent) 175 saveobjchn(fd, mtmp->minvent); 176 free(mtmp); 177 mtmp = mtmp2 244 struct monst *mtmp, *mtmp2; local in function:getlev [all...] |
hack.mkshop.c | 205 struct monst *mtmp; local in function:mkshop 212 (mtmp = makemon(PM_MIMIC, sx, sy))) { 213 mtmp->mimic = 1; 214 mtmp->mappearance =
|
hack.c | 150 struct monst *mtmp = NULL; local in function:domove 199 if (u.uswallow || (mtmp = m_at(u.ux + u.dx, u.uy + u.dy))) { 208 if (attack(u.uswallow ? u.ustuck : mtmp)) 568 struct monst *mtmp; local in function:lookaround 583 if ((mtmp = m_at(x, y)) && !mtmp->mimic && 584 (!mtmp->minvis || See_invisible)) { 585 if (!mtmp->mtame || (x == u.ux + u.dx && y == u.uy + u.dy)) 588 mtmp = 0; /* invisible M cannot 616 m0 = mtmp ? 1 : 0 678 struct monst *mtmp; local in function:monster_nearby [all...] |
hack.dog.c | 88 struct monst *mtmp = makemon(&li_dog, u.ux, u.uy); local in function:makedog 89 if (!mtmp) 91 initedog(mtmp); 95 initedog(struct monst *mtmp) 97 mtmp->mtame = mtmp->mpeaceful = 1; 98 EDOG(mtmp)->hungrytime = 1000 + moves; 99 EDOG(mtmp)->eattime = 0; 100 EDOG(mtmp)->droptime = 0; 101 EDOG(mtmp)->dropdist = 10000 114 struct monst *mtmp; local in function:losedogs 132 struct monst *mtmp; local in function:keepdogs [all...] |
hack.vault.c | 89 replgd(struct monst *mtmp __unused, struct monst *mtmp2 __unused) 163 struct monst *mtmp; local in function:setgd 164 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 165 if (mtmp->isgd) { 166 guard = mtmp; 378 replgd(struct monst *mtmp, struct monst *mtmp2) 380 if (mtmp == guard [all...] |
hack.zap.c | 89 /* bhitm: monster mtmp was hit by the effect of wand otmp */ 91 bhitm(struct monst *mtmp, struct obj *otmp) 93 wakeup(mtmp); 96 if (u.uswallow || rnd(20) < 10 + mtmp->data->ac) { 98 hit("wand", mtmp, exclam(tmp)); 99 mtmp->mhp -= tmp; 100 if (mtmp->mhp < 1) 101 killed(mtmp); 103 miss("wand", mtmp); 106 mtmp->mspeed = MSLOW 276 struct monst *mtmp = u.ustuck; local in function:dozap 396 struct monst *mtmp; local in function:bhit 440 struct monst *mtmp; local in function:boomhit 692 struct monst *mtmp = NULL; local in function:revive [all...] |
hack.end.c | 133 done_in_by(struct monst *mtmp) 137 if (mtmp->data->mlet == ' ') { 139 "the ghost of %s", (char *) mtmp->mextra); 141 } else if (mtmp->mnamelth) { 143 mtmp->data->mname, NAME(mtmp)); 145 } else if (mtmp->minvis) { 146 Snprintf(buf, sizeof(buf), "invisible %s", mtmp->data->mname); 149 killer = mtmp->data->mname; 225 struct monst *mtmp; local in function:done [all...] |
hack.pri.c | 276 struct monst *mtmp; local in function:docrt 296 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) 297 mtmp->mdispl = 0; 323 struct monst *mtmp; local in function:docorner 330 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon 393 struct monst *mtmp; local in function:prl 578 struct monst *mtmp; local in function:vism_at 641 struct monst *mtmp; local in function:seemons [all...] |
hack.invent.c | 262 struct monst *mtmp; local in function:m_at 268 for (mtmp = fmon; mtmp; mtmp = mtmp->nmon) { 269 if (mtmp->mx == x && mtmp->my == y) 270 return (mtmp); 272 if (mtmp->wormno) { 273 for (wtmp = wsegs[mtmp->wormno]; wtmp; wtmp = wtmp->nseg [all...] |
hack.mklev.c | 794 struct monst *mtmp; local in function:mktrap 828 if ((mtmp = makemon(PM_MIMIC, mx, my)) != NULL) { 829 mtmp->mimic = 1; 830 mtmp->mappearance =
|
/src/lib/libpam/modules/pam_nologin/ |
pam_nologin.c | 79 char *mtmp; local in function:pam_sm_authenticate 136 mtmp = malloc(len + 1); 137 if (mtmp != NULL) { 138 read(fd, mtmp, len); 139 mtmp[len] = '\0'; 140 pam_error(pamh, "%s", mtmp); 141 free(mtmp);
|
/src/sys/arch/hppa/spmath/ |
fpudispatch.c | 667 } mtmp, atmp; local in function:decode_06 690 if (dbl_fmpy(&fpregs[rm1],&fpregs[rm2],(unsigned *) &mtmp, 703 if (dbl_fmpy(&fpregs[rm1],&fpregs[rm2],(unsigned *) &mtmp, 716 fpregs[tm] = mtmp.ints.i1; 717 fpregs[tm+1] = mtmp.ints.i2; 745 if (sgl_fmpy(&fpregs[rm1],&fpregs[rm2],(unsigned *) &mtmp, 758 if (sgl_fmpy(&fpregs[rm1],&fpregs[rm2],(unsigned *) &mtmp, 769 fpregs[tm] = mtmp.ints.i1; 791 } mtmp, atmp; local in function:decode_26 813 if (dbl_fmpy(&fpregs[rm1],&fpregs[rm2],(unsigned *) &mtmp, [all...] |