/illumos-gate/usr/src/cmd/mailx/ |
H A D | getname.c | 57 getname(uid_t uid, char namebuf[]) argument 68 strcpy(namebuf, pw->pw_name);
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | modinfo.c | 175 char namebuf[256]; local 212 (void) snprintf(namebuf, sizeof (namebuf), "%s (%s)", 215 (void) printf("%.43s\n", namebuf); 217 (void) printf("%.51s\n", namebuf);
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | nb_name.c | 162 char *p, namebuf[NB_NAMELEN+1]; local 165 bcopy(nn->nn_name, namebuf, NB_NAMELEN); 166 namebuf[NB_NAMELEN-1] = (char)nn->nn_type; 167 namebuf[NB_NAMELEN] = '\0'; /* for debug */ 185 ch = namebuf[i];
|
/illumos-gate/usr/src/lib/libvolmgt/common/ |
H A D | volprivate.c | 61 char namebuf[MAXPATHLEN+1]; local 94 (void) strcpy(namebuf, n); /* save first part of it */ 96 (void) strcat(namebuf, s); /* copy the rest */ 97 res = strdup(namebuf); 114 char namebuf[MAXPATHLEN+1]; local 149 (void) strcpy(namebuf, n); /* save first part of str */ 151 (void) strcat(namebuf, "r"); /* insert an 'r' */ 152 (void) strcat(namebuf, s); /* copy rest of str */ 153 res = strdup(namebuf);
|
/illumos-gate/usr/src/cmd/filesync/ |
H A D | files.c | 89 char namebuf[ MAX_PATH ]; local 104 if (getcwd(namebuf, sizeof (namebuf)) == 0) { 110 if ((strlen(namebuf) + strlen(name) + 2) >= sizeof (namebuf)) { 116 strcat(namebuf, "/"); 117 strcat(namebuf, name); 120 cannonize(namebuf); 123 fprintf(stderr, "VARS: QUALIFY %s to %s\n", name, namebuf); 126 return (strdup(namebuf)); 166 char namebuf[ MAX_PATH ]; local 270 static char *namebuf = 0; local 330 static char namebuf[ MAX_LINE ]; local [all...] |
H A D | anal.c | 1092 static char *namebuf = 0; local 1099 namebuf = (char *) realloc(namebuf, buflen); 1103 namebuf[0] = 0; 1106 strcat(namebuf, namestack[i]); 1107 strcat(namebuf, "/"); 1111 strcat(namebuf, fp->f_name); 1113 return (namebuf);
|
H A D | main.c | 497 char namebuf[MAX_PATH]; local 512 strcpy(namebuf, where); 513 strcat(namebuf, SUFX_RULES); 514 s = strdup(namebuf); 515 errs = check_access(namebuf, &new_rules); 519 strcpy(namebuf, where); 520 strcat(namebuf, SUFX_OLD); 521 file_rules = strdup(namebuf); 522 errs = check_access(namebuf, &new_rules); 531 strcpy(namebuf, wher [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass3.c | 60 char namebuf[MAXNAMLEN + 1]; local 194 idesc.id_name = namebuf; 195 namebuf[0] = '\0'; 210 if (linkup(orphan, inp->i_parent, namebuf)) {
|
H A D | pass2.c | 406 char namebuf[MAXPATHLEN + 1]; local 857 getpathname(namebuf, dirp->d_ino, dirp->d_ino); 860 pathbuf, namebuf);
|
/illumos-gate/usr/src/lib/efcode/fcdriver/ |
H A D | build_tree.c | 74 char *namebuf; local 78 0, &namebuf, &namelen)) 79 namebuf = "<unknown>"; 80 debug_msg(DEBUG_UPLOAD, "Populated: %s = %p\n", namebuf, 92 0, &namebuf, &namelen)) 93 namebuf = "<unknown>"; 95 ppd, namebuf, ppd->node); 101 namebuf = ""; 104 0, &namebuf, &namelen); 106 " status: %d", thisnode, namebuf, statu [all...] |
/illumos-gate/usr/src/cmd/ypcmd/ypupdated/ |
H A D | rpc.ypupdated.c | 206 char namebuf[MAXNETNAMELEN+1]; local 239 * addr2netname(namebuf, svc_getcaller(transp)); 241 addr2netname(namebuf, transp); 243 user2netname(namebuf, aup->aup_uid, NULL); 245 netname = namebuf; 350 addr2netname(namebuf, addr) 351 char *namebuf; 359 host2netname(namebuf, (const char *) inet_ntoa(addr->sin_addr), 362 host2netname(namebuf, h->h_name, NULL); 369 addr2netname(namebuf, trans [all...] |
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypupdated.c | 214 char namebuf[MAXNETNAMELEN+1]; local 249 if (addr2netname(namebuf, transp) != 0) { 257 if (user2netname(namebuf, aup->aup_uid, NULL) 266 netname = namebuf; 385 addr2netname(namebuf, transp) 386 char *namebuf; 406 strcpy(namebuf, hostservs->h_hostservs->h_host);
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_delete.c | 285 char namebuf[MAXNAMELEN]; local 305 rc = smb_delete_find_fname(sr, od, namebuf, MAXNAMELEN); 311 namebuf, &fqi->fq_fnode); 365 * in namebuf. 371 smb_delete_find_fname(smb_request_t *sr, smb_odir_t *od, char *namebuf, int len) argument 381 (void) strlcpy(namebuf, odirent->od_name, len);
|
H A D | smb_mangle_name.c | 361 * 0 - SUCCESS. Unmangled name is returned in namebuf. 368 smb_unmangle(smb_node_t *dnode, char *name, char *namebuf, argument 387 if (dnode == NULL || name == NULL || namebuf == NULL || buflen == 0) 396 *namebuf = '\0'; 434 (void) strlcpy(namebuf, namep, buflen);
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_krb5ssp.c | 114 gss_buffer_desc namebuf; local 126 bzero(&namebuf, sizeof (gss_buffer_desc)); 185 gss_display_name(&minor, gname, &namebuf, &name_type)) { 187 be->be_username = strdup(namebuf.value); 188 (void) gss_release_buffer(&minor, &namebuf);
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | auth_des.c | 134 char namebuf[MAXNETNAMELEN+1]; local 157 if (!getnetname(namebuf)) 159 ad->ad_fullnamelen = RNDUP((uint_t)strlen(namebuf)); 182 (void) memcpy(ad->ad_fullname, namebuf, ad->ad_fullnamelen + 1);
|
/illumos-gate/usr/src/lib/libgss/ |
H A D | gssd_pname_to_uid.c | 128 gss_buffer_desc namebuf; local 149 &namebuf, NULL); 151 nameStr = strdup(namebuf.value); 152 (void) gss_release_buffer(&minor, &namebuf); 271 gss_buffer_desc namebuf; local 286 major = gss_display_name(&minor, iName, &namebuf, NULL); 290 if (namebuf.value) 291 s = strdup(namebuf.value); 293 (void) gss_release_buffer(&minor, &namebuf); 326 gss_buffer_desc namebuf; local [all...] |
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_callbacks.c | 915 char *namebuf; local 928 namebuf = strdup(name); 929 if (namebuf == NULL) 934 free(namebuf); 939 session->ns_data.dd_env[session->ns_data.dd_env_len].name = namebuf;
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | symtab.c | 243 static char namebuf[MAXCOMPLEXLEN]; local 245 cp = &namebuf[MAXCOMPLEXLEN - 3]; 248 while (cp > &namebuf[ep->e_namlen]) {
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | auth_des.c | 113 char namebuf[MAXNETNAMELEN+1]; local 128 if ((stat = kgetnetname(namebuf)) != 0) { 135 ad->ad_fullnamelen = (uint_t)RNDUP(strlen(namebuf)); 151 bcopy(namebuf, ad->ad_fullname, ad->ad_fullnamelen + 1);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | acctctl.c | 151 void *namebuf; local 207 namebuf = kmem_alloc(namelen, KM_SLEEP); 208 (void) strcpy(namebuf, kbuf); 214 error = lookupname(namebuf, UIO_SYSSPACE, FOLLOW, NULLVPP, &vp); 224 kmem_free(namebuf, namelen); 244 if ((error = vn_open(namebuf, UIO_SYSSPACE, 247 kmem_free(namebuf, namelen); 255 kmem_free(namebuf, namelen); 283 kmem_free(namebuf, namelen); 294 info->ac_file = namebuf; [all...] |
/illumos-gate/usr/src/lib/libadutils/common/ |
H A D | srv_query.c | 77 char namebuf[NS_MAXDNAME]; local 125 len = dn_expand(msg.buf, eom, ptr, namebuf, sizeof (namebuf)); 130 *rrname = strdup(namebuf); 267 char namebuf[NS_MAXDNAME]; local 303 len = dn_expand(msg, eom, ptr, namebuf, 304 sizeof (namebuf)); 337 logger(LOG_DEBUG, " %s", namebuf); 363 len = dn_expand(msg, eom, ptr, namebuf, 364 sizeof (namebuf)); [all...] |
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_doorclnt.c | 141 smb_get_dcinfo(char *namebuf, uint32_t namebuflen, smb_inaddr_t *ipaddr) argument 147 assert((namebuf != NULL) && (namebuflen != 0)); 148 *namebuf = '\0'; 162 (void) strlcpy(namebuf, dcname.buf, namebuflen);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa_history.c | 497 char namebuf[ZFS_MAX_DATASET_NAME_LEN]; local 502 dsl_dataset_name(ds, namebuf); 503 fnvlist_add_string(nvl, ZPOOL_HIST_DSNAME, namebuf); 516 char namebuf[ZFS_MAX_DATASET_NAME_LEN]; local 521 dsl_dir_name(dd, namebuf); 522 fnvlist_add_string(nvl, ZPOOL_HIST_DSNAME, namebuf);
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | ufs.c | 501 char namebuf[MAXPATHLEN+1]; local 625 bcopy(cp, &namebuf[link_len], len + 1); 632 bcopy(cp, namebuf, (unsigned) link_len); 654 bcopy((char *)buf, namebuf, (unsigned)link_len); 661 cp = namebuf;
|