Searched refs:idlen (Results 1 - 18 of 18) sorted by relevance

/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetpwnam.c66 int olduidlen, oldgidlen, idlen; local
101 idlen = snprintf(NULL, 0, "%u:%u", uid, gid);
102 newlinelen = linelen + idlen - olduidlen - oldgidlen - 1;
118 (void) bcopy(linep, uidp + idlen, limit - linep + 1);
119 (void) snprintf(uidp, idlen + 1, "%u:%u", uid, gid);
120 *(uidp + idlen) = ':'; /* restore : that was overwritten by snprintf */
H A Dgetgrent.c73 int oldgidlen, idlen; local
99 idlen = snprintf(NULL, 0, "%u", GID_NOBODY);
100 newlinelen = linelen + idlen - oldgidlen;
116 (void) bcopy(linep, gidp + idlen, limit - linep + 1);
117 (void) snprintf(gidp, idlen + 1, "%u", GID_NOBODY);
118 *(gidp + idlen) = ':';
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetgrent.c176 int oldgidlen, idlen; local
210 idlen = snprintf(NULL, 0, "%u", GID_NOBODY);
211 newlinelen = linelen + idlen - oldgidlen;
215 (void) bcopy(linep, gidp + idlen, limit - linep + extra_chars);
216 (void) snprintf(gidp, idlen + 1, "%u", GID_NOBODY);
217 *(gidp + idlen) = ':';
H A Dgetpwnam.c179 int olduidlen, oldgidlen, idlen; local
218 idlen = snprintf(NULL, 0, "%u:%u", uid, gid);
219 newlinelen = linelen + idlen - olduidlen - oldgidlen - 1;
224 (void) bcopy(linep, uidp + idlen, limit - linep + extra_chars);
225 (void) snprintf(uidp, idlen + 1, "%u:%u", uid, gid);
226 *(uidp + idlen) = ':'; /* restore : that was overwritten by snprintf */
/illumos-gate/usr/src/lib/nsswitch/compat/common/
H A Dgetgrent.c71 int oldgidlen, idlen; local
96 idlen = snprintf(NULL, 0, "%u", GID_NOBODY);
97 newlinelen = linelen + idlen - oldgidlen;
101 (void) bcopy(linep, gidp + idlen, limit - linep + extra_chars);
102 (void) snprintf(gidp, idlen + 1, "%u", GID_NOBODY);
103 *(gidp + idlen) = ':';
H A Dgetpwent.c79 int olduidlen, oldgidlen, idlen; local
113 idlen = snprintf(NULL, 0, "%u:%u", uid, gid);
114 newlinelen = linelen + idlen - olduidlen - oldgidlen - 1;
119 (void) bcopy(linep, uidp + idlen, limit - linep + extra_chars);
120 (void) snprintf(uidp, idlen + 1, "%u:%u", uid, gid);
121 *(uidp + idlen) = ':'; /* restore : that was overwritten by snprintf */
/illumos-gate/usr/src/uts/common/io/
H A Dlog.c271 size_t idlen; local
287 idlen = msgid_end + 2 - msgid_start;
288 ovbcopy(msg, msg + idlen, msgid_start - msg);
289 mp->b_cont->b_rptr += idlen;
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dipv6cp.c515 int idlen = CILEN_IFACEID; \
516 if (len >= idlen) { \
518 PUTCHAR(idlen, ucp); \
520 len -= idlen; \
573 int idlen = CILEN_IFACEID; \
574 if ((len -= idlen) < 0) \
578 if (cilen != idlen || \
H A Dlcp.c3050 int idlen; local
3062 idlen = strlen(identstr);
3063 BCOPY(identstr, pktp, idlen);
3064 INCPTR(idlen, pktp);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dikeadm.c2755 do_getdel_doorcall(int cmd, int idlen, int idtype, char *idp, char *name) argument
2774 totallen = sizeof (ike_get_t) + idlen;
2784 (void) memcpy(p, idp, idlen);
2823 int idlen, idtype = 0, i, j; local
2849 idlen = sizeof (ike_cky_pr_t);
2855 idlen = sizeof (ike_addr_pr_t);
2865 idlen = MAX_LABEL_LEN;
2880 idlen = SADB_64TO8(sid1p->sadb_ident_len) +
2886 idlen = sizeof (ike_addr_pr_t);
2908 do_getdel_doorcall(cmd, idlen, idtyp
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Devchannels.c1496 int idlen; local
1535 idlen = strlen(sdp->sd_ident) + 1;
1536 len = SE_ALIGN(offsetof(sev_subinfo_t, sb_strings) + idlen +
1547 bcopy(sdp->sd_classname, subp->sb_strings + idlen,
1549 subp->sb_clnamoff = idlen;
1551 subp->sb_clnamoff = idlen - 1;
1560 bcopy(sdp->sd_ident, subp->sb_strings, idlen);
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_subr.c976 int32_t error, lbsize, lbmask, sz, iulen, idlen, copied = 0; local
1064 idlen = FID_LEN(*fid) - F_LEN;
1129 idlen = FID_LEN(*fid);
1131 idlen -= F_LEN;
1133 if (crc_len < (F_LEN - sizeof (struct tag) + idlen)) {
1135 len = (F_LEN - sizeof (struct tag) + idlen) - crc_len;
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rpc.c306 int tlen, idlen; local
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dconf.c5334 int idlen; local
5343 idlen = strlen(id) + SyslogPrefixLen;
5372 if ((strlen(newstring) + idlen + 1) < SYSLOG_BUFSIZE)
5412 idlen += 5; /* strlen("[999]"), see below */
5414 (strlen(begin) + idlen) > SYSLOG_BUFSIZE)
5423 end = begin + SYSLOG_BUFSIZE - idlen - SL_SPLIT;
5436 end = begin + SYSLOG_BUFSIZE - idlen - SL_SPLIT;
/illumos-gate/usr/src/lib/libtecla/common/
H A Dhistory.c1466 int idlen; /* The length of displayed ID strings */ local
1490 idlen = strlen(buffer);
1581 snprintf(buffer, sizeof(buffer), "%*lu", idlen, (unsigned long) node->id);
/illumos-gate/usr/src/uts/sun4v/io/
H A Dds_common.c1705 size_t idlen; local
1739 idlen = strlen(svc->cap.svc_id);
1740 msglen = DS_HDR_SZ + sizeof (ds_reg_req_t) + idlen;
1746 hdr->payload_len = sizeof (ds_reg_req_t) + idlen;
1755 (void) memcpy(req->svc_id, svc->cap.svc_id, idlen + 1);
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dsd.c1241 static int sd_sdconf_id_match(struct sd_lun *un, char *id, int idlen);
1242 static int sd_blank_cmp(struct sd_lun *un, char *id, int idlen);
4400 int idlen; local
4406 idlen = strlen(id);
4414 if (sd_sdconf_id_match(un, id, idlen) == SD_SUCCESS) {
4442 * idlen - length of the vid/pid (bytes)
4449 sd_sdconf_id_match(struct sd_lun *un, char *id, int idlen) argument
4464 if (strncasecmp(sd_inq->inq_vid, id, idlen) != 0) {
4470 rval = sd_blank_cmp(un, id, idlen);
4480 if ((id[0] == '*') && (id[idlen
4531 sd_blank_cmp(struct sd_lun *un, char *id, int idlen) argument
4892 int idlen; local
[all...]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dspd.c4559 int idlen = strlen(idstring) + 1; local
4571 if (bcmp(idstring, retval->ipsid_cid, idlen) != 0)
4585 nstr = kmem_alloc(idlen, KM_NOSLEEP);
4600 bcopy(idstring, nstr, idlen);

Completed in 165 milliseconds