/titanic_52/usr/src/lib/libtecla/common/ |
H A D | pathutil.c | 155 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 in _pn_prepend_to_path() [all...] |
H A D | expand.c | 123 static char *ef_expand_special(ExpandFile *ef, const char *path, int pathlen); 323 * pathlen int The length of the suffix of path[] that 330 * pathlen isn't mistakenly too long. 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 in ef_match_relative_pathname() 1043 ef_expand_special(ExpandFile * ef,const char * path,int pathlen) ef_expand_special() argument [all...] |
H A D | homedir.c | 105 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 D | cplfile.c | 624 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_52/usr/src/lib/libldap5/sources/ldap/ssldap/ |
H A D | clientinit.c | 283 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_52/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_iso9660.c | 148 unsigned int pathlen; in iso9660_dir() local 162 /* pathlen = strcspn(dirname, "/\n\t "); */ in iso9660_dir() 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] in iso9660_dir() [all...] |
/titanic_52/usr/src/lib/libcryptoutil/common/ |
H A D | util.c | 47 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_52/usr/src/cmd/rmdir/ |
H A D | rmdir.c | 54 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_52/usr/src/cmd/svr4pkg/pkgserv/ |
H A D | pkgserv.c | 124 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() 1037 /* Copy new value: pathlen i in swapentry() [all...] |
/titanic_52/usr/src/uts/common/os/ |
H A D | devid_cache.c | 517 int pathlen; in e_devid_cache_register_cmn() local 525 pathlen = strlen(devpath) + 1; in e_devid_cache_register_cmn() 526 path = kmem_alloc(pathlen, KM_SLEEP); in e_devid_cache_register_cmn() 527 bcopy(devpath, path, pathlen); in e_devid_cache_register_cmn() 539 pathlen = strlen(fullpath) + 1; in e_devid_cache_register_cmn() 540 path = kmem_alloc(pathlen, KM_SLEEP); in e_devid_cache_register_cmn() 541 bcopy(fullpath, path, pathlen); in e_devid_cache_register_cmn() 570 kmem_free(path, pathlen); in e_devid_cache_register_cmn() 602 kmem_free(path, pathlen); in e_devid_cache_register_cmn() 1054 size_t pathlen, uale in e_devid_cache_path_to_devid() local [all...] |
/titanic_52/usr/src/uts/common/fs/ |
H A D | pathname.c | 234 size_t pathlen; in pn_getcomponent() local 237 pathlen = pnp->pn_pathlen; in pn_getcomponent() 238 if (pathlen >= MAXNAMELEN) { in pn_getcomponent() 247 path[pathlen] = '/'; /* guarantees loop termination */ in pn_getcomponent() 250 path[pathlen] = '\0'; in pn_getcomponent() 254 pnp->pn_pathlen = pathlen - (cp - path); in pn_getcomponent()
|
/titanic_52/usr/src/cmd/sh/ |
H A D | service.c | 136 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_52/usr/src/cmd/th_tools/ |
H A D | th_manage.c | 47 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_52/usr/src/lib/libinstzones/common/ |
H A D | zones_lofs.c | 218 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_52/usr/src/boot/sys/boot/common/ |
H A D | module.c | 781 int pathlen, extlen, len; in file_lookup() local 783 pathlen = strlen(path); in file_lookup() 792 result = malloc(pathlen + namelen + extlen + 2); in file_lookup() 795 bcopy(path, result, pathlen); in file_lookup() 796 if (pathlen > 0 && result[pathlen - 1] != '/') in file_lookup() 797 result[pathlen++] = '/'; in file_lookup() 798 cp = result + pathlen; in file_lookup()
|
/titanic_52/usr/src/boot/sys/boot/ofw/libofw/ |
H A D | ofw_net.c | 199 int pathlen; in ofwn_init() local 201 pathlen = OF_getprop(chosen, "bootpath", path, 64); in ofwn_init()
|
/titanic_52/usr/src/cmd/modload/ |
H A D | add_drv.c | 999 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_52/usr/src/cmd/devctl/ |
H A D | devctl.c | 185 int pathlen; in main() local 251 if ((pathlen = readlink(orig_path, devctl_device, in main() 258 devctl_device[pathlen] = '\0'; in main()
|
/titanic_52/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk_common.c | 993 size_t pathlen; in disk_status() local 1021 pathlen = strlen(devpath) + sizeof ("/devices") + in disk_status() 1024 if ((fullpath = topo_mod_alloc(mod, pathlen)) == NULL) in disk_status() 1027 (void) snprintf(fullpath, pathlen, "/devices%s%s", devpath, in disk_status() 1035 topo_mod_free(mod, fullpath, pathlen); in disk_status() 1041 topo_mod_free(mod, fullpath, pathlen); in disk_status()
|
/titanic_52/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_module.c | 50 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_52/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.c | 982 int pathlen = strlen(path); in init_device() local 994 (path[pathlen-2] == 'p' && path[pathlen-1] == '0')) { in init_device() 1011 device->path[pathlen - 2] = 'p'; in init_device() 1012 device->path[pathlen - 1] = '0'; in init_device() 1044 } else if (device->target.path[pathlen - 2] == 'p') { in init_device() 1049 } else if (device->target.path[pathlen - 1] == '2') { in init_device() 1067 device->stage.path[pathlen - 2] = 's'; in init_device() 1068 device->stage.path[pathlen - 1] = '2'; in init_device()
|
/titanic_52/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | nftw.c | 44 nftw.base = ftw->pathlen - ftw->namelen; in nftw_user()
|
/titanic_52/usr/src/cmd/pcidr/ |
H A D | pcidr.c | 367 int rv, i, lplen, si_cmd, pathlen, okmacro, si_macro_len; in parse_path() local 381 pathlen = strlen(path); in parse_path() 382 pathend = &path[pathlen - 1]; in parse_path()
|
/titanic_52/usr/src/lib/libpkg/common/ |
H A D | pkgserv.c | 700 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_52/usr/src/common/ficl/emu/ |
H A D | loader_emu.c | 1843 int pathlen; in file_lookup() local 1845 pathlen = strlen(path); in file_lookup() 1846 result = malloc(pathlen + namelen + 2); in file_lookup() 1849 bcopy(path, result, pathlen); in file_lookup() 1850 if (pathlen > 0 && result[pathlen - 1] != '/') in file_lookup() 1851 result[pathlen++] = '/'; in file_lookup() 1852 cp = result + pathlen; in file_lookup()
|