/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | dir_rd_update.c | 45 static char dirpath[256]; variable 62 dirpath[i] = 0; in main() 66 if (strlen(cp1) >= (sizeof (dirpath) - strlen("/TMP_DIR"))) { in main() 71 (void) snprintf(dirpath, sizeof (dirpath), "%s/TMP_DIR", cp1); in main() 73 ret = mkdir(dirpath, 0777); in main() 77 "(decimal)=%d\n", argv[0], dirpath, errno); in main() 81 testdd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC); in main() 84 " failed: errno (decimal)=%d\n", argv[0], dirpath, errno); in main() 91 int fd = open(dirpath, O_RDONLY|O_RSYNC|O_SYNC|O_DSYNC); in main() 98 " errno = %d\n", argv[0], dirpath, errno); in main() [all …]
|
/freebsd/tests/sys/cddl/zfs/bin/ |
H A D | dir_rd_update.c | 46 static char dirpath[256]; variable 63 dirpath[i] = 0; in main() 67 (void) strcpy(&dirpath[0], (const char *)cp1); in main() 68 (void) strcat(&dirpath[strlen(dirpath)], "TMP_DIR"); in main() 70 ret = mkdir(dirpath, 0777); in main() 75 argv[0], dirpath, errno); in main() 79 testdd = open(dirpath, O_RDONLY|O_SYNC); in main() 83 argv[0], dirpath, errno); in main() 90 int fd = open(dirpath, O_RDONLY|O_SYNC); in main() 104 int fd = open(dirpath, O_RDONLY); in main()
|
/freebsd/include/rpcsvc/ |
H A D | mount.x | 99 typedef string dirpath<MNTPATHLEN>; 112 dirpath ml_directory; 130 dirpath ex_dir; 160 MOUNTPROC_MNT(dirpath) = 1; 175 MOUNTPROC_UMNT(dirpath) = 3; 218 MOUNTPROC_MNT(dirpath) = 1; 233 MOUNTPROC_UMNT(dirpath) = 3;
|
/freebsd/contrib/libedit/ |
H A D | filecomplete.c | 328 static char *filename = NULL, *dirname = NULL, *dirpath = NULL; in fn_filename_completion_function() local 380 el_free(dirpath); in fn_filename_completion_function() 381 dirpath = NULL; in fn_filename_completion_function() 385 dirpath = strdup("./"); in fn_filename_completion_function() 387 dirpath = fn_tilde_expand(dirname); in fn_filename_completion_function() 389 dirpath = strdup(dirname); in fn_filename_completion_function() 391 if (dirpath == NULL) in fn_filename_completion_function() 394 dir = opendir(dirpath); in fn_filename_completion_function()
|
/freebsd/crypto/openssl/crypto/conf/ |
H A D | conf_def.c | 56 char **dirpath); 226 char *dirpath = NULL; in def_load_bio() local 291 if ((next = get_next_file(dirpath, &dirctx)) != NULL) { in def_load_bio() 296 OPENSSL_free(dirpath); in def_load_bio() 297 dirpath = NULL; in def_load_bio() 501 next = process_include(include_path, &dirctx, &dirpath); in def_load_bio() 502 if (include_path != dirpath) { in def_load_bio() 594 OPENSSL_free(dirpath); in def_load_bio() 816 char **dirpath) in process_include() argument 835 *dirpath = include; in process_include()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/link_count/ |
H A D | link_count_root_inode.ksh | 35 typeset dirpath="$1" 38 log_must test "$(ls -ld $dirpath | awk '{ print $2 }')" == "$value"
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clvfsops.c | 569 char *dirpath; in nfs_mountdiskless() local 575 dirpath = strchr(path, ':'); in nfs_mountdiskless() 576 if (dirpath != NULL) in nfs_mountdiskless() 577 dirlen = strlen(++dirpath); in nfs_mountdiskless() 581 if ((error = mountnfs(args, mp, nam, path, NULL, 0, dirpath, dirlen, in nfs_mountdiskless() 796 struct sockaddr_in **sinp, char *dirpath, size_t dirpathsize, int *dirlenp) in nfs_mount_parse_from() argument 881 strlcpy(dirpath, spec, dirpathsize); in nfs_mount_parse_from() 882 *dirlenp = strlen(dirpath); in nfs_mount_parse_from() 928 u_char nfh[NFSX_FHMAX], krbname[100], dirpath[100], srvkrbname[100]; in nfs_mount() local 1329 &args.hostname, (struct sockaddr_in **)&nam, dirpath, in nfs_mount() [all …]
|
H A D | nfs_clrpcops.c | 5134 nfsrpc_getdirpath(struct nfsmount *nmp, u_char *dirpath, struct ucred *cred, in nfsrpc_getdirpath() argument 5146 cp = dirpath; in nfsrpc_getdirpath()
|
/freebsd/usr.sbin/lpr/lpr/ |
H A D | lpr.c | 693 char *cp, *dirpath; in test() local 731 dirpath = malloc(dlen); in test() 732 strlcpy(dirpath, file, dlen); in test() 733 fd = checkwriteperm(file, dirpath); in test() 734 free(dirpath); in test()
|
/freebsd/contrib/bmake/ |
H A D | dir.c | 844 char *prefix, *dirpath, *end; in SearchPath_ExpandMiddle() local 853 dirpath = Dir_FindFile(prefix, path); in SearchPath_ExpandMiddle() 865 if (dirpath == NULL) in SearchPath_ExpandMiddle() 868 end = &dirpath[strlen(dirpath) - 1]; in SearchPath_ExpandMiddle() 874 (void)SearchPath_Add(partPath, dirpath); in SearchPath_ExpandMiddle() 877 free(dirpath); in SearchPath_ExpandMiddle()
|
/freebsd/usr.sbin/mountd/ |
H A D | mountd.c | 1145 char rpcpath[MNTPATHLEN + 1], dirpath[MAXPATHLEN]; in mntsrv() local 1199 if (realpath(rpcpath, dirpath) == NULL || in mntsrv() 1200 stat(dirpath, &stb) < 0 || in mntsrv() 1201 statfs(dirpath, &fsb) < 0) { in mntsrv() 1205 numerichost, dirpath); in mntsrv() 1207 warnx("stat failed on %s", dirpath); in mntsrv() 1215 numerichost, dirpath); in mntsrv() 1217 warnx("mounting non-directory %s", dirpath); in mntsrv() 1230 ((dp = dirp_search(ep->ex_dirl, dirpath)) && in mntsrv() 1254 if (getfh(dirpath, (fhandle_t *)&fhr.fhr_fh) < 0) { in mntsrv() [all …]
|
/freebsd/tests/sys/audit/ |
H A D | inter-process.c | 1455 char dirpath[PATH_MAX]; in ATF_TC_BODY() local 1456 ATF_REQUIRE(getcwd(dirpath, sizeof(dirpath)) != NULL); in ATF_TC_BODY() 1457 strlcat(dirpath, path, sizeof(dirpath)); in ATF_TC_BODY() 1458 ATF_REQUIRE(shm_open(dirpath, O_CREAT | O_TRUNC | O_RDWR, 0600) != -1); in ATF_TC_BODY() 1462 ATF_REQUIRE_EQ(0, shm_unlink(dirpath)); in ATF_TC_BODY()
|
H A D | process-control.c | 383 char dirpath[50]; in ATF_TC_BODY() local 384 ATF_REQUIRE(getcwd(dirpath, sizeof(dirpath)) != NULL); in ATF_TC_BODY() 385 ATF_REQUIRE((filedesc = open(dirpath, O_RDONLY)) != -1); in ATF_TC_BODY()
|
/freebsd/usr.sbin/gssd/ |
H A D | gssd.c | 1052 find_ccache_file(const char *dirpath, uid_t uid, char *rpath) in find_ccache_file() argument 1062 dirp = opendir(dirpath); in find_ccache_file() 1069 len = snprintf(namepath, sizeof(namepath), "%s/%s", dirpath, in find_ccache_file() 1079 dirpath, dp->d_name); in find_ccache_file()
|
/freebsd/tests/sys/cddl/zfs/include/ |
H A D | libtest.kshlib | 2995 typeset dirpath=${1:-$STC_NAME} 2997 print "SUNWstc-${dirpath}" | /usr/bin/sed -e "s/\//-/g"
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_main.c | 6242 print_zpool_dir_scripts(char *dirpath) in print_zpool_dir_scripts() argument 6249 if ((dir = opendir(dirpath)) != NULL) { in print_zpool_dir_scripts() 6253 dirpath, ent->d_name) >= sizeof (fullpath)) { in print_zpool_dir_scripts()
|