Home
last modified time | relevance | path

Searched refs:endp (Results 1 – 25 of 217) sorted by relevance

123456789

/netbsd/src/external/ibm-public/postfix/dist/src/global/
Dscache_multi.c138 static void scache_multi_drop_endp(SCACHE_MULTI_ENDP *endp, int direction) in scache_multi_drop_endp() argument
145 endp->endp_prop, endp->fd); in scache_multi_drop_endp()
150 event_cancel_timer(scache_multi_expire_endp, (void *) endp); in scache_multi_drop_endp()
157 ring_detach(endp->ring); in scache_multi_drop_endp()
158 head = endp->head; in scache_multi_drop_endp()
166 if (endp->fd >= 0 && close(endp->fd) != 0) in scache_multi_drop_endp()
167 msg_warn("%s: close(%d): %m", myname, endp->fd); in scache_multi_drop_endp()
168 myfree(endp->endp_prop); in scache_multi_drop_endp()
170 myfree((void *) endp); in scache_multi_drop_endp()
177 SCACHE_MULTI_ENDP *endp = (SCACHE_MULTI_ENDP *) context; in scache_multi_expire_endp() local
[all …]
Dscache_single.c81 SCACHE_SINGLE_ENDP endp; /* one cached session */ member
88 #define SCACHE_SINGLE_ENDP_BUSY(sp) (VSTRING_LEN(sp->endp.endp_label) > 0)
100 msg_info("%s: %s", myname, STR(sp->endp.endp_label)); in scache_single_free_endp()
103 if (sp->endp.fd >= 0 && close(sp->endp.fd) < 0) in scache_single_free_endp()
104 msg_warn("close session endpoint %s: %m", STR(sp->endp.endp_label)); in scache_single_free_endp()
105 VSTRING_RESET(sp->endp.endp_label); in scache_single_free_endp()
106 VSTRING_TERMINATE(sp->endp.endp_label); in scache_single_free_endp()
107 VSTRING_RESET(sp->endp.endp_prop); in scache_single_free_endp()
108 VSTRING_TERMINATE(sp->endp.endp_prop); in scache_single_free_endp()
109 sp->endp.fd = -1; in scache_single_free_endp()
[all …]
/netbsd/src/lib/libc/gen/
Ddirname.c50 const char *endp; in __weak_alias() local
64 endp = path + strlen(path) - 1; in __weak_alias()
65 while (endp != path && *endp == '/') in __weak_alias()
66 endp--; in __weak_alias()
69 while (endp > path && *endp != '/') in __weak_alias()
70 endp--; in __weak_alias()
72 if (endp == path) { in __weak_alias()
73 path = *endp == '/' ? "/" : "."; in __weak_alias()
79 endp--; in __weak_alias()
80 while (endp > path && *endp == '/'); in __weak_alias()
[all …]
Dbasename.c51 const char *startp, *endp; in __weak_alias() local
65 endp = path + strlen(path) - 1; in __weak_alias()
66 while (endp != path && *endp == '/') in __weak_alias()
67 endp--; in __weak_alias()
70 if (endp == path && *endp == '/') { in __weak_alias()
77 for (startp = endp; startp > path && *(startp - 1) != '/'; startp--) in __weak_alias()
81 len = (endp - startp) + 1 /* last char */; in __weak_alias()
/netbsd/src/lib/libresolv/
Dres_mkupdate.c87 u_char *cp, *sp2, *startp, *endp; in res_nmkupdate() local
210 endp = startp + rrecp->r_size - 1; in res_nmkupdate()
214 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
229 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
242 endp)) in res_nmkupdate()
262 soanum = getnum_str(&startp, endp); in res_nmkupdate()
278 n = getnum_str(&startp, endp); in res_nmkupdate()
283 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
292 n = getnum_str(&startp, endp); in res_nmkupdate()
298 n = getnum_str(&startp, endp); in res_nmkupdate()
[all …]
/netbsd/src/external/bsd/libbind/dist/resolv/
Dres_mkupdate.c86 u_char *cp, *sp2, *startp, *endp; in res_nmkupdate() local
209 endp = startp + rrecp->r_size - 1; in res_nmkupdate()
213 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
228 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
241 endp)) in res_nmkupdate()
261 soanum = getnum_str(&startp, endp); in res_nmkupdate()
277 n = getnum_str(&startp, endp); in res_nmkupdate()
282 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate()
291 n = getnum_str(&startp, endp); in res_nmkupdate()
297 n = getnum_str(&startp, endp); in res_nmkupdate()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/
Dfile-find.cc174 const char *startp, *endp; in prefix_from_string() local
180 startp = endp = p; in prefix_from_string()
183 if (*endp == PATH_SEPARATOR || *endp == 0) in prefix_from_string()
185 strncpy (nstore, startp, endp-startp); in prefix_from_string()
186 if (endp == startp) in prefix_from_string()
190 else if (! IS_DIR_SEPARATOR (endp[-1])) in prefix_from_string()
192 nstore[endp-startp] = DIR_SEPARATOR; in prefix_from_string()
193 nstore[endp-startp+1] = 0; in prefix_from_string()
196 nstore[endp-startp] = 0; in prefix_from_string()
202 if (*endp == 0) in prefix_from_string()
[all …]
/netbsd/src/external/gpl3/gdb/dist/gdb/mi/
Dmi-parse.c244 mi_parse::set_thread_group (const char *arg, char **endp) in set_thread_group() argument
251 thread_group = strtol (arg, endp, 10); in set_thread_group()
257 mi_parse::set_thread (const char *arg, char **endp) in set_thread() argument
261 thread = strtol (arg, endp, 10); in set_thread()
267 mi_parse::set_frame (const char *arg, char **endp) in set_frame() argument
271 frame = strtol (arg, endp, 10); in set_frame()
277 mi_parse::set_language (const char *arg, const char **endp) in set_language() argument
285 if (endp != nullptr) in set_language()
286 *endp = arg; in set_language()
361 char *endp; in mi_parse() local
[all …]
/netbsd/src/sys/arch/sparc/stand/ofwboot/
Dbootinfo.c49 uint64_t *endp; in bi_init() local
51 endp = (uint64_t *)ALIGN(addr); in bi_init()
56 sparc64_memset(endp, 0, BOOTINFO_SIZE); in bi_init()
62 endp[0] = (uint64_t)(u_long)((char *)endp + BOOTINFO_SIZE); in bi_init()
63 bootinfo = (char *)ALIGN(&endp[2]); in bi_init()
64 endp[1] = (uint64_t)(u_long)bootinfo; in bi_init()
72 return (u_long) endp; in bi_init()
/netbsd/src/external/gpl3/gdb/dist/libiberty/
Dmake-relative-prefix.c252 char *startp, *endp, *nstore; in make_relative_prefix_1() local
267 startp = endp = temp; in make_relative_prefix_1()
270 if (*endp == PATH_SEPARATOR || *endp == 0) in make_relative_prefix_1()
272 if (endp == startp) in make_relative_prefix_1()
280 memcpy (nstore, startp, endp - startp); in make_relative_prefix_1()
281 if (! IS_DIR_SEPARATOR (endp[-1])) in make_relative_prefix_1()
283 nstore[endp - startp] = DIR_SEPARATOR; in make_relative_prefix_1()
284 nstore[endp - startp + 1] = 0; in make_relative_prefix_1()
287 nstore[endp - startp] = 0; in make_relative_prefix_1()
306 if (*endp == 0) in make_relative_prefix_1()
[all …]
/netbsd/src/external/gpl3/gcc/dist/libiberty/
Dmake-relative-prefix.c252 char *startp, *endp, *nstore; in make_relative_prefix_1() local
267 startp = endp = temp; in make_relative_prefix_1()
270 if (*endp == PATH_SEPARATOR || *endp == 0) in make_relative_prefix_1()
272 if (endp == startp) in make_relative_prefix_1()
280 memcpy (nstore, startp, endp - startp); in make_relative_prefix_1()
281 if (! IS_DIR_SEPARATOR (endp[-1])) in make_relative_prefix_1()
283 nstore[endp - startp] = DIR_SEPARATOR; in make_relative_prefix_1()
284 nstore[endp - startp + 1] = 0; in make_relative_prefix_1()
287 nstore[endp - startp] = 0; in make_relative_prefix_1()
306 if (*endp == 0) in make_relative_prefix_1()
[all …]
/netbsd/src/external/gpl3/binutils/dist/libiberty/
Dmake-relative-prefix.c252 char *startp, *endp, *nstore; in make_relative_prefix_1() local
267 startp = endp = temp; in make_relative_prefix_1()
270 if (*endp == PATH_SEPARATOR || *endp == 0) in make_relative_prefix_1()
272 if (endp == startp) in make_relative_prefix_1()
280 memcpy (nstore, startp, endp - startp); in make_relative_prefix_1()
281 if (! IS_DIR_SEPARATOR (endp[-1])) in make_relative_prefix_1()
283 nstore[endp - startp] = DIR_SEPARATOR; in make_relative_prefix_1()
284 nstore[endp - startp + 1] = 0; in make_relative_prefix_1()
287 nstore[endp - startp] = 0; in make_relative_prefix_1()
306 if (*endp == 0) in make_relative_prefix_1()
[all …]
/netbsd/src/external/bsd/tcpdump/dist/
Dstrtoaddr.c160 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in strtoaddr6() local
166 endp = tp + NS_IN6ADDRSZ; in strtoaddr6()
196 if (tp + NS_INT16SZ > endp) in strtoaddr6()
204 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in strtoaddr6()
213 if (tp + NS_INT16SZ > endp) in strtoaddr6()
226 if (tp == endp) in strtoaddr6()
229 endp[- i] = colonp[n - i]; in strtoaddr6()
232 tp = endp; in strtoaddr6()
234 if (tp != endp) in strtoaddr6()
/netbsd/src/external/gpl3/gcc/dist/intl/
Dplural-exp.c115 char *endp; local
126 n = strtoul (nplurals, &endp, 10);
128 for (endp = nplurals, n = 0; *endp >= '0' && *endp <= '9'; endp++)
129 n = n * 10 + (*endp - '0');
131 if (nplurals == endp)
/netbsd/src/sys/arch/sparc/stand/boot/
Dbootinfo.c48 u_long *endp; in bi_init() local
50 endp = (u_long *)ALIGN(addr); in bi_init()
55 endp[0] = (u_long)((char *)endp + BOOTINFO_SIZE); in bi_init()
56 bootinfo = (char *)ALIGN(&endp[2]); in bi_init()
57 endp[1] = (u_long)bootinfo; in bi_init()
65 return (u_long) endp; in bi_init()
/netbsd/src/external/bsd/libbind/dist/inet/
Dinet_pton.c144 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local
150 endp = tp + NS_IN6ADDRSZ;
181 if (tp + NS_INT16SZ > endp)
189 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) &&
198 if (tp + NS_INT16SZ > endp)
211 if (tp == endp)
214 endp[- i] = colonp[n - i];
217 tp = endp;
219 if (tp != endp)
Dinet_cidr_pton.c157 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_cidr_pton_ipv6() local
164 endp = tp + NS_IN6ADDRSZ; in inet_cidr_pton_ipv6()
197 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6()
205 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_cidr_pton_ipv6()
220 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6()
233 if (tp == endp) in inet_cidr_pton_ipv6()
236 endp[- i] = colonp[n - i]; in inet_cidr_pton_ipv6()
239 tp = endp; in inet_cidr_pton_ipv6()
Dinet_net_pton.c268 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_net_pton_ipv6() local
279 endp = tp + NS_IN6ADDRSZ; in inet_net_pton_ipv6()
313 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6()
322 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_net_pton_ipv6()
334 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6()
347 endp = tmp + 2 * words; in inet_net_pton_ipv6()
357 if (tp == endp) in inet_net_pton_ipv6()
360 endp[- i] = colonp[n - i]; in inet_net_pton_ipv6()
363 tp = endp; in inet_net_pton_ipv6()
365 if (tp != endp) in inet_net_pton_ipv6()
/netbsd/src/sbin/mount_tmpfs/
Dmount_tmpfs.c98 char *endp; in ram_fract() local
101 f = strtof(arg, &endp); in ram_fract()
102 if (endp && *endp != 0) in ram_fract()
104 " at %s", arg, endp); in ram_fract()
118 char *endp; in ram_percent() local
121 f = strtof(arg, &endp); in ram_percent()
122 if (endp && *endp != 0) in ram_percent()
124 " at %s", arg, endp); in ram_percent()
/netbsd/src/lib/libc/inet/
Dinet_pton.c227 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local
236 endp = tp + NS_IN6ADDRSZ; in inet_pton6()
266 if (tp + NS_INT16SZ > endp) in inet_pton6()
274 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_pton6()
283 if (tp + NS_INT16SZ > endp) in inet_pton6()
296 if (tp == endp) in inet_pton6()
299 endp[- i] = colonp[n - i]; in inet_pton6()
302 tp = endp; in inet_pton6()
304 if (tp != endp) in inet_pton6()
Dinet_cidr_pton.c162 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_cidr_pton_ipv6() local
169 endp = tp + NS_IN6ADDRSZ; in inet_cidr_pton_ipv6()
202 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6()
210 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_cidr_pton_ipv6()
225 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6()
238 if (tp == endp) in inet_cidr_pton_ipv6()
241 endp[- i] = colonp[n - i]; in inet_cidr_pton_ipv6()
244 tp = endp; in inet_cidr_pton_ipv6()
Dinet_net_pton.c273 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_net_pton_ipv6() local
284 endp = tp + NS_IN6ADDRSZ; in inet_net_pton_ipv6()
318 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6()
327 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_net_pton_ipv6()
339 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6()
352 endp = tmp + 2 * words; in inet_net_pton_ipv6()
362 if (tp == endp) in inet_net_pton_ipv6()
365 endp[- i] = colonp[n - i]; in inet_net_pton_ipv6()
368 tp = endp; in inet_net_pton_ipv6()
370 if (tp != endp) in inet_net_pton_ipv6()
/netbsd/src/external/bsd/nvi/dist/vi/
Dv_ch.c149 CHAR_T *endp, *p, *startp; in v_chf() local
172 endp = (startp = p) + len; in v_chf()
175 while (++p < endp && *p != key); in v_chf()
176 if (p == endp) { in v_chf()
231 CHAR_T *endp, *p; in v_chF() local
255 endp = p - 1; in v_chF()
258 while (--p > endp && *p != key); in v_chF()
259 if (p == endp) { in v_chF()
265 vp->m_stop.cno = (p - endp) - 1; in v_chF()
/netbsd/src/usr.bin/calendar/
Dcalendar.c270 isnow(char *endp) in isnow() argument
281 if (!(v1 = getfield(endp, &endp, &flags))) in isnow()
288 if ((month = getfield(endp, &endp, &flags)) == 0) { in isnow()
295 if ((day = getfield(endp, &endp, &flags)) == 0) in isnow()
298 v2 = getfield(endp, &endp, &flags); in isnow()
347 getfield(char *p, char **endp, int *flags) in getfield() argument
367 *endp = p + 1; in getfield()
371 *endp = p + 1; in getfield()
379 *endp = p; in getfield()
394 *endp = start; in getfield()
[all …]
/netbsd/src/external/bsd/nvi/dist/regex/
Dengine.c78 RCHAR_T *endp; /* end of string -- virtual NUL here */ member
144 RCHAR_T *endp; local
189 m->endp = stop;
199 endp = fast(m, start, stop, gf, gl);
200 if (endp == NULL) { /* a miss */
211 endp = slow(m, m->coldp, stop, gf, gl);
212 if (endp != NULL)
214 assert(m->coldp < m->endp);
232 dp = dissect(m, m->coldp, endp, gf, gl);
243 dp = backref(m, m->coldp, endp, gf, gl, (sopno)0);
[all …]

123456789