| /dflybsd-src/usr.bin/sdpquery/ |
| H A D | search.c | 107 print_service_class_id_list(uint8_t const *start, uint8_t const *end) in print_service_class_id_list() argument 111 if (end - start < 2) { in print_service_class_id_list() 113 "Too short, len=%td\n", end - start); in print_service_class_id_list() 117 SDP_GET8(type, start); in print_service_class_id_list() 120 SDP_GET8(len, start); in print_service_class_id_list() 124 SDP_GET16(len, start); in print_service_class_id_list() 128 SDP_GET32(len, start); in print_service_class_id_list() 138 while (start < end) { in print_service_class_id_list() 139 SDP_GET8(type, start); in print_service_class_id_list() 142 SDP_GET16(value, start); in print_service_class_id_list() [all …]
|
| /dflybsd-src/lib/libsdp/ |
| H A D | util.c | 305 sdp_print(uint32_t level, uint8_t *start, uint8_t const *end) in sdp_print() argument 321 if (start == NULL || end == NULL) in sdp_print() 324 while (start < end) { in sdp_print() 328 SDP_GET8(type, start); in sdp_print() 336 SDP_GET8(value.uint8, start); in sdp_print() 340 SDP_GET16(value.uint16, start); in sdp_print() 344 SDP_GET32(value.uint32, start); in sdp_print() 348 SDP_GET64(value.uint64, start); in sdp_print() 354 SDP_GET128(&value.int128, start); in sdp_print() 371 SDP_GET_UUID128(&value.int128, start); in sdp_print() [all …]
|
| /dflybsd-src/contrib/mdocml/ |
| H A D | mandoc.c | 95 mandoc_escape(const char **end, const char **start, int *sz) in mandoc_escape() argument 107 if (NULL == start) in mandoc_escape() 108 start = &local_start; in mandoc_escape() 127 *start = ++*end; in mandoc_escape() 131 switch ((*start)[-1]) { in mandoc_escape() 142 if (**start == ' ') { in mandoc_escape() 150 if ('\'' != **start) in mandoc_escape() 152 *start = ++*end; in mandoc_escape() 207 switch ((*start)[-1]) { in mandoc_escape() 218 switch (**start) { in mandoc_escape() [all …]
|
| /dflybsd-src/games/primes/ |
| H A D | primes.c | 87 ubig start; /* where to start generating */ in main() local 104 start = 0; in main() 120 start = strtoul(argv[0], &p, 0); in main() 139 start = strtoul(argv[0], &p, 0); in main() 146 start = read_num_buf(); in main() 152 if (start > stop) in main() 154 primes(start, stop); in main() 193 primes(ubig start, ubig stop) in primes() argument 207 if (start < 3) { in primes() 208 start = (ubig)2; in primes() [all …]
|
| /dflybsd-src/contrib/gcc-8.0/libgomp/ |
| H A D | loop.c | 36 gomp_loop_init (struct gomp_work_share *ws, long start, long end, long incr, in gomp_loop_init() argument 42 ws->end = ((incr > 0 && start > end) || (incr < 0 && start < end)) in gomp_loop_init() 43 ? start : end; in gomp_loop_init() 45 ws->next = start; in gomp_loop_init() 98 gomp_loop_static_start (long start, long end, long incr, long chunk_size, in gomp_loop_static_start() argument 106 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_static_start() 120 gomp_loop_dynamic_start (long start, long end, long incr, long chunk_size, in gomp_loop_dynamic_start() argument 128 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_dynamic_start() 148 gomp_loop_guided_start (long start, long end, long incr, long chunk_size, in gomp_loop_guided_start() argument 156 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_guided_start() [all …]
|
| H A D | iter.c | 152 long start, end, chunk, left; in gomp_iter_dynamic_next_locked() local 154 start = ws->next; in gomp_iter_dynamic_next_locked() 155 if (start == ws->end) in gomp_iter_dynamic_next_locked() 159 left = ws->end - start; in gomp_iter_dynamic_next_locked() 170 end = start + chunk; in gomp_iter_dynamic_next_locked() 173 *pstart = start; in gomp_iter_dynamic_next_locked() 188 long start, end, nend, chunk, incr; in gomp_iter_dynamic_next() local 221 start = __atomic_load_n (&ws->next, MEMMODEL_RELAXED); in gomp_iter_dynamic_next() 224 long left = end - start; in gomp_iter_dynamic_next() 227 if (start == end) in gomp_iter_dynamic_next() [all …]
|
| H A D | iter_ull.c | 154 gomp_ull start, end, chunk, left; in gomp_iter_ull_dynamic_next_locked() local 156 start = ws->next_ull; in gomp_iter_ull_dynamic_next_locked() 157 if (start == ws->end_ull) in gomp_iter_ull_dynamic_next_locked() 161 left = ws->end_ull - start; in gomp_iter_ull_dynamic_next_locked() 172 end = start + chunk; in gomp_iter_ull_dynamic_next_locked() 175 *pstart = start; in gomp_iter_ull_dynamic_next_locked() 190 gomp_ull start, end, nend, chunk; in gomp_iter_ull_dynamic_next() local 222 start = __atomic_load_n (&ws->next_ull, MEMMODEL_RELAXED); in gomp_iter_ull_dynamic_next() 225 gomp_ull left = end - start; in gomp_iter_ull_dynamic_next() 228 if (start == end) in gomp_iter_ull_dynamic_next() [all …]
|
| H A D | loop_ull.c | 37 gomp_loop_ull_init (struct gomp_work_share *ws, bool up, gomp_ull start, in gomp_loop_ull_init() argument 44 ws->end_ull = ((up && start > end) || (!up && start < end)) in gomp_loop_ull_init() 45 ? start : end; in gomp_loop_ull_init() 47 ws->next_ull = start; in gomp_loop_ull_init() 100 gomp_loop_ull_static_start (bool up, gomp_ull start, gomp_ull end, in gomp_loop_ull_static_start() argument 109 gomp_loop_ull_init (thr->ts.work_share, up, start, end, incr, in gomp_loop_ull_static_start() 118 gomp_loop_ull_dynamic_start (bool up, gomp_ull start, gomp_ull end, in gomp_loop_ull_dynamic_start() argument 127 gomp_loop_ull_init (thr->ts.work_share, up, start, end, incr, in gomp_loop_ull_dynamic_start() 144 gomp_loop_ull_guided_start (bool up, gomp_ull start, gomp_ull end, in gomp_loop_ull_guided_start() argument 153 gomp_loop_ull_init (thr->ts.work_share, up, start, end, incr, in gomp_loop_ull_guided_start() [all …]
|
| /dflybsd-src/contrib/gdb-7/readline/ |
| H A D | undo.c | 72 alloc_undo_entry (what, start, end, text) in alloc_undo_entry() argument 74 int start, end; 81 temp->start = start; 92 rl_add_undo (what, start, end, text) in rl_add_undo() argument 94 int start, end; 99 temp = alloc_undo_entry (what, start, end, text); 131 new = alloc_undo_entry (entry->what, entry->start, entry->end, (char *)NULL); 170 int waiting_for_begin, start, end; in rl_do_undo() local 174 start = end = waiting_for_begin = 0; in rl_do_undo() 187 start = TRANS (rl_undo_list->start); in rl_do_undo() [all …]
|
| /dflybsd-src/contrib/gcc-4.7/libgomp/ |
| H A D | loop.c | 35 gomp_loop_init (struct gomp_work_share *ws, long start, long end, long incr, in gomp_loop_init() argument 41 ws->end = ((incr > 0 && start > end) || (incr < 0 && start < end)) in gomp_loop_init() 42 ? start : end; in gomp_loop_init() 44 ws->next = start; in gomp_loop_init() 97 gomp_loop_static_start (long start, long end, long incr, long chunk_size, in gomp_loop_static_start() argument 105 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_static_start() 114 gomp_loop_dynamic_start (long start, long end, long incr, long chunk_size, in gomp_loop_dynamic_start() argument 122 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_dynamic_start() 139 gomp_loop_guided_start (long start, long end, long incr, long chunk_size, in gomp_loop_guided_start() argument 147 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_guided_start() [all …]
|
| H A D | iter.c | 151 long start, end, chunk, left; in gomp_iter_dynamic_next_locked() local 153 start = ws->next; in gomp_iter_dynamic_next_locked() 154 if (start == ws->end) in gomp_iter_dynamic_next_locked() 158 left = ws->end - start; in gomp_iter_dynamic_next_locked() 169 end = start + chunk; in gomp_iter_dynamic_next_locked() 172 *pstart = start; in gomp_iter_dynamic_next_locked() 187 long start, end, nend, chunk, incr; in gomp_iter_dynamic_next() local 220 start = ws->next; in gomp_iter_dynamic_next() 223 long left = end - start; in gomp_iter_dynamic_next() 226 if (start == end) in gomp_iter_dynamic_next() [all …]
|
| H A D | iter_ull.c | 153 gomp_ull start, end, chunk, left; in gomp_iter_ull_dynamic_next_locked() local 155 start = ws->next_ull; in gomp_iter_ull_dynamic_next_locked() 156 if (start == ws->end_ull) in gomp_iter_ull_dynamic_next_locked() 160 left = ws->end_ull - start; in gomp_iter_ull_dynamic_next_locked() 171 end = start + chunk; in gomp_iter_ull_dynamic_next_locked() 174 *pstart = start; in gomp_iter_ull_dynamic_next_locked() 189 gomp_ull start, end, nend, chunk; in gomp_iter_ull_dynamic_next() local 221 start = ws->next_ull; in gomp_iter_ull_dynamic_next() 224 gomp_ull left = end - start; in gomp_iter_ull_dynamic_next() 227 if (start == end) in gomp_iter_ull_dynamic_next() [all …]
|
| H A D | loop_ull.c | 36 gomp_loop_ull_init (struct gomp_work_share *ws, bool up, gomp_ull start, in gomp_loop_ull_init() argument 43 ws->end_ull = ((up && start > end) || (!up && start < end)) in gomp_loop_ull_init() 44 ? start : end; in gomp_loop_ull_init() 46 ws->next_ull = start; in gomp_loop_ull_init() 99 gomp_loop_ull_static_start (bool up, gomp_ull start, gomp_ull end, in gomp_loop_ull_static_start() argument 108 gomp_loop_ull_init (thr->ts.work_share, up, start, end, incr, in gomp_loop_ull_static_start() 117 gomp_loop_ull_dynamic_start (bool up, gomp_ull start, gomp_ull end, in gomp_loop_ull_dynamic_start() argument 126 gomp_loop_ull_init (thr->ts.work_share, up, start, end, incr, in gomp_loop_ull_dynamic_start() 143 gomp_loop_ull_guided_start (bool up, gomp_ull start, gomp_ull end, in gomp_loop_ull_guided_start() argument 152 gomp_loop_ull_init (thr->ts.work_share, up, start, end, incr, in gomp_loop_ull_guided_start() [all …]
|
| /dflybsd-src/contrib/bmake/ |
| H A D | str.h | 44 const char *start; member 109 Substring_Init(const char *start, const char *end) in Substring_Init() argument 113 sub.start = start; in Substring_Init() 127 return (size_t)(sub.end - sub.start); in Substring_Length() 133 return sub.start == sub.end; in Substring_IsEmpty() 141 memcmp(sub.start, str, len) == 0; in Substring_Equals() 149 memcmp(sub.start, str.start, len) == 0; in Substring_Eq() 153 Substring_Sub(Substring sub, size_t start, size_t end) in Substring_Sub() argument 155 assert(start <= Substring_Length(sub)); in Substring_Sub() 157 return Substring_Init(sub.start + start, sub.start + end); in Substring_Sub() [all …]
|
| /dflybsd-src/contrib/libarchive/libarchive/ |
| H A D | archive_acl.c | 63 static int isint_w(const wchar_t *start, const wchar_t *end, int *result); 64 static int ismode_w(const wchar_t *start, const wchar_t *end, int *result); 65 static int is_nfs4_flags_w(const wchar_t *start, const wchar_t *end, 67 static int is_nfs4_perms_w(const wchar_t *start, const wchar_t *end, 69 static void next_field_w(const wchar_t **wp, const wchar_t **start, 74 static int isint(const char *start, const char *end, int *result); 75 static int ismode(const char *start, const char *end, int *result); 76 static int is_nfs4_flags(const char *start, const char *end, 78 static int is_nfs4_perms(const char *start, const char *end, 80 static void next_field(const char **p, const char **start, [all …]
|
| /dflybsd-src/contrib/wpa_supplicant/src/wps/ |
| H A D | wps_er_ssdp.c | 26 char buf[MULTICAST_MAX_READ], *pos, *pos2, *start; in wps_er_ssdp_rx() local 59 for (start = buf; start && *start; start = pos) { in wps_er_ssdp_rx() 60 pos = os_strchr(start, '\n'); in wps_er_ssdp_rx() 66 if (os_strstr(start, "schemas-wifialliance-org:device:" in wps_er_ssdp_rx() 69 if (os_strstr(start, "schemas-wifialliance-org:service:" in wps_er_ssdp_rx() 72 if (os_strncasecmp(start, "LOCATION:", 9) == 0) { in wps_er_ssdp_rx() 73 start += 9; in wps_er_ssdp_rx() 74 while (*start == ' ') in wps_er_ssdp_rx() 75 start++; in wps_er_ssdp_rx() 76 location = start; in wps_er_ssdp_rx() [all …]
|
| /dflybsd-src/sys/vm/ |
| H A D | vm_map.c | 138 ((((entry)->ba.start ^ (entry)->ba.end) & ~MAP_ENTRY_PARTITION_MASK) == 0) 171 vm_ooffset_t start); 183 vm_offset_t start, vm_offset_t end, int *countp, int flags); 272 if (a->ba.start < b->ba.start) in rb_vm_map_compare() 274 else if (a->ba.start > b->ba.start) in rb_vm_map_compare() 563 n = (cur->ba.end - cur->ba.start) / PAGE_SIZE; in vmspace_swap_count() 652 return(scan->start); in vm_map_freehint_find() 665 vm_map_freehint_update(vm_map_t map, vm_offset_t start, in vm_map_freehint_update() argument 673 scan->start = start; in vm_map_freehint_update() 679 scan->start = start; in vm_map_freehint_update() [all …]
|
| /dflybsd-src/sys/dev/drm/ |
| H A D | drm_mm.c | 105 u64 start, 151 node->start, node->size); in show_leaks() 158 node->start, node->size, buf); in show_leaks() 171 #define START(node) ((node)->start) 172 #define LAST(node) ((node)->start + (node)->size - 1) 180 drm_mm_interval_tree_iter_first(struct rb_root *rb, u64 start, u64 last) in INTERVAL_TREE_DEFINE() 186 if (LAST(node) >= start && START(node) <= last) in INTERVAL_TREE_DEFINE() 194 __drm_mm_interval_first(const struct drm_mm *mm, u64 start, u64 last) 197 start, last) ?: (struct drm_mm_node *)&mm->head_node; 242 node->start = adj_start; in drm_mm_insert_helper() [all …]
|
| /dflybsd-src/sys/dev/pccard/cardbus/ |
| H A D | cardbus_cis.c | 61 uint8_t *tupledata, uint32_t start, uint32_t *off, 71 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 74 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 77 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 80 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 83 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 86 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 89 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 92 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, 95 int len, uint8_t *tupledata, uint32_t start, uint32_t *off, [all …]
|
| /dflybsd-src/sys/bus/isa/ |
| H A D | isahint.c | 42 int sensitive, start, count, t; in isahint_add_device() local 59 start = 0; in isahint_add_device() 61 resource_int_value(name, unit, "port", &start); in isahint_add_device() 63 if (start > 0 || count > 0) in isahint_add_device() 64 bus_set_resource(child, SYS_RES_IOPORT, 0, start, count, -1); in isahint_add_device() 66 start = 0; in isahint_add_device() 68 resource_int_value(name, unit, "maddr", &start); in isahint_add_device() 70 if (start > 0 || count > 0) in isahint_add_device() 71 bus_set_resource(child, SYS_RES_MEMORY, 0, start, count, -1); in isahint_add_device() 73 if (resource_int_value(name, unit, "irq", &start) == 0 && start > 0) { in isahint_add_device() [all …]
|
| /dflybsd-src/sbin/gpt/ |
| H A D | map.c | 45 mkmap(off_t start, off_t size, int type) in mkmap() argument 52 m->map_start = start; in mkmap() 62 map_add(off_t start, off_t size, int type, void *data) in map_add() argument 67 while (n != NULL && n->map_start + n->map_size <= start) in map_add() 72 if (n->map_start + n->map_size < start + size) { in map_add() 77 if (n->map_start == start && n->map_size == size) { in map_add() 82 (long long)start, (long long)size); in map_add() 99 m = mkmap(start, size, type); in map_add() 105 if (start == n->map_start) { in map_add() 115 } else if (start + size == n->map_start + n->map_size) { in map_add() [all …]
|
| /dflybsd-src/contrib/cvs-1.12/lib/ |
| H A D | canonicalize.c | 146 char const *start; in canonicalize_filename_mode() local 191 for (start = end = name; *start; start = end) in canonicalize_filename_mode() 194 while (*start == '/') in canonicalize_filename_mode() 195 ++start; in canonicalize_filename_mode() 198 for (end = start; *end && *end != '/'; ++end) in canonicalize_filename_mode() 201 if (end - start == 0) in canonicalize_filename_mode() 203 else if (end - start == 1 && start[0] == '.') in canonicalize_filename_mode() 205 else if (end - start == 2 && start[0] == '.' && start[1] == '.') in canonicalize_filename_mode() 218 if (dest + (end - start) >= rname_limit) in canonicalize_filename_mode() 223 if (end - start + 1 > PATH_MAX) in canonicalize_filename_mode() [all …]
|
| /dflybsd-src/contrib/binutils-2.34/binutils/ |
| H A D | dwarf.c | 202 val += section->address + (data - section->start); in get_encoded_value() 670 if (section->start == NULL) in fetch_indirect_string() 680 ret = section->start + offset; in fetch_indirect_string() 698 if (section->start == NULL) in fetch_indirect_line_string() 708 ret = section->start + offset; in fetch_indirect_line_string() 732 if (index_section->start == NULL) in fetch_indexed_string() 745 if (str_section->start == NULL) in fetch_indexed_string() 749 str_offset = byte_get (index_section->start + index_offset, offset_size); in fetch_indexed_string() 758 ret = (const char *) str_section->start + str_offset; in fetch_indexed_string() 774 if (section->start == NULL) in fetch_indexed_value() [all …]
|
| /dflybsd-src/contrib/binutils-2.27/binutils/ |
| H A D | strings.c | 563 file_ptr start; in print_strings() local 571 start = address; in print_strings() 596 if (sizeof (start) > sizeof (long)) in print_strings() 599 printf ("%7llo ", (unsigned long long) start); in print_strings() 601 printf ("%7I64o ", (unsigned long long) start); in print_strings() 606 if (start != (unsigned long) start) in print_strings() 607 printf ("++%7lo ", (unsigned long) start); in print_strings() 610 printf ("%7lo ", (unsigned long) start); in print_strings() 615 if (sizeof (start) > sizeof (long)) in print_strings() 618 printf ("%7lld ", (unsigned long long) start); in print_strings() [all …]
|
| /dflybsd-src/usr.bin/rfcomm_sppd/ |
| H A D | rfcomm_sdp.c | 76 static int rfcomm_proto_list_parse (uint8_t const *start, uint8_t const *end, 208 rfcomm_proto_list_parse(uint8_t const *start, uint8_t const *end, in rfcomm_proto_list_parse() argument 213 while (start < end) { in rfcomm_proto_list_parse() 229 if (end - start < 1) in rfcomm_proto_list_parse() 232 SDP_GET8(type, start); in rfcomm_proto_list_parse() 235 SDP_GET8(len, start); in rfcomm_proto_list_parse() 239 SDP_GET16(len, start); in rfcomm_proto_list_parse() 243 SDP_GET32(len, start); in rfcomm_proto_list_parse() 252 if (end - start < 3) in rfcomm_proto_list_parse() 256 SDP_GET8(type, start); len -= sizeof(uint8_t); in rfcomm_proto_list_parse() [all …]
|