| /netbsd/src/usr.sbin/inetd/ |
| D | parse.c | 134 struct servtab *sep, *cp; in config() local 159 for (sep = servtab; sep != NULL; sep = sep->se_next) in config() 160 if (is_same_service(sep, cp)) in config() 162 if (sep != NULL) { in config() 174 (sep->se_wait == 1 || cp->se_wait == 0)) in config() 175 sep->se_wait = cp->se_wait; in config() 176 SWAP(char *, sep->se_user, cp->se_user); in config() 177 SWAP(char *, sep->se_group, cp->se_group); in config() 178 SWAP(char *, sep->se_server, cp->se_server); in config() 180 SWAP(char *, sep->se_argv[i], cp->se_argv[i]); in config() [all …]
|
| D | inetd.c | 410 struct servtab *sep; in main() local 441 sep = (struct servtab *)ev->udata; in main() 443 if ((int)ev->ident != sep->se_fd) in main() 445 DPRINTF(SERV_FMT ": service requested" , SERV_PARAMS(sep)); in main() 446 if (sep->se_wait == 0 && sep->se_socktype == SOCK_STREAM) { in main() 448 ctrl = accept(sep->se_fd, NULL, NULL); in main() 450 SERV_PARAMS(sep), ctrl); in main() 455 SERV_PARAMS(sep)); in main() 459 ctrl = sep->se_fd; in main() 460 spawn(sep, ctrl); in main() [all …]
|
| D | ratelimit.c | 77 rl_process(struct servtab *sep, int ctrl) in rl_process() argument 82 SERV_PARAMS(sep)); in rl_process() 84 "%zu and se_count %zu", SERV_PARAMS(sep), in rl_process() 85 sep->se_service_max, sep->se_count); in rl_process() 87 if (sep->se_count == 0) { in rl_process() 89 sep->se_time = now; in rl_process() 92 if (!rl_process_service_max(sep, ctrl, &now) in rl_process() 93 || !rl_process_ip_max(sep, ctrl, &now)) { in rl_process() 97 DPRINTF(SERV_FMT ": running service ", SERV_PARAMS(sep)); in rl_process() 100 sep->se_count++; in rl_process() [all …]
|
| D | parse_v2.c | 149 parse_syntax_v2(struct servtab *sep, char **cpp) in parse_syntax_v2() argument 158 switch(parse_invoke_handler(&is_valid_definition, cpp, sep)) { in parse_syntax_v2() 172 if (is_valid_definition && fill_default_values(sep)) { in parse_syntax_v2() 202 fill_default_values(struct servtab *sep) in fill_default_values() argument 206 if (sep->se_service_max == SERVTAB_UNSPEC_SIZE_T) { in fill_default_values() 208 sep->se_service_max = TOOMANY; in fill_default_values() 211 if (sep->se_hostaddr == NULL) { in fill_default_values() 213 sep->se_hostaddr = newstr(defhost); in fill_default_values() 216 try_infer_socktype(sep); in fill_default_values() 218 if (sep->se_server == NULL) { in fill_default_values() [all …]
|
| D | inetd.h | 106 #define ISMUXPLUS(sep) ((sep)->se_type == MUXPLUS_TYPE) argument 107 #define ISMUX(sep) (((sep)->se_type == MUX_TYPE) || ISMUXPLUS(sep)) argument 147 #define SERV_PARAMS(sep) sep->se_service,sep->se_proto argument 164 #define isrpcservice(sep) ((sep)->se_rpcversl != 0) argument
|
| /netbsd/src/external/bsd/pkg_install/dist/lib/ |
| D | opattern.c | 55 char *sep; in alternate_match() local 63 if ((sep = strchr(pattern, '{')) == (char *) NULL) { in alternate_match() 66 (void) strncpy(buf, pattern, (size_t) (sep - pattern)); in alternate_match() 67 alt = &buf[sep - pattern]; in alternate_match() 69 for (cnt = 0, cp = sep; *cp && last == (char *) NULL; cp++) { in alternate_match() 79 for (found = 0, cp = sep + 1; *sep != '}'; cp = sep + 1) { in alternate_match() 80 … for (cnt = 0, sep = cp; cnt > 0 || (cnt == 0 && *sep != '}' && *sep != ','); sep++) { in alternate_match() 81 if (*sep == '{') { in alternate_match() 83 } else if (*sep == '}') { in alternate_match() 87 … (void) snprintf(alt, sizeof(buf) - (alt - buf), "%.*s%s", (int) (sep - cp), cp, last); in alternate_match()
|
| /netbsd/src/sbin/swapctl/ |
| D | swaplist.c | 59 struct swapent *sep, *fsep; in list_swap() local 73 fsep = sep = (struct swapent *)malloc(nswap * sizeof(*sep)); in list_swap() 74 if (sep == NULL) in list_swap() 76 rnswap = swapctl(SWAP_STATS, (void *)sep, nswap); in list_swap() 114 for (i = rnswap; i-- > 0; sep++) in list_swap() 115 if ((size_t)pathmax < (l = strlen(sep->se_path))) in list_swap() 117 sep = fsep; in list_swap() 123 for (; rnswap-- > 0; sep++) { in list_swap() 124 if (pflag && sep->se_priority != pri) in list_swap() 127 size = sep->se_nblks; in list_swap() [all …]
|
| /netbsd/src/external/ibm-public/postfix/dist/src/util/ |
| D | mystrtok.c | 103 char *mystrtok(char **src, const char *sep) in mystrtok() argument 105 return (mystrtok_cw(src, sep, (char *) 0)); in mystrtok() 110 char *mystrtok_cw(char **src, const char *sep, const char *blame) in mystrtok_cw() argument 118 start += strspn(start, sep); in mystrtok_cw() 127 end = start + strcspn(start, sep); in mystrtok_cw() 144 char *mystrtokq(char **src, const char *sep, const char *parens) in mystrtokq() argument 146 return (mystrtokq_cw(src, sep, parens, (char *) 0)); in mystrtokq() 151 char *mystrtokq_cw(char **src, const char *sep, const char *parens, in mystrtokq_cw() argument 162 start += strspn(start, sep); in mystrtokq_cw() 176 } else if (level == 0 && strchr(sep, ch) != 0) { in mystrtokq_cw() [all …]
|
| D | argv_split_at.c | 72 ARGV *argv_split_at(const char *string, int sep) in argv_split_at() argument 79 while ((arg = split_at(bp, sep)) != 0) { in argv_split_at() 91 ARGV *argv_split_at_count(const char *string, int sep, ssize_t count) in argv_split_at_count() argument 100 while (count-- > 1 && (arg = split_at(bp, sep)) != 0) { in argv_split_at_count() 112 ARGV *argv_split_at_append(ARGV *argvp, const char *string, int sep) in argv_split_at_append() argument 118 while ((arg = split_at(bp, sep)) != 0) { in argv_split_at_append()
|
| /netbsd/src/crypto/external/bsd/openssl/dist/crypto/ |
| D | o_str.c | 139 const char *str, const char sep) in hexstr2buf_sep() argument 150 if (ch == sep && sep != CH_ZERO) in hexstr2buf_sep() 182 const char *str, const char sep) in OPENSSL_hexstr2buf_ex() argument 184 return hexstr2buf_sep(buf, buf_n, buflen, str, sep); in OPENSSL_hexstr2buf_ex() 188 const char sep) in ossl_hexstr2buf_sep() argument 207 if (hexstr2buf_sep(buf, buf_n, &tmp_buflen, str, sep)) { in ossl_hexstr2buf_sep() 223 const char sep) in buf2hexstr_sep() argument 229 int has_sep = (sep != CH_ZERO); in buf2hexstr_sep() 249 *q++ = sep; in buf2hexstr_sep() 263 const char sep) in OPENSSL_buf2hexstr_ex() argument [all …]
|
| /netbsd/src/external/bsd/openldap/dist/libraries/librewrite/ |
| D | rewrite.c | 50 char *string, *sep, *result = NULL; in apply() local 65 for ( sep = strchr( rewriteContext, ',' ); in apply() 67 rewriteContext = sep, in apply() 68 sep ? sep = strchr( rewriteContext, ',' ) : NULL ) in apply() 72 if ( sep != NULL ) { in apply() 73 sep[ 0 ] = '\0'; in apply() 74 sep++; in apply()
|
| /netbsd/src/usr.sbin/cpuctl/arch/ |
| D | i386.c | 2422 const char *sep) in print_cache_config() argument 2428 return sep; in print_cache_config() 2430 if (sep == NULL) in print_cache_config() 2433 aprint_verbose("%s", sep); in print_cache_config() 2463 const char *sep) in print_tlb_config() argument 2469 return sep; in print_tlb_config() 2471 if (sep == NULL) in print_tlb_config() 2474 aprint_verbose("%s", sep); in print_tlb_config() 2475 if ((name != NULL) && (sep == NULL)) in print_tlb_config() 2506 const char *sep = NULL; in x86_print_cache_and_tlb_info() local [all …]
|
| D | sparc64.c | 51 const char *sep; in identifycpu() local 91 sep = ""; in identifycpu() 93 printf("%s%ldK instruction (%ld b/l)", sep, in identifycpu() 96 sep = ", "; in identifycpu() 99 printf("%s%ldK data (%ld b/l)", sep, in identifycpu() 102 sep = ", "; in identifycpu() 106 printf("%s%ldK external (%ld b/l)", sep, in identifycpu()
|
| /netbsd/src/external/bsd/tcpdump/dist/ |
| D | print-ahcp.c | 141 const char *sep = ": "; in ahcp_ipv6_addresses_print() local 146 ND_PRINT("%s%s", sep, GET_IP6ADDR_STRING(cp)); in ahcp_ipv6_addresses_print() 149 sep = ", "; in ahcp_ipv6_addresses_print() 162 const char *sep = ": "; in ahcp_ipv4_addresses_print() local 167 ND_PRINT("%s%s", sep, GET_IPADDR_STRING(cp)); in ahcp_ipv4_addresses_print() 170 sep = ", "; in ahcp_ipv4_addresses_print() 183 const char *sep = ": "; in ahcp_ipv6_prefixes_print() local 188 ND_PRINT("%s%s/%u", sep, GET_IP6ADDR_STRING(cp), GET_U_1(cp + 16)); in ahcp_ipv6_prefixes_print() 191 sep = ", "; in ahcp_ipv6_prefixes_print() 204 const char *sep = ": "; in ahcp_ipv4_prefixes_print() local [all …]
|
| /netbsd/src/usr.bin/systat/ |
| D | swap.c | 163 struct swapent *sep; in showswap() local 168 for (sep = swap_devices, i = 0; i < nswap; i++, sep++) { in showswap() 169 p = strrchr(sep->se_path, '/'); in showswap() 170 p = p ? p+1 : sep->se_path; in showswap() 175 mvwprintw(wnd, i + 1, col, "%*d", hlen, sep->se_nblks / blk_div); in showswap() 178 xsize = sep->se_nblks; in showswap() 179 used = sep->se_inuse; in showswap()
|
| /netbsd/src/sbin/restore/ |
| D | utilities.c | 414 const char *sep = ""; in writemtree() local 424 sep=","; in writemtree() 427 fprintf(Mtreefile, "%suchg", sep); in writemtree() 428 sep=","; in writemtree() 431 fprintf(Mtreefile, "%suappnd", sep); in writemtree() 432 sep=","; in writemtree() 435 fprintf(Mtreefile, "%sopaque", sep); in writemtree() 436 sep=","; in writemtree() 439 fprintf(Mtreefile, "%sarch", sep); in writemtree() 440 sep=","; in writemtree() [all …]
|
| /netbsd/src/lib/libc/gen/ |
| D | fstab.c | 71 nextfld(char **str, const char *sep) in nextfld() argument 76 _DIAGASSERT(sep != NULL); in nextfld() 78 while ((ret = stresep(str, sep, '\\')) != NULL && *ret == '\0') in nextfld() 91 static const char sep[] = ":\n"; in fstabscan() local 104 _fs_fstab.fs_spec = nextfld(&lp, sep); in fstabscan() 107 _fs_fstab.fs_file = nextfld(&lp, sep); in fstabscan() 108 _fs_fstab.fs_type = nextfld(&lp, sep); in fstabscan() 117 if ((cp = nextfld(&lp, sep)) != NULL) { in fstabscan() 119 if ((cp = nextfld(&lp, sep)) != NULL) { in fstabscan()
|
| /netbsd/src/sys/dev/isa/ |
| D | isa.c | 348 const char *sep; in isaprint() local 362 for (sep = ""; ipn != NULL; in isaprint() 363 ipn = ipn->ipn_next, sep = " ") { in isaprint() 364 aprint_normal("%s%s", sep, ipn->ipn_name); in isaprint() 372 sep = ""; in isaprint() 377 aprint_normal("%s0x%x", sep, ia->ia_io[i].ir_addr); in isaprint() 381 sep = ","; in isaprint() 386 sep = ""; in isaprint() 391 aprint_normal("%s0x%x", sep, ia->ia_iomem[i].ir_addr); in isaprint() 395 sep = ","; in isaprint() [all …]
|
| /netbsd/src/external/bsd/wpa/dist/src/drivers/ |
| D | driver_roboswitch.c | 210 char *sep; in wpa_driver_roboswitch_set_param() local 213 sep = drv->ifname + os_strlen(drv->ifname); in wpa_driver_roboswitch_set_param() 214 *sep = '.'; in wpa_driver_roboswitch_set_param() 223 *sep = '\0'; in wpa_driver_roboswitch_set_param() 360 char *sep; in wpa_driver_roboswitch_init() local 369 sep = drv->ifname + in wpa_driver_roboswitch_init() 372 while (sep > drv->ifname && *sep != '.') sep--; in wpa_driver_roboswitch_init() 373 if (sep <= drv->ifname) { in wpa_driver_roboswitch_init() 379 *sep = '\0'; in wpa_driver_roboswitch_init() 380 while (*++sep) { in wpa_driver_roboswitch_init() [all …]
|
| /netbsd/src/external/bsd/openldap/dist/clients/tools/ |
| D | ldapcompare.c | 191 char *sep; in main() local 214 sep = strchr(attrs, ':'); in main() 215 if (!sep) { in main() 219 *sep++='\0'; in main() 220 if ( *sep != ':' ) { in main() 221 bvalue.bv_val = strdup( sep ); in main() 226 bvalue.bv_val = malloc( strlen( &sep[1] )); in main() 227 bvalue.bv_len = lutil_b64_pton( &sep[1], in main() 228 (unsigned char *) bvalue.bv_val, strlen( &sep[1] )); in main() 261 compdn, attrs, sep ); in main()
|
| /netbsd/src/lib/libc/db/btree/ |
| D | bt_debug.c | 86 const char *sep; in __bt_dump() local 98 (void)fprintf(tracefp, "%s%s", sep, name); \ in __bt_dump() 99 sep = ", "; \ in __bt_dump() 102 sep = " flags ("; in __bt_dump() 130 const char *sep; in __bt_dmpage() local 142 (void)fprintf(tracefp, "%s%s", sep, name); \ in __bt_dmpage() 143 sep = ", "; \ in __bt_dmpage() 146 sep = " ("; in __bt_dmpage() 207 const char *sep; in __bt_dpage() local 215 (void)fprintf(tracefp, "%s%s", sep, name); \ in __bt_dpage() [all …]
|
| /netbsd/src/external/bsd/wpa/dist/src/utils/ |
| D | ext_password_file.c | 101 char *sep = os_strchr(pos, '='); in ext_password_file_get() local 103 if (!sep) { in ext_password_file_get() 109 if (!sep[1]) { in ext_password_file_get() 115 if (os_strncmp(name, pos, sep - pos) != 0) in ext_password_file_get() 118 password = wpabuf_alloc_copy(sep + 1, os_strlen(sep + 1)); in ext_password_file_get()
|
| /netbsd/src/external/bsd/openldap/dist/tests/progs/ |
| D | ldif-filter.c | 145 flush_entries( Strings *ss, const char *sep, unsigned flags ) in flush_entries() argument 153 for ( i = 0; i < end; i++, prefix = sep ) { in flush_entries() 169 const char *entry_sep = "\n", *sep = ""; in filter_stdin() local 174 for ( ; !eof || ss.len || *sep; prev_eol = eol ) { in filter_stdin() 176 strcpy( line, prev_eol ? "" : *sep ? sep : "\n" ); in filter_stdin() 204 entry_sep = sep; in filter_stdin() 206 fputs( sep, stdout ); in filter_stdin() 211 fputs( sep, stdout ); in filter_stdin() 214 sep = "\r\n" + 2 - line_len; /* sep = copy(line) */ in filter_stdin()
|
| /netbsd/src/sbin/ttyflags/ |
| D | ttyflags.c | 165 int fd, flags, rval, st, sep; in change_ttyflags() local 170 sep = flags = rval = 0; in change_ttyflags() 178 sep++; in change_ttyflags() 182 if (sep++) in change_ttyflags() 188 if (sep++) in change_ttyflags() 194 if (sep++) in change_ttyflags() 200 if (sep++) in change_ttyflags()
|
| /netbsd/src/external/bsd/openldap/dist/libraries/libldap/ |
| D | url.c | 567 int sep = 0; in desc2str_len() local 582 if ( !sep ) { in desc2str_len() 583 sep = 5; in desc2str_len() 589 if ( !sep ) { in desc2str_len() 590 sep = 4; in desc2str_len() 596 if ( !sep ) { in desc2str_len() 597 sep = 3; in desc2str_len() 603 if ( !sep ) { in desc2str_len() 604 sep = 2; in desc2str_len() 610 if ( !sep ) { in desc2str_len() [all …]
|