Searched refs:nlen (Results 1 - 25 of 131) sorted by relevance

123456

/freebsd-11-stable/contrib/nvi/common/
H A Dmem.h22 #define BINC_GOTO(sp, type, lp, llen, nlen) { \
25 if ((nlen) > llen) { \
26 if ((L__bincp = binc(sp, lp, &(llen), nlen)) == NULL) \
35 #define BINC_GOTOC(sp, lp, llen, nlen) \
36 BINC_GOTO(sp, char, lp, llen, nlen)
37 #define BINC_GOTOW(sp, lp, llen, nlen) \
38 BINC_GOTO(sp, CHAR_T, lp, llen, (nlen) * sizeof(CHAR_T))
39 #define BINC_RET(sp, type, lp, llen, nlen) { \
42 if ((nlen) > llen) { \
43 if ((L__bincp = binc(sp, lp, &(llen), nlen))
[all...]
H A Dkey.h15 #define FILE2INT5(sp,buf,n,nlen,w,wlen) \
16 sp->conv.file2int(sp, n, nlen, &buf, &wlen, &w)
17 #define INT2FILE(sp,w,wlen,n,nlen) \
18 sp->conv.int2file(sp, w, wlen, &sp->cw, &nlen, &n)
19 #define CHAR2INT5(sp,buf,n,nlen,w,wlen) \
20 sp->conv.sys2int(sp, n, nlen, &buf, &wlen, &w)
21 #define INT2CHAR(sp,w,wlen,n,nlen) \
22 sp->conv.int2sys(sp, w, wlen, &sp->cw, &nlen, &n)
23 #define INPUT2INT5(sp,cw,n,nlen,w,wlen) \
24 sp->conv.input2int(sp, n, nlen,
[all...]
H A Dseq.h33 size_t nlen; /* Name length. */ member in struct:_seq
H A Ddelete.c43 size_t blen, len, nlen, tlen; local
130 nlen = (len - (tm->cno + 1)) + tlen;
131 if (tlen > nlen) {
136 GET_SPACE_RETW(sp, bp, blen, nlen);
138 ADD_SPACE_RETW(sp, bp, blen, nlen);
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dext_password_test.c48 size_t nlen; local
55 nlen = os_strlen(name);
58 if (os_strncmp(pos, name, nlen) == 0 && pos[nlen] == '=') {
60 pos += nlen + 1;
/freebsd-11-stable/usr.bin/systat/
H A Dfetch.c64 size_t nlen = len; local
66 if (sysctlbyname(name, ptr, &nlen, NULL, 0) != 0) {
70 if (nlen != len) {
71 error("sysctl(%s...) expected %zu, got %zu", name, len, nlen);
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dsnprintf.c148 int nstart, nlen; local
159 nlen = 0;
164 ++nlen;
170 nlen--;
194 if(prec <= nlen && nstr[nstart] != '0' && nstr[nstart] != '\0')
195 prec = nlen + 1;
207 if(prec > nlen)
210 width -= nlen;
232 if(prec - nlen > width - len - nlen)
[all...]
/freebsd-11-stable/sys/compat/linux/
H A Dlinux_sysctl.c137 if (la.nlen <= 0 || la.nlen > LINUX_CTL_MAXNAME) {
138 LIN_SDT_PROBE2(sysctl, linux_sysctl, wrong_length, la.nlen,
144 mib = malloc(la.nlen * sizeof(l_int), M_LINUX, M_WAITOK);
145 error = copyin(PTRIN(la.name), mib, la.nlen * sizeof(l_int));
155 if (la.nlen < 2)
172 sb = sbuf_new(NULL, NULL, 20 + la.nlen * 5, SBUF_AUTOEXTEND);
179 for (i = 0; i < la.nlen; i++)
/freebsd-11-stable/lib/libkvm/
H A Dkvm_cptime.c68 size_t nlen; local
70 nlen = len;
71 if (sysctlbyname(name, buf, &nlen, NULL, 0) < 0) {
76 if (nlen != len) {
/freebsd-11-stable/contrib/wpa/src/eap_common/
H A Deap_ikev2_common.c24 size_t nlen; local
30 nlen = i_nonce_len + r_nonce_len;
31 nonces = os_malloc(nlen);
37 if (ikev2_prf_plus(prf, keys->SK_d, keys->SK_d_len, nonces, nlen,
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dbgscan.c32 size_t nlen; local
41 nlen = os_strlen(name);
43 nlen = params - name;
48 if (os_strncmp(name, bgscan_modules[i]->name, nlen) == 0) {
H A Dautoscan.c44 size_t nlen; local
67 nlen = os_strlen(name);
69 nlen = params - name;
74 if (os_strncmp(name, autoscan_modules[i]->name, nlen) == 0) {
/freebsd-11-stable/contrib/nvi/ex/
H A Dex_file.c41 size_t nlen; local
53 np, nlen);
54 if ((p = v_strdup(sp, np, nlen - 1)) == NULL)
H A Dex_preserve.c74 size_t nlen; local
79 INT2CHAR(sp, ap->bp, ap->len+1, np, nlen);
90 INT2CHAR(sp, ap->bp, ap->len+1, np, nlen);
H A Dex_args.c54 size_t nlen; local
95 INT2CHAR(sp, argv[0]->bp, argv[0]->len, np, nlen);
96 if ((*ap = v_strdup(sp, np, nlen)) == NULL)
137 size_t nlen; local
148 INT2CHAR(sp, cmdp->argv[0]->bp, cmdp->argv[0]->len + 1, np, nlen);
311 size_t nlen; local
324 INT2CHAR(sp, argv[0]->bp, argv[0]->len, np, nlen);
325 if ((*ap = v_strdup(sp, np, nlen)) == NULL)
H A Dex_source.c44 size_t nlen; local
49 INT2CHAR(sp, cmdp->argv[0]->bp, cmdp->argv[0]->len + 1, name, nlen);
/freebsd-11-stable/stand/ofw/libofw/
H A Dofw_copy.c53 size_t nlen; local
57 nlen = len;
72 nlen -= (last_dest + last_len) - dest;
83 if ((nlen + resid) < PAGE_SIZE*MAPMEM_PAGE_INC) {
86 dlen = roundup(nlen + resid, PAGE_SIZE);
/freebsd-11-stable/contrib/ntp/sntp/
H A Dnetworking.c79 u_int nlen; /* next extension length */ local
81 nlen = ntohl(*head) & 0xffff;
83 nlen = (nlen + 3) >> 2;
84 if (nlen > (u_int)(tail - head) || nlen < 4)
86 head += nlen;
/freebsd-11-stable/crypto/openssl/crypto/x509v3/
H A Dv3_info.c115 int i, nlen;
130 nlen = strlen(objtmp) + strlen(vtmp->name) + 5;
131 ntmp = OPENSSL_malloc(nlen);
134 BUF_strlcpy(ntmp, objtmp, nlen);
135 BUF_strlcat(ntmp, " - ", nlen);
136 BUF_strlcat(ntmp, vtmp->name, nlen);
/freebsd-11-stable/sys/geom/
H A Dgeom_ctl.h43 u_int nlen; member in struct:gctl_req_arg
/freebsd-11-stable/bin/pax/
H A Dtables.h163 int nlen; /* length of the directory name (includes \0) */ member in struct:dirdata
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/zmod/
H A Dinflate.h110 unsigned nlen; /* number of length code lengths */ member in struct:inflate_state
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_lm75/
H A Dsnmp_lm75.c139 sysctlname(int *oid, int nlen, char *name, size_t len) argument
143 if (nlen > (int)(sizeof(mib) / sizeof(int) - 2))
148 memcpy(mib + 2, oid, nlen * sizeof(int));
150 if (sysctl(mib, nlen + 2, name, &len, 0, 0) == -1)
157 sysctlgetnext(int *oid, int nlen, int *next, size_t *nextlen) argument
161 if (nlen > (int)(sizeof(mib) / sizeof(int) - 2))
166 memcpy(mib + 2, oid, nlen * sizeof(int));
168 if (sysctl(mib, nlen + 2, next, nextlen, 0, 0) == -1)
/freebsd-11-stable/crypto/openssh/
H A Dbitmap.c83 size_t nlen; local
87 nlen = (n / BITMAP_BITS) + 1;
88 if (b->len < nlen) {
89 if ((tmp = reallocarray(b->d, nlen, BITMAP_BYTES)) == NULL)
92 memset(b->d + b->len, 0, (nlen - b->len) * BITMAP_BYTES);
93 b->len = nlen;
/freebsd-11-stable/contrib/nvi/vi/
H A Dv_increment.c58 size_t beg, blen, end, len, nlen, wlen; local
205 nlen = SPRINTF(nbuf, sizeof(nbuf), ntype, lval);
227 nlen = SPRINTF(nbuf, sizeof(nbuf), ntype, wlen, ulval);
232 MEMMOVE(bp + beg, nbuf, nlen);
233 MEMMOVE(bp + beg + nlen, p + end, len - beg - (end - beg));
234 len = beg + nlen + (len - beg - (end - beg));

Completed in 140 milliseconds

123456