/freebsd-10-stable/bin/ed/test/ |
H A D | ckscripts.sh | 23 # base=`expr $i : '\([^.]*\)'` 24 # base=`echo $i | sed 's/\..*//'` 25 base=`$ED - \!"echo $i" <<-EOF 28 if $base.ed; then 29 if cmp -s $base.o $base.r; then :; else 30 echo "*** Output $base.o of script $i is incorrect ***"
|
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.lltostrbase.d | 32 base = -2; 48 printf("base %2d of %20d: ", base, val[i]); 54 printf(" %s\n", lltostr(val[i], base)); 72 base++; 76 /base > 40/
|
/freebsd-10-stable/contrib/binutils/libiberty/ |
H A D | strtol.c | 33 @deftypefn Supplemental {long int} strtol (const char *@var{string}, char **@var{endptr}, int @var{base}) 34 @deftypefnx Supplemental {unsigned long int} strtoul (const char *@var{string}, char **@var{endptr}, int @var{base}) 37 long integer value according to the given @var{base}, which must be 38 between 2 and 36 inclusive, or be the special value 0. If @var{base} 40 to indicate bases 8 and 16, respectively, else default to base 10. 41 When the base is 16 (either explicitly or implicitly), a prefix of 88 strtol(const char *nptr, char **endptr, register int base) argument 98 * If base is 0, allow 0x for hex and 0 for octal, else 99 * assume decimal; if base is already 16, allow 0x. 109 if ((base [all...] |
H A D | strtoul.c | 61 strtoul(const char *nptr, char **endptr, register int base) argument 80 if ((base == 0 || base == 16) && 84 base = 16; 86 if (base == 0) 87 base = c == '0' ? 8 : 10; 88 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base; 89 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base; 97 if (c >= base) 103 acc *= base; [all...] |
H A D | bsearch.c | 33 @deftypefn Supplemental void* bsearch (const void *@var{key}, const void *@var{base}, size_t @var{nmemb}, size_t @var{size}, int (*@var{compar})(const void *, const void *)) 36 @var{base} for a member that matches the object pointed to by @var{key}. 62 * the base up one item past p: e.g., when lim is 5 we change base 74 register const char *base = (const char *) base0; local 79 p = base + (lim >> 1) * size; 84 base = (const char *)p + size;
|
H A D | choose-temp.c | 59 const char *base = choose_tmpdir (); local 63 len = strlen (base); 65 strcpy (temp_filename, base);
|
/freebsd-10-stable/contrib/byacc/test/ |
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); 97 UNUSED(base); /* %parse-param base i [all...] |
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); 100 UNUSED(base); /* %parse-param base i [all...] |
H A D | err_syntax27.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); 100 UNUSED(base); /* %parse-param base i [all...] |
/freebsd-10-stable/contrib/gcclibs/libiberty/ |
H A D | strtol.c | 33 @deftypefn Supplemental {long int} strtol (const char *@var{string}, char **@var{endptr}, int @var{base}) 34 @deftypefnx Supplemental {unsigned long int} strtoul (const char *@var{string}, char **@var{endptr}, int @var{base}) 37 long integer value according to the given @var{base}, which must be 38 between 2 and 36 inclusive, or be the special value 0. If @var{base} 40 to indicate bases 8 and 16, respectively, else default to base 10. 41 When the base is 16 (either explicitly or implicitly), a prefix of 88 strtol(const char *nptr, char **endptr, register int base) argument 98 * If base is 0, allow 0x for hex and 0 for octal, else 99 * assume decimal; if base is already 16, allow 0x. 109 if ((base [all...] |
H A D | strtoul.c | 61 strtoul(const char *nptr, char **endptr, register int base) argument 80 if ((base == 0 || base == 16) && 84 base = 16; 86 if (base == 0) 87 base = c == '0' ? 8 : 10; 88 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base; 89 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base; 97 if (c >= base) 103 acc *= base; [all...] |
H A D | bsearch.c | 33 @deftypefn Supplemental void* bsearch (const void *@var{key}, const void *@var{base}, size_t @var{nmemb}, size_t @var{size}, int (*@var{compar})(const void *, const void *)) 36 @var{base} for a member that matches the object pointed to by @var{key}. 62 * the base up one item past p: e.g., when lim is 5 we change base 74 register const char *base = (const char *) base0; local 79 p = base + (lim >> 1) * size; 84 base = (const char *)p + size;
|
H A D | choose-temp.c | 59 const char *base = choose_tmpdir (); local 63 len = strlen (base); 65 strcpy (temp_filename, base);
|
/freebsd-10-stable/crypto/openssh/openbsd-compat/ |
H A D | strtoul.c | 48 strtoul(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; 79 cutoff = ULONG_MAX / (unsigned long)base; 80 cutlim = ULONG_MAX % (unsigned long)base; 88 if (c >= base) 98 acc *= (unsigned long)base; [all...] |
H A D | strtoull.c | 50 strtoull(const char *nptr, char **endptr, int base) argument 72 if ((base == 0 || base == 16) && 76 base = 16; 78 if (base == 0) 79 base = c == '0' ? 8 : 10; 81 cutoff = ULLONG_MAX / (unsigned long long)base; 82 cutlim = ULLONG_MAX % (unsigned long long)base; 90 if (c >= base) 100 acc *= (unsigned long long)base; [all...] |
/freebsd-10-stable/contrib/ntp/lib/isc/ |
H A D | strtoul.c | 74 isc_strtoul(const char *nptr, char **endptr, int base) { argument 92 if ((base == 0 || base == 16) && 96 base = 16; 98 if (base == 0) 99 base = c == '0' ? 8 : 10; 100 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base; 101 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base; 111 if (c >= base) 117 acc *= base; [all...] |
H A D | base32.c | 46 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length); 57 isc_buffer_t *target, const char base[]) 67 buf[0] = base[((source->base[0]>>3)&0x1f)]; /* 5 + */ 69 buf[1] = base[(source->base[0]<<2)&0x1c]; 75 buf[1] = base[((source->base[0]<<2)&0x1c)| /* 3 = 8 */ 76 ((source->base[1]>>6)&0x03)]; /* 2 + */ 77 buf[2] = base[((sourc 56 base32_totext(isc_region_t *source, int wordlength, const char *wordbreak, isc_buffer_t *target, const char base[]) argument 144 const char *base; /*%< Which encoding we are using */ member in struct:__anon61 149 base32_decode_init(base32_decode_ctx_t *ctx, int length, const char base[], isc_buffer_t *target) argument 255 base32_tobuffer(isc_lex_t *lexer, const char base[], isc_buffer_t *target, int length) argument 297 base32_decodestring(const char *cstr, const char base[], isc_buffer_t *target) argument 324 base32_decoderegion(isc_region_t *source, const char base[], isc_buffer_t *target) argument 364 mem_tobuffer(isc_buffer_t *target, void *base, unsigned int length) argument [all...] |
/freebsd-10-stable/contrib/pf/libevent/ |
H A D | event.c | 210 event_base_free(struct event_base *base) argument 214 if (base == NULL && current_base) 215 base = current_base; 216 if (base == current_base) 219 assert(base); 220 assert(TAILQ_EMPTY(&base->eventqueue)); 221 for (i=0; i < base->nactivequeues; ++i) 222 assert(TAILQ_EMPTY(base->activequeues[i])); 224 assert(RB_EMPTY(&base->timetree)); 226 for (i = 0; i < base 243 event_base_priority_init(struct event_base *base, int npriorities) argument 275 event_haveevents(struct event_base *base) argument 287 event_process_active(struct event_base *base) argument 341 struct event_base *base = arg; local 370 event_base_loop(struct event_base *base, int flags) argument 528 event_base_set(struct event_base *base, struct event *ev) argument 594 struct event_base *base = ev->ev_base; local 658 struct event_base *base; local 714 timeout_next(struct event_base *base, struct timeval *tv) argument 744 timeout_correct(struct event_base *base, struct timeval *off) argument 757 timeout_process(struct event_base *base) argument 781 event_queue_remove(struct event_base *base, struct event *ev, int queue) argument 818 event_queue_insert(struct event_base *base, struct event *ev, int queue) argument [all...] |
/freebsd-10-stable/contrib/gcc/config/ |
H A D | host-solaris.c | 36 sol_gt_pch_use_address (void *base, size_t size, int fd, size_t offset) argument 46 addr = mmap (base, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, 52 if (addr != base) 63 if (mincore ((char *)base + i, page_size, (void *)&one_byte) == -1 70 addr = mmap (base, size, 75 return addr == base ? 1 : -1;
|
/freebsd-10-stable/contrib/gcc/config/i386/ |
H A D | host-cygwin.c | 54 void *base; local 68 base = mmap (NULL, sz, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); 70 if (base == MAP_FAILED) 71 base = NULL; 73 munmap (base, sz); 78 return base;
|
/freebsd-10-stable/contrib/sendmail/libsm/ |
H A D | strto.c | 33 ** base -- numeric base that 'nptr' number is based in 44 sm_strtoll(nptr, endptr, base) 47 register int base; 57 ** If base is 0, allow 0x for hex and 0 for octal, else 58 ** assume decimal; if base is already 16, allow 0x. 77 if ((base == 0 || base == 16) && 82 base = 16; 84 if (base [all...] |
/freebsd-10-stable/contrib/ipfilter/lib/ |
H A D | printlookup.c | 13 printlookup(base, addr, mask) 14 char *base; 38 strncpy(name, base + addr->iplookupname, sizeof(name));
|
H A D | print_toif.c | 15 print_toif(family, tag, base, fdp) 18 char *base; 24 PRINTF("%s %s%s", tag, base + fdp->fd_name, 43 PRINTF("%s dstlist/%s ", tag, base + fdp->fd_name);
|
/freebsd-10-stable/sys/dev/hptmv/ |
H A D | mv.c | 59 MV_REG_WRITE_BYTE(MV_BUS_ADDR_T base, MV_U32 offset, MV_U8 val) argument 61 writeb((void *)((ULONG_PTR)base + offset), val); 65 MV_REG_WRITE_WORD(MV_BUS_ADDR_T base, MV_U32 offset, MV_U16 val) argument 67 writew((void *)((ULONG_PTR)base + offset), val); 71 MV_REG_WRITE_DWORD(MV_BUS_ADDR_T base, MV_U32 offset, MV_U32 val) argument 73 writel((void *)((ULONG_PTR)base + offset), val); 77 MV_REG_READ_BYTE(MV_BUS_ADDR_T base, MV_U32 offset) argument 79 return readb((void *)((ULONG_PTR)base + offset)); 83 MV_REG_READ_WORD(MV_BUS_ADDR_T base, MV_U32 offset) argument 85 return readw((void *)((ULONG_PTR)base 89 MV_REG_READ_DWORD(MV_BUS_ADDR_T base, MV_U32 offset) argument [all...] |
/freebsd-10-stable/sys/mips/nlm/ |
H A D | board_cpld.c | 53 int nlm_cpld_read(uint64_t base, int reg) argument 57 val = *(volatile uint16_t *)(long)(base + reg * 2); 62 nlm_cpld_write(uint64_t base, int reg, uint16_t data) argument 65 *(volatile uint16_t *)(long)(base + reg * 2) = data; 69 nlm_board_cpld_majorversion(uint64_t base) argument 71 return (nlm_cpld_read(base, CPLD_REVISION) >> 8); 75 nlm_board_cpld_minorversion(uint64_t base) argument 77 return (nlm_cpld_read(base, CPLD_REVISION) & 0xff); 90 nlm_board_cpld_reset(uint64_t base) argument 93 nlm_cpld_write(base, CPLD_RESE 100 nlm_board_cpld_dboard_type(uint64_t base, int slot) argument [all...] |