| /freebsd/sys/netgraph/ |
| H A D | ng_pppoe.c | 275 negp neg; /* used when negotiating */ member 380 KASSERT(sp->neg != NULL, ("%s: no neg", __func__)); in init_tags() 381 sp->neg->numtags = 0; in init_tags() 387 negp neg = sp->neg; in insert_tag() local 390 KASSERT(neg != NULL, ("%s: no neg", __func__)); in insert_tag() 391 if ((i = neg->numtags++) < NUMTAGS) { in insert_tag() 392 neg->tags[i] = tp; in insert_tag() 396 neg->numtags--; in insert_tag() 410 struct pppoe_full_hdr *wh = &sp->neg->pkt->pkt_header; in make_packet() 417 KASSERT((sp->neg != NULL) && (sp->neg->m != NULL), in make_packet() [all …]
|
| /freebsd/contrib/unbound/validator/ |
| H A D | val_neg.c | 88 struct val_neg_cache* neg = (struct val_neg_cache*)calloc(1, in val_neg_create() local 89 sizeof(*neg)); in val_neg_create() 90 if(!neg) { in val_neg_create() 91 log_err("Could not create neg cache: out of memory"); in val_neg_create() 94 neg->nsec3_max_iter = maxiter; in val_neg_create() 95 neg->max = 1024*1024; /* 1 M is thousands of entries */ in val_neg_create() 96 if(cfg) neg->max = cfg->neg_cache_size; in val_neg_create() 97 rbtree_init(&neg->tree, &val_neg_zone_compare); in val_neg_create() 98 lock_basic_init(&neg->lock); in val_neg_create() 99 lock_protect(&neg in val_neg_create() 103 val_neg_get_mem(struct val_neg_cache * neg) val_neg_get_mem() argument 133 neg_cache_delete(struct val_neg_cache * neg) neg_cache_delete() argument 147 neg_lru_front(struct val_neg_cache * neg,struct val_neg_data * data) neg_lru_front() argument 163 neg_lru_remove(struct val_neg_cache * neg,struct val_neg_data * data) neg_lru_remove() argument 179 neg_lru_touch(struct val_neg_cache * neg,struct val_neg_data * data) neg_lru_touch() argument 197 neg_delete_zone(struct val_neg_cache * neg,struct val_neg_zone * z) neg_delete_zone() argument 226 neg_delete_data(struct val_neg_cache * neg,struct val_neg_data * el) neg_delete_data() argument 272 neg_make_space(struct val_neg_cache * neg,size_t need) neg_make_space() argument 280 neg_find_zone(struct val_neg_cache * neg,uint8_t * nm,size_t len,uint16_t dclass) neg_find_zone() argument 370 neg_closest_zone_parent(struct val_neg_cache * neg,uint8_t * nm,size_t nm_len,int labs,uint16_t qclass) neg_closest_zone_parent() argument 530 neg_create_zone(struct val_neg_cache * neg,uint8_t * nm,size_t nm_len,uint16_t dclass) neg_create_zone() argument 673 wipeout(struct val_neg_cache * neg,struct val_neg_zone * zone,struct val_neg_data * el,struct ub_packed_rrset_key * nsec) wipeout() argument 748 neg_insert_data(struct val_neg_cache * neg,struct val_neg_zone * zone,struct ub_packed_rrset_key * nsec) neg_insert_data() argument 879 val_neg_addreply(struct val_neg_cache * neg,struct reply_info * rep) val_neg_addreply() argument 969 val_neg_addreferral(struct val_neg_cache * neg,struct reply_info * rep,uint8_t * zone_name) val_neg_addreferral() argument 1379 val_neg_getmsg(struct val_neg_cache * neg,struct query_info * qinfo,struct regional * region,struct rrset_cache * rrset_cache,sldns_buffer * buf,time_t now,int addsoa,uint8_t * topname,struct config_file * cfg) val_neg_getmsg() argument [all...] |
| H A D | val_neg.h | 83 /** number of times neg cache records were used to generate NOERROR 86 /** number of times neg cache records were used to generate NXDOMAIN 176 * @return neg cache, empty or NULL on failure. 182 * @param neg: negative cache 185 size_t val_neg_get_mem(struct val_neg_cache* neg); 189 * @param neg: negative cache. 191 void neg_cache_delete(struct val_neg_cache* neg); 194 * Comparison function for rbtree val neg data elements 199 * Comparison function for rbtree val neg zone elements 205 * @param neg [all...] |
| /freebsd/crypto/openssl/crypto/bn/ |
| H A D | bn_add.c | 21 if (a->neg == b->neg) { in BN_add() 22 r_neg = a->neg; in BN_add() 27 r_neg = a->neg; in BN_add() 30 r_neg = b->neg; in BN_add() 39 r->neg = r_neg; in BN_add() 52 if (a->neg != b->neg) { in BN_sub() 53 r_neg = a->neg; in BN_sub() 58 r_neg = a->neg; in BN_sub() 61 r_neg = !b->neg; in BN_sub() 70 r->neg = r_neg; in BN_sub() [all …]
|
| H A D | bn_mpi.c | 37 if (a->neg) in BN_bn2mpi() 45 int neg = 0; in BN_mpi2bn() local 67 a->neg = 0; in BN_mpi2bn() 73 neg = 1; in BN_mpi2bn() 79 a->neg = neg; in BN_mpi2bn() 80 if (neg) { in BN_mpi2bn()
|
| H A D | bn_lib.c | 348 a->neg = b->neg; in BN_copy() 373 tmp_neg = a->neg; in BN_swap() 378 a->neg = b->neg; in BN_swap() 383 b->neg = tmp_neg; in BN_swap() 398 a->neg = 0; in BN_clear() 418 a->neg = 0; in BN_set_word() 437 int neg = 0, xor = 0, carry = 0; in bin2bn() local 479 neg = !!(*s2 & 0x80); in bin2bn() 480 xor = neg ? 0xff : 0x00; in bin2bn() 481 carry = neg; in bin2bn() [all …]
|
| H A D | bn_conv.c | 27 if (a->neg) in BN_bn2hex() 123 int neg = 0, h, m, i, j, k, c; in BN_hex2bn() local 130 neg = 1; in BN_hex2bn() 140 num = i + neg; in BN_hex2bn() 188 ret->neg = neg; in BN_hex2bn() 200 int neg = 0, i, j; in BN_dec2bn() local 206 neg = 1; in BN_dec2bn() 216 num = i + neg; in BN_dec2bn() 258 ret->neg = neg; in BN_dec2bn() 282 (*bn)->neg = 1; in BN_asc2bn()
|
| H A D | bn_word.c | 92 a->neg = 0; /* don't allow negative zero */ in BN_div_word() 112 if (a->neg) { in BN_add_word() 113 a->neg = 0; in BN_add_word() 116 a->neg = !(a->neg); in BN_add_word() 151 if (a->neg) { in BN_sub_word() 152 a->neg = 0; in BN_sub_word() 154 a->neg = 1; in BN_sub_word() 160 a->neg = 1; in BN_sub_word()
|
| /freebsd/lib/libutil/ |
| H A D | expand_number.c | 41 expand_impl(const char *buf, uint64_t *num, bool *neg) in expand_impl() argument 54 *neg = true; in expand_impl() 57 *neg = false; in expand_impl() 137 bool neg; variable 142 if (expand_impl(buf, &number, &neg) != 0) 148 if (neg) { 169 bool neg; in expand_unsigned() local 174 if (expand_impl(buf, &number, &neg) != 0) in expand_unsigned() 180 if (neg && number > 0) { in expand_unsigned()
|
| /freebsd/crypto/openssl/crypto/asn1/ |
| H A D | x_int64.c | 51 int neg = 0; in uint64_i2c() local 65 neg = 1; in uint64_i2c() 68 return ossl_i2c_uint64_int(cont, utmp, neg); in uint64_i2c() 76 int neg = 0; in uint64_c2i() local 92 if (!ossl_c2i_uint64_int(&utmp, &neg, &cont, len)) in uint64_c2i() 94 if ((it->size & INTxx_FLAG_SIGNED) == 0 && neg) { in uint64_c2i() 99 && !neg && utmp > INT64_MAX) { in uint64_c2i() 103 if (neg) in uint64_c2i() 144 int neg = 0; in uint32_i2c() local 158 neg = 1; in uint32_i2c() [all …]
|
| H A D | a_int.c | 25 int neg, ret; in ASN1_INTEGER_cmp() local 27 neg = x->type & V_ASN1_NEG; in ASN1_INTEGER_cmp() 28 if (neg != (y->type & V_ASN1_NEG)) { in ASN1_INTEGER_cmp() 29 if (neg) in ASN1_INTEGER_cmp() 37 if (neg) in ASN1_INTEGER_cmp() 97 static size_t i2c_ibuf(const unsigned char *b, size_t blen, int neg, in i2c_ibuf() argument 107 if (!neg && (i > 127)) { in i2c_ibuf() 110 } else if (neg) { in i2c_ibuf() 157 int neg, pad; in c2i_ibuf() local 163 neg = p[0] & 0x80; in c2i_ibuf() [all …]
|
| /freebsd/contrib/sendmail/libsm/ |
| H A D | strto.c | 49 register bool neg; variable 68 neg = true; 73 neg = false; 106 cutoff = neg ? LLONG_MIN : LLONG_MAX; 109 if (neg) 130 if (neg) 193 register bool neg; local 202 neg = (c == '-'); 203 if (neg) 249 if (neg && any > 0)
|
| /freebsd/contrib/ntp/libntp/ |
| H A D | dofptoa.c | 127 int neg; in fptoa() 129 neg = (fpv < 0); in fptoa() local 130 if (neg) { in fptoa() 136 return dofptoa(plusfp, (neg?'-':0), ndec, FALSE); in fptoa() 147 int neg; in fptoms() 149 neg = (fpv < 0); in fptoms() local 150 if (neg) { in fptoms() 156 return dofptoa(plusfp, (neg?'-':0), ndec, TRUE); in fptoms()
|
| /freebsd/lib/libc/quad/ |
| H A D | divdi3.c | 46 int neg; in __divdi3() local 49 ua = -(u_quad_t)a, neg = 1; in __divdi3() 51 ua = a, neg = 0; in __divdi3() 53 ub = -(u_quad_t)b, neg ^= 1; in __divdi3() 57 return (neg ? -uq : uq); in __divdi3()
|
| H A D | floatdidf.c | 46 int neg; in __floatdidf() local 52 u.q = -x, neg = 1; in __floatdidf() 54 u.q = x, neg = 0; in __floatdidf() 66 return (neg ? -d : d); in __floatdidf()
|
| H A D | floatdisf.c | 46 int neg; in __floatdisf() local 52 u.q = -x, neg = 1; in __floatdisf() 54 u.q = x, neg = 0; in __floatdisf() 68 return (neg ? -f : f); in __floatdisf()
|
| /freebsd/sys/libkern/ |
| H A D | divdi3.c | 46 int neg; in __divdi3() local 50 neg = 1; in __divdi3() 53 neg = 0; in __divdi3() 57 neg ^= 1; in __divdi3() 61 return (neg ? -uq : uq); in __divdi3()
|
| H A D | strtoq.c | 53 int neg, any, cutlim; in strtoq() local 65 neg = 1; in strtoq() 68 neg = 0; in strtoq() 100 cutoff = neg ? (u_quad_t)-(QUAD_MIN + QUAD_MAX) + QUAD_MAX : QUAD_MAX; in strtoq() 123 acc = neg ? QUAD_MIN : QUAD_MAX; in strtoq() 124 } else if (neg) in strtoq()
|
| H A D | strtol.c | 53 int neg = 0, any, cutlim; in strtol() local 64 neg = 1; in strtol() 94 cutoff = neg ? -(unsigned long)LONG_MIN : LONG_MAX; in strtol() 117 acc = neg ? LONG_MIN : LONG_MAX; in strtol() 118 } else if (neg) in strtol()
|
| /freebsd/crypto/openssh/openbsd-compat/ |
| H A D | strtoll.c | 55 int neg, any, cutlim; in strtoll() local 67 neg = 1; in strtoll() 70 neg = 0; in strtoll() 101 cutoff = neg ? LLONG_MIN : LLONG_MAX; in strtoll() 104 if (neg) { in strtoll() 122 if (neg) { in strtoll()
|
| /freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/ |
| H A D | tst.aggpack.d | 27 @neg = lquantize(-10, -10, 20, 1, -1); 28 @neg = lquantize(-5, -10, 20, 1, 1); 29 @neg = lquantize(0, -10, 20, 1, 1); 50 printa(@neg); 52 printa(@neg);
|
| /freebsd/lib/libc/stdlib/ |
| H A D | strtol.c | 57 int neg, any, cutlim; in strtol_l() local 70 neg = 1; in strtol_l() 73 neg = 0; in strtol_l() 116 cutoff = neg ? (unsigned long)-(LONG_MIN + LONG_MAX) + LONG_MAX in strtol_l() 140 acc = neg ? LONG_MIN : LONG_MAX; in strtol_l() 145 } else if (neg) in strtol_l()
|
| H A D | strtoll.c | 57 int neg, any, cutlim; in strtoll_l() local 71 neg = 1; in strtoll_l() 74 neg = 0; in strtoll_l() 118 cutoff = neg ? (unsigned long long)-(LLONG_MIN + LLONG_MAX) + LLONG_MAX in strtoll_l() 142 acc = neg ? LLONG_MIN : LLONG_MAX; in strtoll_l() 147 } else if (neg) in strtoll_l()
|
| H A D | strtoimax.c | 57 int neg, any, cutlim; in strtoimax_l() local 70 neg = 1; in strtoimax_l() 73 neg = 0; in strtoimax_l() 117 cutoff = neg ? (uintmax_t)-(INTMAX_MIN + INTMAX_MAX) + INTMAX_MAX in strtoimax_l() 141 acc = neg ? INTMAX_MIN : INTMAX_MAX; in strtoimax_l() 146 } else if (neg) in strtoimax_l()
|
| /freebsd/lib/libc/iconv/ |
| H A D | _strtol.h | 53 int any, cutlim, i, neg; in _FUNCNAME() local 78 neg = 1; in _FUNCNAME() 81 neg = 0; in _FUNCNAME() 121 cutoff = (neg ? __INT_MIN : __INT_MAX); in _FUNCNAME() 124 if (neg) { in _FUNCNAME() 142 if (neg) { in _FUNCNAME()
|