/illumos-gate/usr/src/test/zfs-tests/cmd/dir_rd_update/ |
H A D | dir_rd_update.c | 45 static char dirpath[256]; variable 62 dirpath[i] = 0; 66 (void) strcpy(&dirpath[0], (const char *)cp1); 67 (void) strcat(&dirpath[strlen(dirpath)], "TMP_DIR"); 69 ret = mkdir(dirpath, 0777); 73 "(decimal)=%d\n", argv[0], dirpath, errno); 77 testdd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC); 80 " failed: errno (decimal)=%d\n", argv[0], dirpath, errno); 87 int fd = open(dirpath, O_RDONL [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_scheme.c | 253 fmd_scheme_hash_create(const char *rootdir, const char *dirpath) argument 260 (void) snprintf(path, sizeof (path), "%s/%s", rootdir, dirpath);
|
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/ |
H A D | genkey.c | 268 char *dirpath; local 288 dirpath = dir; 306 if (dirpath != NULL) { 308 KMF_DIRPATH_ATTR, dirpath, 309 strlen(dirpath));
|
/illumos-gate/usr/src/lib/fm/libdiagcode/common/ |
H A D | diagcode_test.c | 113 do_open(const char *dirpath, const char *dictname, char *argv[], int argc) argument 124 if ((Dhp = fm_dc_opendict(FM_DC_VERSION, dirpath, dictname)) == NULL) 135 do_close(const char *dirpath, const char *dictname, char *argv[], int argc) argument 145 do_codelen(const char *dirpath, const char *dictname, char *argv[], int argc) argument 169 do_maxkey(const char *dirpath, const char *dictname, char *argv[], int argc) argument 193 do_key2code(const char *dirpath, const char *dictname, char *argv[], int argc) argument 247 do_code2key(const char *dirpath, const char *dictname, char *argv[], int argc) argument 301 do_getprop(const char *dirpath, const char *dictname, char *argv[], int argc) argument 334 testdict(const char *dirpath, const char *dictname) argument 340 (void) snprintf(fname, MAXLINE, "%s/%s.dict", dirpath, dictnam [all...] |
H A D | diagcode.c | 144 fm_dc_opendict(int version, const char *dirpath, const char *dictname) argument 165 version, (dirpath == NULL) ? "NULL" : dirpath, dictname); 178 /* caller can pass in NULL for default dirpath */ 179 if (dirpath == NULL) 180 dirpath = Defaultpath; 183 * allocate buffer for dirpath, slash, dictname, and suffix 186 fname = alloca(strlen(dirpath) + 1 + 207 (void) strcpy(fname, dirpath);
|
/illumos-gate/usr/src/lib/libreparse/common/ |
H A D | fs_reparse_lib.c | 307 char isa[MAXISALEN], dirpath[MAXPATHLEN], path[MAXPATHLEN]; local 324 (void) snprintf(dirpath, MAXPATHLEN, 327 if ((dir = opendir(dirpath)) == NULL) 335 "%s/%s", dirpath, dent->d_name);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_mount.c | 468 char *dirpath, *grpname; local 479 dirpath = (char *)getxdr_string(buff, MNTPATHLEN); 480 (void) sprintf(get_line(0, 0), "Directory = %s", dirpath);
|
/illumos-gate/usr/src/uts/common/fs/devfs/ |
H A D | devfs_vfsops.c | 317 char *dirpath; local 330 dirpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); 331 (void) ddi_pathname(dip, dirpath); 332 if (devfs_lookupname(dirpath, NULLVPP, &dirvp)) { 333 dcmn_err(("directory %s not found\n", dirpath)); 334 kmem_free(dirpath, MAXPATHLEN); 338 kmem_free(dirpath, MAXPATHLEN); 503 char *dirpath, *devnm; local 513 dirpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); 515 (void) snprintf(dirpath, MAXPATHLE [all...] |
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | cplfile.c | 612 const char *dirpath; /* The name of the parent directory */ local 636 dirpath = FS_ROOT_DIR; 649 dirpath = pathname; 657 dirpath = FS_PWD; 662 if(_dr_open_dir(cf->dr, dirpath, NULL)) { 663 _err_record_msg(cf->err, "Can't open directory: ", dirpath, END_ERR_MSG);
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_fhistory.c | 800 char dirpath[PATH_MAX]; local 906 (void) strlcpy(dirpath, dir, PATH_MAX); 907 (void) strlcat(dirpath, "/", PATH_MAX); 908 (void) strlcat(dirpath, nm, PATH_MAX); 909 err = stat64(dirpath, &ret_attr); 1389 char dirpath[PATH_MAX]; local 1490 (void) strlcpy(dirpath, dir, PATH_MAX); 1491 (void) strlcat(dirpath, "/", PATH_MAX); 1492 (void) strlcat(dirpath, nm, PATH_MAX); 1493 err = stat64(dirpath, [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | instvol.c | 114 static int dir_is_populated(char *dirpath); 1169 * not. This also returns 0 if the dirpath is not a directory or if it does 1173 dir_is_populated(char *dirpath) { argument 1178 if ((dirfp = opendir(dirpath)) != NULL) {
|
/illumos-gate/usr/src/test/os-tests/tests/file-locking/ |
H A D | runtests.c | 617 char *basestr, *suffix, *dirstr, *dirpath; local 628 dirpath = dirname(dirstr); 636 if (asprintf(&acqprog, "%s/acquire-lock%s", dirpath, suffix) < 0) {
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | netdfs.c | 1331 char dirpath[DFS_PATH_MAX]; local 1335 (void) strlcpy(dirpath, path, DFS_PATH_MAX); 1338 if ((p = strrchr(dirpath, '/')) != NULL) { 1341 (void) mkdirp(dirpath, 0777);
|
/illumos-gate/usr/src/lib/fm/libfmd_log/common/ |
H A D | fmd_log.c | 283 char dirbuf[PATH_MAX], path[PATH_MAX], *dirpath; local 290 dirpath = dirname(dirbuf); 292 if ((dirp = opendir(dirpath)) == NULL) 300 "%s/%s", dirpath, dp->d_name);
|
/illumos-gate/usr/src/lib/fm/libfmnotify/common/ |
H A D | libfmnotify.c | 477 char *dirpath; local 482 dirpath = alloca(dlen); 483 (void) snprintf(dirpath, dlen, "%s/%s", nhdl->nh_rootdir, ND_DICTDIR); 485 if ((dhp = fm_dc_opendict(FM_DC_VERSION, dirpath, dict)) == NULL) { 487 dirpath, dict);
|
/illumos-gate/usr/src/cmd/pgrep/ |
H A D | pgrep.c | 246 open_proc_dir(const char *dirpath) argument 251 if ((dirp = opendir(dirpath)) == NULL) { 252 uu_warn(gettext("Failed to open %s"), dirpath); 257 uu_warn(gettext("Failed to stat %s"), dirpath); 263 uu_warn(gettext("%s is not a procfs mount point\n"), dirpath); 277 scan_proc_dir(const char *dirpath, DIR *dirp, psexp_t *psexp, argument 300 dirpath, dent->d_name);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/statd/ |
H A D | sm_statd.c | 1027 char dirpath[MAXPATHLEN]; local 1050 (void) strcpy(dirpath, path); /* save here - we may need it shortly */ 1063 if (count_symlinks(dirpath, rname, &n) < 0) { 1068 (void) strcat(dirpath, rname); 1069 error = unlink(dirpath); 1075 dirpath); 1079 "%s\n", dirpath);
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devfsmap.c | 1629 char dirpath[MAXPATHLEN]; local 1640 (void) snprintf(dirpath, MAXPATHLEN, "%s/dev/rdsk", rootdir); 1642 (void) snprintf(dirpath, MAXPATHLEN, "%s/dev/dsk", rootdir); 1645 if ((dirp = opendir(dirpath)) == NULL) 1654 dirpath, direntry->d_name);
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | certop.c | 1736 char *slotlabel, char *dirpath) 1828 if (dirpath == NULL) { 1834 KMF_DIRPATH_ATTR, dirpath, 1835 strlen(dirpath)); 2123 char *slotlabel, char *dirpath) 2158 if (dirpath == NULL) { 2164 KMF_DIRPATH_ATTR, dirpath, strlen(dirpath)); 2252 char *slotlabel, char *dirpath) 2309 if (dirpath 1734 cert_ocsp_check(KMF_HANDLE_T handle, KMF_KEYSTORE_TYPE *kstype, KMF_DATA *user_cert, KMF_DATA *issuer_cert, KMF_DATA *response, char *slotlabel, char *dirpath) argument 2121 find_issuer_cert(KMF_HANDLE_T handle, KMF_KEYSTORE_TYPE *kstype, char *user_issuer, KMF_DATA *issuer_cert, char *slotlabel, char *dirpath) argument 2250 find_ta_cert(KMF_HANDLE_T handle, KMF_KEYSTORE_TYPE *kstype, KMF_DATA *ta_cert, KMF_X509_NAME *user_issuerDN, char *slotlabel, char *dirpath) argument 2398 char *dirpath = NULL; local [all...] |
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | elfedit.c | 1967 * dirpath - Path of directory to process. 1971 * If False, their module name is extracted from the dirpath 1975 elfedit_load_moddir(const char *dirpath, int must_exist, int abs_path) argument 1982 dir = opendir(dirpath); 1989 dirpath, strerror(err)); 1997 MSG_ORIG(MSG_FMT_BLDPATH), dirpath,
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | df.c | 759 char dirpath[MAXPATHLEN]; local 768 if (realpath(dir, dirpath) == NULL) { 793 path = dirpath;
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/ |
H A D | piclfrudr.c | 367 static char *create_bezel_leds_pathname(const char *dirpath, 2085 create_bezel_leds_pathname(const char *dirpath, const char *devname) argument 2097 (void) strlcpy(namebuf, dirpath, PATH_MAX);
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses.c | 3421 ses_process_dir(const char *dirpath, ses_enum_data_t *sdp) argument 3434 if ((dir = opendir(dirpath)) == NULL) { 3440 "directory '%s'", dirpath); 3458 (void) snprintf(path, sizeof (path), "%s/%s", dirpath,
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | openssl_spi.c | 1038 char *dirpath = NULL; local 1061 * The dirpath attribute and the filename attribute can not be NULL 1064 dirpath = kmf_get_attr_ptr(KMF_DIRPATH_ATTR, attrlist, numattr); 1068 fullpath = get_fullpath(dirpath, filename); 1219 char *dirpath = NULL; local 1234 dirpath = kmf_get_attr_ptr(KMF_DIRPATH_ATTR, attrlist, numattr); 1235 fullpath = get_fullpath(dirpath, outfilename); 1268 char *dirpath = NULL; local 1280 dirpath = kmf_get_attr_ptr(KMF_DIRPATH_ATTR, attrlist, numattr); 1283 fullpath = get_fullpath(dirpath, filenam 1682 char *keyfile = NULL, *dirpath = NULL; local 2241 char *dirpath = NULL; local 2917 char *dirpath; local 3503 char *dirpath = NULL; local 4602 char *dirpath; local 4871 char *dirpath = NULL; local 5003 char *certfile, *dirpath, *crlfile, *incrl, *outcrl, *outcrlfile; local 5172 char *crlfilename, *dirpath; local 5277 char *crlfilename, *dirpath; local 5332 char *crlfilename, *crlfile, *dirpath, *certfile; local [all...] |
/illumos-gate/usr/src/cmd/cpio/ |
H A D | cpio.c | 5084 char dirpath[PATH_MAX]; local 5086 get_parent(Gen.g_nam_p, dirpath); 5088 dir = dirpath; 5114 dir = e_strdup(E_EXIT, dirpath); 5117 dirpath) != 0) { 5119 dir = e_strdup(E_EXIT, dirpath);
|