Searched defs:cur (Results 1 - 25 of 343) sorted by relevance

1234567891011>>

/freebsd-head/contrib/openpam/lib/libpam/
H A Dopenpam_get_option.c60 pam_chain_t *cur; local
67 cur = pamh->current;
69 for (i = 0; i < cur->optc; ++i) {
70 if (strncmp(cur->optv[i], option, len) == 0) {
71 if (cur->optv[i][len] == '\0')
72 RETURNS(&cur->optv[i][len]);
73 else if (cur->optv[i][len] == '=')
74 RETURNS(&cur->optv[i][len + 1]);
H A Dopenpam_set_option.c64 pam_chain_t *cur; local
72 cur = pamh->current;
76 for (i = 0; i < cur->optc; ++i) {
77 if (strncmp(cur->optv[i], option, len) == 0 &&
78 (cur->optv[i][len] == '\0' || cur->optv[i][len] == '='))
83 if (i == cur->optc)
85 for (free(cur->optv[i]); i < cur->optc; ++i)
86 cur
[all...]
/freebsd-head/lib/libc/gen/
H A Dftw.c37 FTSENT *cur; local
50 while ((cur = fts_read(ftsp)) != NULL) {
51 switch (cur->fts_info) {
80 error = fn(cur->fts_path, cur->fts_statp, fnflag);
H A Dftw-compat11.c41 FTSENT11 *cur; local
55 while ((cur = freebsd11_fts_read(ftsp)) != NULL) {
56 switch (cur->fts_info) {
85 error = fn(cur->fts_path, cur->fts_statp, fnflag);
H A Dnftw.c38 FTSENT *cur; local
61 while ((cur = fts_read(ftsp)) != NULL) {
62 switch (cur->fts_info) {
96 ftw.base = cur->fts_pathlen - cur->fts_namelen;
97 ftw.level = cur->fts_level;
98 error = fn(cur->fts_path, cur->fts_statp, fnflag, &ftw);
H A Dnftw-compat11.c42 FTSENT11 *cur; local
65 while ((cur = freebsd11_fts_read(ftsp)) != NULL) {
66 switch (cur->fts_info) {
100 ftw.base = cur->fts_pathlen - cur->fts_namelen;
101 ftw.level = cur->fts_level;
102 error = fn(cur->fts_path, cur->fts_statp, fnflag, &ftw);
H A Dpopen.c72 struct pid *cur; local
96 if ((cur = malloc(sizeof(struct pid))) == NULL) {
112 free(cur);
131 free(cur);
172 cur->fp = iop;
173 cur->pid = pid;
175 SLIST_INSERT_HEAD(&pidlist, cur, next);
197 struct pid *cur, *last = NULL; local
205 SLIST_FOREACH(cur, &pidlist, next) {
206 if (cur
[all...]
/freebsd-head/contrib/ncurses/ncurses/tinfo/
H A Dlib_cur_term.c134 TERMINAL *cur = ( local
143 if (termp == cur)
/freebsd-head/sys/libkern/
H A Dmemmem.c38 char *cur, *last; local
57 for (cur = __DECONST(char *, cl); cur <= last; cur++)
58 if (cur[0] == cs[0] && memcmp(cur, cs, s_len) == 0)
59 return cur;
H A Dinet_ntop.c103 struct { int base, len; } best, cur; local
119 cur.base = -1;
120 cur.len = 0;
123 if (cur.base == -1)
124 cur.base = i, cur.len = 1;
126 cur.len++;
128 if (cur.base != -1) {
129 if (best.base == -1 || cur.len > best.len)
130 best = cur;
[all...]
/freebsd-head/tools/tools/ath/common/
H A Ddiag.h47 void *cur; member in struct:statshandler
/freebsd-head/contrib/libucl/tests/
H A Dtest_streamline.c32 ucl_object_t *obj, *cur, *ar; local
58 cur = ucl_object_fromstring_common (" test string ", 0, UCL_STRING_TRIM);
59 ucl_object_insert_key (obj, cur, "key1", 0, false);
60 cur = ucl_object_fromstring_common (" test \nstring\n ", 0, UCL_STRING_TRIM | UCL_STRING_ESCAPE);
61 ucl_object_insert_key (obj, cur, "key2", 0, false);
62 cur = ucl_object_fromstring_common (" test string \n", 0, 0);
63 ucl_object_insert_key (obj, cur, "key3", 0, false);
76 cur = ucl_object_fromint (10);
77 ucl_object_emit_streamline_add_object (ctx, cur);
78 cur
[all...]
/freebsd-head/usr.sbin/ppp/
H A Diplist.h41 struct iplist_cur cur; member in struct:iplist
/freebsd-head/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_atomic_clang_other.h85 typename T::Type cur; local
87 cur = __sync_val_compare_and_swap(&a->val_dont_use, cmp, v);
88 if (cur == cmp || cur == v)
90 cmp = cur;
H A Dsanitizer_lfstack.h50 T *cur = (T*)(uptr)(cmp & kPtrMask); local
51 if (!cur)
53 T *nxt = cur->next;
58 return cur;
/freebsd-head/contrib/apr/misc/unix/
H A Dotherchild.c88 apr_other_child_rec_t *cur; local
90 cur = other_children;
91 while (cur) {
92 if (cur->data == data) {
95 cur = cur->next;
99 apr_pool_cleanup_kill(cur->p, cur->data, other_child_cleanup);
/freebsd-head/contrib/netbsd-tests/lib/libc/gen/
H A Dt_closefrom.c84 int buf[16], cur, half; local
93 cur = fcntl(0, F_MAXFD);
94 ATF_REQUIRE(cur == STDERR_FILENO);
101 cur = fcntl(0, F_MAXFD);
102 ATF_REQUIRE(cur == __arraycount(buf) + STDERR_FILENO);
107 cur = fcntl(0, F_MAXFD);
108 ATF_REQUIRE(cur == half - 1);
/freebsd-head/contrib/ntp/lib/isc/
H A Dinet_ntop.c124 struct { int base, len; } best, cur; local
137 cur.base = -1;
138 best.len = cur.len = 0;
141 if (cur.base == -1)
142 cur.base = i, cur.len = 1;
144 cur.len++;
146 if (cur.base != -1) {
147 if (best.base == -1 || cur.len > best.len)
148 best = cur;
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libc/db/
H A Dh_lfsr.c48 next(uint16_t *cur) argument
50 uint16_t lsb = *cur & 1;
51 *cur >>= 1;
52 *cur ^= (-lsb) & 0xB400u;
53 return *cur;
/freebsd-head/stand/i386/libi386/
H A Dbiossmap.c62 struct smap_buf *cur, *next; local
99 STAILQ_FOREACH(cur, &head, bufs)
100 smapbase[n++] = cur->smap;
106 STAILQ_FOREACH(cur, &head, bufs)
107 smapattr[n++] = cur->xattr &
112 cur = STAILQ_FIRST(&head);
113 while (cur != NULL) {
114 next = STAILQ_NEXT(cur, bufs);
115 free(cur);
116 cur
[all...]
/freebsd-head/libexec/mknetid/
H A Dhash.c116 struct member_entry *cur; local
118 cur = table[hashkey(key)];
120 while (cur) {
121 if (!strcmp(cur->key, key))
122 return(cur->groups);
123 cur = cur->next;
136 struct member_entry *cur, *new; local
141 cur = table[i];
150 while (cur) {
[all...]
/freebsd-head/libexec/revnetgroup/
H A Dhash.c118 struct group_entry *cur; local
120 cur = table[hashkey(key)];
122 while (cur) {
123 if (!strcmp(cur->key, key))
124 return(cur->data);
125 cur = cur->next;
180 struct member_entry *cur, *new; local
185 cur = table[i];
192 while (cur) {
[all...]
/freebsd-head/lib/libc/inet/
H A Dinet_ntop.c117 struct { int base, len; } best, cur; local
131 cur.base = -1;
132 cur.len = 0;
135 if (cur.base == -1)
136 cur.base = i, cur.len = 1;
138 cur.len++;
140 if (cur.base != -1) {
141 if (best.base == -1 || cur.len > best.len)
142 best = cur;
[all...]
/freebsd-head/usr.sbin/autofs/
H A Dpopen.c80 struct pid *cur, *p; local
93 cur = malloc(sizeof(struct pid));
94 if (cur == NULL)
113 cur->command = checked_strdup(command);
137 cur->outfp = fdopen(outfds[0], "r");
142 cur->pid = pid;
143 SLIST_INSERT_HEAD(&pidlist, cur, next);
145 return (cur->outfp);
151 struct pid *cur, *last = NULL; local
158 SLIST_FOREACH(cur,
[all...]
/freebsd-head/contrib/gcc/
H A Dtree-iterator.c70 struct tree_statement_list_node *head, *tail, *cur; local
102 cur = i->ptr;
105 if (cur)
107 head->prev = cur->prev;
112 tail->next = cur;
113 cur->prev = tail;
146 struct tree_statement_list_node *head, *tail, *cur; local
178 cur = i->ptr;
181 if (cur)
183 tail->next = cur
221 struct tree_statement_list_node *cur, *next, *prev; local
248 struct tree_statement_list_node *cur, *next; local
275 struct tree_statement_list_node *cur, *prev; local
[all...]

Completed in 339 milliseconds

1234567891011>>