Searched refs:slen (Results 1 - 25 of 187) sorted by relevance

12345678

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstrlcpy.c42 size_t slen = strlen(src); local
46 return (slen);
48 if (slen >= len)
51 copied = slen;
54 return (slen);
H A Dmkstemp.c64 libc_mkstemps(char *as, int slen, int flags) argument
77 if (slen < 0 || slen >= len)
80 str = tstr + (len - 1 - slen);
90 mkret = libc_mktemps(as, slen);
127 mkstemps(char *as, int slen) argument
129 return (libc_mkstemps(as, slen, 0));
139 mkostemps(char *as, int slen, int flags) argument
141 return (libc_mkstemps(as, slen, flags));
H A Dmktemp.c98 libc_mktemps(char *as, int slen) argument
144 if (slen >= len || slen < 0)
146 len -= slen;
/illumos-gate/usr/src/lib/smbsrv/libsmbrp/common/
H A Dsmbrp_plugin.c98 int slen; local
106 slen = strlen(svc_data) + 1;
108 if (slen > *bufsz) {
109 *bufsz = slen;
127 int slen; local
132 slen = strlen(svc_data) + 1;
134 if (slen > *bufsz) {
135 *bufsz = slen;
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dwcsxfrm.c43 size_t slen; local
53 ((slen = _collate_wxfrm(lcc, src, dest, len)) == (size_t)-1)) {
58 if (len > slen) {
59 dest[slen] = 0;
64 return (slen);
67 slen = wcslen(src);
68 if (slen < len)
74 return (slen);
H A Dstrxfrm.c43 size_t slen; local
58 slen = strlen(src);
63 if ((wcs = malloc((slen + 1) * sizeof (wchar_t))) == NULL)
66 if (mbstowcs_l(wcs, src, slen + 1, loc) == (size_t)-1)
89 return (slen);
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dmisc.c125 size_t slen; local
129 slen = 0;
133 for (i = 1; mask != 0 && i != 0 && slen < len - 1; i <<= 1) {
138 if (slen != 0)
139 line[slen++] = ',';
148 slen += snprintf(line + slen, len - slen,
156 slen += snprintf(line + slen, le
[all...]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpathutil.c140 * Note that regardless of the slen argument,
142 * slen int The maximum number of characters to append
152 char *_pn_append_to_path(PathName *path, const char *string, int slen, argument
171 if(slen < 0 || slen > strlen(string))
172 slen = strlen(string);
176 if(!_pn_resize_path(path, pathlen + slen))
184 for(i=0; i<slen; i++) {
197 memcpy(path->name + pathlen, string, slen);
198 path->name[pathlen + slen]
222 _pn_prepend_to_path(PathName *path, const char *string, int slen, int remove_escapes) argument
[all...]
H A Dpathutil.h53 char *_pn_append_to_path(PathName *path, const char *string, int slen,
55 char *_pn_prepend_to_path(PathName *path, const char *string, int slen,
H A Derrmsg.c126 size_t slen = strlen(s); local
132 int nnew = slen < nleft ? slen : nleft;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/arcfour/
H A Darcfour_str2key.c27 size_t len,slen; local
46 slen = ((string->length)>128)?128:string->length;
47 len=(slen)*2;
54 asctouni(copystr, (uchar_t *)string->data, slen ); local
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dstable.c144 unsigned slen = 0; local
156 slen++;
157 hash ^= (((unsigned)*sptr) << (slen % 3)) +
158 ((unsigned)*(sptr - 1) << ((slen % 3 + 7)));
160 hash ^= slen;
161 if (slen > CHUNK_SIZE - sizeof (char *) - 1 - 4)
189 (slen + sizeof (char *) + MINPTR_ALIGN + 4)) {
/illumos-gate/usr/src/lib/libdemangle/common/
H A Ddemangle.c106 size_t slen; local
118 slen = strlen(str);
134 lang = detect_lang(str, slen);
141 return (cpp_demangle(str, slen, ops));
143 return (rust_demangle(str, slen, ops));
H A Dstrview.c68 size_t slen = strlen(str); local
70 if (sv->sv_rem < slen)
72 if (strncmp(sv->sv_first, str, slen) != 0)
75 sv->sv_first += slen;
76 sv->sv_rem -= slen;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dlogging.c110 int slen; local
139 slen = vsnprintf(regbuf, SMALLSTR, fmt, args);
140 if (slen < SMALLSTR) {
147 ostr = alloca(slen + 2);
148 slen = vsnprintf(ostr, slen + 1, fmt, args2);
152 if (slen <= 0)
156 if (ostr[slen - 1] != '\n') {
157 ostr[slen++] = '\n';
158 ostr[slen]
[all...]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_realpath.c87 int serrno, slen; local
193 slen = readlink(resolved, symlink,
195 if (slen < 0)
197 symlink[slen] = '\0';
216 if (symlink[slen - 1] != '/') {
217 if (slen + 1 >= sizeof (symlink)) {
221 symlink[slen] = '/';
222 symlink[slen + 1] = 0;
/illumos-gate/usr/src/cmd/fs.d/nfs/rp_basic/
H A Dlibnfs_basic.c279 int slen, err; local
295 slen = xdr_sizeof(xdr_fs_locations4, (void *)fsl);
296 if (slen > *bufsz) {
297 *bufsz = slen;
311 *bufsz = slen;
325 int slen; local
333 slen = strlen(svc_data) + 1;
334 if (slen > *bufsz) {
335 *bufsz = slen;
338 *bufsz = slen;
[all...]
/illumos-gate/usr/src/cmd/boot/fiocompress/
H A Dfiocompress.c209 ulong_t slen, dlen; local
213 slen = MIN(srclen, blksize);
215 ret = compress2(dstbuf, &dlen, (Bytef *)srcaddr, slen, 9);
228 srclen -= slen;
229 srcaddr += slen;
252 ulong_t slen, dlen; local
283 slen = hdr->ch_blkmap[i + 1] - hdr->ch_blkmap[i];
284 ret = uncompress(dstbuf, &dlen, (Bytef *)srcaddr, slen);
299 srcaddr += slen;
303 slen
[all...]
/illumos-gate/usr/src/lib/libmlrpc/common/
H A Dndr_heap.c203 size_t slen; local
212 slen = ndr__mbstowcs(NULL, s, NDR_STRING_MAX);
213 if (slen == (size_t)-1)
216 out->length = slen * sizeof (ndr_wchar_t);
237 size_t slen; local
244 slen = ndr__mbstowcs(NULL, s, NDR_STRING_MAX);
245 if (slen == (size_t)-1)
246 slen = 0;
248 vc->wclen = slen * sizeof (ndr_wchar_t);
253 * See slen
[all...]
/illumos-gate/usr/src/common/devid/
H A Ddevid.c196 size_t driver_len, devid_len, slen; local
233 slen = 2 + 1; /* <magic><rev> "id1" */
234 slen += 1 + driver_len + 1 + 1; /* ",<driver>@<type>" */
235 slen += ascii ? devid_len : (devid_len * 2); /* did_id field */
237 slen += 1; /* '/' */
238 slen += strlen(minor_name); /* len of minor_name */
240 slen += 1; /* NULL */
243 if ((sbuf = DEVID_MALLOC(slen)) == NULL)
282 DEVID_ASSERT((strlen(sbuf) + 1) == slen);
324 int slen, devid_le local
[all...]
H A Ddevid_smp.c107 int vlen, plen, slen; local
161 slen = snprintf(sbuf, sizeof (sbuf), "%016" PRIx64, s);
162 if ((vlen <= 0) || (plen <= 0) || ((slen + 1) != sizeof (sbuf)))
167 raw_id_len = vlen + 1 + plen + 1 + slen;
186 bcopy(sbuf, &i_devid->did_id[vlen + 1 + plen + 1], slen);
/illumos-gate/usr/src/lib/libtsol/common/
H A Dbtos.c319 ssize_t slen; /* length including NULL */ local
331 if ((slen = bsltos(label, &sstring, ssize,
334 if (slen == 0) {
354 if ((wstring = malloc(slen * sizeof (wchar_t))) == NULL)
356 if ((wccount = mbstowcs(wstring, sstring, slen - 1)) == -1) {
415 ssize_t slen; /* length including NULL */ local
427 if ((slen = bcleartos(clearance, &sstring, ssize,
430 if (slen == 0) {
450 if ((wstring = malloc(slen * sizeof (wchar_t))) == NULL)
452 if ((wccount = mbstowcs(wstring, sstring, slen
[all...]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dipft_ef.c78 int slen, extra = 0, i; local
124 slen = IP_HL(ip) + extra;
125 i = MIN(cnt, slen);
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Drandom.c270 pkcs11_seed_random(void *sbuf, size_t slen) argument
274 if (sbuf == NULL || slen == 0)
282 if (pkcs11_write_random_seed(sbuf, slen) == slen)
293 pkcs11_seed_urandom(void *sbuf, size_t slen) argument
297 if (sbuf == NULL || slen == 0)
305 if (pkcs11_write_urandom_seed(sbuf, slen) == slen)
/illumos-gate/usr/src/boot/lib/libstand/
H A Dbootparam.c347 int slen; /* string length */ local
353 slen = ntohl(*lenp);
354 plen = (slen + 3) & ~3;
356 if (slen > *len_p)
357 slen = *len_p;
360 bcopy(datap, str, slen);
362 str[slen] = '\0';
363 *len_p = slen;

Completed in 264 milliseconds

12345678