/freebsd-10-stable/contrib/ntp/lib/isc/include/isc/ |
H A D | parseint.h | 37 isc_parse_uint32(isc_uint32_t *uip, const char *string, int base); 40 isc_parse_uint16(isc_uint16_t *uip, const char *string, int base); 43 isc_parse_uint8(isc_uint8_t *uip, const char *string, int base); 45 * Parse the null-terminated string 'string' containing a base 'base' 47 * The base is interpreted 54 *\li 0 <= 'base' <= 36 58 *\li #ISC_R_BADNUMBER The string is not numeric (in the given base)
|
H A D | region.h | 28 unsigned char * base; member in struct:isc_region 33 char * base; member in struct:isc_textregion 41 const void * base; member in struct:isc_constregion 46 const char * base; member in struct:isc_consttextregion 61 _r->base += _l; \ 70 _r->base += _l; \ 79 _r->base += _l; \
|
/freebsd-10-stable/contrib/ntp/sntp/libevent/ |
H A D | evutil_time.c | 148 adjust_monotonic_time(struct evutil_monotonic_timer *base, argument 151 evutil_timeradd(tv, &base->adjust_monotonic_clock, tv); 153 if (evutil_timercmp(tv, &base->last_time, <)) { 156 evutil_timersub(&base->last_time, tv, &adjust); 157 evutil_timeradd(&adjust, &base->adjust_monotonic_clock, 158 &base->adjust_monotonic_clock); 159 *tv = base->last_time; 161 base->last_time = *tv; 224 evutil_configure_monotonic_time_(struct evutil_monotonic_timer *base, argument 246 base 265 evutil_gettime_monotonic_(struct evutil_monotonic_timer *base, struct timeval *tp) argument 299 evutil_configure_monotonic_time_(struct evutil_monotonic_timer *base, int flags) argument 321 evutil_gettime_monotonic_(struct evutil_monotonic_timer *base, struct timeval *tp) argument 404 evutil_GetTickCount_(struct evutil_monotonic_timer *base) argument 432 evutil_configure_monotonic_time_(struct evutil_monotonic_timer *base, int flags) argument 469 evutil_gettime_monotonic_(struct evutil_monotonic_timer *base, struct timeval *tp) argument 521 evutil_configure_monotonic_time_(struct evutil_monotonic_timer *base, int precise) argument 529 evutil_gettime_monotonic_(struct evutil_monotonic_timer *base, struct timeval *tp) argument [all...] |
H A D | signal.c | 72 to set a signal handler, and a socket pair to tell the event base when 74 Note that I said "the event base" : only one event base can be set up to use 108 /* The event base that's currently getting informed about signals. */ 120 evsig_set_base_(struct event_base *base) argument 123 evsig_base = base; 124 evsig_base_n_signals_added = base->sig.ev_n_signals_added; 125 evsig_base_fd = base->sig.ev_signal_pair[1]; 137 struct event_base *base; local 139 base 174 evsig_init_(struct event_base *base) argument 212 evsig_set_handler_(struct event_base *base, int evsignal, void (__cdecl *handler)(int)) argument 278 evsig_add(struct event_base *base, evutil_socket_t evsignal, short old, short events, void *p) argument 324 evsig_restore_handler_(struct event_base *base, int evsignal) argument 361 evsig_del(struct event_base *base, evutil_socket_t evsignal, short old, short events, void *p) argument 413 evsig_dealloc_(struct event_base *base) argument [all...] |
H A D | event.c | 142 static void event_queue_make_later_events_active(struct event_base *base); 144 static int evthread_make_base_notifiable_nolock_(struct event_base *base); 162 static int evthread_notify_base(struct event_base *base); 344 #define EVENT_BASE_ASSERT_LOCKED(base) \ 345 EVLOCK_ASSERT_LOCKED((base)->th_base_lock) 351 /** Set 'tp' to the current time according to 'base'. We must hold the lock 352 * on 'base'. If there is a cached time, return it. Otherwise, use 357 gettime(struct event_base *base, struct timeval *tp) argument 359 EVENT_BASE_ASSERT_LOCKED(base); 361 if (base 382 event_base_gettimeofday_cached(struct event_base *base, struct timeval *tv) argument 404 clear_time_cache(struct event_base *base) argument 411 update_time_cache(struct event_base *base) argument 419 event_base_update_cache_time(struct event_base *base) argument 451 struct event_base *base = event_base_new_with_config(NULL); local 466 struct event_base *base = NULL; local 508 event_base_get_features(const struct event_base *base) argument 552 struct event_base *base; local 682 event_base_start_iocp_(struct event_base *base, int n_cpus) argument 699 event_base_stop_iocp_(struct event_base *base) argument 713 event_base_cancel_single_callback_(struct event_base *base, struct event_callback *evcb, int run_finalizers) argument 753 event_base_free_(struct event_base *base, int run_finalizers) argument 863 event_base_free_nofinalize(struct event_base *base) argument 869 event_base_free(struct event_base *base) argument 895 event_reinit(struct event_base *base) argument 1000 event_gettime_monotonic(struct event_base *base, struct timeval *tv) argument 1150 event_base_priority_init(struct event_base *base, int npriorities) argument 1190 event_base_get_npriorities(struct event_base *base) argument 1204 event_base_get_num_events(struct event_base *base, unsigned int type) argument 1225 event_base_get_max_events(struct event_base *base, unsigned int type, int clear) argument 1256 event_haveevents(struct event_base *base) argument 1264 event_signal_closure(struct event_base *base, struct event *ev) argument 1318 is_common_timeout(const struct timeval *tv, const struct event_base *base) argument 1340 get_common_timeout_list(struct event_base *base, const struct timeval *tv) argument 1376 struct event_base *base = ctl->base; local 1397 event_base_init_common_timeout(struct event_base *base, const struct timeval *duration) argument 1472 event_persist_closure(struct event_base *base, struct event *ev) argument 1544 event_process_active_single_queue(struct event_base *base, struct evcallback_list *activeq, int max_to_process, const struct timeval *endtime) argument 1668 event_process_active(struct event_base *base) argument 1729 event_base_get_method(const struct event_base *base) argument 1740 struct event_base *base = arg; local 1831 event_base_loop(struct event_base *base, int flags) argument 1959 event_base_once(struct event_base *base, evutil_socket_t fd, short events, void (*callback)(evutil_socket_t, short, void *), void *arg, const struct timeval *tv) argument 2018 event_assign(struct event *ev, struct event_base *base, evutil_socket_t fd, short events, void (*callback)(evutil_socket_t, short, void *), void *arg) argument 2067 event_base_set(struct event_base *base, struct event *ev) argument 2097 event_base_get_running_event(struct event_base *base) argument 2111 event_new(struct event_base *base, evutil_socket_t fd, short events, void (*cb)(evutil_socket_t, short, void *), void *arg) argument 2150 event_finalize_nolock_(struct event_base *base, unsigned flags, struct event *ev, event_finalize_callback_fn cb) argument 2167 struct event_base *base = ev->ev_base; local 2192 event_callback_finalize_nolock_(struct event_base *base, unsigned flags, struct event_callback *evcb, void (*cb)(struct event_callback *, void *)) argument 2209 event_callback_finalize_(struct event_base *base, unsigned flags, struct event_callback *evcb, void (*cb)(struct event_callback *, void *)) argument 2220 event_callback_finalize_many_(struct event_base *base, int n_cbs, struct event_callback **evcbs, void (*cb)(struct event_callback *, void *)) argument 2410 evthread_notify_base_default(struct event_base *base) argument 2427 evthread_notify_base_eventfd(struct event_base *base) argument 2444 evthread_notify_base(struct event_base *base) argument 2460 struct event_base *base = ev->ev_base; local 2503 struct event_base *base = ev->ev_base; local 2716 struct event_base *base; local 2820 struct event_base *base; local 2879 struct event_base *base = ev->ev_base; local 2894 event_callback_activate_(struct event_base *base, struct event_callback *evcb) argument 2905 event_callback_activate_nolock_(struct event_base *base, struct event_callback *evcb) argument 2935 event_callback_activate_later_nolock_(struct event_base *base, struct event_callback *evcb) argument 2947 event_callback_init_(struct event_base *base, struct event_callback *cb) argument 2955 event_callback_cancel_(struct event_base *base, struct event_callback *evcb) argument 2966 event_callback_cancel_nolock_(struct event_base *base, struct event_callback *evcb, int even_if_finalizing) argument 3012 event_deferred_cb_cancel_(struct event_base *base, struct event_callback *cb) argument 3021 event_deferred_cb_schedule_(struct event_base *base, struct event_callback *cb) argument 3038 timeout_next(struct event_base *base, struct timeval **tv_p) argument 3076 timeout_process(struct event_base *base) argument 3123 event_queue_remove_inserted(struct event_base *base, struct event *ev) argument 3135 event_queue_remove_active(struct event_base *base, struct event_callback *evcb) argument 3151 event_queue_remove_active_later(struct event_base *base, struct event_callback *evcb) argument 3166 event_queue_remove_timeout(struct event_base *base, struct event *ev) argument 3190 event_queue_reinsert_timeout(struct event_base *base, struct event *ev, int was_common, int is_common, int old_timeout_idx) argument 3260 event_queue_insert_inserted(struct event_base *base, struct event *ev) argument 3276 event_queue_insert_active(struct event_base *base, struct event_callback *evcb) argument 3297 event_queue_insert_active_later(struct event_base *base, struct event_callback *evcb) argument 3314 event_queue_insert_timeout(struct event_base *base, struct event *ev) argument 3338 event_queue_make_later_events_active(struct event_base *base) argument 3486 struct event_base *base = arg; local 3502 struct event_base *base = arg; local 3517 evthread_make_base_notifiable(struct event_base *base) argument 3530 evthread_make_base_notifiable_nolock_(struct event_base *base) argument 3579 event_base_foreach_event_nolock_(struct event_base *base, event_base_foreach_event_cb fn, void *arg) argument 3641 dump_inserted_event_fn(const struct event_base *base, const struct event *e, void *arg) argument 3674 dump_active_event_fn(const struct event_base *base, const struct event *e, void *arg) argument 3697 event_base_foreach_event(struct event_base *base, event_base_foreach_event_cb fn, void *arg) argument 3712 event_base_dump_events(struct event_base *base, FILE *output) argument 3724 event_base_active_by_fd(struct event_base *base, evutil_socket_t fd, short events) argument 3732 event_base_active_by_signal(struct event_base *base, int sig) argument 3741 event_base_add_virtual_(struct event_base *base) argument 3750 event_base_del_virtual_(struct event_base *base) argument 3826 event_base_assert_ok_(struct event_base *base) argument 3834 event_base_assert_ok_nolock_(struct event_base *base) argument [all...] |
/freebsd-10-stable/contrib/ntp/kernel/sys/ |
H A D | pcl720.h | 23 #define pcl720_data(base,bit) (base+(bit>>3)) 24 #define pcl720_data_0_7(base) (base+0) 25 #define pcl720_data_8_15(base) (base+1) 26 #define pcl720_data_16_23(base) (base+2) 27 #define pcl720_data_24_31(base) (base [all...] |
/freebsd-10-stable/contrib/ntp/sntp/libevent/test/ |
H A D | regress_finalize.c | 76 struct event_base *base = data->base; local 87 ev = evtimer_new(base, timer_callback, &ev_called); 90 event_callback_finalize_(base, 0, &evcb, callback_finalize_callback_1); 92 event_base_dispatch(base); 98 event_base_assert_ok_(base); 102 ev = evtimer_new(base, timer_callback, &ev_called); 106 event_callback_activate_(base, &evcb); 108 event_base_dispatch(base); 113 event_base_assert_ok_(base); 258 struct event_base *base = data->base; local [all...] |
/freebsd-10-stable/lib/libstand/ |
H A D | strtol.c | 47 strtol(nptr, endptr, base) 50 int base; 65 * If base is 0, allow 0x for hex and 0 for octal, else 66 * assume decimal; if base is already 16, allow 0x. 76 if ((base == 0 || base == 16) && 80 base = 16; 82 if (base == 0) 83 base = c == '0' ? 8 : 10; 88 * base [all...] |
/freebsd-10-stable/sys/libkern/ |
H A D | strtol.c | 50 strtol(nptr, endptr, base) 53 int base; 63 * If base is 0, allow 0x for hex and 0 for octal, else 64 * assume decimal; if base is already 16, allow 0x. 74 if ((base == 0 || base == 16) && 78 base = 16; 80 if (base == 0) 81 base = c == '0' ? 8 : 10; 86 * base [all...] |
H A D | strtoul.c | 50 strtoul(nptr, endptr, base) 53 int base; 72 if ((base == 0 || base == 16) && 76 base = 16; 78 if (base == 0) 79 base = c == '0' ? 8 : 10; 80 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base; 81 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base; 91 if (c >= base) [all...] |
/freebsd-10-stable/bin/pkill/tests/ |
H A D | pkill-j_test.sh | 10 base=pkill_j_test 24 jail -c path=/ name=${base}_1_1 ip4.addr=127.0.0.1 \ 25 command=daemon -p ${PWD}/${base}_1_1.pid $sleep $sleep_amount & 27 jail -c path=/ name=${base}_1_2 ip4.addr=127.0.0.1 \ 28 command=daemon -p ${PWD}/${base}_1_2.pid $sleep $sleep_amount & 33 jid1=$(jail_name_to_jid ${base}_1_1) 34 jid2=$(jail_name_to_jid ${base}_1_2) 46 ! -f ${PWD}/${base}_1_1.pid && 47 ! -f ${PWD}/${base}_1_2.pid ; then 52 [ -f ${PWD}/${base}_1_ [all...] |
H A D | pgrep-j_test.sh | 10 base=pgrep_j_test 24 jail -c path=/ name=${base}_1_1 ip4.addr=127.0.0.1 \ 25 command=daemon -p ${PWD}/${base}_1_1.pid $sleep $sleep_amount & 27 jail -c path=/ name=${base}_1_2 ip4.addr=127.0.0.1 \ 28 command=daemon -p ${PWD}/${base}_1_2.pid $sleep $sleep_amount & 31 jid1=$(jail_name_to_jid ${base}_1_1) 32 jid2=$(jail_name_to_jid ${base}_1_2) 44 pid2=$(printf "%s\n%s" "$(cat ${PWD}/${base}_1_1.pid)" \ 45 $(cat ${PWD}/${base}_1_2.pid) | sort) 51 [ -f ${PWD}/${base}_1_ [all...] |
/freebsd-10-stable/usr.sbin/bhyve/ |
H A D | pci_lpc.h | 53 uint32_t base; member in struct:lpc_sysres 57 #define LPC_SYSRES(type, base, length) \ 60 (base), \ 65 #define SYSRES_IO(base, length) LPC_SYSRES(LPC_SYSRES_IO, base, length) 66 #define SYSRES_MEM(base, length) LPC_SYSRES(LPC_SYSRES_MEM, base, length)
|
/freebsd-10-stable/sys/dev/bxe/ |
H A D | ecore_fw_defs.h | 34 #define CSTORM_ASSERT_LIST_INDEX_OFFSET (IRO[152].base) 36 (IRO[151].base + ((assertListEntry) * IRO[151].m1)) 38 (IRO[157].base + (((pfId)>>1) * IRO[157].m1) + (((pfId)&1) * \ 41 (IRO[158].base + (((pfId)>>1) * IRO[158].m1) + (((pfId)&1) * \ 44 (IRO[163].base + ((funcId) * IRO[163].m1)) 46 (IRO[153].base + ((funcId) * IRO[153].m1)) 48 (IRO[143].base + ((hcIndex) * IRO[143].m1) + ((sbId) * IRO[143].m2)) 50 (IRO[142].base + (((hcIndex)>>2) * IRO[142].m1) + (((hcIndex)&3) \ 52 #define CSTORM_IGU_MODE_OFFSET (IRO[161].base) 54 (IRO[323].base [all...] |
/freebsd-10-stable/lib/libc/locale/ |
H A D | wcstol.c | 50 base, locale_t locale) 74 if ((base == 0 || base == 16) && 78 base = 16; 80 if (base == 0) 81 base = c == L'0' ? 8 : 10; 83 if (base < 2 || base > 36) 88 cutlim = cutoff % base; 89 cutoff /= base; 49 wcstol_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base, locale_t locale) argument 127 wcstol(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument [all...] |
H A D | wcstoll.c | 56 int base, locale_t locale) 80 if ((base == 0 || base == 16) && 84 base = 16; 86 if (base == 0) 87 base = c == L'0' ? 8 : 10; 89 if (base < 2 || base > 36) 94 cutlim = cutoff % base; 95 cutoff /= base; 55 wcstoll_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base, locale_t locale) argument 133 wcstoll(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument [all...] |
H A D | wcstoul.c | 50 int base, locale_t locale) 74 if ((base == 0 || base == 16) && 78 base = 16; 80 if (base == 0) 81 base = c == L'0' ? 8 : 10; 83 if (base < 2 || base > 36) 86 cutoff = ULONG_MAX / base; 87 cutlim = ULONG_MAX % base; 49 wcstoul_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base, locale_t locale) argument 125 wcstoul(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument [all...] |
H A D | wcstoull.c | 56 int base, locale_t locale) 80 if ((base == 0 || base == 16) && 84 base = 16; 86 if (base == 0) 87 base = c == L'0' ? 8 : 10; 89 if (base < 2 || base > 36) 92 cutoff = ULLONG_MAX / base; 93 cutlim = ULLONG_MAX % base; 55 wcstoull_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base, locale_t locale) argument 131 wcstoull(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument [all...] |
H A D | wcstoumax.c | 56 int base, locale_t locale) 80 if ((base == 0 || base == 16) && 84 base = 16; 86 if (base == 0) 87 base = c == L'0' ? 8 : 10; 89 if (base < 2 || base > 36) 92 cutoff = UINTMAX_MAX / base; 93 cutlim = UINTMAX_MAX % base; 55 wcstoumax_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base, locale_t locale) argument 131 wcstoumax(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument [all...] |
/freebsd-10-stable/lib/libc/stdlib/ |
H A D | strtoimax.c | 54 strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument 66 * If base is 0, allow 0x for hex and 0 for octal, else 67 * assume decimal; if base is already 16, allow 0x. 81 if ((base == 0 || base == 16) && 88 base = 16; 90 if (base == 0) 91 base = c == '0' ? 8 : 10; 93 if (base < 2 || base > 3 150 strtoimax(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |
H A D | strtol.c | 55 strtol_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument 67 * If base is 0, allow 0x for hex and 0 for octal, else 68 * assume decimal; if base is already 16, allow 0x. 82 if ((base == 0 || base == 16) && 89 base = 16; 91 if (base == 0) 92 base = c == '0' ? 8 : 10; 94 if (base < 2 || base > 3 150 strtol(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |
H A D | strtoll.c | 54 strtoll_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument 66 * If base is 0, allow 0x for hex and 0 for octal, else 67 * assume decimal; if base is already 16, allow 0x. 81 if ((base == 0 || base == 16) && 88 base = 16; 90 if (base == 0) 91 base = c == '0' ? 8 : 10; 93 if (base < 2 || base > 3 150 strtoll(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |
H A D | strtoul.c | 54 strtoul_l(const char * __restrict nptr, char ** __restrict endptr, int base, locale_t locale) argument 78 if ((base == 0 || base == 16) && 85 base = 16; 87 if (base == 0) 88 base = c == '0' ? 8 : 10; 90 if (base < 2 || base > 36) 93 cutoff = ULONG_MAX / base; 94 cutlim = ULONG_MAX % base; 127 strtoul(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |
H A D | strtoull.c | 54 strtoull_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument 79 if ((base == 0 || base == 16) && 86 base = 16; 88 if (base == 0) 89 base = c == '0' ? 8 : 10; 91 if (base < 2 || base > 36) 94 cutoff = ULLONG_MAX / base; 95 cutlim = ULLONG_MAX % base; 128 strtoull(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |
H A D | strtoumax.c | 54 strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, int base, argument 79 if ((base == 0 || base == 16) && 86 base = 16; 88 if (base == 0) 89 base = c == '0' ? 8 : 10; 91 if (base < 2 || base > 36) 94 cutoff = UINTMAX_MAX / base; 95 cutlim = UINTMAX_MAX % base; 128 strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base) argument [all...] |