Home
last modified time | relevance | path

Searched refs:namebuf (Results 1 – 25 of 92) sorted by relevance

1234

/illumos-gate/usr/src/cmd/filesync/
H A Dfiles.c89 char namebuf[ MAX_PATH ]; in qualify() local
104 if (getcwd(namebuf, sizeof (namebuf)) == 0) { in qualify()
110 if ((strlen(namebuf) + strlen(name) + 2) >= sizeof (namebuf)) { in qualify()
116 strcat(namebuf, "/"); in qualify()
117 strcat(namebuf, name); in qualify()
120 cannonize(namebuf); in qualify()
239 cannonize(namebuf); in expand()
282 namebuf = (char *) realloc(namebuf, buflen); in noblanks()
285 p = namebuf; in noblanks()
297 return (namebuf); in noblanks()
[all …]
H A Dmain.c497 char namebuf[MAX_PATH]; in findfiles() local
512 strcpy(namebuf, where); in findfiles()
513 strcat(namebuf, SUFX_RULES); in findfiles()
514 s = strdup(namebuf); in findfiles()
515 errs = check_access(namebuf, &new_rules); in findfiles()
519 strcpy(namebuf, where); in findfiles()
520 strcat(namebuf, SUFX_OLD); in findfiles()
521 file_rules = strdup(namebuf); in findfiles()
531 strcpy(namebuf, where); in findfiles()
532 strcat(namebuf, SUFX_BASE); in findfiles()
[all …]
H A Danal.c1092 static char *namebuf = 0; in get_name() local
1099 namebuf = (char *) realloc(namebuf, buflen); in get_name()
1103 namebuf[0] = 0; in get_name()
1106 strcat(namebuf, namestack[i]); in get_name()
1107 strcat(namebuf, "/"); in get_name()
1111 strcat(namebuf, fp->f_name); in get_name()
1113 return (namebuf); in get_name()
/illumos-gate/usr/src/lib/libvolmgt/common/
H A Dvolprivate.c61 char namebuf[MAXPATHLEN+1]; in volmgt_getfullblkname() local
94 (void) strcpy(namebuf, n); /* save first part of it */ in volmgt_getfullblkname()
96 (void) strcat(namebuf, s); /* copy the rest */ in volmgt_getfullblkname()
97 res = strdup(namebuf); in volmgt_getfullblkname()
114 char namebuf[MAXPATHLEN+1]; in volmgt_getfullrawname() local
149 (void) strcpy(namebuf, n); /* save first part of str */ in volmgt_getfullrawname()
151 (void) strcat(namebuf, "r"); /* insert an 'r' */ in volmgt_getfullrawname()
152 (void) strcat(namebuf, s); /* copy rest of str */ in volmgt_getfullrawname()
153 res = strdup(namebuf); in volmgt_getfullrawname()
/illumos-gate/usr/src/lib/efcode/fcdriver/
H A Dbuild_tree.c72 char *namebuf; in get_prom_nodeid() local
76 0, &namebuf, &namelen)) in get_prom_nodeid()
77 namebuf = "<unknown>"; in get_prom_nodeid()
78 debug_msg(DEBUG_UPLOAD, "Populated: %s = %p\n", namebuf, in get_prom_nodeid()
90 0, &namebuf, &namelen)) in get_prom_nodeid()
91 namebuf = "<unknown>"; in get_prom_nodeid()
93 ppd, namebuf, ppd->node); in get_prom_nodeid()
99 namebuf = ""; in get_prom_nodeid()
102 0, &namebuf, &namelen); in get_prom_nodeid()
104 " status: %d", thisnode, namebuf, status); in get_prom_nodeid()
[all …]
/illumos-gate/usr/src/cmd/ctfdiff/
H A Dctfdiff.c95 char namebuf[CTFDIFF_NAMELEN]; in ctfdiff_func_cb() local
100 if (ctf_symbol_name(ifp, iidx, namebuf, sizeof (namebuf)) == NULL) { in ctfdiff_func_cb()
109 if (strcmp(g_funclist[i], namebuf) == 0) in ctfdiff_func_cb()
116 "different\n", ctfdiff_fp_to_name(ifp), namebuf, iidx); in ctfdiff_func_cb()
127 char namebuf[CTFDIFF_NAMELEN]; in ctfdiff_obj_cb() local
132 if (ctf_symbol_name(ifp, iidx, namebuf, sizeof (namebuf)) == NULL) { in ctfdiff_obj_cb()
141 if (strcmp(g_objlist[i], namebuf) == 0) in ctfdiff_obj_cb()
148 ctfdiff_fp_to_name(ifp), namebuf, iidx); in ctfdiff_obj_cb()
170 char namebuf[CTFDIFF_NAMELEN]; in ctfdiff_cb() local
172 if (ctf_type_name(ifp, iid, namebuf, sizeof (namebuf)) == in ctfdiff_cb()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/ypupdated/
H A Drpc.ypupdated.c203 char namebuf[MAXNETNAMELEN+1]; in ypupdate_prog() local
242 addr2netname(namebuf, transp); in ypupdate_prog()
244 user2netname(namebuf, aup->aup_uid, NULL); in ypupdate_prog()
246 netname = namebuf; in ypupdate_prog()
346 addr2netname(char *namebuf, struct sockaddr_in *addr)
353 host2netname(namebuf, (const char *) inet_ntoa(addr->sin_addr),
356 host2netname(namebuf, h->h_name, NULL);
363 addr2netname(char *namebuf, SVCXPRT *transp) in addr2netname() argument
379 strcpy(namebuf, hostservs->h_hostservs->h_host); in addr2netname()
/illumos-gate/usr/src/cmd/iconv/
H A Diconv_list.c194 char namebuf[MAXNAMELEN]; in scan_dir() local
205 if (strlcpy(namebuf, de->d_name, sizeof (namebuf)) >= in scan_dir()
206 sizeof (namebuf)) in scan_dir()
210 p2 = strrchr(namebuf, *suffix); in scan_dir()
217 p1 = strchr(namebuf, sep); in scan_dir()
227 if (*namebuf == '\0' || *p1 == '\0') in scan_dir()
231 cs_insert(namebuf); in scan_dir()
/illumos-gate/usr/src/lib/libgss/
H A Dgssd_pname_to_uid.c128 gss_buffer_desc namebuf; in gsscred_expname_to_unix_cred_ext() local
149 &namebuf, NULL); in gsscred_expname_to_unix_cred_ext()
151 nameStr = strdup(namebuf.value); in gsscred_expname_to_unix_cred_ext()
152 (void) gss_release_buffer(&minor, &namebuf); in gsscred_expname_to_unix_cred_ext()
271 gss_buffer_desc namebuf; in make_name_str() local
290 if (namebuf.value) in make_name_str()
291 s = strdup(namebuf.value); in make_name_str()
293 (void) gss_release_buffer(&minor, &namebuf); in make_name_str()
326 gss_buffer_desc namebuf; in gsscred_name_to_unix_cred_ext() local
385 nameStr = strdup(namebuf.value); in gsscred_name_to_unix_cred_ext()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dutil.c595 char namebuf[LINESIZE]; in nameof() local
605 copy("", namebuf); in nameof()
607 return(savestr(namebuf)); in nameof()
613 for (cp2 = &namebuf[strlen(namebuf)]; *cp && !any(*cp, " \t") && in nameof()
614 cp2-namebuf < LINESIZE-1; *cp2++ = *cp++) in nameof()
633 copy(cp, namebuf); in nameof()
636 tmp = strrchr(namebuf, '!') + 1; in nameof()
638 sizeof (namebuf) - (tmp - namebuf), in nameof()
641 nstrcat(namebuf, sizeof (namebuf), "!"); in nameof()
646 for (cp = namebuf; *cp == '!'; cp++); in nameof()
H A Dgetname.c57 getname(uid_t uid, char namebuf[]) in getname() argument
68 strcpy(namebuf, pw->pw_name); in getname()
/illumos-gate/usr/src/cmd/modload/
H A Dmodinfo.c175 char namebuf[256]; in print_info() local
212 (void) snprintf(namebuf, sizeof (namebuf), "%s (%s)", in print_info()
215 (void) printf("%.43s\n", namebuf); in print_info()
217 (void) printf("%.51s\n", namebuf); in print_info()
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dnb_name.c162 char *p, namebuf[NB_NAMELEN+1]; in nb_name_encode() local
165 bcopy(nn->nn_name, namebuf, NB_NAMELEN); in nb_name_encode()
166 namebuf[NB_NAMELEN-1] = (char)nn->nn_type; in nb_name_encode()
167 namebuf[NB_NAMELEN] = '\0'; /* for debug */ in nb_name_encode()
185 ch = namebuf[i]; in nb_name_encode()
/illumos-gate/usr/src/lib/libadutils/common/
H A Dsrv_query.c77 char namebuf[NS_MAXDNAME]; in srv_getdom() local
125 len = dn_expand(msg.buf, eom, ptr, namebuf, sizeof (namebuf)); in srv_getdom()
130 *rrname = strdup(namebuf); in srv_getdom()
267 char namebuf[NS_MAXDNAME]; in srv_parse() local
303 len = dn_expand(msg, eom, ptr, namebuf, in srv_parse()
304 sizeof (namebuf)); in srv_parse()
337 logger(LOG_DEBUG, " %s", namebuf); in srv_parse()
363 len = dn_expand(msg, eom, ptr, namebuf, in srv_parse()
364 sizeof (namebuf)); in srv_parse()
396 (ap) ? ap : "?", namebuf); in srv_parse()
[all …]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dauto_subr.c519 char namebuf[64], *pn; local
551 pn = namebuf;
569 s = getenv(namebuf);
572 if (strcmp(namebuf, "ARCH") == 0) {
576 } else if (strcmp(namebuf, "CPU") == 0) {
579 } else if (strcmp(namebuf, "HOST") == 0) {
582 } else if (strcmp(namebuf, "KARCH") == 0) {
586 } else if (strcmp(namebuf, "OSREL") == 0) {
589 } else if (strcmp(namebuf, "OSNAME") == 0) {
592 } else if (strcmp(namebuf, "OSVERS") == 0) {
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dacctctl.c151 void *namebuf; in ac_file_set() local
207 namebuf = kmem_alloc(namelen, KM_SLEEP); in ac_file_set()
208 (void) strcpy(namebuf, kbuf); in ac_file_set()
214 error = lookupname(namebuf, UIO_SYSSPACE, FOLLOW, NULLVPP, &vp); in ac_file_set()
224 kmem_free(namebuf, namelen); in ac_file_set()
244 if ((error = vn_open(namebuf, UIO_SYSSPACE, in ac_file_set()
247 kmem_free(namebuf, namelen); in ac_file_set()
255 kmem_free(namebuf, namelen); in ac_file_set()
283 kmem_free(namebuf, namelen); in ac_file_set()
294 info->ac_file = namebuf; in ac_file_set()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_pathname.c431 char namebuf[MAXNAMELEN]; in smb_pathname() local
488 namebuf, sizeof (namebuf))) == NULL) { in smb_pathname()
514 namebuf, sizeof (namebuf))) == NULL) { in smb_pathname()
587 namebuf, sizeof (namebuf)); in smb_pathname()
698 char *namebuf, int buflen) in smb_pathname_catia_v5tov4() argument
703 namep = smb_vop_catia_v5tov4(name, namebuf, buflen); in smb_pathname_catia_v5tov4()
717 char *namebuf, int buflen) in smb_pathname_catia_v4tov5() argument
720 smb_vop_catia_v4tov5(name, namebuf, buflen); in smb_pathname_catia_v4tov5()
721 return (namebuf); in smb_pathname_catia_v4tov5()
H A Dsmb_mangle_name.c365 smb_unmangle(smb_node_t *dnode, char *name, char *namebuf, in smb_unmangle() argument
380 if (dnode == NULL || name == NULL || namebuf == NULL || buflen == 0) in smb_unmangle()
389 *namebuf = '\0'; in smb_unmangle()
440 (void) strlcpy(namebuf, namep, buflen); in smb_unmangle()
H A Dsmb_vops.c609 char namebuf[MAXNAMELEN]; in smb_vop_lookup() local
655 np = smb_vop_catia_v5tov4(name, namebuf, sizeof (namebuf)); in smb_vop_lookup()
702 char namebuf[MAXNAMELEN]; in smb_vop_create() local
718 np = smb_vop_catia_v5tov4(name, namebuf, sizeof (namebuf)); in smb_vop_create()
749 char namebuf[MAXNAMELEN]; in smb_vop_remove() local
755 np = smb_vop_catia_v5tov4(name, namebuf, sizeof (namebuf)); in smb_vop_remove()
845 char namebuf[MAXNAMELEN]; in smb_vop_mkdir() local
861 np = smb_vop_catia_v5tov4(name, namebuf, sizeof (namebuf)); in smb_vop_mkdir()
889 char namebuf[MAXNAMELEN]; in smb_vop_rmdir() local
895 np = smb_vop_catia_v5tov4(name, namebuf, sizeof (namebuf)); in smb_vop_rmdir()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_jfs.c282 char namebuf[JFS_NAME_MAX + 1], linkbuf[JFS_PATH_MAX]; in jfs_dir() local
339 uni2ansi (de->name, namebuf, namlen); in jfs_dir()
340 namebuf[namlen] = 0; in jfs_dir()
342 uni2ansi (de->name, namebuf, DTLHDRDATALEN); in jfs_dir()
343 ptr = namebuf; in jfs_dir()
358 cmp = (!*dirname) ? -1 : substring (dirname, namebuf); in jfs_dir()
364 print_a_completion (namebuf); in jfs_dir()
/illumos-gate/usr/src/cmd/ast/libshell/common/scripts/
H A Drssread.sh454 typeset namebuf=""
508 namebuf="${buf%%~(E)[[:space:][:blank:]].*}"
511 namebuf="$buf"
516 … [[ ! -z "${callbacks["tag_end"]}" ]] && ${callbacks["tag_end"]} "${1}" "tag_end" "$namebuf"
518 …${callbacks["tag_begin"]}" ]] && ${callbacks["tag_begin"]} "${1}" "tag_begin" "$namebuf" "$attrbuf"
522 … [[ ! -z "${callbacks["tag_end"]}" ]] && ${callbacks["tag_end"]} "${1}" "tag_end" "$namebuf"
/illumos-gate/usr/src/uts/common/io/
H A Dramdisk.c582 char namebuf[RD_NAME_LEN + 5]; in rd_dealloc_resources() local
604 (void) snprintf(namebuf, sizeof (namebuf), "%s", in rd_dealloc_resources()
606 ddi_remove_minor_node(dip, namebuf); in rd_dealloc_resources()
607 (void) snprintf(namebuf, sizeof (namebuf), "%s,raw", in rd_dealloc_resources()
609 ddi_remove_minor_node(dip, namebuf); in rd_dealloc_resources()
639 char namebuf[RD_NAME_LEN + 5]; in rd_alloc_resources() local
692 (void) snprintf(namebuf, sizeof (namebuf), "%s", in rd_alloc_resources()
694 if (ddi_create_minor_node(dip, namebuf, S_IFBLK, minor, in rd_alloc_resources()
698 (void) snprintf(namebuf, sizeof (namebuf), "%s,raw", in rd_alloc_resources()
700 if (ddi_create_minor_node(dip, namebuf, S_IFCHR, minor, in rd_alloc_resources()
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_krb5ssp.c114 gss_buffer_desc namebuf; in smbd_krb5ssp_work() local
126 bzero(&namebuf, sizeof (gss_buffer_desc)); in smbd_krb5ssp_work()
185 gss_display_name(&minor, gname, &namebuf, &name_type)) { in smbd_krb5ssp_work()
187 be->be_username = strdup(namebuf.value); in smbd_krb5ssp_work()
188 (void) gss_release_buffer(&minor, &namebuf); in smbd_krb5ssp_work()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/
H A Dpiclfrudr.c456 char namebuf[PATH_MAX]; in piclfrudr_init() local
2019 char namebuf[PATH_MAX]; in create_sys_controller_pathname() local
2033 len = strlen(namebuf); in create_sys_controller_pathname()
2042 ptr = strrchr(namebuf, '/'); in create_sys_controller_pathname()
2047 dirp = opendir(namebuf); in create_sys_controller_pathname()
2065 sizeof (namebuf) - (ptr - namebuf)); in create_sys_controller_pathname()
2074 return (strdup(namebuf)); in create_sys_controller_pathname()
2087 char namebuf[PATH_MAX]; in create_bezel_leds_pathname() local
2102 lendirpath = strlen(namebuf); in create_bezel_leds_pathname()
2103 dirp = opendir(namebuf); in create_bezel_leds_pathname()
[all …]
/illumos-gate/usr/src/cmd/sgs/prof/common/
H A Dprofv.c63 char *nbp, *nbe, *namebuf; in setup_demangled_names() local
67 if ((namebuf = malloc(namebuf_sz)) == NULL) { in setup_demangled_names()
73 nbp = namebuf; in setup_demangled_names()
74 nbe = namebuf + namebuf_sz; in setup_demangled_names()
84 namebuf = realloc(namebuf, namebuf_sz); in setup_demangled_names()
85 if (namebuf == NULL) { in setup_demangled_names()
92 nbp = namebuf + cur_len; in setup_demangled_names()
93 nbe = namebuf + namebuf_sz; in setup_demangled_names()

1234