/freebsd/usr.sbin/inetd/ |
H A D | inetd.c | 156 #define ISWRAP(sep) \ argument 157 ( ((wrap_ex && !(sep)->se_bi) || (wrap_bi && (sep)->se_bi)) \ 158 && (sep->se_family == AF_INET || sep->se_family == AF_INET6) \ 159 && ( ((sep)->se_accept && (sep)->se_socktype == SOCK_STREAM) \ 160 || (sep)->se_socktype == SOCK_DGRAM)) 222 static void unregisterrpc(register struct servtab *sep); 223 static struct conninfo *search_conn(struct servtab *sep, int ctrl); 224 static int room_conn(struct servtab *sep, struct conninfo *conn); 228 static void resize_conn(struct servtab *sep, int maxperip); 229 static void free_connlist(struct servtab *sep); [all …]
|
H A D | inetd.h | 48 #define ISMUX(sep) (((sep)->se_type == MUX_TYPE) || \ argument 49 ((sep)->se_type == MUXPLUS_TYPE)) 50 #define ISMUXPLUS(sep) ((sep)->se_type == MUXPLUS_TYPE) argument 130 #define SERVTAB_AT_LIMIT(sep) \ argument 131 ((sep)->se_maxchild > 0 && (sep)->se_numchild == (sep)->se_maxchild) 132 #define SERVTAB_EXCEEDS_LIMIT(sep) \ argument 133 ((sep)->se_maxchild > 0 && (sep)->se_numchild >= (sep)->se_maxchild) 135 int check_loop(const struct sockaddr *, const struct servtab *sep);
|
H A D | builtins.c | 125 chargen_dg(int s, struct servtab *sep) in chargen_dg() argument 143 if (check_loop((struct sockaddr *)&ss, sep)) in chargen_dg() 162 chargen_stream(int s, struct servtab *sep) in chargen_stream() argument 167 inetd_setproctitle(sep->se_service, s); in chargen_stream() 197 daytime_dg(int s, struct servtab *sep) in daytime_dg() argument 211 if (check_loop((struct sockaddr *)&ss, sep)) in daytime_dg() 222 daytime_stream(int s, struct servtab *sep __unused) in daytime_stream() 241 discard_dg(int s, struct servtab *sep __unused) in discard_dg() 251 discard_stream(int s, struct servtab *sep) in discard_stream() argument 256 inetd_setproctitle(sep in discard_stream() 274 echo_dg(int s,struct servtab * sep) echo_dg() argument 295 echo_stream(int s,struct servtab * sep) echo_stream() argument 341 ident_stream(int s,struct servtab * sep) ident_stream() argument 705 machtime_dg(int s,struct servtab * sep) machtime_dg() argument 776 struct servtab *sep; tcpmux() local [all...] |
/freebsd/usr.bin/calendar/tests/ |
H A D | calendar.calibrate | 252 09/01 sep 1 253 09/02 sep 2 254 09/03 sep 3 255 09/04 sep 4 256 09/05 sep 5 257 09/06 sep 6 258 09/07 sep 7 259 09/08 sep 8 260 09/09 sep 9 261 09/10 sep 10 [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/lockstat/ |
H A D | sym.c | 79 syment_t *sep; in add_symbol() local 83 symbol_table = realloc(symbol_table, maxsyms * sizeof (*sep)); in add_symbol() 89 sep = &symbol_table[nsyms++]; in add_symbol() 91 sep->name = name; in add_symbol() 92 sep->addr = addr; in add_symbol() 93 sep->size = size; in add_symbol() 100 syment_t *sep = symbol_table; in remove_symbol() local 102 for (i = 0; i < nsyms; i++, sep++) in remove_symbol() 103 if (sep->addr == addr) in remove_symbol() 104 sep->addr = 0; in remove_symbol() [all …]
|
/freebsd/contrib/googletest/googlemock/src/ |
H A D | gmock-matchers.cc | 237 const char* sep = ""; in LogElementMatcherPairVec() local 239 os << sep << "\n (" << "element #" << it->first << ", " << "matcher #" in LogElementMatcherPairVec() 241 sep = ","; in LogElementMatcherPairVec() 271 const char* sep = ""; in DebugString() local 273 ss << sep; in DebugString() 277 sep = ";"; in DebugString() 306 const char* sep = ""; in DescribeToImpl() local 308 *os << sep; in DescribeToImpl() 316 sep = ", and\n"; in DescribeToImpl() 318 sep = "\n"; in DescribeToImpl() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | fmd_serd.c | 227 fmd_serd_eng_discard(fmd_serd_eng_t *sgp, fmd_serd_elem_t *sep) in fmd_serd_eng_discard() argument 229 list_remove(&sgp->sg_list, sep); in fmd_serd_eng_discard() 235 free(sep); in fmd_serd_eng_discard() 241 fmd_serd_elem_t *sep, *oep; in fmd_serd_eng_record() local 258 sep = malloc(sizeof (fmd_serd_elem_t)); in fmd_serd_eng_record() 259 if (sep == NULL) { in fmd_serd_eng_record() 263 sep->se_hrt = hrt; in fmd_serd_eng_record() 265 list_insert_head(&sgp->sg_list, sep); in fmd_serd_eng_record() 278 fmd_event_delta(oep->se_hrt, sep->se_hrt) <= sgp->sg_t) { in fmd_serd_eng_record() 316 fmd_serd_elem_t *sep, *nep; in fmd_serd_eng_gc() local [all …]
|
/freebsd/sbin/ipfw/ |
H A D | ipv6.c | 169 char sep= ' '; in print_icmp6types() local 176 bprintf(bp, "%c%d", sep, (i*32 + j)); in print_icmp6types() 177 sep = ','; in print_icmp6types() 185 char sep = ','; in print_flow6id() local 190 sep = ' '; in print_flow6id() 191 bprintf(bp, "%d%c", cmd->d[i], sep); in print_flow6id() 260 char sep = ' '; in print_ext6hdr() local 264 bprintf(bp, "%cfragmentation", sep); in print_ext6hdr() 265 sep = ','; in print_ext6hdr() 268 bprintf(bp, "%chop options", sep); in print_ext6hdr() [all …]
|
H A D | nat.c | 218 char* sep; in StrToPortRange() local 233 sep = strchr (str, '-'); in StrToPortRange() 234 if (sep == NULL) { in StrToPortRange() 325 char *sep = **av; in estimate_redir_addr() local 329 while ((sep = strchr(sep, ',')) != NULL) { in estimate_redir_addr() 331 sep++; in estimate_redir_addr() 346 char *sep; in setup_redir_addr() local 361 sep = strtok(**av, ","); in setup_redir_addr() 362 while (sep != NULL) { in setup_redir_addr() 365 StrToAddr(sep, &spool->addr); in setup_redir_addr() [all …]
|
/freebsd/lib/libc/string/ |
H A D | strtok.c | 109 char *brkb, *brkt, *phrase, *sep, *word; in main() local 111 sep = "\\/:;=-"; in main() 116 for (word = strtok(test, sep); word; word = strtok(NULL, sep)) in main() 120 for (word = strtok_r(test, sep, &brkt); word; in main() 121 word = strtok_r(NULL, sep, &brkt)) { in main() 124 for (phrase = strtok_r(blah, sep, &brkb); phrase; in main() 125 phrase = strtok_r(NULL, sep, &brkb)) in main()
|
/freebsd/crypto/openssl/crypto/ |
H A 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 …]
|
/freebsd/contrib/tcpdump/ |
H A D | print-ahcp.c | 136 const char *sep = ": "; in ahcp_ipv6_addresses_print() local 141 ND_PRINT("%s%s", sep, GET_IP6ADDR_STRING(cp)); in ahcp_ipv6_addresses_print() 144 sep = ", "; in ahcp_ipv6_addresses_print() 157 const char *sep = ": "; in ahcp_ipv4_addresses_print() local 162 ND_PRINT("%s%s", sep, GET_IPADDR_STRING(cp)); in ahcp_ipv4_addresses_print() 165 sep = ", "; in ahcp_ipv4_addresses_print() 178 const char *sep = ": "; in ahcp_ipv6_prefixes_print() local 183 ND_PRINT("%s%s/%u", sep, GET_IP6ADDR_STRING(cp), GET_U_1(cp + 16)); in ahcp_ipv6_prefixes_print() 186 sep = ", "; in ahcp_ipv6_prefixes_print() 199 const char *sep = ": "; in ahcp_ipv4_prefixes_print() local [all …]
|
/freebsd/lib/libc/db/btree/ |
H A D | bt_debug.c | 57 char *sep; in __bt_dump() local 67 (void)fprintf(stderr, "%s%s", sep, name); \ in __bt_dump() 68 sep = ", "; \ in __bt_dump() 71 sep = " flags ("; in __bt_dump() 97 char *sep; in __bt_dmpage() local 109 (void)fprintf(stderr, "%s%s", sep, name); \ in __bt_dmpage() 110 sep = ", "; \ in __bt_dmpage() 113 sep = " ("; in __bt_dmpage() 151 char *sep; in __bt_dpage() local 157 (void)fprintf(stderr, "%s%s", sep, name); \ in __bt_dpage() [all …]
|
/freebsd/contrib/wpa/src/drivers/ |
H A 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 …]
|
/freebsd/usr.bin/calendar/ |
H A D | io.c | 82 char *sep; in trimlr() local 89 sep = walk; in trimlr() 90 while (*sep != '\0' && !isspace(*sep)) in trimlr() 91 sep++; in trimlr() 93 if (*sep != '\0') { in trimlr() 94 last = sep + strlen(sep) - 1; in trimlr() 100 return (sep); in trimlr() 213 char *walk, *sep, a, c; in token() local 237 sep = trimlr(&walk); in token() 243 if (*sep != '\0') { in token() [all …]
|
/freebsd/contrib/wpa/src/utils/ |
H A 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()
|
/freebsd/sys/fs/nfs/ |
H A D | nfs_commonkrpc.c | 688 struct nfsclsession *sep; in newnfs_request() local 696 sep = dssep; in newnfs_request() 970 if (clp != NULL && sep != NULL) in newnfs_request() 972 nd->nd_mreq, &nd->nd_mrep, timo, sep->nfsess_xprt); in newnfs_request() 1030 if (sep == NULL) in newnfs_request() 1031 sep = nfsmnt_mdssession(nmp); in newnfs_request() 1037 mtx_lock(&sep->nfsess_mtx); in newnfs_request() 1038 sep->nfsess_slotseq[nd->nd_slotid] += 10; in newnfs_request() 1039 sep->nfsess_badslots |= (0x1ULL << nd->nd_slotid); in newnfs_request() 1040 mtx_unlock(&sep->nfsess_mtx); in newnfs_request() [all …]
|
/freebsd/contrib/libpcap/testprogs/ |
H A D | findalldevstest.c | 194 const char *sep; in ifprint() local 201 sep = ""; in ifprint() 203 printf("%sUP", sep); in ifprint() 204 sep = ", "; in ifprint() 207 printf("%sRUNNING", sep); in ifprint() 208 sep = ", "; in ifprint() 211 printf("%sLOOPBACK", sep); in ifprint() 212 sep = ", "; in ifprint() 215 printf("%sWIRELESS", sep); in ifprint() 252 sep = ", "; in ifprint()
|
/freebsd/usr.bin/mkimg/ |
H A D | mkimg.c | 81 const char *sep; in print_formats() local 91 sep = ""; in print_formats() 94 printf("%s%s", sep, f->name); in print_formats() 95 sep = " "; in print_formats() 105 const char *sep; in print_schemes() local 115 sep = ""; in print_schemes() 118 printf("%s%s", sep, s->name); in print_schemes() 119 sep = " "; in print_schemes() 241 char *sep; in parse_part() local 254 sep = strchr(spec, ':'); in parse_part() [all …]
|
/freebsd/sys/compat/linux/ |
H A D | linux_mib.c | 173 char *sep, *eosrelease; in linux_map_osrel() local 178 v0 = strtol(osrelease, &sep, 10); in linux_map_osrel() 179 if (osrelease == sep || sep + 1 >= eosrelease || *sep != '.') in linux_map_osrel() 181 osrelease = sep + 1; in linux_map_osrel() 182 v1 = strtol(osrelease, &sep, 10); in linux_map_osrel() 183 if (osrelease == sep || sep + 1 >= eosrelease || *sep != '.') in linux_map_osrel() 185 osrelease = sep + 1; in linux_map_osrel() 186 v2 = strtol(osrelease, &sep, 10); in linux_map_osrel() 187 if (osrelease == sep || in linux_map_osrel() 188 (sep != eosrelease && (sep + 1 >= eosrelease || *sep != '-'))) in linux_map_osrel()
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_status.c | 71 char *sep; in procfs_doprocstatus() 101 sep = ""; in procfs_doprocstatus() 103 sbuf_printf(sb, "%sctty", sep); in procfs_doprocstatus() 104 sep = ","; in procfs_doprocstatus() 107 sbuf_printf(sb, "%ssldr", sep); in procfs_doprocstatus() 108 sep = ","; in procfs_doprocstatus() 111 if (*sep != ',') { in procfs_doprocstatus() 70 char *sep; procfs_doprocstatus() local
|
/freebsd/sys/fs/tarfs/ |
H A D | tarfs_vfsops.c | 281 char *sep; in tarfs_lookup_path() local 297 sep = NULL; in tarfs_lookup_path() 319 for (sep = name, len = 0; in tarfs_lookup_path() 320 *sep != '\0' && *sep != '/' && len < namelen; in tarfs_lookup_path() 321 sep++, len++) in tarfs_lookup_path() 392 *sepp = sep; in tarfs_lookup_path() 442 char *namep, *sep; in tarfs_alloc_one() local 588 char *eol, *key, *value, *sep; in tarfs_alloc_one() local 589 size_t len = strtoul(line, &sep, 10); in tarfs_alloc_one() 590 if (len == 0 || sep == line || *sep != ' ') { in tarfs_alloc_one() [all …]
|
/freebsd/sbin/mdconfig/ |
H A D | mdconfig.c | 415 const char *sep = ""; in print_options() local 433 printf("%sasync", sep); in print_options() 434 sep = ","; in print_options() 437 printf("%scache", sep); in print_options() 438 sep = ","; in print_options() 441 printf("%scompress", sep); in print_options() 442 sep = ","; in print_options() 445 printf("%sforce", sep); in print_options() 446 sep = ","; in print_options() 449 printf("%sreadonly", sep); in print_options() [all …]
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_screen.c | 101 int cnt, col, len, sep; in ex_sdisplay() local 109 col = len = sep = 0; in ex_sdisplay() 112 col += len = strlen(tsp->frp->name) + sep; in ex_sdisplay() 115 sep = 0; in ex_sdisplay() 118 sep = 1; in ex_sdisplay()
|
/freebsd/usr.sbin/yp_mkdb/ |
H A D | yp_mkdb.c | 249 char *sep = NULL; in main() local 253 if ((sep = strchr(buf, '\n'))) in main() 254 *sep = '\0'; in main() 260 if ((sep = strchr(buf, '\n'))) in main() 261 *sep = '\0'; in main() 265 if ((sep = strpbrk(buf, " \t")) == NULL) { in main() 272 datbuf = sep + 1; in main() 273 *sep = '\0'; in main()
|