Home
last modified time | relevance | path

Searched refs:pathlen (Results 1 – 25 of 59) sorted by relevance

123

/titanic_41/usr/src/lib/libtecla/common/
H A Dpathutil.c155 int pathlen; /* The length of the pathname */ in _pn_append_to_path() local
167 pathlen = strlen(path->name); in _pn_append_to_path()
176 if(!_pn_resize_path(path, pathlen + slen)) in _pn_append_to_path()
187 path->name[pathlen++] = string[i]; in _pn_append_to_path()
192 path->name[pathlen] = '\0'; in _pn_append_to_path()
197 memcpy(path->name + pathlen, string, slen); in _pn_append_to_path()
198 path->name[pathlen + slen] = '\0'; in _pn_append_to_path()
225 int pathlen; /* The length of the pathname */ in _pn_prepend_to_path() local
238 pathlen = strlen(path->name); in _pn_prepend_to_path()
263 if(!_pn_resize_path(path, pathlen + shift)) in _pn_prepend_to_path()
[all …]
H A Dexpand.c123 static char *ef_expand_special(ExpandFile *ef, const char *path, int pathlen);
348 FileExpansion *ef_expand_file(ExpandFile *ef, const char *path, int pathlen) in ef_expand_file() argument
369 if(pathlen < 0 || pathlen > strlen(path)) in ef_expand_file()
370 pathlen = strlen(path); in ef_expand_file()
380 path = ef_expand_special(ef, path, pathlen); in ef_expand_file()
505 int pathlen; /* The length of ef->pathname[] on entry to this */ in ef_match_relative_pathname() local
511 pathlen = strlen(ef->path->name); in ef_match_relative_pathname()
580 ef->path->name[pathlen] = '\0'; in ef_match_relative_pathname()
1043 static char *ef_expand_special(ExpandFile *ef, const char *path, int pathlen) in ef_expand_special() argument
1061 for(spos=ppos=0; ppos < pathlen; ppos++) { in ef_expand_special()
[all …]
H A Dhomedir.c105 size_t pathlen; /* The estimated maximum size of a pathname */ in _new_HomeDir() local
153 pathlen = _pu_pathname_dim(); in _new_HomeDir()
154 if(pathlen > home->buflen) in _new_HomeDir()
155 home->buflen = pathlen; in _new_HomeDir()
H A Dcplfile.c624 int pathlen = strlen(pathname); in cf_complete_entry() local
628 for(start=pathlen - 1; start >= 0 && in cf_complete_entry()
727 cf->path->name[pathlen] = '\0'; in cf_complete_entry()
733 cf->path->name[pathlen] = '\0'; in cf_complete_entry()
/titanic_41/usr/src/lib/libldap5/sources/ldap/ssldap/
H A Dclientinit.c283 PRUint32 len, pathlen, addslash; in buildDBName() local
292 pathlen = len; in buildDBName()
293 len = pathlen + PL_strlen(dbname) + 1; in buildDBName()
294 addslash = ( pathlen > 0 && in buildDBName()
295 (( *(basename + pathlen - 1) != FILE_PATHSEP ) || in buildDBName()
296 ( *(basename + pathlen - 1) != '\\' ))); in buildDBName()
304 *(result+pathlen) = FILE_PATHSEP; /* replaces '\0' */ in buildDBName()
305 ++pathlen; in buildDBName()
307 PL_strcpy(result+pathlen, dbname); in buildDBName()
344 PRUint32 len, pathlen; in GetDBName() local
[all …]
/titanic_41/usr/src/grub/grub-0.97/stage2/
H A Dfsys_iso9660.c148 unsigned int pathlen; in iso9660_dir() local
163 for (pathlen = 0 ; in iso9660_dir()
164 dirname[pathlen] in iso9660_dir()
165 && !isspace(dirname[pathlen]) && dirname[pathlen] != '/' ; in iso9660_dir()
166 pathlen++) in iso9660_dir()
353 if (name_len >= pathlen in iso9660_dir()
354 && !memcmp(name, dirname, pathlen)) in iso9660_dir()
356 if (dirname[pathlen] == '/' || !print_possibilities) in iso9660_dir()
362 if (pathlen == name_len) in iso9660_dir()
364 if (dirname[pathlen] == '/') in iso9660_dir()
[all …]
/titanic_41/usr/src/lib/libcryptoutil/common/
H A Dutil.c47 int pathlen = 0; in get_fullpath() local
51 pathlen = strlen(filepath); in get_fullpath()
56 if (pathlen > 0 && dirlen > 0) { in get_fullpath()
58 int len = pathlen + dirlen + 2; in get_fullpath()
66 } else if (pathlen > 0) { in get_fullpath()
/titanic_41/usr/src/cmd/rmdir/
H A Drmdir.c54 unsigned int pathlen; in main() local
92 pathlen = (unsigned)strlen(ptr); in main()
93 if ((path = (char *)malloc(pathlen + 4)) == NULL || in main()
94 (remain = (char *)malloc(pathlen + 4)) == NULL) { in main()
/titanic_41/usr/src/cmd/svr4pkg/pkgserv/
H A Dpkgserv.c124 int pathlen; /* The length of the pathname */ member
639 p->pathlen = t - buf - 1; in parse_line()
640 if (p->pathlen == 0 || p->pathlen >= PATH_MAX) { in parse_line()
688 logerr("pathname: %.*s", p->pathlen, p->line); in parse_line()
808 ent->pathlen, ent->line); in parse_contents()
959 p.pathlen = cmd->len; in file_find()
1027 strcmp(cur->line + cur->pathlen, in swapentry()
1028 new->line + new->pathlen) == 0) { in swapentry()
1051 len = fprintf(log, "-%.*s\n", p->pathlen, p->line); in logentry()
1119 a->pathlen > b->pathlen ? b->pathlen : a->pathlen); in avlcmp()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Ddevid_cache.c518 int pathlen; in e_devid_cache_register_cmn() local
526 pathlen = strlen(devpath) + 1; in e_devid_cache_register_cmn()
527 path = kmem_alloc(pathlen, KM_SLEEP); in e_devid_cache_register_cmn()
528 bcopy(devpath, path, pathlen); in e_devid_cache_register_cmn()
540 pathlen = strlen(fullpath) + 1; in e_devid_cache_register_cmn()
541 path = kmem_alloc(pathlen, KM_SLEEP); in e_devid_cache_register_cmn()
542 bcopy(fullpath, path, pathlen); in e_devid_cache_register_cmn()
571 kmem_free(path, pathlen); in e_devid_cache_register_cmn()
603 kmem_free(path, pathlen); in e_devid_cache_register_cmn()
1055 size_t pathlen, ualen; in e_devid_cache_path_to_devid() local
[all …]
/titanic_41/usr/src/uts/common/fs/
H A Dpathname.c231 size_t pathlen; in pn_getcomponent() local
234 pathlen = pnp->pn_pathlen; in pn_getcomponent()
235 if (pathlen >= MAXNAMELEN) { in pn_getcomponent()
244 path[pathlen] = '/'; /* guarantees loop termination */ in pn_getcomponent()
247 path[pathlen] = '\0'; in pn_getcomponent()
251 pnp->pn_pathlen = pathlen - (cp - path); in pn_getcomponent()
/titanic_41/usr/src/cmd/sh/
H A Dservice.c136 int pathlen; local
147 pathlen = length(path)-1;
149 if (pathlen > 2 && path[pathlen - 1] == ':' &&
150 path[pathlen - 2] != ':') {
152 (void) memcpystak(newpath, path, pathlen);
153 newpath[pathlen] = ':';
154 endstak(newpath + pathlen + 1);
/titanic_41/usr/src/cmd/th_tools/
H A Dth_manage.c47 static int getpath(char *path, int instance, char *name, int pathlen);
365 int pathlen; member
382 (void) strncpy(warg->path, path, warg->pathlen); in walk_callback()
391 getpath(char *path, int instance, char *name, int pathlen) in getpath() argument
399 warg.pathlen = pathlen; in getpath()
/titanic_41/usr/src/lib/libinstzones/common/
H A Dzones_lofs.c218 z_resolve_lofs(char *path, size_t pathlen) in z_resolve_lofs() argument
229 (void) strlcpy(path, tmppath, pathlen); in z_resolve_lofs()
284 if ((len = resolvepath(tmppath, path, pathlen)) == -1) in z_resolve_lofs()
/titanic_41/usr/src/cmd/modload/
H A Dadd_drv.c999 int pathlen; in remove_slashes() local
1009 pathlen = strlen(path); in remove_slashes()
1010 if ((pathlen > 1) && path[pathlen - 1] == '/') in remove_slashes()
1011 path[pathlen - 1] = '\0'; in remove_slashes()
/titanic_41/usr/src/cmd/devctl/
H A Ddevctl.c185 int pathlen; in main() local
251 if ((pathlen = readlink(orig_path, devctl_device, in main()
258 devctl_device[pathlen] = '\0'; in main()
/titanic_41/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk_common.c956 size_t pathlen; in disk_status() local
984 pathlen = strlen(devpath) + sizeof ("/devices") + in disk_status()
987 if ((fullpath = topo_mod_alloc(mod, pathlen)) == NULL) in disk_status()
990 (void) snprintf(fullpath, pathlen, "/devices%s%s", devpath, in disk_status()
998 topo_mod_free(mod, fullpath, pathlen); in disk_status()
1004 topo_mod_free(mod, fullpath, pathlen); in disk_status()
/titanic_41/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_module.c50 kmdb_module_path_set(const char **path, size_t pathlen) in kmdb_module_path_set() argument
56 wr->dpth_path = mdb_path_dup(path, pathlen, &wr->dpth_pathlen); in kmdb_module_path_set()
/titanic_41/usr/src/lib/libast/common/comp/
H A Dnftw.c44 nftw.base = ftw->pathlen - ftw->namelen; in nftw_user()
/titanic_41/usr/src/cmd/pcidr/
H A Dpcidr.c370 int rv, i, lplen, si_cmd, pathlen, okmacro, si_macro_len; in parse_path() local
384 pathlen = strlen(path); in parse_path()
385 pathend = &path[pathlen - 1]; in parse_path()
/titanic_41/usr/src/lib/libpkg/common/
H A Dpkgserv.c700 pkggetentry(PKGserver server, int *len, int *pathlen) in pkggetentry() argument
724 *pathlen = num[1]; in pkggetentry()
730 pkggetentry_named(PKGserver server, const char *path, int *len, int *pathlen) in pkggetentry_named() argument
738 *pathlen = pcmd->len = plen; in pkggetentry_named()
/titanic_41/usr/src/cmd/file/
H A Dfile.c213 int pathlen; in main() local
256 pathlen = pathconf("/", _PC_PATH_MAX); in main()
257 if (pathlen == -1) { in main()
264 pathlen += 2; /* for null and newline in fgets */ in main()
265 if ((ap = malloc(pathlen * sizeof (char))) == NULL) { in main()
407 if ((p = fgets(ap, pathlen, fl)) == NULL) { in main()
/titanic_41/usr/src/uts/common/syscall/
H A Dauditsys.c765 int pathlen; in getcwd() local
775 pathlen = app->audp_sect[1] - app->audp_sect[0]; in getcwd()
776 if (pathlen > length) { in getcwd()
781 if (copyout(app->audp_sect[0], data, pathlen)) { in getcwd()
795 int pathlen; in getcar() local
805 pathlen = app->audp_sect[1] - app->audp_sect[0]; in getcar()
806 if (pathlen > length) { in getcar()
811 if (copyout(app->audp_sect[0], data, pathlen)) { in getcar()
/titanic_41/usr/src/lib/libast/common/include/
H A Dftwalk.h45 #define fts_pathlen pathlen
/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb.c323 mdb_path_dup(const char *path[], size_t pathlen, size_t *npathlenp) in mdb_path_dup() argument
332 if (pathlen > 0) { in mdb_path_dup()
333 npath[0] = mdb_alloc(pathlen, UM_SLEEP); in mdb_path_dup()
334 bcopy(path[0], npath[0], pathlen); in mdb_path_dup()
341 *npathlenp = pathlen; in mdb_path_dup()
346 mdb_path_free(const char *path[], size_t pathlen) in mdb_path_free() argument
354 mdb_free((void *)path[0], pathlen); in mdb_path_free()

123