| /netbsd/src/external/bsd/ntp/dist/ntpd/ |
| D | ntp_monitor.c | 130 mon_entry *mon in remove_from_hash() argument 137 hash = MON_HASH(&mon->rmtadr); in remove_from_hash() 138 UNLINK_SLIST(punlinked, mon_hash[hash], mon, hash_next, in remove_from_hash() 140 ENSURE(punlinked == mon); in remove_from_hash() 245 mon_entry *mon; in mon_stop() local 261 ITER_DLIST_BEGIN(mon_mru_list, mon, mru, mon_entry) in mon_stop() 262 mon_free_entry(mon); in mon_stop() 281 mon_entry *mon; in mon_clearinterface() local 284 ITER_DLIST_BEGIN(mon_mru_list, mon, mru, mon_entry) in mon_clearinterface() 285 if (mon->lcladr == lcladr) { in mon_clearinterface() [all …]
|
| /netbsd/src/games/monop/ |
| D | monop.c | 136 static MON mon[N_MON] = { /* monopoly descriptions */ variable 151 {0, 0, 1, 0, &mon[0], { 2, 10, 30, 90, 160, 250} }, 152 {0, 0, 3, 0, &mon[0], { 4, 20, 60, 180, 320, 450} }, 153 {0, 0, 6, 0, &mon[1], { 6, 30, 90, 270, 400, 550} }, 154 {0, 0, 7, 0, &mon[1], { 6, 30, 90, 270, 400, 550} }, 155 {0, 0, 9, 0, &mon[1], { 8, 40,100, 300, 450, 600} }, 156 {0, 0, 11, 0, &mon[2], {10, 50,150, 450, 625, 750} }, 157 {0, 0, 13, 0, &mon[2], {10, 50,150, 450, 625, 750} }, 158 {0, 0, 14, 0, &mon[2], {12, 60,180, 500, 700, 900} }, 159 {0, 0, 16, 0, &mon[3], {14, 70,200, 550, 750, 950} }, [all …]
|
| /netbsd/src/games/hack/ |
| D | hack.fight.c | 181 struct monst *mon; in fightm() local 182 for (mon = fmon; mon; mon = mon->nmon) in fightm() 183 if (mon != mtmp) { in fightm() 184 if (DIST(mon->mx, mon->my, mtmp->mx, mtmp->my) < 3) in fightm() 186 return (hitmm(mtmp, mon)); in fightm() 218 hmon(struct monst *mon, struct obj *obj, int thrown) in hmon() argument 225 if (mon->data->mlet == 'c' && !uarmg) { in hmon() 228 done_in_by(mon); in hmon() 234 if (strchr(mlarge, mon->data->mlet)) { in hmon() 247 monnam(mon)); in hmon() [all …]
|
| D | hack.potion.c | 300 potionhit(struct monst *mon, struct obj *obj) in potionhit() argument 303 boolean uclose, isyou = (mon == &youmonst); in potionhit() 311 uclose = (dist(mon->mx, mon->my) < 3); in potionhit() 314 botlnam, monnam(mon)); in potionhit() 315 if (rn2(5) && mon->mhp > 1) in potionhit() 316 mon->mhp--; in potionhit() 327 if (mon->mhp < mon->mhpmax) { in potionhit() 328 mon->mhp = mon->mhpmax; in potionhit() 329 pline("%s looks sound and hale again!", Monnam(mon)); in potionhit() 333 if (mon->mhpmax > 3) in potionhit() [all …]
|
| D | hack.do.c | 334 struct monst *mon; in dothrow() local 360 mon = u.ustuck; in dothrow() 361 bhitpos.x = mon->mx; in dothrow() 362 bhitpos.y = mon->my; in dothrow() 393 mon = boomhit(u.dx, u.dy); in dothrow() 394 if (mon == &youmonst) { /* the thing was caught */ in dothrow() 402 mon = bhit(u.dx, u.dy, (obj->otyp == ICE_BOX) ? 1 : in dothrow() 408 if (mon) { in dothrow() 410 wakeup(mon); in dothrow() 413 tmp = -1 + u.ulevel + mon->data->ac + abon(); in dothrow() [all …]
|
| D | hack.zap.c | 503 struct monst *mon; in buzz() local 560 if ((mon = m_at(sx, sy)) && in buzz() 561 (type != -1 || mon->data->mlet != 'D')) { in buzz() 562 wakeup(mon); in buzz() 563 if (rnd(20) < 18 + mon->data->ac) { in buzz() 564 int tmp = zhit(mon, abstype); in buzz() 565 if (mon->mhp < 1) { in buzz() 567 if (cansee(mon->mx, mon->my)) in buzz() 569 Monnam(mon), fltxt); in buzz() 570 mondied(mon); in buzz() [all …]
|
| D | hack.pri.c | 655 pmon(struct monst *mon) in pmon() argument 657 int show = (Blind && Telepat) || canseemon(mon); in pmon() 658 if (mon->mdispl) { in pmon() 659 if (mon->mdx != mon->mx || mon->mdy != mon->my || !show) in pmon() 660 unpmon(mon); in pmon() 662 if (show && !mon->mdispl) { in pmon() 663 atl(mon->mx, mon->my, in pmon() 664 (!mon->mappearance in pmon() 666 ) ? mon->data->mlet : mon->mappearance); in pmon() 667 mon->mdispl = 1; in pmon() [all …]
|
| /netbsd/src/usr.bin/at/ |
| D | parsetime.c | 423 assign_date(struct tm *tm, int mday, int mon, int year) in assign_date() argument 437 if (tm->tm_mon > mon || in assign_date() 438 (tm->tm_mon == mon && tm->tm_mday > mday)) in assign_date() 445 tm->tm_mon = mon; in assign_date() 461 int mday, wday, mon; in month() local 486 mon = sc_tokid - JAN; in month() 493 assign_date(tm, mday, mon, year); in month() 520 mon = atoi(sc_token); in month() 540 mday = mon; in month() 541 mon = x; in month() [all …]
|
| /netbsd/src/external/bsd/ntp/dist/util/ |
| D | lsf-times.c | 50 unsigned int mon = 0; in main() local 92 scount = sscanf(argv[2], "%u", &mon); in main() 94 if (6 == mon || 12 == mon) { in main() 97 printf("2 arg, but #2 is not 6 or 12: <%d>\n", mon); in main() 116 scount = sscanf(argv[2], "%u", &mon); in main() 118 if (6 == mon || 12 == mon) { in main() 121 printf("3 arg, but #2 is not 6 or 12: <%d>\n", mon); in main() 156 cal.month = mon; in main()
|
| /netbsd/src/sys/arch/mvme68k/stand/libsa/ |
| D | chiptotime.c | 21 chiptotime(int sec, int min, int hour, int day, int mon, int year) in chiptotime() argument 29 mon = bcdtobin(mon); in chiptotime() 35 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31) in chiptotime() 40 days += dayyr[mon - 1] + day - 1; in chiptotime() 41 if (is_leap_year(yr) && mon > 2) in chiptotime()
|
| D | clock.c | 24 chiptotime(int sec, int min, int hour, int day, int mon, int year) in chiptotime() argument 32 mon = bcdtobin(mon); in chiptotime() 38 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31) in chiptotime() 43 days += dayyr[mon - 1] + day - 1; in chiptotime() 44 if (is_leap_year(yr) && mon > 2) in chiptotime()
|
| /netbsd/src/usr.sbin/rpc.statd/ |
| D | test.c | 30 sm_mon_1(struct mon *argp, CLIENT *clnt) in sm_mon_1() 87 struct mon mon; in main() local 98 mon.mon_id.mon_name = argv[1]; in main() 99 mon.mon_id.my_id.my_name = argv[1]; in main() 100 mon.mon_id.my_id.my_prog = SM_PROG; in main() 101 mon.mon_id.my_id.my_vers = SM_VERS; in main() 102 mon.mon_id.my_id.my_proc = 1; /* have it call sm_stat() !!! */ in main() 107 if (res = sm_mon_1(&mon, cli)) in main()
|
| /netbsd/src/lib/libc/locale/ |
| D | nl_langinfo.c | 128 [ MON_1 ] = offsetofu16(_TimeLocale, mon[0]), 129 [ MON_2 ] = offsetofu16(_TimeLocale, mon[1]), 130 [ MON_3 ] = offsetofu16(_TimeLocale, mon[2]), 131 [ MON_4 ] = offsetofu16(_TimeLocale, mon[3]), 132 [ MON_5 ] = offsetofu16(_TimeLocale, mon[4]), 133 [ MON_6 ] = offsetofu16(_TimeLocale, mon[5]), 134 [ MON_7 ] = offsetofu16(_TimeLocale, mon[6]), 135 [ MON_8 ] = offsetofu16(_TimeLocale, mon[7]), 136 [ MON_9 ] = offsetofu16(_TimeLocale, mon[8]), 137 [ MON_10 ] = offsetofu16(_TimeLocale, mon[9]), [all …]
|
| /netbsd/src/lib/libc/citrus/ |
| D | citrus_lc_time.c | 88 free(__UNCONST(data->mon[i])); in _citrus_LC_TIME_uninit() 132 { _CITRUS_LC_TIME_SYM_MON_1, OFFSET(mon[MON_IDX(MON_1)] ) }, 133 { _CITRUS_LC_TIME_SYM_MON_2, OFFSET(mon[MON_IDX(MON_2)] ) }, 134 { _CITRUS_LC_TIME_SYM_MON_3, OFFSET(mon[MON_IDX(MON_3)] ) }, 135 { _CITRUS_LC_TIME_SYM_MON_4, OFFSET(mon[MON_IDX(MON_4)] ) }, 136 { _CITRUS_LC_TIME_SYM_MON_5, OFFSET(mon[MON_IDX(MON_5)] ) }, 137 { _CITRUS_LC_TIME_SYM_MON_6, OFFSET(mon[MON_IDX(MON_6)] ) }, 138 { _CITRUS_LC_TIME_SYM_MON_7, OFFSET(mon[MON_IDX(MON_7)] ) }, 139 { _CITRUS_LC_TIME_SYM_MON_8, OFFSET(mon[MON_IDX(MON_8)] ) }, 140 { _CITRUS_LC_TIME_SYM_MON_9, OFFSET(mon[MON_IDX(MON_9)] ) }, [all …]
|
| /netbsd/src/sys/arch/mvmeppc/stand/libsa/ |
| D | clock.c | 27 chiptotime(int sec, int min, int hour, int day, int mon, int year) in chiptotime() argument 35 mon = bcdtobin(mon); in chiptotime() 41 if (year < 70 || mon < 1 || mon > 12 || day < 1 || day > 31) in chiptotime() 46 days += dayyr[mon - 1] + day - 1; in chiptotime() 47 if (is_leap_year(yr) && mon > 2) in chiptotime()
|
| /netbsd/src/sys/arch/x68k/stand/libsa/ |
| D | clock.c | 48 int sec, min, hour, day, mon, year; in getsecs() local 54 mon = ((val & 0x0000ff00) >> 8); in getsecs() 63 if (mon < 1 || mon > 12 || day < 1 || day > 31) in getsecs() 71 days += yday[mon - 1] + day - 1; in getsecs() 72 if (is_leap_year(y) && mon > 2) in getsecs()
|
| /netbsd/src/external/gpl3/gdb/dist/sim/ppc/ |
| D | mon.h | 47 typedef struct _mon mon; typedef 51 (mon *) mon_create 56 (mon *monitor, 61 (mon *monitor, 98 (mon *monitor, 104 mon *monitor,
|
| D | mon.c | 66 (mon *) 69 mon *monitor = ZALLOC(mon); in mon_create() 76 mon_cpu(mon *monitor, in mon_cpu() 87 mon_init(mon *monitor, in mon_init() 151 mon_get_number_of_insns(mon *monitor, in mon_get_number_of_insns() 200 mon *monitor, in mon_print_info()
|
| /netbsd/src/sys/fs/nfs/nlm/ |
| D | sm_inter.h | 39 struct mon { struct 43 typedef struct mon mon; argument 83 extern struct sm_stat_res * sm_mon_1(struct mon *, CLIENT *); 84 extern struct sm_stat_res * sm_mon_1_svc(struct mon *, struct svc_req *); 103 extern bool_t xdr_mon(XDR *, mon*);
|
| /netbsd/src/sys/arch/next68k/next68k/ |
| D | nextrom.h | 119 #import <mon/assym.h> 124 #import <mon/nvram.h> 125 #import <mon/region.h> 126 #import <mon/tftp.h> 127 #import <mon/sio.h> 128 #import <mon/animate.h> 129 #import <mon/kmreg.h>
|
| /netbsd/src/sys/arch/mvme68k/stand/sboot/ |
| D | clock.c | 105 int sec, min, hour, day, mon, year; in time() local 112 mon = cl->cl_month; in time() 115 return chiptotime(sec, min, hour, day, mon, year); in time()
|
| /netbsd/src/external/bsd/wpa/dist/wpa_supplicant/ |
| D | eapol_test.py | 28 self.mon = wpaspy.Ctrl(os.path.join(wpas_ctrl, ifname)) 29 self.mon.attach() 61 while self.mon.pending(): 62 ev = self.mon.recv() 71 if not self.mon.pending(timeout=remaining):
|
| /netbsd/src/crypto/dist/ipsec-tools/misc/ |
| D | cvs2cl.pl | 422 my (undef,$min,$hour,$mday,$mon,$year,$wday) 803 my (undef,$min,$hour,$mday,$mon,$year,$wday) 811 $year+1900, $mon+1, $mday, $hour, $min); 1254 my (undef,$min,$hour,$mday,$mon,$year,$wday) 1714 my ($year, $mday, $mon, $wday, $hour, $min); 1717 ($year, $mday, $mon, $wday, $hour, $min) = @_; 1720 (undef, $min, $hour, $mday, $mon, $year, $wday) = 1724 $mon += 1; 1728 my $fdate = $self->fdate($year, $mon, $mday, $wday); 1743 my ($year, $mday, $mon, $wday); [all …]
|
| /netbsd/src/external/bsd/wpa/dist/src/common/ |
| D | wpa_helpers.c | 99 int get_wpa_cli_event2(struct wpa_ctrl *mon, in get_wpa_cli_event2() argument 110 fd = wpa_ctrl_get_fd(mon); in get_wpa_cli_event2() 132 if (wpa_ctrl_recv(mon, buf, &len) < 0) { in get_wpa_cli_event2() 156 int get_wpa_cli_event(struct wpa_ctrl *mon, in get_wpa_cli_event() argument 159 return get_wpa_cli_event2(mon, event, NULL, buf, buf_size); in get_wpa_cli_event()
|
| /netbsd/src/external/bsd/ntp/dist/ntpq/ |
| D | ntpq-subs.c | 2498 mru *mon; in add_mru() local 2504 for (mon = hash_table[hash]; mon != NULL; mon = mon->hlink) in add_mru() 2505 if (SOCK_EQ(&mon->addr, &add->addr)) in add_mru() 2507 if (mon != NULL) { in add_mru() 2508 if (!L_ISGEQ(&add->first, &mon->first)) { in add_mru() 2512 add->last.l_uf, mon->last.l_ui, in add_mru() 2513 mon->last.l_uf); in add_mru() 2516 UNLINK_DLIST(mon, mlink); in add_mru() 2517 UNLINK_SLIST(unlinked, hash_table[hash], mon, hlink, mru); in add_mru() 2518 INSIST(unlinked == mon); in add_mru() [all …]
|