/freebsd/contrib/libucl/tests/ |
H A D | test_generate.c | 44 ucl_object_t *obj, *cur, *ar, *ar1, *ref, *test_obj, *comments; in main() local 74 cur = ucl_object_fromstring_common ("value1", 0, UCL_STRING_TRIM); in main() 75 ucl_object_insert_key (obj, cur, "key0", 0, false); in main() 76 cur = ucl_object_fromdouble (0.1); in main() 77 assert (ucl_object_replace_key (obj, cur, "key0", 0, false)); in main() 80 cur = ucl_object_fromstring_common (" test string ", 0, UCL_STRING_TRIM); in main() 81 ucl_object_insert_key (obj, cur, "key1", 0, false); in main() 82 cur = ucl_object_fromstring_common (" test \nstring\n\r\n\b\t\f\\\" ", 0, in main() 84 ucl_object_insert_key (obj, cur, "key2", 0, false); in main() 85 cur = ucl_object_fromstring_common (" test string \n", 0, 0); in main() [all …]
|
H A D | test_msgpack.c | 208 uint64_t cur; in ucl_test_integer() local 215 cur = ((uint64_t)pcg32_random ()) << 32 | pcg32_random (); in ucl_test_integer() 216 ucl_array_append (res, ucl_object_fromint (cur % 128)); in ucl_test_integer() 217 ucl_array_append (res, ucl_object_fromint (-(cur % 128))); in ucl_test_integer() 218 cur = ((uint64_t)pcg32_random ()) << 32 | pcg32_random (); in ucl_test_integer() 219 ucl_array_append (res, ucl_object_fromint (cur % UINT16_MAX)); in ucl_test_integer() 220 ucl_array_append (res, ucl_object_fromint (-(cur % INT16_MAX))); in ucl_test_integer() 221 cur = ((uint64_t)pcg32_random ()) << 32 | pcg32_random (); in ucl_test_integer() 222 ucl_array_append (res, ucl_object_fromint (cur % UINT32_MAX)); in ucl_test_integer() 223 ucl_array_append (res, ucl_object_fromint (-(cur % INT32_MAX))); in ucl_test_integer() [all …]
|
H A D | test_streamline.c | 32 ucl_object_t *obj, *cur, *ar; in main() local 58 cur = ucl_object_fromstring_common (" test string ", 0, UCL_STRING_TRIM); in main() 59 ucl_object_insert_key (obj, cur, "key1", 0, false); in main() 60 …cur = ucl_object_fromstring_common (" test \nstring\n ", 0, UCL_STRING_TRIM | UCL_STRING_ESCAP… in main() 61 ucl_object_insert_key (obj, cur, "key2", 0, false); in main() 62 cur = ucl_object_fromstring_common (" test string \n", 0, 0); in main() 63 ucl_object_insert_key (obj, cur, "key3", 0, false); in main() 76 cur = ucl_object_fromint (10); in main() 77 ucl_object_emit_streamline_add_object (ctx, cur); in main() 78 cur = ucl_object_fromdouble (10.1); in main() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | iplist.c | 58 list->cur.pos = -1; in iplist_first() 67 if (!inet_aton(range, &list->cur.ip)) in iplist_setrange() 69 list->cur.lstart = ntohl(list->cur.ip.s_addr); in iplist_setrange() 70 list->cur.nItems = 1; in iplist_setrange() 72 if (!do_inet_aton(range, ptr, &list->cur.ip)) in iplist_setrange() 75 list->cur.lstart = ntohl(list->cur.ip.s_addr); in iplist_setrange() 76 list->cur.nItems = 1; in iplist_setrange() 87 list->cur.lstart = ntohl(list->cur.ip.s_addr); in iplist_setrange() 88 list->cur.nItems = ntohl(endip.s_addr) - list->cur.lstart + 1; in iplist_setrange() 89 if (list->cur.nItems < 1) in iplist_setrange() [all …]
|
/freebsd/contrib/elftoolchain/libelftc/ |
H A D | libelftc_dem_gnu3.c | 102 const char *cur; /* current mangled name ptr */ member 240 if (*ddata.cur != 0 && ddata.subst.size >= 1) { in cpp_demangle_gnu3() 262 while (*ddata.cur != '\0') { in cpp_demangle_gnu3() 266 if (*ddata.cur == '@' && *(ddata.cur + 1) == '@') in cpp_demangle_gnu3() 339 cpp_demangle_data_init(struct cpp_demangle_data *d, const char *cur) in cpp_demangle_data_init() argument 342 if (d == NULL || cur == NULL) in cpp_demangle_data_init() 371 d->cur = cur; in cpp_demangle_data_init() 401 fp = ddata->cur; in cpp_demangle_push_fp() 402 while (*ddata->cur != 'E') in cpp_demangle_push_fp() 403 ++ddata->cur; in cpp_demangle_push_fp() [all …]
|
/freebsd/contrib/libcxxrt/ |
H A D | libelftc_dem_gnu3.c | 116 const char *cur; /* current mangled name ptr */ member 578 if (*ddata.cur != 0 && ddata.subst.size >= 1) { in __cxa_demangle_gnu3() 600 while (*ddata.cur != '\0') { in __cxa_demangle_gnu3() 604 if (*ddata.cur == '@' && *(ddata.cur + 1) == '@') in __cxa_demangle_gnu3() 677 cpp_demangle_data_init(struct cpp_demangle_data *d, const char *cur) in cpp_demangle_data_init() argument 680 if (d == NULL || cur == NULL) in cpp_demangle_data_init() 709 d->cur = cur; in cpp_demangle_data_init() 739 fp = ddata->cur; in cpp_demangle_push_fp() 740 while (*ddata->cur != 'E') in cpp_demangle_push_fp() 741 ++ddata->cur; in cpp_demangle_push_fp() [all …]
|
/freebsd/usr.sbin/makefs/ |
H A D | walk.c | 74 fsnode *first, *cur, *prev, *last; in walk_dir() local 95 first = cur = join; in walk_dir() 96 while (cur->next != NULL) in walk_dir() 97 cur = cur->next; in walk_dir() 98 prev = cur; in walk_dir() 135 cur = join->next; in walk_dir() 137 if (cur == NULL || strcmp(cur->name, name) == 0) in walk_dir() 139 if (cur == last) { in walk_dir() 140 cur = NULL; in walk_dir() 143 cur = cur->next; in walk_dir() [all …]
|
H A D | ffs.c | 129 doff_t cur; /* offset of current entry */ member 615 printf("ADDDIRENT: was: %s (%d) this %d cur %d\n", \ in ffs_size_dir() 621 printf("ADDDIRENT: now: %s (%d) this %d cur %d\n", \ in ffs_size_dir() 677 ffs_build_dinode1(struct ufs1_dinode *dinp, dirbuf_t *dbufp, fsnode *cur, in ffs_build_dinode1() 682 struct stat *st = stampst.st_ino != 0 ? &stampst : &cur->inode->st; in ffs_build_dinode1() 685 dinp->di_mode = cur->inode->st.st_mode; in ffs_build_dinode1() 686 dinp->di_nlink = cur->inode->nlink; in ffs_build_dinode1() 687 dinp->di_size = cur->inode->st.st_size; in ffs_build_dinode1() 689 dinp->di_flags = cur->inode->st.st_flags; in ffs_build_dinode1() 692 dinp->di_uid = cur in ffs_build_dinode1() 674 ffs_build_dinode1(struct ufs1_dinode * dinp,dirbuf_t * dbufp,fsnode * cur,fsnode * root,fsinfo_t * fsopts) ffs_build_dinode1() argument 722 ffs_build_dinode2(struct ufs2_dinode * dinp,dirbuf_t * dbufp,fsnode * cur,fsnode * root,fsinfo_t * fsopts) ffs_build_dinode2() argument 783 fsnode *cur; ffs_populate_dir() local [all...] |
H A D | ffs.c | 129 doff_t cur; /* offset of current entry */ member 677 ffs_build_dinode1(struct ufs1_dinode *dinp, dirbuf_t *dbufp, fsnode *cur, in ffs_build_dinode1() argument 682 struct stat *st = stampst.st_ino != 0 ? &stampst : &cur->inode->st; in ffs_build_dinode1() 685 dinp->di_mode = cur->inode->st.st_mode; in ffs_build_dinode1() 686 dinp->di_nlink = cur->inode->nlink; in ffs_build_dinode1() 687 dinp->di_size = cur->inode->st.st_size; in ffs_build_dinode1() 689 dinp->di_flags = cur->inode->st.st_flags; in ffs_build_dinode1() 692 dinp->di_uid = cur->inode->st.st_uid; in ffs_build_dinode1() 693 dinp->di_gid = cur->inode->st.st_gid; in ffs_build_dinode1() 706 if (cur == root) { /* "."; write dirbuf */ in ffs_build_dinode1() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/leds/ |
H A D | leds-lp55xx.txt | 15 - led-cur: Current setting at each led channel (mA x10, 0 if led is not connected) 16 - max-cur: Maximun current at each led channel. 44 led-cur = /bits/ 8 <0x2f>; 45 max-cur = /bits/ 8 <0x5f>; 50 led-cur = /bits/ 8 <0x2f>; 51 max-cur = /bits/ 8 <0x5f>; 55 led-cur = /bits/ 8 <0x2f>; 56 max-cur = /bits/ 8 <0x5f>; 79 led-cur = /bits/ 8 <0x14>; 80 max-cur = /bits/ 8 <0x20>; [all …]
|
/freebsd/contrib/mtree/ |
H A D | spec.c | 112 NODE *centry, *last, *pathparent, *cur; in spec() local 184 cur = root; in spec() 190 while (cur && in spec() 191 strcmp(cur->name, p) != 0) { in spec() 192 cur = cur->next; in spec() 195 if (cur == NULL || cur->type != F_DIR) { in spec() 200 pathparent = cur; in spec() 201 cur = cur->child; in spec() 270 NODE *cur, *next; in free_nodes() local 276 for (cur = root; cur != NULL; cur = next) { in free_nodes() [all …]
|
/freebsd/contrib/blocklist/port/ |
H A D | popenve.c | 83 struct pid *cur; in pdes_get() local 112 if ((cur = malloc(sizeof(*cur))) != NULL) in pdes_get() 113 return cur; in pdes_get() 154 pdes_parent(int *pdes, struct pid *cur, pid_t pid, const char *type) in pdes_parent() argument 162 cur->fd = pdes[0]; in pdes_parent() 168 cur->fd = pdes[1]; in pdes_parent() 174 cur->fp = iop; in pdes_parent() 175 cur->pid = pid; in pdes_parent() 176 cur->next = pidlist; in pdes_parent() 177 pidlist = cur; in pdes_parent() [all …]
|
/freebsd/usr.sbin/makefs/zfs/ |
H A D | fs.c | 175 fsnode_isroot(const fsnode *cur) in fsnode_isroot() argument 177 return (strcmp(cur->name, ".") == 0); in fsnode_isroot() 188 for (fsnode *cur = root; cur != NULL; cur = cur->next) { in fsnode_foreach() local 189 assert(cur->type == S_IFREG || cur->type == S_IFDIR || in fsnode_foreach() 190 cur->type == S_IFLNK); in fsnode_foreach() 192 if (cb(cur, arg) == 0) in fsnode_foreach() 194 if (cur->type == S_IFDIR && cur->child != NULL) in fsnode_foreach() 195 fsnode_foreach(cur->child, cb, arg); in fsnode_foreach() 200 fs_populate_dirent(struct fs_populate_arg *arg, fsnode *cur, uint64_t dnid) in fs_populate_dirent() argument 205 switch (cur->type) { in fs_populate_dirent() [all …]
|
/freebsd/contrib/openpam/lib/libpam/ |
H A D | openpam_set_option.c | 62 pam_chain_t *cur; in openpam_set_option() local 70 cur = pamh->current; in openpam_set_option() 74 for (i = 0; i < cur->optc; ++i) { in openpam_set_option() 75 if (strncmp(cur->optv[i], option, len) == 0 && in openpam_set_option() 76 (cur->optv[i][len] == '\0' || cur->optv[i][len] == '=')) in openpam_set_option() 81 if (i == cur->optc) in openpam_set_option() 83 for (free(cur->optv[i]); i < cur->optc; ++i) in openpam_set_option() 84 cur->optv[i] = cur->optv[i + 1]; in openpam_set_option() 85 cur->optv[i] = NULL; in openpam_set_option() 86 --cur->optc; in openpam_set_option() [all …]
|
/freebsd/sys/contrib/openzfs/contrib/bash_completion.d/ |
H A D | zfs.in | 65 local base_dataset="${cur%@*}" 66 if [[ "$base_dataset" != "$cur" ]] 70 if [[ "$cur" != "" ]] && __zfs_list_datasets "$cur" &> /dev/null 72 $__ZFS_CMD list -H -o name -s name -t filesystem,volume -r "$cur" | tail -n +2 77 echo "$cur" 78 echo "$cur@" 84 if [[ "$cur" == */ ]] 93 num_children=$(__zfs_list_datasets -d 1 "${cur%/}" 2> /dev/null | wc -l) 106 local base_dataset="${cur%[#@]*}" 107 if [[ "$base_dataset" != "$cur" ]] [all …]
|
/freebsd/sys/net/ |
H A D | dummymbuf.c | 213 read_rule(const char **cur, struct rule *rule, bool *eof) in read_rule() argument 220 if (*cur == NULL) in read_rule() 224 while (**cur == ' ') in read_rule() 225 (*cur)++; in read_rule() 226 rule->syntax_begin = *cur; in read_rule() 230 char *delim = strchr(*cur, ';'); in read_rule() 233 rule->syntax_len = (int)(delim - *cur + 1); in read_rule() 236 if (strstr(*cur, "inet6") == *cur) { in read_rule() 238 *cur += strlen("inet6"); in read_rule() 239 } else if (strstr(*cur, "inet") == *cur) { in read_rule() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/ti/omap/ |
H A D | omap3-echo.dts | 158 led-cur = /bits/ 8 <12>; 159 max-cur = /bits/ 8 <15>; 165 led-cur = /bits/ 8 <12>; 166 max-cur = /bits/ 8 <15>; 172 led-cur = /bits/ 8 <12>; 173 max-cur = /bits/ 8 <15>; 185 led-cur = /bits/ 8 <12>; 186 max-cur = /bits/ 8 <15>; 192 led-cur = /bits/ 8 <12>; 193 max-cur = /bits/ 8 <15>; [all …]
|
/freebsd/sbin/pfctl/ |
H A D | pfctl_qstats.c | 338 print_cbqstats(struct queue_stats cur) argument 342 (unsigned long long)cur.data.cbq_stats.xmit_cnt.packets, 343 (unsigned long long)cur.data.cbq_stats.xmit_cnt.bytes, 344 (unsigned long long)cur.data.cbq_stats.drop_cnt.packets, 345 (unsigned long long)cur.data.cbq_stats.drop_cnt.bytes); 347 cur.data.cbq_stats.qcnt, cur.data.cbq_stats.qmax, 348 cur.data.cbq_stats.borrows, cur.data.cbq_stats.delays); 350 if (cur.avgn < 2) 354 cur.avg_packets / STAT_INTERVAL, 355 rate2str((8 * cur.avg_bytes) / STAT_INTERVAL)); [all …]
|
/freebsd/sys/kern/ |
H A D | kern_rangelock.c | 477 struct rl_q_entry *cur, *free, *next, **prev; in rangelock_noncheating_destroy() local 483 cur = rl_q_load(prev); in rangelock_noncheating_destroy() 484 MPASS(!rl_e_is_marked(cur)); in rangelock_noncheating_destroy() 487 if (cur == NULL) in rangelock_noncheating_destroy() 489 if (rl_e_is_marked(cur)) in rangelock_noncheating_destroy() 492 next = rl_q_load(&cur->rl_q_next); in rangelock_noncheating_destroy() 495 if (rl_q_cas(prev, cur, next)) { in rangelock_noncheating_destroy() 497 cur->rl_q_owner = NULL; in rangelock_noncheating_destroy() 499 cur->rl_q_free = free; in rangelock_noncheating_destroy() 500 free = cur; in rangelock_noncheating_destroy() [all …]
|
/freebsd/usr.sbin/autofs/ |
H A D | popen.c | 77 struct pid *cur, *p; in auto_popen() local 90 cur = malloc(sizeof(struct pid)); in auto_popen() 91 if (cur == NULL) in auto_popen() 110 cur->command = checked_strdup(command); in auto_popen() 134 cur->outfp = fdopen(outfds[0], "r"); in auto_popen() 139 cur->pid = pid; in auto_popen() 140 SLIST_INSERT_HEAD(&pidlist, cur, next); in auto_popen() 142 return (cur->outfp); in auto_popen() 148 struct pid *cur, *last = NULL; in auto_pclose() local 155 SLIST_FOREACH(cur, &pidlist, next) { in auto_pclose() [all …]
|
/freebsd/lib/libugidfw/ |
H A D | ugidfw.c | 67 char *cur, type[sizeof(rule->mbr_object.mbo_type) * CHAR_BIT + 1]; in bsde_rule_to_string() local 71 cur = buf; in bsde_rule_to_string() 74 len = snprintf(cur, left, "subject "); in bsde_rule_to_string() 78 cur += len; in bsde_rule_to_string() 81 len = snprintf(cur, left, "not "); in bsde_rule_to_string() 85 cur += len; in bsde_rule_to_string() 92 len = snprintf(cur, left, "! "); in bsde_rule_to_string() 96 cur += len; in bsde_rule_to_string() 101 len = snprintf(cur, left, "uid %s", in bsde_rule_to_string() 106 cur += len; in bsde_rule_to_string() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | arcstat.in | 265 cur = {} 360 global cur 363 prev = copy.deepcopy(cur) 366 cur = kstat 369 cur["caches_size"] = caches_size = cur["anon_data"]+cur["anon_metadata"]+\ 370 cur["mfu_data"]+cur["mfu_metadata"]+cur["mru_data"]+cur["mru_metadata"]+\ 371 cur["uncached_data"]+cur["uncached_metadata"] 373 pd = cur["pd"] 374 pm = cur["pm"] 375 meta = cur["meta"] [all …]
|
/freebsd/libexec/mknetid/ |
H A D | hash.c | 111 struct member_entry *cur; in lookup() local 113 cur = table[hashkey(key)]; in lookup() 115 while (cur) { in lookup() 116 if (!strcmp(cur->key, key)) in lookup() 117 return(cur->groups); in lookup() 118 cur = cur->next; in lookup() 131 struct member_entry *cur, *new; in mstore() local 136 cur = table[i]; in mstore() 145 while (cur) { in mstore() 146 if (!dup && !strcmp(cur->key, key)) { in mstore() [all …]
|
/freebsd/libexec/revnetgroup/ |
H A D | hash.c | 113 struct group_entry *cur; in lookup() local 115 cur = table[hashkey(key)]; in lookup() 117 while (cur) { in lookup() 118 if (!strcmp(cur->key, key)) in lookup() 119 return(cur->data); in lookup() 120 cur = cur->next; in lookup() 175 struct member_entry *cur, *new; in mstore() local 180 cur = table[i]; in mstore() 187 while (cur) { in mstore() 188 if (!strcmp(cur->key, key)) { in mstore() [all …]
|
/freebsd/usr.sbin/iostat/ |
H A D | iostat.c | 137 static struct statinfo cur, last; variable 321 cur.dinfo = (struct devinfo *)calloc(1, sizeof(struct devinfo)); in main() 322 if (cur.dinfo == NULL) in main() 334 if (devstat_getdevs(kd, &cur) == -1) in main() 337 num_devices = cur.dinfo->numdevs; in main() 338 generation = cur.dinfo->generation; in main() 378 cur.dinfo->devices, num_devices, matches, in main() 423 bzero(cur.cp_time, sizeof(cur.cp_time)); in main() 424 cur.tk_nout = 0; in main() 425 cur.tk_nin = 0; in main() [all …]
|