Home
last modified time | relevance | path

Searched refs:mon (Results 1 – 25 of 70) sorted by relevance

123

/freebsd-10-stable/contrib/ntp/ntpd/
Dntp_monitor.c126 mon_entry *mon in remove_from_hash() argument
133 hash = MON_HASH(&mon->rmtadr); in remove_from_hash()
134 UNLINK_SLIST(punlinked, mon_hash[hash], mon, hash_next, in remove_from_hash()
136 ENSURE(punlinked == mon); in remove_from_hash()
241 mon_entry *mon; in mon_stop() local
257 ITER_DLIST_BEGIN(mon_mru_list, mon, mru, mon_entry) in mon_stop()
258 mon_free_entry(mon); in mon_stop()
277 mon_entry *mon; in mon_clearinterface() local
280 ITER_DLIST_BEGIN(mon_mru_list, mon, mru, mon_entry) in mon_clearinterface()
281 if (mon->lcladr == lcladr) { in mon_clearinterface()
[all …]
Dntp_control.c3767 mon_entry * mon, in send_mru_entry() argument
3795 pch = sptoa(&mon->rmtadr); in send_mru_entry()
3801 ctl_putts(tag, &mon->last); in send_mru_entry()
3806 ctl_putts(tag, &mon->first); in send_mru_entry()
3811 ctl_putint(tag, mon->count); in send_mru_entry()
3816 ctl_putuint(tag, mon->vn_mode); in send_mru_entry()
3821 ctl_puthex(tag, mon->flags); in send_mru_entry()
3984 mon_entry * mon; in read_mru_list() local
4122 mon = NULL; in read_mru_list()
4125 for (mon = mon_hash[hash]; in read_mru_list()
[all …]
/freebsd-10-stable/contrib/apr-util/misc/
Dapr_date.c149 int mint, mon; in apr_date_parse_http() local
245 for (mon = 0; mon < 12; mon++) in apr_date_parse_http()
246 if (mint == months[mon]) in apr_date_parse_http()
249 if (mon == 12) in apr_date_parse_http()
252 if ((ds.tm_mday == 31) && (mon == 3 || mon == 5 || mon == 8 || mon == 10)) in apr_date_parse_http()
256 if ((mon == 1) && in apr_date_parse_http()
264 ds.tm_mon = mon; in apr_date_parse_http()
323 int mint, mon; in apr_date_parse_rfc() local
578 for (mon = 0; mon < 12; mon++) in apr_date_parse_rfc()
579 if (mint == months[mon]) in apr_date_parse_rfc()
[all …]
/freebsd-10-stable/usr.bin/at/
Dparsetime.c427 assign_date(struct tm *tm, long mday, long mon, long year) in assign_date() argument
455 (tm->tm_mon > mon ||(tm->tm_mon == mon && tm->tm_mday > mday))) in assign_date()
459 tm->tm_mon = mon; in assign_date()
479 long mday = 0, wday, mon; in month() local
502 mon = (sc_tokid-JAN); in month()
509 assign_date(tm, mday, mon, year); in month()
537 mon = atol(sc_token); in month()
556 mday = mon; in month()
557 mon = x; in month()
562 year = (mon % 10000) - 1900; in month()
[all …]
/freebsd-10-stable/usr.sbin/rpc.statd/
Dtest.c32 struct mon *argp; in sm_mon_1()
95 struct mon mon; in main() local
112 mon.mon_id.mon_name = argv[1]; in main()
113 mon.mon_id.my_id.my_name = argv[1]; in main()
114 mon.mon_id.my_id.my_prog = SM_PROG; in main()
115 mon.mon_id.my_id.my_vers = SM_VERS; in main()
116 mon.mon_id.my_id.my_proc = 1; /* have it call sm_stat() !!! */ in main()
122 if (res = sm_mon_1(&mon, cli)) in main()
/freebsd-10-stable/sys/nlm/
Dsm_inter.h37 struct mon { struct
41 typedef struct mon mon; typedef
81 extern struct sm_stat_res * sm_mon_1(struct mon *, CLIENT *);
82 extern struct sm_stat_res * sm_mon_1_svc(struct mon *, struct svc_req *);
101 extern bool_t xdr_mon(XDR *, mon*);
/freebsd-10-stable/sys/kern/
Dsubr_clock.c129 ct->year, ct->mon, ct->day, in print_ct()
147 if (ct->mon < 1 || ct->mon > 12 || ct->day < 1 || in clock_ct_to_ts()
148 ct->day > days_in_month(year, ct->mon) || in clock_ct_to_ts()
165 for (i = 1; i < ct->mon; i++) in clock_ct_to_ts()
199 ct->mon = i; in clock_ts_to_ct()
/freebsd-10-stable/tools/tools/netrate/tcpp/
Drunit.pl13 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
14 $mon++;
16 $date = sprintf("%04d%02d%02d", $year, $mon, $mday);
/freebsd-10-stable/sys/mips/cavium/
Docteon_ds1337.c85 CT_CHECK(ct->mon < 1 || ct->mon > 12, "month"); in validate_ct_struct()
129 ct.mon = bcd2bin(reg[5] & 0x1f); /* Month field is 1..12 */ in cvmx_rtc_ds1337_read()
179 reg[5] = bin2bcd(ct.mon); in cvmx_rtc_ds1337_write()
/freebsd-10-stable/contrib/ntp/ntpq/
Dntpq-subs.c2425 mru *mon; in add_mru() local
2431 for (mon = hash_table[hash]; mon != NULL; mon = mon->hlink) in add_mru()
2432 if (SOCK_EQ(&mon->addr, &add->addr)) in add_mru()
2434 if (mon != NULL) { in add_mru()
2435 if (!L_ISGEQ(&add->first, &mon->first)) { in add_mru()
2439 add->last.l_uf, mon->last.l_ui, in add_mru()
2440 mon->last.l_uf); in add_mru()
2443 UNLINK_DLIST(mon, mlink); in add_mru()
2444 UNLINK_SLIST(unlinked, hash_table[hash], mon, hlink, mru); in add_mru()
2445 INSIST(unlinked == mon); in add_mru()
[all …]
/freebsd-10-stable/contrib/ntp/scripts/build/
DupdateBEDate26 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
39 printf { $OFILE } "%s-%s-%s %02d:%02d", $mday,$m_abbr[$mon],$year,$hour,$min;
/freebsd-10-stable/include/rpcsvc/
Dsm_inter.x56 struct sm_stat_res SM_MON(struct mon) = 2;
89 struct mon{ struct
/freebsd-10-stable/crypto/openssh/
Dmonitor.c1916 monitor_openfds(struct monitor *mon, int do_logfds) in monitor_openfds() argument
1924 mon->m_recvfd = pair[0]; in monitor_openfds()
1925 mon->m_sendfd = pair[1]; in monitor_openfds()
1932 mon->m_log_recvfd = pair[0]; in monitor_openfds()
1933 mon->m_log_sendfd = pair[1]; in monitor_openfds()
1935 mon->m_log_recvfd = mon->m_log_sendfd = -1; in monitor_openfds()
1944 struct monitor *mon; in monitor_init() local
1946 mon = xcalloc(1, sizeof(*mon)); in monitor_init()
1948 monitor_openfds(mon, 1); in monitor_init()
1952 mon->m_zback = mm_create(NULL, MM_MEMSIZE); in monitor_init()
[all …]
/freebsd-10-stable/sys/amd64/vmm/io/
Dvrtc.c213 KASSERT(ct.mon >= 1 && ct.mon <= 12, ("invalid clocktime month %d", in secs_to_rtc()
214 ct.mon)); in secs_to_rtc()
251 rtc->month = rtcset(rtc, ct.mon); in secs_to_rtc()
356 error = rtcget(rtc, rtc->month, &ct.mon); in rtc_to_secs()
357 if (error || ct.mon < 1 || ct.mon > 12) { in rtc_to_secs()
358 VM_CTR2(vm, "Invalid RTC month %#x/%d", rtc->month, ct.mon); in rtc_to_secs()
379 ct.year, ct.mon, ct.day); in rtc_to_secs()
/freebsd-10-stable/sys/arm/at91/
Dat91_rtcreg.h81 #define RTC_CALR_MK(yr, mon, day, dow) \ argument
84 (TOBCD(mon) << RTC_CALR_MON_S) | \
/freebsd-10-stable/contrib/ntp/scripts/monitoring/
Dntploopwatch1500 local($sec,$min,$hour,$mday,$mon,$year)
1537 $mon = $1 - 1;
1553 warn("$0: implausible month day $1 for month ".($mon+1)." (".
1554 $MaxNumDaysPerMonth[$mon].")$mon\n"),
1556 if $1 < 1 || $1 > $MaxNumDaysPerMonth[$mon];
1641 $mon = 0 if $last > $[ + 4;
1642 local($rtime) = &timelocal($sec,$min,$hour,$mday,$mon,$year, 0,0, 0);
1648 &timelocal($sec,$min,$hour,$mday,$mon,$year, 0,0, 1)
/freebsd-10-stable/sys/powerpc/pseries/
Drtas_dev.c122 ct.mon = tod[2]; in rtas_gettime()
144 error = rtas_call_method(token, 7, 1, ct.year, ct.mon, ct.day, ct.hour, in rtas_settime()
/freebsd-10-stable/sys/arm/samsung/s3c2xx0/
Ds3c24x0_rtc.c92 ct.mon = FROMBCD(bus_read_1(sc->mem_res, RTC_BCDMON)); \ in s3c2xx0_rtc_gettime()
137 bus_write_1(sc->mem_res, RTC_BCDMON, TOBCD(ct.mon)); in s3c2xx0_rtc_settime()
/freebsd-10-stable/sys/arm/mv/
Drtc.c148 ct.mon = FROMBCD((val & 0x1f00) >> 8); in mv_rtc_gettime()
173 val = TOBCD(ct.day) | (TOBCD(ct.mon) << 8) | in mv_rtc_settime()
/freebsd-10-stable/sys/pc98/cbus/
Dpcrtc.c186 rtc_outb((ct.mon << 4) | ct.dow); /* Write back Month and DOW */ in pcrtc_settime()
212 ct.mon = (i >> 4) & 0x0f; /* month */ in pcrtc_gettime()
/freebsd-10-stable/sys/mips/atheros/
Dpcf2123_rtc.c134 ct.mon = FROMBCD(rxTimedate[6] & 0x1f); in pcf2123_rtc_gettime()
178 txTimedate[6] = TOBCD(ct.mon); in pcf2123_rtc_settime()
/freebsd-10-stable/lib/libc/stdtime/
Dtimelocal.h43 const char *mon[12]; member
/freebsd-10-stable/sys/arm/ti/am335x/
Dam335x_rtc.c175 ct.mon = FROMBCD(RTC_READ4(rtc_sc, RTC_MONTHS) & 0x1f); in am335x_rtc_pmic_pwr_toggle()
185 RTC_WRITE4(rtc_sc, RTC_ALARM2_MONTHS, TOBCD(ct.mon)); in am335x_rtc_pmic_pwr_toggle()
/freebsd-10-stable/sys/dev/iicbus/
Dpcf8563.c138 ct.mon = FROMBCD(val[PCF8563_R_MONTH] & PCF8563_M_MONTH); in pcf8563_gettime()
174 val[PCF8563_R_MONTH] = TOBCD(ct.mon); in pcf8563_settime()
/freebsd-10-stable/sys/powerpc/mpc85xx/
Dds1553_core.c113 ct.mon = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_MONTH) & in ds1553_gettime()
165 (*sc->sc_write)(dev, DS1553_OFF_MONTH, TOBCD(ct.mon) & in ds1553_settime()

123