| /openbsd-src/usr.sbin/dhcpd/ |
| H A D | memory.c | 424 struct lease *comp = find_lease_by_ip_addr(lease->ip_addr); in enter_lease() local 427 if (!comp) { in enter_lease() 428 comp = calloc(1, sizeof(struct lease)); in enter_lease() 429 if (!comp) in enter_lease() 432 *comp = *lease; in enter_lease() 433 comp->next = dangling_leases; in enter_lease() 434 comp->prev = NULL; in enter_lease() 435 dangling_leases = comp; in enter_lease() 438 comp->hostname = lease->hostname; in enter_lease() 439 comp->client_hostname = lease->client_hostname; in enter_lease() [all …]
|
| /openbsd-src/sys/net/ |
| H A D | slcompress.c | 54 #define INCR(counter) ++comp->counter; 63 sl_compress_init(struct slcompress *comp) in sl_compress_init() argument 66 struct cstate *tstate = comp->tstate; in sl_compress_init() 68 bzero((char *)comp, sizeof(*comp)); in sl_compress_init() 75 comp->last_cs = &tstate[0]; in sl_compress_init() 76 comp->last_recv = 255; in sl_compress_init() 77 comp->last_xmit = 255; in sl_compress_init() 78 comp->flags = SLF_TOSS; in sl_compress_init() 87 sl_compress_setup(struct slcompress *comp, int max_state) in sl_compress_setup() argument 90 struct cstate *tstate = comp->tstate; in sl_compress_setup() [all …]
|
| /openbsd-src/usr.sbin/bgpd/ |
| H A D | flowspec.c | 334 const uint8_t *comp; in flowspec_get_addr() local 343 &comp, &complen); in flowspec_get_addr() 350 if (extract_prefix(comp + 1, complen - 1, &addr->v4, comp[0], in flowspec_get_addr() 353 *plen = comp[0]; in flowspec_get_addr() 359 xlen = comp[0]; in flowspec_get_addr() 360 if (comp[1] != 0) { in flowspec_get_addr() 363 xoff = comp[1]; in flowspec_get_addr() 366 if (extract_prefix(comp + 2, complen - 2, buf, xlen, in flowspec_get_addr() 370 *plen = comp[0]; in flowspec_get_addr() 372 *olen = comp[1]; in flowspec_get_addr() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/dist/Search-Dict/lib/Search/ |
| H A D | Dict.pm | 61 my ($comp, $xfrm); 67 $comp = $params->{comp} if exists $params->{comp}; 70 $comp = sub { $_[0] cmp $_[1] } unless defined $comp; 100 if (defined($_) && $comp->($_, $key) < 0) { 122 last if $comp->($_, $key) >= 0;
|
| /openbsd-src/bin/mt/ |
| H A D | mt.c | 144 struct commands *comp; in main() local 205 comp = &com[COM_RETEN]; in main() 207 comp = &com[COM_EJECT]; in main() 210 for (comp = com;; comp++) { in main() 211 if (comp->c_name == NULL) in main() 213 if (strncmp(p, comp->c_name, len) == 0) in main() 218 flags = comp->c_ronly ? O_RDONLY : O_WRONLY | O_CREAT; in main() 225 if (comp->c_code != MTNOP) { in main() 226 mt_com.mt_op = comp->c_code; in main() 229 if (mt_com.mt_count < comp->c_mincount || *p) in main() [all …]
|
| /openbsd-src/distrib/sets/ |
| H A D | checkflist | 39 for i in base comp etc game man; do 41 if [ $i = comp ]; then 42 [ -f ./lists/comp/gcc.${arch} ] && \ 43 cat ./lists/comp/gcc.${arch} 44 [ -f ./lists/comp/clang.${arch} ] && \ 45 cat ./lists/comp/clang.${arch}
|
| /openbsd-src/usr.sbin/acme-client/ |
| H A D | util.c | 230 checkexit(pid_t pid, enum comp comp) in checkexit() argument 240 warnx("signal: %s(%u): %s", comps[comp], pid, cp); in checkexit() 243 warnx("did not exit: %s(%u)", comps[comp], pid); in checkexit() 247 dodbg("bad exit: %s(%u): %d", comps[comp], pid, cc); in checkexit() 261 checkexit_ext(int *rc, pid_t pid, enum comp comp) in checkexit_ext() argument 275 warnx("signal: %s(%u): %s", comps[comp], pid, cp); in checkexit_ext() 278 warnx("did not exit: %s(%u)", comps[comp], pid); in checkexit_ext() 285 dodbg("bad exit: %s(%u): %d", comps[comp], pid, *rc); in checkexit_ext()
|
| H A D | extern.h | 100 enum comp { enum 237 int checkexit(pid_t, enum comp); 238 int checkexit_ext(int *, pid_t, enum comp); 286 extern enum comp proccomp;
|
| /openbsd-src/gnu/llvm/libcxx/include/ |
| H A D | queue | 124 Compare comp; 134 const Compare& comp = Compare()); 137 const Compare& comp, const Container& c); 140 const Compare& comp, Container&& c); 144 priority_queue(const Compare& comp, const Alloc& a); 146 priority_queue(const Compare& comp, const Container& c, 149 priority_queue(const Compare& comp, Container&& c, 156 const Compare& comp, const Alloc& a); 159 const Compare& comp, const Container& c, const Alloc& a); 162 const Compare& comp, Container&& c, const Alloc& a); [all …]
|
| H A D | algorithm | 47 constexpr I min_element(I first, S last, Comp comp = {}, Proj proj = {}); 51 constexpr borrowed_iterator_t<R> min_element(R&& r, Comp comp = {}, Proj proj = {}); 55 …constexpr I ranges::max_element(I first, S last, Comp comp = {}, Proj proj = {}); … 59 …constexpr borrowed_iterator_t<R> ranges::max_element(R&& r, Comp comp = {}, Proj proj = {}); … 104 constexpr const T& min(const T& a, const T& b, Comp comp = {}, Proj proj = {}); // since C++20 108 constexpr T min(initializer_list<T> r, Comp comp = {}, Proj proj = {}); // since C++20 114 min(R&& r, Comp comp = {}, Proj proj = {}); // since C++20 118 constexpr const T& max(const T& a, const T& b, Comp comp = {}, Proj proj = {}); // since C++20 122 constexpr T max(initializer_list<T> r, Comp comp = {}, Proj proj = {}); // since C++20 128 max(R&& r, Comp comp = {}, Proj proj = {}); // since C++20 [all …]
|
| /openbsd-src/lib/libcrypto/stack/ |
| H A D | stack.c | 75 int (*old)(const void *, const void *) = sk->comp; in sk_set_cmp_func() 77 if (sk->comp != c) in sk_set_cmp_func() 79 sk->comp = c; in sk_set_cmp_func() 91 if ((ret = sk_new(sk->comp)) == NULL) in sk_dup() 102 ret->comp = sk->comp; in sk_dup() 131 ret->comp = c; in sk_new() 235 if (st->comp == NULL) { 244 r = obj_bsearch_ex(&data, st->data, st->num, sizeof(void *), st->comp); in internal_find() 357 /* same comment as in sk_find ... previously st->comp wa [all...] |
| /openbsd-src/regress/sbin/ipsecctl/ |
| H A D | sa8.ok | 1 ipcomp tunnel from 1.1.1.1 to 2.2.2.2 spi 0x00001000 comp deflate 2 ipcomp tunnel from 2.2.2.2 to 1.1.1.1 spi 0x00001001 comp deflate 3 ipcomp tunnel from 3.3.3.3 to 4.4.4.4 spi 0x00002000 comp deflate 4 ipcomp tunnel from 4.4.4.4 to 3.3.3.3 spi 0x00002001 comp deflate
|
| H A D | sa20.ok | 1 ipcomp tunnel from 3ffe::1 to 3ffe::2 spi 0x00001000 comp deflate 2 ipcomp tunnel from 3ffe::2 to 3ffe::1 spi 0x00001001 comp deflate 3 ipcomp tunnel from 3ffe::3 to 3ffe::4 spi 0x00002000 comp deflate 4 ipcomp tunnel from 3ffe::4 to 3ffe::3 spi 0x00002001 comp deflate
|
| /openbsd-src/libexec/fingerd/ |
| H A D | fingerd.c | 67 char **comp, *prog; in main() local 155 comp = &av[1]; in main() 177 comp = &av[0]; in main() 187 *comp = ++lp; in main() 189 *comp = prog; in main() 192 for (ap = comp + 1; strcmp("--", *(ap++)); ) in main() 210 execv(prog, comp); in main()
|
| /openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/t/compress/ |
| H A D | oneshot.pl | 1062 my $comp = compressBuffer($UncompressClass, $buffer) ; 1064 my $keep_comp = $comp; 1082 ok &$Func(\$comp, \$output, Append => $append, @opts), ' Uncompressed ok' ; 1084 is $keep_comp, $comp, " Input buffer not changed" ; 1093 ok &$Func(\$comp, \@output, Append => $append, @opts), ' Uncompressed ok' ; 1095 is $keep_comp, $comp, " Input buffer not changed" ; 1111 ok &$Func(\$comp, $out_file, Append => $append, @opts), ' Uncompressed ok' ; 1116 is $keep_comp, $comp, " Input buffer not changed" ; 1135 ok &$Func(\$comp, $of, Append => $append, AutoClose => 1, @opts), ' Uncompressed ok' ; 1140 is $keep_comp, $comp, " Inpu [all...] |
| /openbsd-src/usr.bin/less/ |
| H A D | pattern.c | 28 regex_t *comp; in compile_pattern2() local 32 comp = ecalloc(1, sizeof (regex_t)); in compile_pattern2() 33 if (regcomp(comp, pattern, less_is_more ? 0 : REGCOMP_FLAG)) { in compile_pattern2() 34 free(comp); in compile_pattern2() 40 *comp_pattern = comp; in compile_pattern2()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ADT/ |
| H A D | simple_ilist.h | 256 template <class Compare> void merge(simple_ilist &RHS, Compare comp); 262 template <class Compare> void sort(Compare comp); 268 void simple_ilist<T, Options...>::merge(simple_ilist &RHS, Compare comp) { in merge() argument 274 if (comp(*RI, *LI)) { in merge() 277 RI = std::find_if(RI, RE, [&](reference RV) { return !comp(RV, *LI); }); in merge() 290 void simple_ilist<T, Options...>::sort(Compare comp) { in sort() argument 305 sort(comp); in sort() 306 RHS.sort(comp); in sort() 307 merge(RHS, comp); in sort()
|
| /openbsd-src/gnu/gcc/libstdc++-v3/include/bits/ |
| H A D | stl_queue.h | 343 _Compare comp; variable 352 : c(__s), comp(__x) in c() 353 { std::make_heap(c.begin(), c.end(), comp); } in c() 374 : c(__s), comp(__x) in c() 378 std::make_heap(c.begin(), c.end(), comp); in c() 416 std::push_heap(c.begin(), c.end(), comp); in push() 434 std::pop_heap(c.begin(), c.end(), comp); in pop()
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/include/bits/ |
| H A D | stl_queue.h | 325 _Compare comp; variable 334 : c(__s), comp(__x) in c() 335 { make_heap(c.begin(), c.end(), comp); } in c() 355 : c(__s), comp(__x) in c() 358 make_heap(c.begin(), c.end(), comp); in c() 392 push_heap(c.begin(), c.end(), comp); in push() 416 pop_heap(c.begin(), c.end(), comp); in pop()
|
| /openbsd-src/regress/usr.bin/ssh/ |
| H A D | proxy-connect.sh | 7 comp="no" 9 comp="no yes" 12 for c in $comp; do
|
| H A D | putty-transfer.sh | 9 comp="0" 11 comp="0 1" 14 for c in $comp; do
|
| /openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/t/ |
| H A D | 050interop-gzip.t | 51 my $comp = "$GZIP -d -c" ; 53 if ( system("$comp $file >$outfile") == 0 ) 59 diag "'$comp' failed: \$?=$? \$!=$!"; 78 my $comp = "$GZIP -c $options $infile >$file" ; 81 if system($comp) == 0 ; 83 diag "'$comp' failed: \$?=$? \$!=$!";
|
| /openbsd-src/sys/kern/ |
| H A D | subr_tree.c | 407 int comp = 0; in _rb_insert() local 414 comp = (*t->t_compare)(elm, node); in _rb_insert() 415 if (comp < 0) in _rb_insert() 417 else if (comp > 0) in _rb_insert() 426 if (comp < 0) in _rb_insert() 446 int comp; in _rb_find() local 450 comp = (*t->t_compare)(key, node); in _rb_find() 451 if (comp < 0) in _rb_find() 453 else if (comp > 0) in _rb_find() 469 int comp; in _rb_nfind() local [all …]
|
| /openbsd-src/lib/libc/gen/ |
| H A D | tree.c | 408 int comp = 0; in _rb_insert() local 415 comp = (*t->t_compare)(elm, node); in _rb_insert() 416 if (comp < 0) in _rb_insert() 418 else if (comp > 0) in _rb_insert() 427 if (comp < 0) in _rb_insert() 448 int comp; in _rb_find() local 452 comp = (*t->t_compare)(key, node); in _rb_find() 453 if (comp < 0) in _rb_find() 455 else if (comp > 0) in _rb_find() 472 int comp; in _rb_nfind() local [all …]
|
| /openbsd-src/games/monop/ |
| H A D | getinp.c | 44 static int comp(char *); 86 if (comp(list[i])) { in getinp() 99 comp(char *s1) in comp() function
|