Searched refs:dn (Results 1 - 25 of 58) sorted by relevance

123

/openbsd-current/lib/libc/net/
H A Dres_comp.c80 char *dn; local
88 dn = exp_dn;
105 if (dn != exp_dn) {
106 if (dn >= eom)
108 *dn++ = '.';
110 if (dn+n >= eom)
115 if (dn + n + 2 >= eom)
117 *dn++ = '\\';
119 *dn++ = c;
145 *dn
168 u_char *cp, *dn; local
279 u_char *dn, *cp, **cpp; local
347 __res_hnok(const char *dn) argument
377 res_ownok(const char *dn) argument
393 res_mailok(const char *dn) argument
422 res_dnok(const char *dn) argument
[all...]
/openbsd-current/gnu/gcc/libdecnumber/
H A Ddecimal128.c62 /* dn is the source number (assumed valid) */
76 decimal128FromNumber (decimal128 * d128, const decNumber * dn, decContext * set) argument
82 uByte isneg = dn->bits & DECNEG; /* non-0 if original sign set */
88 if (!(dn->bits & DECSPECIAL))
90 Int ae = dn->exponent + dn->digits - 1; /* adjusted exponent */
91 if (dn->digits > DECIMAL128_Pmax /* too many digits */
97 decNumberPlus (&dw, dn, &dc); /* (round and check) */
100 dn = &dw; /* use the work number */
107 if (dn
196 decimal128ToNumber(const decimal128 * d128, decNumber * dn) argument
277 decNumber dn; /* work */ local
286 decNumber dn; /* work */ local
311 decNumber dn; /* .. */ local
[all...]
H A Ddecimal32.c62 /* dn is the source number (assumed valid) */
76 decimal32FromNumber (decimal32 * d32, const decNumber * dn, decContext * set) argument
82 uByte isneg = dn->bits & DECNEG; /* non-0 if original sign set */
88 if (!(dn->bits & DECSPECIAL))
90 Int ae = dn->exponent + dn->digits - 1; /* adjusted exponent */
91 if (dn->digits > DECIMAL32_Pmax /* too many digits */
97 decNumberPlus (&dw, dn, &dc); /* (round and check) */
100 dn = &dw; /* use the work number */
107 if (dn
193 decimal32ToNumber(const decimal32 * d32, decNumber * dn) argument
269 decNumber dn; /* work */ local
278 decNumber dn; /* work */ local
303 decNumber dn; /* .. */ local
[all...]
H A Ddecimal64.c62 /* dn is the source number (assumed valid) */
76 decimal64FromNumber (decimal64 * d64, const decNumber * dn, decContext * set) argument
82 uByte isneg = dn->bits & DECNEG; /* non-0 if original sign set */
88 if (!(dn->bits & DECSPECIAL))
90 Int ae = dn->exponent + dn->digits - 1; /* adjusted exponent */
91 if (dn->digits > DECIMAL64_Pmax /* too many digits */
97 decNumberPlus (&dw, dn, &dc); /* (round and check) */
100 dn = &dw; /* use the work number */
107 if (dn
192 decimal64ToNumber(const decimal64 * d64, decNumber * dn) argument
268 decNumber dn; /* work */ local
277 decNumber dn; /* work */ local
302 decNumber dn; /* .. */ local
[all...]
H A DdecLibrary.c49 decNumber dn; local
53 decimal32ToNumber (&d32, &dn);
54 return (decNumberIsInfinite (&dn));
60 decNumber dn; local
64 decimal64ToNumber (&d64, &dn);
65 return (decNumberIsInfinite (&dn));
71 decNumber dn; local
75 decimal128ToNumber (&d128, &dn);
76 return (decNumberIsInfinite (&dn));
H A DdecNumber.h187 #define decNumberIsZero(dn) (*(dn)->lsu==0 \
188 && (dn)->digits==1 \
189 && (((dn)->bits&DECSPECIAL)==0))
190 #define decNumberIsNegative(dn) (((dn)->bits&DECNEG)!=0)
191 #define decNumberIsNaN(dn) (((dn)->bits&(DECNAN|DECSNAN))!=0)
192 #define decNumberIsInfinite(dn) (((dn)
[all...]
H A DdecNumber.c307 /* decNumberToString(dn, string); */
308 /* decNumberToEngString(dn, string); */
310 /* dn is the decNumber to convert */
313 /* string must be at least dn->digits+14 characters long */
318 decNumberToString (const decNumber * dn, char *string) argument
320 decToString (dn, string, 0);
325 decNumberToEngString (const decNumber * dn, char *string) argument
327 decToString (dn, string, 1);
335 /* dn -- the number structure to fill */
352 decNumberFromString (decNumber * dn, cons argument
1827 decNumber dn; local
1918 decNumberTrim(decNumber * dn) argument
1945 decNumberZero(decNumber * dn) argument
2003 decToString(const decNumber * dn, char *string, Flag eng) argument
4369 decTrim(decNumber * dn, Flag all, Int * dropped) argument
4575 decRoundOperand(const decNumber * dn, decContext * set, uInt * status) argument
4662 decSetCoeff(decNumber * dn, decContext * set, const Unit * lsu, Int len, Int * residue, uInt * status) argument
4872 decApplyRound(decNumber * dn, decContext * set, Int residue, uInt * status) argument
5080 decFinish(decNumber * dn, decContext * set, Int * residue, uInt * status) argument
5121 decFinalize(decNumber * dn, decContext * set, Int * residue, uInt * status) argument
5182 decSetOverflow(decNumber * dn, decContext * set, uInt * status) argument
5266 decSetSubnormal(decNumber * dn, decContext * set, Int * residue, uInt * status) argument
5362 decGetInt(const decNumber * dn, decContext * set) argument
5532 decStatus(decNumber * dn, uInt status, decContext * set) argument
5604 decNumberShow(const decNumber * dn) argument
5766 decCheckNumber(const decNumber * dn, decContext * set) argument
[all...]
H A DdecUtility.c60 /* dn is the source number (assumed valid, max DECMAX754 digits) */
76 decDensePackCoeff (const decNumber * dn, uByte * bytes, Int len, Int shift) argument
80 Int digits = dn->digits; /* digit countdown */
84 const Unit *inu = dn->lsu; /* -> current input unit */
99 source = dn->lsu + D2U (digits) - 1; /* where msu comes from */
104 for (; source >= dn->lsu; source--, target--)
211 /* dn is the target number, with 7, 16, or 34-digit space. */
220 /* dn->digits is set, but not the sign or exponent. */
224 decDenseUnpackCoeff (const uByte * bytes, Int len, decNumber * dn, argument
230 Unit *uout = dn
[all...]
H A DdecNumberLocal.h116 /* ISZERO -- return true if decNumber dn is a zero */
118 #define ISZERO(dn) decNumberIsZero(dn) /* now just a local name */
/openbsd-current/usr.sbin/ldapd/
H A Dindex.c85 index_attribute(struct namespace *ns, char *attr, struct btval *dn, argument
96 assert(dn);
101 log_debug("indexing %.*s on %s", (int)dn->size, (char *)dn->data, attr);
103 dnsz = dn->size - strlen(ns->suffix);
110 (char *)dn->data);
126 index_rdn_key(struct namespace *ns, struct btval *dn, struct btval *key) argument
133 dnsz = dn->size - strlen(ns->suffix);
137 parent_dn = memchr(dn->data, ',', dnsz);
143 rdnsz = parent_dn - (char *)dn
161 index_rdn(struct namespace *ns, struct btval *dn) argument
184 unindex_attribute(struct namespace *ns, char *attr, struct btval *dn, struct ber_element *a) argument
222 index_entry(struct namespace *ns, struct btval *dn, struct ber_element *elm) argument
240 unindex_rdn(struct namespace *ns, struct btval *dn) argument
261 unindex_entry(struct namespace *ns, struct btval *dn, struct ber_element *elm) argument
305 index_to_dn(struct namespace *ns, struct btval *indx, struct btval *dn) argument
[all...]
H A Dmodify.c35 char *dn, *s; local
44 if (ober_scanf_elements(req->op, "s", &dn) != 0)
47 normalize_dn(dn);
48 log_debug("deleting entry %s", dn);
50 if ((ns = namespace_for_base(dn)) == NULL) {
51 refs = namespace_referrals(dn);
55 return ldap_refer(req, dn, NULL, refs);
58 if (!authorized(req->conn, ns, ACI_WRITE, dn, NULL, LDAP_SCOPE_BASE))
78 key.data = dn;
79 key.size = strlen(dn);
128 char *dn, *s; local
239 char *dn; local
[all...]
H A Dnamespace.c39 static struct btval *namespace_find(struct namespace *ns, char *dn);
256 namespace_find(struct namespace *ns, char *dn) argument
269 key.data = dn;
270 key.size = strlen(dn);
274 log_debug("%s: dn not found", dn);
276 log_warn("%s", dn);
288 namespace_get(struct namespace *ns, char *dn) argument
293 if ((val = namespace_find(ns, dn)) == NULL)
302 namespace_exists(struct namespace *ns, char *dn) argument
326 namespace_put(struct namespace *ns, char *dn, struct ber_element *root, int update) argument
366 namespace_add(struct namespace *ns, char *dn, struct ber_element *root) argument
372 namespace_update(struct namespace *ns, char *dn, struct ber_element *root) argument
378 namespace_del(struct namespace *ns, char *dn) argument
[all...]
H A Dauth.c36 char *dn, int rights, char *attr, enum scope scope)
43 if (dn == NULL)
47 key.size = strlen(dn);
48 key.data = dn;
53 if (strcmp(dn, aci->target) != 0)
70 if (strcmp(dn, aci->target) != 0)
95 if (strcmp(dn, conn->binddn) != 0)
111 /* Returns true (1) if conn is authorized for op on dn in namespace.
114 authorized(struct conn *conn, struct namespace *ns, int rights, char *dn, argument
136 dn
35 aci_matches(struct aci *aci, struct conn *conn, struct namespace *ns, char *dn, int rights, char *attr, enum scope scope) argument
[all...]
H A Dldapd.h375 struct ber_element *namespace_get(struct namespace *ns, char *dn);
376 int namespace_exists(struct namespace *ns, char *dn);
377 int namespace_add(struct namespace *ns, char *dn,
379 int namespace_update(struct namespace *ns, char *dn,
381 int namespace_del(struct namespace *ns, char *dn);
454 int rights, char *dn, char *attr, int scope);
475 void normalize_dn(char *dn);
483 int index_entry(struct namespace *ns, struct btval *dn,
485 int unindex_entry(struct namespace *ns, struct btval *dn,
488 struct btval *dn);
[all...]
H A Dutil.c59 normalize_dn(char *dn) argument
64 for (s = p = dn; *s != '\0'; s++) {
66 if (p == dn || p[-1] == ',')
/openbsd-current/gnu/gcc/gcc/
H A Ddfp.c63 decimal_from_decnumber (REAL_VALUE_TYPE *r, decNumber *dn, decContext *context) argument
68 if (decNumberIsZero (dn))
70 if (decNumberIsNaN (dn))
72 if (decNumberIsInfinite (dn))
76 if (decNumberIsNegative (dn))
86 decimal128FromNumber ((decimal128 *) r->sig, dn, context);
94 decNumber dn; local
99 decNumberFromString (&dn, (char *) s, &set);
104 decimal_from_decnumber (r, &dn, &set);
110 decimal_to_decnumber (const REAL_VALUE_TYPE *r, decNumber *dn) argument
149 decNumber dn; local
171 decNumber dn; local
193 decNumber dn; local
221 decNumber dn; local
249 decNumber dn; local
281 decNumber dn; local
345 decNumber dn, dn2, dn3; local
385 decNumber dn; local
466 decNumber dn; local
494 decNumber dn, dn2, dn3; local
516 decNumber dn, dn2, dn3; local
537 decNumber dn, dn2; local
555 decNumber dn, dn2, dn3; local
582 decNumber dn, dn2, dn3; local
[all...]
/openbsd-current/usr.bin/systat/
H A Diostat.c136 unsigned int dn; local
137 for (dn = 0; dn < last.dk_ndrive; dn++) {
138 last.dk_rbytes[dn] = 0;
139 last.dk_wbytes[dn] = 0;
140 last.dk_rxfer[dn] = 0;
141 last.dk_wxfer[dn] = 0;
215 int dn; local
219 for (dn
238 showdrive(int dn) argument
[all...]
/openbsd-current/usr.sbin/iostat/
H A Diostat.c283 int dn; local
286 for (dn = 0; dn < dk_ndrive; ++dn) {
287 if (!cur.dk_select[dn])
291 if (cur.dk_rxfer[dn] + cur.dk_wxfer[dn])
292 mbps = ((cur.dk_rbytes[dn] + cur.dk_wbytes[dn]) /
293 (1024.0)) / (cur.dk_rxfer[dn]
325 int dn; local
[all...]
/openbsd-current/lib/libc/asr/
H A Dres_mkquery.c41 char dn[MAXDNAME]; local
54 if (_asr_dname_from_fqdn(dname, dn, sizeof(dn)) == -1)
73 _asr_pack_query(&p, type, class, dn);
/openbsd-current/games/hack/
H A Dhack.objnam.c106 char *dn = ocl->oc_descr; local
134 if(dn) {
137 " (%s)", dn);
140 strlcpy(buf, dn ? dn : an, sizeof buf);
160 if(dn) {
162 snprintf(bp, buf + sizeof buf - bp, " (%s)", dn);
173 char *dn = objects[obj->otyp].oc_descr; local
187 strlcpy(buf, dn, len);
237 strlcpy(buf, dn, le
436 char *un, *dn, *an; local
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/opt/
H A Dlongbranch2.C40 int dn = (i>>5) & 0x01; // sign of DOWN local
47 v = us*(1-un*2) + ds*(1-2*dn);
/openbsd-current/regress/usr.sbin/ldapd/
H A Drun-tests.pl30 say $mesg->entry($i)->dn();
/openbsd-current/sys/msdosfs/
H A Dmsdosfs_conv.c355 dos2unixfn(u_char dn[11], u_char *un, int lower) argument
367 if (*dn == SLOT_E5)
370 c = dos2unix[*dn];
372 dn++;
377 for (i = 1; i < 8 && *dn != ' '; i++) {
378 c = dos2unix[*dn++];
382 dn += 8 - i;
388 if (*dn != ' ') {
391 for (i = 0; i < 3 && *dn != ' '; i++) {
392 c = dos2unix[*dn
414 unix2dosfn(u_char *un, u_char dn[11], int unlen, u_int gen) argument
[all...]
H A Ddirentry.h127 int dos2unixfn(u_char dn[11], u_char *un, int lower);
128 int unix2dosfn(u_char *un, u_char dn[11], int unlen, u_int gen);
/openbsd-current/usr.sbin/makefs/msdos/
H A Dmsdosfs_conv.c258 unix2dosfn(u_char *un, u_char dn[11], int unlen, u_int gen) argument
270 dn[i] = ' ';
277 dn[0] = '.';
281 dn[0] = '.';
282 dn[1] = '.';
326 if (dp[i] != (dn[j] = unix2dos[dp[i]])
329 if (!dn[j]) {
331 dn[j--] = ' ';
346 if (*un != (dn[j] = unix2dos[*un])
349 if (!dn[
[all...]

Completed in 509 milliseconds

123