/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | readdir.c | 36 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 D | move.c | 21 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 D | mygetwd.c | 45 mygetwd(char *dir) argument 60 (void) strcpy(dir, pwd); 63 return (getwd(dir));
|
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | tempnam.c | 55 tempnam(const char* dir, const char* pfx) argument 57 return pathtmp(NiL, dir, pfx, NiL);
|
/illumos-gate/usr/src/lib/libuutil/common/ |
H A D | uu_open.c | 47 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 D | Pisprocdir.c | 35 * 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 D | pathtmp.c | 35 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 D | pathshell.c | 79 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 D | files.c | 49 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 D | addr_order.c | 44 int dir; local 51 dir = addr1->length - addr2->length; 63 return dir;
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | rmdirp.c | 136 dotdot(char *dir) argument 138 if (strcmp(dir, ".") == 0 || strcmp(dir, "..") == 0)
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | ckvolseq.c | 46 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 D | mdb_create.c | 59 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 D | uname-m.c | 45 * 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 D | setpreroot.c | 25 * 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 D | util.c | 34 * 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 D | getdents.c | 64 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 D | nfssys.c | 48 exportfs(char *dir, struct exportdata *ep) argument 52 ea.dname = dir;
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | mktemp.c | 76 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 D | rmdir.c | 59 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 D | cmd_ecache.c | 59 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 D | io.c | 61 char *dir = db_get_target_directory(); local 84 if ((body_file_name = tempnam(dir, NULL)) == NULL) {
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | expfile.c | 101 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 D | srcpath.c | 41 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 D | HBANPIVPort.cc | 77 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;
|