Searched refs:dirlen (Results 1 - 14 of 14) sorted by relevance

/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dutil.c48 int dirlen = 0; local
54 dirlen = strlen(dir);
56 if (pathlen > 0 && dirlen > 0) {
58 int len = pathlen + dirlen + 2;
68 } else if (dirlen > 0) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_io.c53 #define GETDIR (dir = getdir(), dirlen = strlen(dir) + sizeof(PATH_SEPARATOR) - 1)
82 size_t dirlen; local
93 if (!(d->fn = malloc(strlen(*fn) + dirlen + 1)))
106 if (!(d->fn = malloc(30 + dirlen)))
132 (void) strcpy(*fn, d->fn + dirlen);
205 size_t dirlen; local
213 if (!(d->fn = malloc(strlen(fn) + dirlen + 1)))
/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_handle.c515 size_t dirlen, filelen, len; local
517 dirlen = strlen(inputdir);
519 len = dirlen + 1 + filelen + 1;
521 (void) memcpy(filename, inputdir, dirlen);
522 *(filename + dirlen) = '/';
523 (void) memcpy(filename + dirlen + 1, file, filelen);
524 *(filename + dirlen + 1 + filelen) = '\0';
H A Dmsgfmt.c223 size_t dirlen, filelen, len; local
225 dirlen = strlen(inputdir);
227 len = dirlen + 1 + filelen + 1;
229 (void) memcpy(filename, inputdir, dirlen);
230 *(filename + dirlen) = '/';
231 (void) memcpy(filename + dirlen + 1, file, filelen);
232 *(filename + dirlen + 1 + filelen) = '\0';
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dcache_a.out.c382 int dirlen = strlen(&AP(dbp)[dbp->db_name]); local
398 calloc((dirlen + strlen(tp) + 2), 1));
399 lop->lo_minor += dirlen + 1;
401 &AP(dbp)[dbp->db_name], dirlen);
402 cp = strncpy(cp + dirlen, MSG_ORIG(MSG_STR_SLASH),
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnlspath_checks.c55 size_t dirlen; member in struct:trusted_systemdirs
133 if (strncmp(p->dir, path, p->dirlen) == 0) {
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_subr2.c210 int dirlen,
228 rplen = dirlen;
241 bcopy(dirnm, p, dirlen);
242 p += dirlen;
207 smbfs_node_findcreate( smbmntinfo_t *mi, const char *dirnm, int dirlen, const char *name, int nmlen, char sep, struct smbfattr *fap) argument
H A Dsmbfs_subr.h264 const char *dir, int dirlen,
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_lib.c620 int dirlen = strlen(dir); local
623 if ((dirlen + filelen + 1) >= PATH_MAX) {
627 if (*dir == '\0' || *name == '\0' || dir[dirlen - 1] == '/' ||
635 if ((dirlen > 0) && (dir[dirlen - 1] == '/') && (*name == '/'))
/illumos-gate/usr/src/cmd/rexd/
H A Dmount_nfs.c583 int len, dirlen; local
620 dirlen = strlen(dir);
633 if (len > bestlen && len <= dirlen &&
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dpath.c608 int len=strlen(name)+1,dirlen=0; local
613 dirlen = strlen(pwd)+1;
615 path = (char*)malloc(len+dirlen);
616 if(dirlen)
618 memcpy((void*)path,(void*)pwd,dirlen);
619 path[dirlen-1] = '/';
621 memcpy((void*)&path[dirlen],(void*)name,len);
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpcache.c620 int dirlen = strlen(pc->path->name); local
621 if(dirlen < FS_DIR_SEP_LEN ||
622 strncmp(pc->path->name + dirlen - FS_DIR_SEP_LEN, FS_DIR_SEP,
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautod_nfs.c3482 int dirlen; local
3486 dirlen = strlen(dir);
3487 if (dir[dirlen-1] == ' ')
3488 dirlen--;
3490 if (dirlen == strlen(fsname) &&
3491 strncmp(fsname, dir, dirlen) == 0) {
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_state.c973 size_t dirlen; local
982 dirlen = strlen(dss_path) + strlen(NFS4_DSS_STATE_LEAF) + 2;
983 dir = kmem_alloc(dirlen, KM_SLEEP);
988 kmem_free(dir, dirlen);

Completed in 124 milliseconds