Home
last modified time | relevance | path

Searched refs:source (Results 1 – 25 of 1669) sorted by relevance

12345678910>>...67

/minix3/external/bsd/llvm/dist/llvm/lib/Support/
H A DConvertUTF.c122 const UTF32* source = *sourceStart; in ConvertUTF32toUTF16() local
124 while (source < sourceEnd) { in ConvertUTF32toUTF16()
129 ch = *source++; in ConvertUTF32toUTF16()
134 --source; /* return to the illegal value itself */ in ConvertUTF32toUTF16()
152 --source; /* Back up source pointer! */ in ConvertUTF32toUTF16()
160 *sourceStart = source; in ConvertUTF32toUTF16()
171 const UTF16* source = *sourceStart; in ConvertUTF16toUTF32() local
174 while (source < sourceEnd) { in ConvertUTF16toUTF32()
175 … const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */ in ConvertUTF16toUTF32()
176 ch = *source++; in ConvertUTF16toUTF32()
[all …]
/minix3/external/bsd/bind/dist/lib/isc/win32/
H A Dentropy.c51 get_from_filesource(isc_entropysource_t *source, isc_uint32_t desired) { in get_from_filesource() argument
52 isc_entropy_t *ent = source->ent; in get_from_filesource()
54 HCRYPTPROV hcryptprov = source->sources.file.handle; in get_from_filesource()
58 if (source->bad) in get_from_filesource()
68 source->bad = ISC_TRUE; in get_from_filesource()
93 isc_entropysource_t *source; in fillpool() local
161 source = ent->nextsource; in fillpool()
166 firstsource = source; in fillpool()
176 if (source->type == ENTROPY_SOURCETYPE_FILE) in fillpool()
177 got = get_from_filesource(source, remaining); in fillpool()
[all …]
/minix3/external/bsd/bind/dist/lib/isc/unix/
H A Dentropy.c75 get_from_filesource(isc_entropysource_t *source, isc_uint32_t desired) { in get_from_filesource() argument
76 isc_entropy_t *ent = source->ent; in get_from_filesource()
78 int fd = source->sources.file.handle; in get_from_filesource()
82 if (source->bad) in get_from_filesource()
107 source->sources.file.handle = -1; in get_from_filesource()
108 source->bad = ISC_TRUE; in get_from_filesource()
115 get_from_usocketsource(isc_entropysource_t *source, isc_uint32_t desired) { in get_from_usocketsource() argument
116 isc_entropy_t *ent = source->ent; in get_from_usocketsource()
118 int fd = source->sources.usocket.handle; in get_from_usocketsource()
121 size_t sz_to_recv = source->sources.usocket.sz_to_recv; in get_from_usocketsource()
[all …]
/minix3/external/bsd/llvm/dist/clang/test/Index/
H A Dusrs.m103 // RUN: c-index-test -test-load-source-usrs all -target x86_64-apple-macosx10.7 %s -isystem %S/Inpu…
173 // RUN: c-index-test -test-load-source all %s -isystem %S/Inputs | FileCheck -check-prefix=CHECK-so…
174 // CHECK-source: usrs-system.h:1:9: macro definition=MACRO_FROM_SYSTEM_HEADER_1 Extent=[1:9 - 1:40]
175 // CHECK-source: usrs.m:94:9: macro definition=MACRO1 Extent=[94:9 - 94:19]
176 // CHECK-source: usrs.m:96:9: macro definition=MACRO2 Extent=[96:9 - 96:19]
177 // CHECK-source: usrs.m:98:9: macro definition=MACRO2 Extent=[98:9 - 98:19]
178 // CHECK-source: usrs.m:100:9: macro definition=MACRO3 Extent=[100:9 - 100:25]
179 // CHECK-source: usrs.m:101:9: macro definition=MACRO3 Extent=[101:9 - 101:25]
180 // CHECK-source: usrs.m:3:19: FunctionDecl=my_helper:3:19 (Definition) Extent=[3:1 - 3:60]
181 // CHECK-source: usrs.m:3:33: ParmDecl=x:3:33 (Definition) Extent=[3:29 - 3:34]
[all …]
/minix3/external/bsd/bind/dist/lib/isc/
H A Dlex.c197 inputsource *source; in new_source() local
200 source = isc_mem_get(lex->mctx, sizeof(*source)); in new_source()
201 if (source == NULL) in new_source()
203 source->result = ISC_R_SUCCESS; in new_source()
204 source->is_file = is_file; in new_source()
205 source->need_close = need_close; in new_source()
206 source->at_eof = ISC_FALSE; in new_source()
207 source->input = input; in new_source()
208 source->name = isc_mem_strdup(lex->mctx, name); in new_source()
209 if (source->name == NULL) { in new_source()
[all …]
H A Dbase32.c45 str_totext(const char *source, isc_buffer_t *target);
58 base32_totext(isc_region_t *source, int wordlength, const char *wordbreak, in base32_totext() argument
68 while (source->length > 0) { in base32_totext()
69 buf[0] = base[((source->base[0]>>3)&0x1f)]; /* 5 + */ in base32_totext()
70 if (source->length == 1) { in base32_totext()
71 buf[1] = base[(source->base[0]<<2)&0x1c]; in base32_totext()
77 buf[1] = base[((source->base[0]<<2)&0x1c)| /* 3 = 8 */ in base32_totext()
78 ((source->base[1]>>6)&0x03)]; /* 2 + */ in base32_totext()
79 buf[2] = base[((source->base[1]>>1)&0x1f)]; /* 5 + */ in base32_totext()
80 if (source->length == 2) { in base32_totext()
[all …]
H A Dentropy.c191 destroyfilesource(isc_entropyfilesource_t *source);
194 destroyusocketsource(isc_entropyusocketsource_t *source);
483 get_from_callback(isc_entropysource_t *source, unsigned int desired, in get_from_callback() argument
486 isc_entropy_t *ent = source->ent; in get_from_callback()
487 isc_cbsource_t *cbs = &source->sources.callback; in get_from_callback()
495 if (source->bad) in get_from_callback()
499 result = cbs->startfunc(source, cbs->arg, blocking); in get_from_callback()
508 result = cbs->getfunc(source, cbs->arg, blocking); in get_from_callback()
516 source->bad = ISC_TRUE; in get_from_callback()
726 isc_entropysource_t *source; in destroysource() local
[all …]
H A Dbase64.c45 str_totext(const char *source, isc_buffer_t *target);
55 isc_base64_totext(isc_region_t *source, int wordlength, in isc_base64_totext() argument
65 while (source->length > 2) { in isc_base64_totext()
66 buf[0] = base64[(source->base[0]>>2)&0x3f]; in isc_base64_totext()
67 buf[1] = base64[((source->base[0]<<4)&0x30)| in isc_base64_totext()
68 ((source->base[1]>>4)&0x0f)]; in isc_base64_totext()
69 buf[2] = base64[((source->base[1]<<2)&0x3c)| in isc_base64_totext()
70 ((source->base[2]>>6)&0x03)]; in isc_base64_totext()
71 buf[3] = base64[source->base[2]&0x3f]; in isc_base64_totext()
73 isc_region_consume(source, 3); in isc_base64_totext()
[all …]
H A Dstring.c64 isc_string_touint64(char *source, char **end, int base) { in isc_string_touint64() argument
67 char *s = source; in isc_string_touint64()
72 *end = source; in isc_string_touint64()
90 *end = source; in isc_string_touint64()
111 *end = source; in isc_string_touint64()
117 *end = source; in isc_string_touint64()
128 isc_string_copy(char *target, size_t size, const char *source) { in isc_string_copy() argument
131 if (strlcpy(target, source, size) >= size) { in isc_string_copy()
142 isc_string_copy_truncate(char *target, size_t size, const char *source) { in isc_string_copy_truncate() argument
145 strlcpy(target, source, size); in isc_string_copy_truncate()
[all …]
/minix3/external/bsd/llvm/dist/llvm/test/SymbolRewriter/
H A Drewrite.map2 source: source_function,
7 source: source_variable,
12 source: source_function_(.*),
17 source: source_variable_(.*),
22 source: naked_source_function,
28 source: imported_function,
33 source: missing_global_leader_prefix,
38 source: first_callee,
43 source: _ZN1SC1Ev,
48 source: source_comdat_function,
[all …]
/minix3/minix/fs/ext2/
H A Dsuper.c30 struct super_block *source);
370 register struct super_block *source in super_copy() argument
377 memcpy(dest, source, SUPER_SIZE_D); in super_copy()
380 dest->s_inodes_count = conv4(le_CPU, source->s_inodes_count); in super_copy()
381 dest->s_blocks_count = conv4(le_CPU, source->s_blocks_count); in super_copy()
382 dest->s_r_blocks_count = conv4(le_CPU, source->s_r_blocks_count); in super_copy()
383 dest->s_free_blocks_count = conv4(le_CPU, source->s_free_blocks_count); in super_copy()
384 dest->s_free_inodes_count = conv4(le_CPU, source->s_free_inodes_count); in super_copy()
385 dest->s_first_data_block = conv4(le_CPU, source->s_first_data_block); in super_copy()
386 dest->s_log_block_size = conv4(le_CPU, source->s_log_block_size); in super_copy()
[all …]
/minix3/external/bsd/bind/dist/lib/dns/
H A Drcode.c201 str_totext(const char *source, isc_buffer_t *target) { in str_totext() argument
206 l = strlen(source); in str_totext()
211 memmove(region.base, source, l); in str_totext()
217 maybe_numeric(unsigned int *valuep, isc_textregion_t *source, in maybe_numeric() argument
224 if (! isdigit(source->base[0] & 0xff) || in maybe_numeric()
225 source->length > NUMBERSIZE - 1) in maybe_numeric()
233 strncpy(buffer, source->base, sizeof(buffer)); in maybe_numeric()
236 INSIST(buffer[source->length] == '\0'); in maybe_numeric()
250 dns_mnemonic_fromtext(unsigned int *valuep, isc_textregion_t *source, in dns_mnemonic_fromtext() argument
256 result = maybe_numeric(valuep, source, max, ISC_FALSE); in dns_mnemonic_fromtext()
[all …]
H A Dncache.c284 isc_buffer_t source, savedbuffer, rdlen; in dns_ncache_towire() local
305 isc_buffer_init(&source, rdata.data, rdata.length); in dns_ncache_towire()
306 isc_buffer_add(&source, rdata.length); in dns_ncache_towire()
308 isc_buffer_remainingregion(&source, &remaining); in dns_ncache_towire()
311 isc_buffer_forward(&source, name.length); in dns_ncache_towire()
315 type = isc_buffer_getuint16(&source); in dns_ncache_towire()
316 isc_buffer_forward(&source, 1); in dns_ncache_towire()
317 rcount = isc_buffer_getuint16(&source); in dns_ncache_towire()
324 isc_buffer_remainingregion(&source, &remaining); in dns_ncache_towire()
327 rdata.length = isc_buffer_getuint16(&source); in dns_ncache_towire()
[all …]
/minix3/minix/lib/libsys/arch/i386/
H A Dget_randomness.c14 void get_randomness(rand, source) in get_randomness() argument
16 int source;
24 source %= RANDOM_SOURCES;
25 if (rand->bin[source].r_size >= RANDOM_ELEMENTS) return;
26 r_next= rand->bin[source].r_next;
28 rand->bin[source].r_buf[r_next] = tsc_low;
29 if (rand->bin[source].r_size < RANDOM_ELEMENTS) {
30 rand->bin[source].r_size ++;
32 rand->bin[source].r_next = (r_next + 1 ) % RANDOM_ELEMENTS;
/minix3/external/bsd/llvm/dist/clang/bindings/python/tests/cindex/
H A Dutil.py6 def get_tu(source, lang='c', all_warnings=False, flags=[]): argument
31 source)])
33 def get_cursor(source, spelling): argument
43 root_cursor = source if isinstance(source, Cursor) else source.cursor
51 def get_cursors(source, spelling): argument
61 root_cursor = source if isinstance(source, Cursor) else source.cursor
/minix3/bin/ln/
H A Dln.c153 linkit(const char *target, const char *source, int isdir) in linkit() argument
171 (!lstat(source, &sb) && S_ISDIR(sb.st_mode)) || in linkit()
172 (!hflag && !stat(source, &sb) && S_ISDIR(sb.st_mode))) { in linkit()
177 (void)snprintf(path, sizeof(path), "%s/%s", source, p); in linkit()
178 source = path; in linkit()
181 exists = !lstat(source, &sb); in linkit()
188 if (unlink(source)) { in linkit()
189 warn("%s", source); in linkit()
194 (void)fprintf(stderr, "replace %s? ", source); in linkit()
204 if (unlink(source)) { in linkit()
[all …]
/minix3/external/bsd/file/dist/magic/magdir/
H A Dc-lang7 0 search/8192 "libhdr" BCPL source text
9 0 search/8192 "LIBHDR" BCPL source text
13 0 regex \^#include C source text
15 0 regex \^char[\ \t\n]+ C source text
17 0 regex \^double[\ \t\n]+ C source text
19 0 regex \^extern[\ \t\n]+ C source text
21 0 regex \^float[\ \t\n]+ C source text
23 0 regex \^struct[\ \t\n]+ C source text
25 0 regex \^union[\ \t\n]+ C source text
27 0 search/8192 main( C source text
[all …]
H A Dassembler3 # make: file(1) magic for assembler source
5 0 regex \^[\040\t]{0,50}\\.asciiz assembler source text
7 0 regex \^[\040\t]{0,50}\\.byte assembler source text
9 0 regex \^[\040\t]{0,50}\\.even assembler source text
11 0 regex \^[\040\t]{0,50}\\.globl assembler source text
13 0 regex \^[\040\t]{0,50}\\.text assembler source text
15 0 regex \^[\040\t]{0,50}\\.file assembler source text
17 0 regex \^[\040\t]{0,50}\\.type assembler source text
/minix3/external/bsd/bind/dist/bin/tests/
H A Dcompress_test.c102 isc_buffer_t source; in test() local
119 isc_buffer_init(&source, buf1, sizeof(buf1)); in test()
122 RUNTIME_CHECK(dns_name_towire(name1, &cctx, &source) == ISC_R_SUCCESS); in test()
129 RUNTIME_CHECK(dns_name_towire(name2, &cctx, &source) == ISC_R_SUCCESS); in test()
130 RUNTIME_CHECK(dns_name_towire(name2, &cctx, &source) == ISC_R_SUCCESS); in test()
131 RUNTIME_CHECK(dns_name_towire(name3, &cctx, &source) == ISC_R_SUCCESS); in test()
141 for (i = 0; i < source.used; /* */ ) { in test()
143 ((unsigned char *)source.base)[i]); in test()
147 if (i == source.used) in test()
154 isc_buffer_setactive(&source, source.used); in test()
[all …]
H A Dname_test.c51 isc_buffer_t source; in print_name() local
55 isc_buffer_init(&source, s, sizeof(s)); in print_name()
57 result = dns_name_totext(name, ISC_FALSE, &source); in print_name()
61 isc_buffer_usedregion(&source, &r); in print_name()
75 isc_buffer_t source; in main() local
128 isc_buffer_init(&source, argv[0], len); in main()
129 isc_buffer_add(&source, len); in main()
132 result = dns_name_fromtext(origin, &source, in main()
151 isc_buffer_init(&source, argv[1], len); in main()
152 isc_buffer_add(&source, len); in main()
[all …]
H A Dentropy2_test.c63 start(isc_entropysource_t *source, void *arg, isc_boolean_t blocking) { in start() argument
66 UNUSED(source); in start()
77 stop(isc_entropysource_t *source, void *arg) { in stop() argument
80 UNUSED(source); in stop()
89 get(isc_entropysource_t *source, void *arg, isc_boolean_t blocking) { in get() argument
109 result = isc_entropy_addcallbacksample(source, sample, extra); in get()
126 isc_entropysource_t *source; in main() local
145 source = NULL; in main()
147 &source); in main()
169 isc_entropy_destroysource(&source); in main()
/minix3/external/bsd/bind/dist/lib/dns/tests/
H A Drdata_test.c51 isc_buffer_t source, target; in ATF_TC_BODY() local
67 isc_buffer_init(&source, hipwire, sizeof(hipwire)); in ATF_TC_BODY()
68 isc_buffer_add(&source, sizeof(hipwire)); in ATF_TC_BODY()
69 isc_buffer_setactive(&source, i); in ATF_TC_BODY()
74 dns_rdatatype_hip, &source, &dctx, in ATF_TC_BODY()
206 isc_buffer_t source, target; in ATF_TC_BODY() local
215 isc_buffer_init(&source, test_data[i].data, test_data[i].len); in ATF_TC_BODY()
216 isc_buffer_add(&source, test_data[i].len); in ATF_TC_BODY()
217 isc_buffer_setactive(&source, test_data[i].len); in ATF_TC_BODY()
222 dns_rdatatype_opt, &source, in ATF_TC_BODY()
[all …]
/minix3/external/bsd/bind/include/dns/
H A Dcode.h351 case 1: result = fromwire_in_a(rdclass, type, source, dctx, options, target); break; \
352 case 3: result = fromwire_ch_a(rdclass, type, source, dctx, options, target); break; \
353 case 4: result = fromwire_hs_a(rdclass, type, source, dctx, options, target); break; \
357 case 2: result = fromwire_ns(rdclass, type, source, dctx, options, target); break; \
358 case 3: result = fromwire_md(rdclass, type, source, dctx, options, target); break; \
359 case 4: result = fromwire_mf(rdclass, type, source, dctx, options, target); break; \
360 case 5: result = fromwire_cname(rdclass, type, source, dctx, options, target); break; \
361 case 6: result = fromwire_soa(rdclass, type, source, dctx, options, target); break; \
362 case 7: result = fromwire_mb(rdclass, type, source, dctx, options, target); break; \
363 case 8: result = fromwire_mg(rdclass, type, source, dctx, options, target); break; \
[all …]
/minix3/minix/drivers/system/random/
H A Drandom.c33 static void add_sample(int source, unsigned long sample);
64 void random_update(source, buf, count) in random_update() argument
65 int source; in random_update()
72 printf("random_update: got %d samples for source %d\n", count, source);
74 if (source < 0 || source >= TOTAL_SOURCES)
75 panic("random_update: bad source: %d", source);
77 add_sample(source, buf[i]);
130 static void add_sample(source, sample) in add_sample() argument
131 int source; in add_sample()
144 di= deriv[source][i];
[all …]
/minix3/external/bsd/libpcap/dist/
H A Dpcap-snoop.c227 (void)strncpy(sr.sr_ifname, p->opt.source, sizeof(sr.sr_ifname)); in pcap_activate_snoop()
247 if (strncmp("et", p->opt.source, 2) == 0 || /* Challenge 10 Mbit */ in pcap_activate_snoop()
248 strncmp("ec", p->opt.source, 2) == 0 || /* Indigo/Indy 10 Mbit, in pcap_activate_snoop()
250 strncmp("ef", p->opt.source, 2) == 0 || /* O200/2000 10/100 Mbit */ in pcap_activate_snoop()
251 strncmp("eg", p->opt.source, 2) == 0 || /* Octane/O2xxx/O3xxx Gigabit */ in pcap_activate_snoop()
252 strncmp("gfe", p->opt.source, 3) == 0 || /* GIO 100 Mbit */ in pcap_activate_snoop()
253 strncmp("fxp", p->opt.source, 3) == 0 || /* Challenge VME Enet */ in pcap_activate_snoop()
254 strncmp("ep", p->opt.source, 2) == 0 || /* Challenge 8x10 Mbit EPLEX */ in pcap_activate_snoop()
255 strncmp("vfe", p->opt.source, 3) == 0 || /* Challenge VME 100Mbit */ in pcap_activate_snoop()
256 strncmp("fa", p->opt.source, 2) == 0 || in pcap_activate_snoop()
[all …]

12345678910>>...67