/illumos-gate/usr/src/boot/sys/boot/userboot/test/ |
H A D | test.c | 102 DIR *dir; member in union:test_file::__anon369 129 tf->tf_u.dir = opendir(path); 130 if (!tf->tf_u.dir) 155 closedir(tf->tf_u.dir); 196 dp = readdir(tf->tf_u.dir);
|
/illumos-gate/usr/src/lib/libshell/common/tests/ |
H A D | functions.sh | 128 dir=$PWD 132 if [[ $PWD != "$dir" ]] 382 dir=$tmp/dir 383 mkdir $dir 384 cd $dir || { err_exit "cd $dir failed"; exit 1; } 416 FPATH=$dir 1042 rm $tmp/!(dir|foobar)
|
/illumos-gate/usr/src/cmd/rmvolmgr/ |
H A D | vold.c | 130 #define NOTIFY_DIR "/tmp/.removable" /* dir where filemgr looks */ 147 static int pushdir(const char *dir); 985 pushdir(const char *dir) argument 988 * Change the current working directory to dir and 994 * If dir doesn't exist, leave the current working 997 * If dir isn't a directory, remove it, leave the 1001 * or the chdir operation fails on dir, leave the 1008 if (lstat(dir, &stat_buf) < 0) { 1010 __FILE__, __LINE__, dir); 1016 __FILE__, __LINE__, dir); [all...] |
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/ |
H A D | gencsr.c | 264 char *nickname, char *dir, char *prefix, 284 kmfrv = configure_nss(kmfhandle, dir, prefix); 298 kmfrv = genkeypair_nss(kmfhandle, token, nickname, dir, 376 char *dir = NULL; local 405 "u:(keyusage)T:(token)d:(dir)p:(prefix)t:(keytype)" 454 dir = optarg_av; 545 DIR_OPTION_CHECK(kstype, dir); 714 if (dir == NULL) 715 dir = PK_DEFAULT_DIRECTORY; 719 certlabel, dir, prefi 261 gencsr_nss(KMF_HANDLE_T kmfhandle, char *token, char *subject, char *altname, KMF_GENERALNAMECHOICES alttype, int altcrit, char *nickname, char *dir, char *prefix, KMF_KEY_ALG keyAlg, int keylen, uint16_t kubits, int kucrit, KMF_ENCODE_FORMAT fmt, char *csrfile, KMF_CREDENTIAL *tokencred, EKU_LIST *ekulist, KMF_ALGORITHM_INDEX sigAlg, KMF_OID *curveoid) argument [all...] |
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | glob.c | 154 gl_nextdir(glob_t* gp, char* dir) argument 156 if (!(dir = gp->gl_nextpath)) 157 dir = gp->gl_nextpath = stakcopy(pathbin()); 161 dir = 0; 166 dir = "."; 177 return dir; 231 addmatch(register glob_t* gp, const char* dir, const char* pat, register const char* rescan, char* endslash, int meta) argument 238 if (dir) 240 stakputs(dir);
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | adm.c | 169 * it will use the default dir. Each file is dealt to 175 adm_fcode(int verbose, char *dir) argument 212 if (!dir) { 219 " Using directory %s"), dir); 221 if (lstat(dir, &statbuf) < 0) { 224 dir, strerror(errno)); 229 MSGSTR(2218, "Error: %s is not a directory.\n"), dir); 232 if ((dp = opendir(dir)) == NULL) { 234 " Error Cannot open directory %s\n"), dir); 243 sprintf(file, "%s/%s", dir, dir [all...] |
/illumos-gate/usr/src/cmd/logadm/ |
H A D | tester | 99 $usage_summary = '[-s test-name] [-d dir] bindir [test-name...]'; 102 d=>'use dir for tests rather than creating one in /tmp', 136 $dir = $opt_d; 137 $dir = "/tmp/logadmtest$$" unless $dir = $opt_d; 139 if (!-d $dir) { 140 mkdir $dir, 0777 or die "$myname: mkdir $dir: $!\n"; 144 chdir $dir or die "$myname: $dir [all...] |
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdllink.c | 394 dld_ioc_rename_t dir; local 402 dir.dir_linkid1 = linkid1; 403 dir.dir_linkid2 = DATALINK_INVALID_LINKID; 404 (void) strlcpy(dir.dir_link, link2, MAXLINKNAMELEN); 406 if (ioctl(dladm_dld_fd(handle), DLDIOC_RENAME, &dir) < 0) { 414 (void) strlcpy(dir.dir_link, link1, MAXLINKNAMELEN); 415 (void) ioctl(dladm_dld_fd(handle), DLDIOC_RENAME, &dir); local 479 dld_ioc_rename_t dir; local 509 dir.dir_linkid1 = linkid1; 510 dir 539 (void) ioctl(dladm_dld_fd(handle), DLDIOC_RENAME, &dir); local [all...] |
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | dosfs.c | 597 static DOS_DIR dir[DEPSEC]; local 622 if ((err = ioget(fs->fd, lsec + sec, 0, dir, secbyt(1)))) 625 if (!*dir[ent].de.name) 627 if (*dir[ent].de.name != 0xe5) { 628 if ((dir[ent].de.attr & FA_MASK) == FA_XDE) { 629 x = dir[ent].xde.seq; 631 dir[ent].xde.chk == chk)) { 633 chk = dir[ent].xde.chk; 637 cp_xdnm(lfn, &dir[ent].xde); 642 } else if (!(dir[en [all...] |
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 1118 DIR *dir; local 1128 dir = opendir("/dev/rdsk"); 1129 if (dir == NULL) 1133 while ((dirent = readdir(dir)) != NULL) { 1303 (void) closedir(dir); 1879 char dir[MAXPATHLEN]; local 1935 if (getcwd(dir, sizeof (dir)) == NULL) { 1940 (void) strcat(dir, "/"); 1941 (void) strcat(dir, [all...] |
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | eventlog_svc.c | 500 int dir, ent_per_req, iter; local 515 dir = (param->read_flags & EVENTLOG_FORWARDS_READ) ? 525 rdata->rd_last_sentrec = (dir == LOGR_FWD) 529 ent_remain = (dir == LOGR_FWD) 558 ent_num < ent_remain; ent_num++, ent_no += dir) { 561 if (dir == LOGR_REW)
|
/illumos-gate/usr/src/lib/libcrypt/common/ |
H A D | des_soft.c | 129 unsigned dir; local 134 dir = (unsigned)desp->des_dir; 135 des_setkey(desp->des_key, &softkey, dir); 139 switch (dir) { 174 des_setkey(uchar_t userkey[8], struct deskeydata *kd, unsigned int dir) argument 234 switch (dir) {
|
/illumos-gate/usr/src/cmd/fs.d/nfs/statd/ |
H A D | sm_svc.c | 327 syslog(LOG_ERR, "statd: remove dir %s/%s " 799 one_statmon_owner(const char *dir) argument 801 if ((mkdir(dir, SM_DIRECTORY_MODE)) == -1) { 804 dir); 810 printf("Setting owner for %s\n", dir); 812 if (nftw(dir, nftw_owner, MAX_FDS, FTW_PHYS) != 0) { 814 dir);
|
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | Makefile.com | 191 -$(INS.dir) 194 -$(INS.dir) 197 -$(INS.dir)
|
/illumos-gate/usr/src/cmd/dis/ |
H A D | dis_main.c | 688 char *dir; local 692 if ((dir = getenv("LIBDIR")) == NULL || 693 dir[0] == '\0') 694 dir = "/usr/lib"; 696 len = strlen(optarg) + strlen(dir) + sizeof ("/lib.a"); 699 (void) snprintf(node->path, len, "%s/lib%s.a", dir,
|
/illumos-gate/usr/src/stand/lib/fs/hsfs/ |
H A D | hsfsops.c | 1001 struct dirinfo dir; local 1007 if (!(dir.fi = find_fp(fd)) || 1008 ((dir.fi->fi_inode->i_smode & IFMT) != IFDIR)) { 1015 oldoff = dir.loc = dir.fi->fi_offset; 1016 oldblok = dir.fi->fi_blocknum; 1018 for (hdp = readdir(&dir); hdp; hdp = readdir(&dir)) { 1033 dir.fi->fi_blocknum = oldblok; 1034 dir [all...] |
/illumos-gate/usr/src/lib/print/libpapi-lpd/ |
H A D | Makefile.com | 94 $(INS.dir)
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/ |
H A D | Makefile.com | 74 $(INS.dir)
|
/illumos-gate/usr/src/lib/libsasl/lib/ |
H A D | dlopen.c | 85 # include <sys/dir.h> 513 struct dirent *dir; local 650 while ((dir=readdir(dp)) != NULL) 660 length = NAMLEN(dir); 669 if (dir->d_name[0] == '.') 672 if (strcmp(dir->d_name + (length - strlen(SO_SUFFIX)), 674 && strcmp(dir->d_name + (length - strlen(LA_SUFFIX)), 679 memcpy(name,dir->d_name,length);
|
/illumos-gate/usr/src/lib/libnsl/ |
H A D | Makefile | 98 $(INS.dir) 156 $(INS.dir)
|
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/ |
H A D | Makefile.com | 80 $(INS.dir)
|
/illumos-gate/usr/src/cmd/csh/i386/ |
H A D | Makefile | 40 HDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \ 44 COMMONOBJS= printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
|
/illumos-gate/usr/src/cmd/csh/sparc/ |
H A D | Makefile | 42 HDDEP = sh.o sh.dir.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.file.o \ 46 COMMONOBJS= printf.o sh.char.o sh.dir.o sh.dol.o sh.err.o \
|
/illumos-gate/usr/src/cmd/mdb/test/ |
H A D | mtest.sh | 40 Usage: $mt_arg0 [ -o dir ] [ -k ] [ -m executable ] [ -a | test ... ] 42 -o dir Sets 'dir' as the output directory 61 mkdir -p $mt_outdir || fatal "failed to make output dir $mt_outdir"
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | permission.c | 959 char dir[MAXFULLNAME]; local 983 (void) strcpy(dir, to); 984 if ( (lxp=strrchr(dir, '/')) == NULL) 986 if (lxp == dir) /* at root */ 991 if (!DIRECTORY(dir)) { 994 else if (mkdirs(dir, PUBMASK) == FAIL) 999 if (EQUALS(RemSpool, dir) || WRITEANY(dir))
|