/titanic_50/usr/src/lib/nsswitch/nis/common/ |
H A D | getpwnam.c | 66 int olduidlen, oldgidlen, idlen; in validate_passwd_ids() local 101 idlen = snprintf(NULL, 0, "%u:%u", uid, gid); in validate_passwd_ids() 102 newlinelen = linelen + idlen - olduidlen - oldgidlen - 1; in validate_passwd_ids() 118 (void) bcopy(linep, uidp + idlen, limit - linep + 1); in validate_passwd_ids() 119 (void) snprintf(uidp, idlen + 1, "%u:%u", uid, gid); in validate_passwd_ids() 120 *(uidp + idlen) = ':'; /* restore : that was overwritten by snprintf */ in validate_passwd_ids()
|
H A D | getgrent.c | 73 int oldgidlen, idlen; in validate_group_ids() local 99 idlen = snprintf(NULL, 0, "%u", GID_NOBODY); in validate_group_ids() 100 newlinelen = linelen + idlen - oldgidlen; in validate_group_ids() 116 (void) bcopy(linep, gidp + idlen, limit - linep + 1); in validate_group_ids() 117 (void) snprintf(gidp, idlen + 1, "%u", GID_NOBODY); in validate_group_ids() 118 *(gidp + idlen) = ':'; in validate_group_ids()
|
/titanic_50/usr/src/lib/nsswitch/files/common/ |
H A D | getgrent.c | 176 int oldgidlen, idlen; in validate_group_ids() local 210 idlen = snprintf(NULL, 0, "%u", GID_NOBODY); in validate_group_ids() 211 newlinelen = linelen + idlen - oldgidlen; in validate_group_ids() 215 (void) bcopy(linep, gidp + idlen, limit - linep + extra_chars); in validate_group_ids() 216 (void) snprintf(gidp, idlen + 1, "%u", GID_NOBODY); in validate_group_ids() 217 *(gidp + idlen) = ':'; in validate_group_ids()
|
H A D | getpwnam.c | 179 int olduidlen, oldgidlen, idlen; in validate_passwd_ids() local 218 idlen = snprintf(NULL, 0, "%u:%u", uid, gid); in validate_passwd_ids() 219 newlinelen = linelen + idlen - olduidlen - oldgidlen - 1; in validate_passwd_ids() 224 (void) bcopy(linep, uidp + idlen, limit - linep + extra_chars); in validate_passwd_ids() 225 (void) snprintf(uidp, idlen + 1, "%u:%u", uid, gid); in validate_passwd_ids() 226 *(uidp + idlen) = ':'; /* restore : that was overwritten by snprintf */ in validate_passwd_ids()
|
/titanic_50/usr/src/lib/nsswitch/compat/common/ |
H A D | getpwent.c | 79 int olduidlen, oldgidlen, idlen; in validate_passwd_ids() local 113 idlen = snprintf(NULL, 0, "%u:%u", uid, gid); in validate_passwd_ids() 114 newlinelen = linelen + idlen - olduidlen - oldgidlen - 1; in validate_passwd_ids() 119 (void) bcopy(linep, uidp + idlen, limit - linep + extra_chars); in validate_passwd_ids() 120 (void) snprintf(uidp, idlen + 1, "%u:%u", uid, gid); in validate_passwd_ids() 121 *(uidp + idlen) = ':'; /* restore : that was overwritten by snprintf */ in validate_passwd_ids()
|
H A D | getgrent.c | 71 int oldgidlen, idlen; in validate_group_ids() local 96 idlen = snprintf(NULL, 0, "%u", GID_NOBODY); in validate_group_ids() 97 newlinelen = linelen + idlen - oldgidlen; in validate_group_ids() 101 (void) bcopy(linep, gidp + idlen, limit - linep + extra_chars); in validate_group_ids() 102 (void) snprintf(gidp, idlen + 1, "%u", GID_NOBODY); in validate_group_ids() 103 *(gidp + idlen) = ':'; in validate_group_ids()
|
/titanic_50/usr/src/uts/common/io/ |
H A D | log.c | 271 size_t idlen; in log_rsrv() local 287 idlen = msgid_end + 2 - msgid_start; in log_rsrv() 288 ovbcopy(msg, msg + idlen, msgid_start - msg); in log_rsrv() 289 mp->b_cont->b_rptr += idlen; in log_rsrv()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | ipv6cp.c | 515 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 D | lcp.c | 3050 int idlen; local 3062 idlen = strlen(identstr); 3063 BCOPY(identstr, pktp, idlen); 3064 INCPTR(idlen, pktp);
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ikeadm.c | 2755 do_getdel_doorcall(int cmd, int idlen, int idtype, char *idp, char *name) in do_getdel_doorcall() argument 2774 totallen = sizeof (ike_get_t) + idlen; in do_getdel_doorcall() 2784 (void) memcpy(p, idp, idlen); in do_getdel_doorcall() 2823 int idlen, idtype = 0, i, j; in do_getdel() local 2849 idlen = sizeof (ike_cky_pr_t); in do_getdel() 2855 idlen = sizeof (ike_addr_pr_t); in do_getdel() 2865 idlen = MAX_LABEL_LEN; in do_getdel() 2880 idlen = SADB_64TO8(sid1p->sadb_ident_len) + in do_getdel() 2886 idlen = sizeof (ike_addr_pr_t); in do_getdel() 2908 do_getdel_doorcall(cmd, idlen, idtype, in do_getdel() [all …]
|
/titanic_50/usr/src/uts/common/fs/udfs/ |
H A D | udf_subr.c | 976 int32_t error, lbsize, lbmask, sz, iulen, idlen, copied = 0; in ud_get_next_fid() local 1064 idlen = FID_LEN(*fid) - F_LEN; in ud_get_next_fid() 1129 idlen = FID_LEN(*fid); in ud_get_next_fid() 1131 idlen -= F_LEN; in ud_get_next_fid() 1133 if (crc_len < (F_LEN - sizeof (struct tag) + idlen)) { in ud_get_next_fid() 1135 len = (F_LEN - sizeof (struct tag) + idlen) - crc_len; in ud_get_next_fid()
|
/titanic_50/usr/src/uts/common/os/ |
H A D | evchannels.c | 1496 int idlen; in evch_chgetchdata() local 1535 idlen = strlen(sdp->sd_ident) + 1; in evch_chgetchdata() 1536 len = SE_ALIGN(offsetof(sev_subinfo_t, sb_strings) + idlen + in evch_chgetchdata() 1547 bcopy(sdp->sd_classname, subp->sb_strings + idlen, in evch_chgetchdata() 1549 subp->sb_clnamoff = idlen; in evch_chgetchdata() 1551 subp->sb_clnamoff = idlen - 1; in evch_chgetchdata() 1560 bcopy(sdp->sd_ident, subp->sb_strings, idlen); in evch_chgetchdata()
|
/titanic_50/usr/src/cmd/sendmail/src/ |
H A D | conf.c | 5334 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;
|
/titanic_50/usr/src/lib/libtecla/common/ |
H A D | history.c | 1466 int idlen; /* The length of displayed ID strings */ in _glh_show_history() local 1490 idlen = strlen(buffer); in _glh_show_history() 1581 snprintf(buffer, sizeof(buffer), "%*lu", idlen, (unsigned long) node->id); in _glh_show_history()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_rpc.c | 306 int tlen, idlen; in print_creds() local
|
/titanic_50/usr/src/uts/sun4v/io/ |
H A D | ds_common.c | 1705 size_t idlen; in ds_send_reg_req() local 1739 idlen = strlen(svc->cap.svc_id); in ds_send_reg_req() 1740 msglen = DS_HDR_SZ + sizeof (ds_reg_req_t) + idlen; in ds_send_reg_req() 1746 hdr->payload_len = sizeof (ds_reg_req_t) + idlen; in ds_send_reg_req() 1755 (void) memcpy(req->svc_id, svc->cap.svc_id, idlen + 1); in ds_send_reg_req()
|
/titanic_50/usr/src/uts/common/io/scsi/targets/ |
H A D | sd.c | 1243 static int sd_sdconf_id_match(struct sd_lun *un, char *id, int idlen); 1244 static int sd_blank_cmp(struct sd_lun *un, char *id, int idlen); 4402 int idlen; in sd_process_sdconf_table() local 4408 idlen = strlen(id); in sd_process_sdconf_table() 4416 if (sd_sdconf_id_match(un, id, idlen) == SD_SUCCESS) { in sd_process_sdconf_table() 4451 sd_sdconf_id_match(struct sd_lun *un, char *id, int idlen) in sd_sdconf_id_match() argument 4466 if (strncasecmp(sd_inq->inq_vid, id, idlen) != 0) { in sd_sdconf_id_match() 4472 rval = sd_blank_cmp(un, id, idlen); in sd_sdconf_id_match() 4482 if ((id[0] == '*') && (id[idlen - 1] == '*')) { in sd_sdconf_id_match() 4486 int pidstrlen = idlen - 2; in sd_sdconf_id_match() [all …]
|
/titanic_50/usr/src/uts/common/inet/ip/ |
H A D | spd.c | 4559 int idlen = strlen(idstring) + 1; in ipsid_lookup() local 4571 if (bcmp(idstring, retval->ipsid_cid, idlen) != 0) in ipsid_lookup() 4585 nstr = kmem_alloc(idlen, KM_NOSLEEP); in ipsid_lookup() 4600 bcopy(idstring, nstr, idlen); in ipsid_lookup()
|