Searched defs:dir (Results 1 - 25 of 383) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/boot/lib/libstand/
H A Dreaddir.c36 static struct dirent dir; /* XXX not thread safe */ local
47 errno = (f->f_ops->fo_readdir)(f, &dir);
50 return (&dir);
/illumos-gate/usr/src/cmd/eqn/
H A Dmove.c21 move(int dir, int amt, int p) argument
32 if (dir == FWD || dir == BACK) /* fwd, back */
33 printf("\\h'%s%du'\\*(%d\n", (dir == BACK) ? "-" : "", a, p);
34 else if (dir == UP)
36 else if (dir == DOWN)
39 printf(".\tmove %d dir %d amt %d; h=%d b=%d\n",
40 p, dir, a, eht[yyval], ebase[yyval]);
/illumos-gate/usr/src/tools/cscope-fast/
H A Dmygetwd.c45 mygetwd(char *dir) argument
60 (void) strcpy(dir, pwd);
63 return (getwd(dir));
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dtempnam.c55 tempnam(const char* dir, const char* pfx) argument
57 return pathtmp(NiL, dir, pfx, NiL);
/illumos-gate/usr/src/lib/libuutil/common/
H A Duu_open.c47 uu_open_tmp(const char *dir, uint_t uflags) argument
56 (void) snprintf(fname, PATH_MAX, "%s/uu%lld", dir, gethrtime());
/illumos-gate/usr/src/lib/libproc/common/
H A DPisprocdir.c35 * Return TRUE iff dir is the /proc directory.
38 Pisprocdir(struct ps_prochandle *Pr, const char *dir) argument
44 if (*dir == '/')
46 procfs_path, (int)Pr->pid, dir);
49 procfs_path, (int)Pr->pid, dir);
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathtmp.c35 pathtmp(char* buf, const char* dir, const char* pfx, int* fdp) argument
39 len = !buf ? 0 : !dir ? L_tmpnam : (strlen(dir) + 14);
40 return pathtemp(buf, len, dir, pfx, fdp);
H A Dpathshell.c79 char dir[PATH_MAX]; local
92 if (strlen(s) >= sizeof(dir))
94 strcpy(dir, s);
95 if (!(s = strrchr(dir, '/')))
98 s = dir;
/illumos-gate/usr/src/cmd/lp/lib/access/
H A Dfiles.c49 char * dir,
55 getaccessfile (dir, name, prefix, base)
56 char *dir,
70 parent = makepath(dir, name, (char *)0);
48 getaccessfile( char * dir, char * name, char * prefix, char * base ) argument
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Daddr_order.c44 int dir; local
51 dir = addr1->length - addr2->length;
63 return dir;
/illumos-gate/usr/src/lib/libgen/common/
H A Drmdirp.c136 dotdot(char *dir) argument
138 if (strcmp(dir, ".") == 0 || strcmp(dir, "..") == 0)
/illumos-gate/usr/src/lib/libpkg/common/
H A Dckvolseq.c46 ckvolseq(char *dir, int part, int nparts) argument
59 (void) snprintf(path, sizeof (path), "%s/pkginfo", dir);
65 (void) snprintf(path, sizeof (path), "%s/pkgmap", dir);
75 (void) snprintf(path, sizeof (path), "%s/pkginfo", dir);
91 (void) snprintf(path, sizeof (path), "%s/root.%d", dir, part);
94 (void) snprintf(path, sizeof (path), "%s/reloc.%d", dir, part);
99 dir, part);
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_create.c59 DIR *dir; local
73 if ((dir = opendir(buf)) == NULL)
76 while ((dp = readdir(dir)) != NULL) {
88 (void) closedir(dir);
/illumos-gate/usr/src/psm/stand/lib/names/sparc/common/
H A Duname-m.c45 * Is path "/platform/"dir"/" ?
48 platcmp(char *path, char *dir) argument
56 len = strlen(dir);
58 if (strncmp(path, dir, len) != 0)
78 * If we found the kernel in the default dir, prepend the ia_name
80 * ia_name is the same as the default dir. This can happen if we
83 * If we found the kernel in the ia_name dir, append the default
/illumos-gate/usr/src/lib/libast/common/preroot/
H A Dsetpreroot.c25 * force current command to run under dir preroot
36 setpreroot(register char** argv, const char* dir) argument
45 if ((argv || (argv = opt_info.argv)) && (dir || (dir = getenv(PR_BASE)) && *dir) && !ispreroot(dir) && (*(cmd = *argv++) == '/' || (cmd = pathpath(buf, cmd, NiL, PATH_ABSOLUTE|PATH_REGULAR|PATH_EXECUTE))))
53 *ap++ = dir;
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dutil.c34 * This function returns a fullpath based on the "dir" and "filepath" input
38 * - If only dir or filepath is given, this function returns a copy of the
40 * - If the filepath is fully qualified already and the "dir" is also
44 get_fullpath(char *dir, char *filepath) argument
53 if (dir != NULL)
54 dirlen = strlen(dir);
62 dir, filepath);
69 fullpath = (char *)strdup(dir);
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dgetdents.c64 struct dirent *dir; local
86 dir = (struct dirent *)buf;
89 while ((((int)(((char *)dir) + sizeof(struct n_dirent) +
93 dir->d_off = ndir->d_off;
94 dir->d_fileno = ndir->d_ino; /* NOT VALID */
95 dir->d_namlen = strlen(ndir->d_name);
96 dir->d_reclen = (short)((sizeof(struct dirent) - MAXNAMLEN +
97 dir->d_namlen + ALIGN) & -ALIGN);
98 strncpy(dir->d_name, ndir->d_name, dir
[all...]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dnfssys.c48 exportfs(char *dir, struct exportdata *ep) argument
52 ea.dname = dir;
/illumos-gate/usr/src/lib/libcmd/common/
H A Dmktemp.c76 char* dir = ""; local
98 dir = 0;
100 dir = opt_info.arg;
106 dir = 0;
135 if (dir && !*dir)
136 dir = 0;
141 dir = fmtbuf(i);
142 memcpy(dir, pfx, i);
143 dir[
[all...]
H A Drmdir.c59 register char* dir; local
90 while (dir = *argv++)
92 end = dir;
93 if (pflag) end += strlen(dir);
97 if (rmdir(dir) < 0)
108 error(ERROR_system(0), "%s: cannot remove", dir);
114 do if (end <= dir) goto next; while (*--end != '/');
115 do if (end <= dir) goto next; while (*(end - 1) == '/' && end--);
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/
H A Dcmd_ecache.c59 ecache_scan_dir(const char *dir, const char *pref, char *buf, size_t bufsz) argument
65 if ((mcdir = opendir(dir)) == NULL)
75 (void) snprintf(path, sizeof (path), "%s/%s", dir, dp->d_name);
110 const char *dir = "/devices/ssm@0,0"; local
112 if (access(dir, R_OK) != 0)
113 dir = "/devices";
115 return (ecache_scan_dir(dir, "memory-controller", buf, bufsz));
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/
H A Dio.c61 char *dir = db_get_target_directory(); local
84 if ((body_file_name = tempnam(dir, NULL)) == NULL) {
/illumos-gate/usr/src/cmd/bnu/
H A Dexpfile.c101 char dir[MAXFULLNAME]; local
103 strcpy(dir, name);
104 if (*LASTCHAR(dir) != '/')
105 (void) strcat(dir, "/");
106 p = dir + 1;
111 if (DIRECTORY(dir)) {
117 DEBUG(4, "mkdir - %s\n", dir);
119 if (mkdir(dir, PUB_DIRMODE) == FAIL) {
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dsrcpath.c41 srcpath(char *dir, char *src, int part, int nparts) argument
49 if (dir != NULL) {
50 size_t theLen = strlen(dir);
52 (void) strcpy(copy, dir);
/illumos-gate/usr/src/lib/sun_fc/common/
H A DHBANPIVPort.cc77 const char dir[] = "/dev/cfg"; local
81 if ((dp = opendir(dir)) == NULL) {
83 tmp += dir;
96 sprintf(node, "%s/%s", dir, dirp->d_name);
100 string cfg_path = dir;

Completed in 98 milliseconds

1234567891011>>