/freebsd-10.0-release/contrib/byacc/test/ |
H A D | calc3.y | 4 %parse-param { int *base } 6 %lex-param { int *base } 14 #define YYLEX_PARAM base 16 #define YYERROR_DECL() yyerror(int regs[26], int *base, const char *s) 71 { $$ = $1; (*base) = ($1==0) ? 8 : 10; } 73 { $$ = (*base) * $1 + $2; } 86 int base = 10; 89 yyparse(regs, &base); 119 *yylval = (c - '0') % (*base);
|
/freebsd-10.0-release/tools/regression/usr.bin/yacc/ |
H A D | calc2.y | 2 %parse-param { int *base } 4 %lex-param { int *base } 11 #define YYLEX_PARAM base 13 #define YYERROR_DECL() yyerror(int regs[26], int *base, const char *s) 68 { $$ = $1; (*base) = ($1==0) ? 8 : 10; } 70 { $$ = (*base) * $1 + $2; } 83 int base = 10; 86 yyparse(regs, &base); 116 yylval = (c - '0') % (*base);
|
H A D | calc3.y | 4 %parse-param { int *base } 6 %lex-param { int *base } 14 #define YYLEX_PARAM base 16 #define YYERROR_DECL() yyerror(int regs[26], int *base, const char *s) 71 { $$ = $1; (*base) = ($1==0) ? 8 : 10; } 73 { $$ = (*base) * $1 + $2; } 86 int base = 10; 89 yyparse(regs, &base); 119 *yylval = (c - '0') % (*base);
|
/freebsd-10.0-release/crypto/heimdal/lib/krb5/ |
H A D | store_emem.c | 38 unsigned char *base; member in struct:emem_storage 48 if((size_t)(s->base + s->len - s->ptr) < size) 49 size = s->base + s->len - s->ptr; 59 if(size > (size_t)(s->base + s->size - s->ptr)){ 60 void *base; local 62 off = s->ptr - s->base; 66 base = realloc(s->base, sz); 67 if(base == NULL) 70 s->base 119 void *base; local [all...] |
/freebsd-10.0-release/sys/ia64/ia64/ |
H A D | physmem.c | 45 ia64_physmem_find(vm_paddr_t base, vm_paddr_t lim) argument 51 phys_avail[idx + 1] > base) 58 ia64_physmem_insert(u_int idx, vm_paddr_t base, vm_paddr_t lim) argument 71 phys_avail[idx] = base; 93 ia64_physmem_add(vm_paddr_t base, vm_size_t len) argument 100 lim = base + len; 101 idx = ia64_physmem_find(base, lim); 103 phys_avail[idx] = base; 106 if (idx > 0 && phys_avail[idx - 1] == base) { 110 return (ia64_physmem_insert(idx, base, li 114 ia64_physmem_delete(vm_paddr_t base, vm_size_t len) argument 143 vm_paddr_t base, lim, size; local 183 ia64_physmem_track(vm_paddr_t base, vm_size_t len) argument 193 vm_paddr_t base, lim, pa; local [all...] |
/freebsd-10.0-release/contrib/gcc/config/ |
H A D | host-hpux.c | 88 hpux_gt_pch_use_address (void *base, size_t size, int fd, size_t offset) argument 99 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, offset); 101 if (addr == base) 108 addr = mmap (base, size, PROT_READ | PROT_WRITE, 111 if (addr != base) 125 nbytes = read (fd, base, MIN (size, SSIZE_MAX)); 128 base = (char *) base + nbytes;
|
/freebsd-10.0-release/lib/libc/stdlib/ |
H A D | strtoq.c | 44 strtoq(const char *nptr, char **endptr, int base) argument 47 return strtoll(nptr, endptr, base);
|
H A D | strtouq.c | 44 strtouq(const char *nptr, char **endptr, int base) argument 47 return strtoull(nptr, endptr, base);
|
/freebsd-10.0-release/sys/libkern/ |
H A D | strtoq.c | 48 strtoq(const char *nptr, char **endptr, int base) argument 58 * If base is 0, allow 0x for hex and 0 for octal, else 59 * assume decimal; if base is already 16, allow 0x. 73 if ((base == 0 || base == 16) && 77 base = 16; 79 if (base == 0) 80 base = c == '0' ? 8 : 10; 85 * base. An input number that is greater than this value, if 90 * [-9223372036854775808..9223372036854775807] and the input base [all...] |
H A D | strtouq.c | 48 strtouq(const char *nptr, char **endptr, int base) argument 70 if ((base == 0 || base == 16) && 74 base = 16; 76 if (base == 0) 77 base = c == '0' ? 8 : 10; 78 qbase = (unsigned)base; 90 if (c >= base)
|
H A D | inet_ntop.c | 103 struct { int base, len; } best, cur; member in struct:__anon9905 117 best.base = -1; 119 cur.base = -1; 123 if (cur.base == -1) 124 cur.base = i, cur.len = 1; 128 if (cur.base != -1) { 129 if (best.base == -1 || cur.len > best.len) 131 cur.base = -1; 135 if (cur.base != -1) { 136 if (best.base [all...] |
/freebsd-10.0-release/lib/libc/locale/ |
H A D | wcstoimax.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 wcstoimax_l(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base, locale_t locale) argument 133 wcstoimax(const wchar_t * __restrict nptr, wchar_t ** __restrict endptr, int base) argument [all...] |
/freebsd-10.0-release/tools/regression/usr.bin/pkill/ |
H A D | pgrep-j.t | 4 base=`basename $0` 10 sleep=`mktemp /tmp/$base.XXXXXX` || exit 1 12 jail / $base-1 127.0.0.1 $sleep 5 & 14 jail / $base-2 127.0.0.1 $sleep 5 & 19 jid=`jls | awk "/127\\.0\\.0\\.1.*${base}-1/ {print \$1}"` 34 sleep=`mktemp /tmp/$base.XXXXXX` || exit 1 36 jail / $base-1 127.0.0.1 $sleep 5 & 38 jail / $base-2 127.0.0.1 $sleep 5 & 58 sleep=`mktemp /tmp/$base.XXXXXX` || exit 1 62 jail / $base 127. [all...] |
H A D | pkill-j.t | 4 base=`basename $0` 10 sleep=`mktemp /tmp/$base.XXXXXX` || exit 1 12 jail / $base-1 127.0.0.1 $sleep 5 & 14 jail / $base-2 127.0.0.1 $sleep 5 & 19 jid=`jls | awk "/127\\.0\\.0\\.1.*${base}-1/ {print \$1}"` 33 sleep=`mktemp /tmp/$base.XXXXXX` || exit 1 35 jail / $base-1 127.0.0.1 $sleep 5 & 37 jail / $base-2 127.0.0.1 $sleep 5 & 55 sleep=`mktemp /tmp/$base.XXXXXX` || exit 1 59 jail / $base 127. [all...] |
/freebsd-10.0-release/contrib/nvi/catalog/ |
H A D | Makefile | 9 ${CAT}: english.base 12 sort -u $@.base | \ 45 }' < $$f.base; \ 48 awk '{print $$1}' < $$f.base | sort -u > __ck1; \ 49 awk '{print $$1}' < english.base | sort -u > __ck2; \ 57 `sed '/^$$/d' < $$f.base | sort -u | \ 59 egrep $$j $$f.base; \ 63 sed '/^$$/d' < $$f.base | sort | uniq -c | \ 67 english.base: dump ${FILES} #Makefile 78 rm -f dump dump.o ${CAT} english.base * [all...] |
/freebsd-10.0-release/sys/dev/drm2/ttm/ |
H A D | ttm_object.c | 53 * for fast lookup of ref objects given a base object. 106 * that way, one can easily detect whether a base object is referenced by 108 * multiple ref objects if a ttm_object_file references the same base 148 struct ttm_base_object *base, 158 base->shareable = shareable; 159 base->tfile = ttm_object_file_ref(tfile); 160 base->refcount_release = rcount_release; 161 base->ref_obj_release = ref_obj_release; 162 base->object_type = object_type; 163 refcount_init(&base 147 ttm_base_object_init(struct ttm_object_file *tfile, struct ttm_base_object *base, bool shareable, enum ttm_object_type object_type, void (*rcount_release) (struct ttm_base_object **), void (*ref_obj_release) (struct ttm_base_object *, enum ttm_ref_type ref_type)) argument 188 ttm_release_base(struct ttm_base_object *base) argument 209 struct ttm_base_object *base = *p_base; local 229 struct ttm_base_object *base; local 257 ttm_ref_object_add(struct ttm_object_file *tfile, struct ttm_base_object *base, enum ttm_ref_type ref_type, bool *existed) argument 322 struct ttm_base_object *base = ref->obj; local [all...] |
/freebsd-10.0-release/sys/mips/nlm/hal/ |
H A D | pic.h | 59 #define PIC_IPICTRL_IDB 16 /* interrupt destination base */ 68 #define PIC_IRT_DB 16 /* Destination base */ 193 nlm_pic_read_irt(uint64_t base, int irt_index) argument 195 return nlm_read_pic_reg(base, PIC_IRT(irt_index)); 199 nlm_pic_send_ipi(uint64_t base, int cpu, int vec, int nmi) argument 211 nlm_write_pic_reg(base, PIC_IPI_CTL, ipi); 215 nlm_pic_read_control(uint64_t base) argument 217 return nlm_read_pic_reg(base, PIC_CTRL); 221 nlm_pic_write_control(uint64_t base, uint64_t control) argument 223 nlm_write_pic_reg(base, PIC_CTR 227 nlm_pic_update_control(uint64_t base, uint64_t control) argument 236 nlm_pic_ack(uint64_t base, int irt_num) argument 246 nlm_set_irt_to_cpu(uint64_t base, int irt, int cpu) argument 258 nlm_pic_write_irt(uint64_t base, int irt_num, int en, int nmi, int sch, int vec, int dt, int db, int dte) argument 272 nlm_pic_write_irt_direct(uint64_t base, int irt_num, int en, int nmi, int sch, int vec, int cpu) argument 281 nlm_pic_read_timer(uint64_t base, int timer) argument 287 nlm_pic_write_timer(uint64_t base, int timer, uint64_t value) argument 293 nlm_pic_set_timer(uint64_t base, int timer, uint64_t value, int irq, int cpu) argument [all...] |
/freebsd-10.0-release/contrib/gcc/ |
H A D | vec.h | 89 *exactly* one definition of the common non-memory managed base vector. 148 #define VEC_length(T,V) (VEC_OP(T,base,length)(VEC_BASE(V))) 166 #define VEC_last(T,V) (VEC_OP(T,base,last)(VEC_BASE(V) VEC_CHECK_INFO)) 175 #define VEC_index(T,V,I) (VEC_OP(T,base,index)(VEC_BASE(V),I VEC_CHECK_INFO)) 189 #define VEC_iterate(T,V,I,P) (VEC_OP(T,base,iterate)(VEC_BASE(V),I,&(P))) 214 #define VEC_embedded_size(T,N) (VEC_OP(T,base,embedded_size)(N)) 215 #define VEC_embedded_init(T,O,N) (VEC_OP(T,base,embedded_init)(VEC_BASE(O),N)) 236 (VEC_OP(T,base,space)(VEC_BASE(V),R VEC_CHECK_INFO)) 271 (VEC_OP(T,base,quick_push)(VEC_BASE(V),O VEC_CHECK_INFO)) 293 #define VEC_pop(T,V) (VEC_OP(T,base,po [all...] |
/freebsd-10.0-release/contrib/ldns/compat/ |
H A D | inet_ntop.c | 124 struct { int base, len; } best, cur; member in struct:__anon1529 137 best.base = -1; 139 cur.base = -1; 143 if (cur.base == -1) 144 cur.base = i, cur.len = 1; 148 if (cur.base != -1) { 149 if (best.base == -1 || cur.len > best.len) 151 cur.base = -1; 155 if (cur.base != -1) { 156 if (best.base [all...] |
/freebsd-10.0-release/contrib/tcpdump/missing/ |
H A D | inet_ntop.c | 115 long base; member in struct:__anon4234 129 best.base = -1; 130 cur.base = -1; 135 if (cur.base == -1) 136 cur.base = i, cur.len = 1; 139 else if (cur.base != -1) 141 if (best.base == -1 || cur.len > best.len) 143 cur.base = -1; 146 if ((cur.base != -1) && (best.base [all...] |
/freebsd-10.0-release/contrib/unbound/compat/ |
H A D | inet_ntop.c | 124 struct { int base, len; } best, cur; member in struct:__anon4427 137 best.base = -1; 139 cur.base = -1; 143 if (cur.base == -1) 144 cur.base = i, cur.len = 1; 148 if (cur.base != -1) { 149 if (best.base == -1 || cur.len > best.len) 151 cur.base = -1; 155 if (cur.base != -1) { 156 if (best.base [all...] |
/freebsd-10.0-release/contrib/unbound/util/ |
H A D | winsock_event.c | 68 settime(struct event_base* base) argument 70 if(gettimeofday(base->time_tv, NULL) < 0) { 74 *base->time_secs = (uint32_t)base->time_tv->tv_sec; 84 * @param base: event base to look in. 89 find_fd(struct event_base* base, int fd) argument 92 for(i=0; i<base->max; i++) { 93 if(base->items[i]->ev_fd == fd) 100 /** Find ptr in base arra 113 struct event_base* base = (struct event_base*)malloc( local 159 handle_timeouts(struct event_base* base, struct timeval* now, struct timeval* wait) argument 226 handle_select(struct event_base* base, struct timeval* wait) argument 424 event_base_dispatch(struct event_base *base) argument 445 event_base_loopexit(struct event_base *base, struct timeval * ATTR_UNUSED(tv)) argument 453 event_base_free(struct event_base *base) argument 480 event_base_set(struct event_base *base, struct event *ev) argument 657 winsock_register_wsaevent(struct event_base* base, struct event* ev, WSAEVENT wsaevent, void (*cb)(int, short, void*), void* arg) argument [all...] |
/freebsd-10.0-release/crypto/openssh/openbsd-compat/ |
H A D | inet_ntop.c | 119 struct { int base, len; } best, cur; member in struct:__anon4952 132 best.base = -1; 133 cur.base = -1; 136 if (cur.base == -1) 137 cur.base = i, cur.len = 1; 141 if (cur.base != -1) { 142 if (best.base == -1 || cur.len > best.len) 144 cur.base = -1; 148 if (cur.base != -1) { 149 if (best.base [all...] |
/freebsd-10.0-release/lib/libc/inet/ |
H A D | inet_ntop.c | 116 struct { int base, len; } best, cur; member in struct:__anon5400 128 best.base = -1; 130 cur.base = -1; 134 if (cur.base == -1) 135 cur.base = i, cur.len = 1; 139 if (cur.base != -1) { 140 if (best.base == -1 || cur.len > best.len) 142 cur.base = -1; 146 if (cur.base != -1) { 147 if (best.base [all...] |
/freebsd-10.0-release/contrib/apr-util/misc/ |
H A D | apr_rmm.c | 25 * be empty). The base pointer, rmm->base, points at the beginning of 27 * apr_rmm_off_t value, which represents the offset from the base 29 * "offset from rmm->base". 32 * the "header block", which is always stored at the base pointer. 42 * i.e. rmm->base is *not* a valid address for a block, since the 71 rmm_hdr_block_t *base; member in struct:apr_rmm_t 82 struct rmm_block_t *blk = (rmm_block_t*)((char*)rmm->base + next); 99 apr_rmm_off_t next = rmm->base->firstfree; 104 struct rmm_block_t *blk = (rmm_block_t*)((char*)rmm->base [all...] |