Home
last modified time | relevance | path

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

1234

/titanic_41/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()
123 fprintf(stderr, "VARS: QUALIFY %s to %s\n", name, namebuf); in qualify()
126 return (strdup(namebuf)); in qualify()
166 char namebuf[ MAX_PATH ]; in expand() local
175 for (s = name, p = namebuf; *s; s++) { in expand()
[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()
522 errs = check_access(namebuf, &new_rules); in findfiles()
531 strcpy(namebuf, where); 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()
/titanic_41/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()
/titanic_41/usr/src/cmd/ssh/sshd/
H A Dsshpty.c51 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) in pty_allocate() argument
67 strlcpy(namebuf, name, namebuflen); /* possible truncation */ in pty_allocate()
82 strlcpy(namebuf, slave, namebuflen); in pty_allocate()
84 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); in pty_allocate()
86 error("%.200s: %.100s", namebuf, strerror(errno)); in pty_allocate()
119 strlcpy(namebuf, pts, namebuflen); in pty_allocate()
123 *ttyfd = open(namebuf, O_RDWR | O_NOCTTY); in pty_allocate()
125 error("%.100s: %.100s", namebuf, strerror(errno)); in pty_allocate()
157 strlcpy(namebuf, name, namebuflen); in pty_allocate()
185 snprintf(namebuf, namebuflen, "/dev/ttyp%03d", i); in pty_allocate()
[all …]
/titanic_41/usr/src/lib/efcode/fcdriver/
H A Dbuild_tree.c74 char *namebuf; in get_prom_nodeid() local
78 0, &namebuf, &namelen)) in get_prom_nodeid()
79 namebuf = "<unknown>"; in get_prom_nodeid()
80 debug_msg(DEBUG_UPLOAD, "Populated: %s = %p\n", namebuf, in get_prom_nodeid()
92 0, &namebuf, &namelen)) in get_prom_nodeid()
93 namebuf = "<unknown>"; in get_prom_nodeid()
95 ppd, namebuf, ppd->node); in get_prom_nodeid()
101 namebuf = ""; in get_prom_nodeid()
104 0, &namebuf, &namelen); in get_prom_nodeid()
106 " status: %d", thisnode, namebuf, status); in get_prom_nodeid()
[all …]
/titanic_41/usr/src/cmd/ypcmd/ypupdated/
H A Drpc.ypupdated.c208 char namebuf[MAXNETNAMELEN+1]; local
247 addr2netname(namebuf, transp);
249 user2netname(namebuf, aup->aup_uid, NULL);
251 netname = namebuf;
356 addr2netname(namebuf, addr)
357 char *namebuf;
365 host2netname(namebuf, (const char *) inet_ntoa(addr->sin_addr),
368 host2netname(namebuf, h->h_name, NULL);
375 addr2netname(namebuf, transp) in addr2netname() argument
376 char *namebuf; in addr2netname()
[all …]
/titanic_41/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
286 major = gss_display_name(&minor, iName, &namebuf, NULL); in make_name_str()
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
[all …]
/titanic_41/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()
/titanic_41/usr/src/cmd/mailx/
H A Daux.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()
/titanic_41/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()
/titanic_41/usr/src/cmd/ypcmd/
H A Dypupdated.c210 char namebuf[MAXNETNAMELEN+1]; local
247 if (addr2netname(namebuf, transp) != 0) {
255 if (user2netname(namebuf, aup->aup_uid, NULL)
264 netname = namebuf;
383 addr2netname(namebuf, transp) in addr2netname() argument
384 char *namebuf; in addr2netname()
404 strcpy(namebuf, hostservs->h_hostservs->h_host);
/titanic_41/usr/src/cmd/fs.d/cachefs/cfsd/
H A Dcfsd_fscache.c957 char namebuf[MAXPATHLEN]; in fscache_roll() local
976 snprintf(namebuf, sizeof (namebuf), "%s/%s/%s", in fscache_roll()
979 xx = logfile_setup(logfile_object_p, namebuf, CFS_DLOG_ENTRY_MAXSIZE); in fscache_roll()
998 snprintf(namebuf, sizeof (namebuf), "%s/%s/%s", in fscache_roll()
1001 xx = maptbl_setup(maptbl_object_p, namebuf); in fscache_roll()
1207 if (snprintf(namebuf, sizeof (namebuf), "%s/%s/%s", in fscache_roll()
1211 "for %s, path name is too long", namebuf)); in fscache_roll()
1217 snprintf(backupfile, sizeof (backupfile), "%s.bak", namebuf); in fscache_roll()
1218 if (rename(namebuf, backupfile) == -1) { in fscache_roll()
1224 if (snprintf(namebuf, sizeof (namebuf), "%s/%s/%s", in fscache_roll()
[all …]
/titanic_41/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 …]
/titanic_41/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()
/titanic_41/usr/src/uts/common/fs/smbsrv/
H A Dsmb_pathname.c355 char namebuf[MAXNAMELEN]; in smb_pathname() local
401 namebuf, sizeof (namebuf))) == NULL) { in smb_pathname()
423 namebuf, sizeof (namebuf))) == NULL) { in smb_pathname()
496 namebuf, sizeof (namebuf)); in smb_pathname()
572 char *namebuf, int buflen) in smb_pathname_catia_v5tov4() argument
577 namep = smb_vop_catia_v5tov4(name, namebuf, buflen); in smb_pathname_catia_v5tov4()
591 char *namebuf, int buflen) in smb_pathname_catia_v4tov5() argument
594 smb_vop_catia_v4tov5(name, namebuf, buflen); in smb_pathname_catia_v4tov5()
595 return (namebuf); in smb_pathname_catia_v4tov5()
H A Dsmb_vops.c568 char namebuf[MAXNAMELEN]; in smb_vop_lookup() local
608 np = smb_vop_catia_v5tov4(name, namebuf, sizeof (namebuf)); in smb_vop_lookup()
646 char namebuf[MAXNAMELEN]; in smb_vop_create() local
662 np = smb_vop_catia_v5tov4(name, namebuf, sizeof (namebuf)); in smb_vop_create()
679 char namebuf[MAXNAMELEN]; in smb_vop_remove() local
685 np = smb_vop_catia_v5tov4(name, namebuf, sizeof (namebuf)); in smb_vop_remove()
775 char namebuf[MAXNAMELEN]; in smb_vop_mkdir() local
791 np = smb_vop_catia_v5tov4(name, namebuf, sizeof (namebuf)); in smb_vop_mkdir()
819 char namebuf[MAXNAMELEN]; in smb_vop_rmdir() local
825 np = smb_vop_catia_v5tov4(name, namebuf, sizeof (namebuf)); in smb_vop_rmdir()
H A Dsmb_mangle_name.c368 smb_unmangle(smb_node_t *dnode, char *name, char *namebuf, in smb_unmangle() argument
387 if (dnode == NULL || name == NULL || namebuf == NULL || buflen == 0) in smb_unmangle()
396 *namebuf = '\0'; in smb_unmangle()
434 (void) strlcpy(namebuf, namep, buflen); in smb_unmangle()
/titanic_41/usr/src/lib/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"
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/cmd/fs.d/cachefs/cachefspack/
H A Drules.c342 static char namebuf[MAX_RULE_SZ]; in lex() local
404 for (p = namebuf; (c = *s) != 0; s++) { in lex()
405 if ((p - namebuf) >= sizeof (namebuf)) { in lex()
436 return (namebuf); in lex()
/titanic_41/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()
83 namebuf = realloc(namebuf, namebuf_sz); in setup_demangled_names()
84 if (namebuf == NULL) { in setup_demangled_names()
91 nbp = namebuf + cur_len; in setup_demangled_names()
92 nbe = namebuf + namebuf_sz; in setup_demangled_names()
/titanic_41/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/
H A Dpiclfrudr.c456 char namebuf[PATH_MAX]; in piclfrudr_init() local
489 sprintf_buf2(namebuf, CHASSIS_LOC_PATH, RMC_NAME); in piclfrudr_init()
491 sprintf_buf2(namebuf, SYS_BOARD_PATH, RMC_NAME); in piclfrudr_init()
494 if (ptree_get_node_by_path(namebuf, &locationh) != PICL_SUCCESS) in piclfrudr_init()
2019 char namebuf[PATH_MAX]; in create_sys_controller_pathname() local
2028 (void) strlcpy(namebuf, DEV_PREFIX, PATH_MAX); in create_sys_controller_pathname()
2033 len = strlen(namebuf); in create_sys_controller_pathname()
2034 if (ptree_get_propval_by_name(sysconh, str_devfs_path, namebuf + len, in create_sys_controller_pathname()
2035 sizeof (namebuf) - len) != PICL_SUCCESS) { in create_sys_controller_pathname()
2042 ptr = strrchr(namebuf, '/'); in create_sys_controller_pathname()
[all …]

1234