| /freebsd-14.2/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() 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() 112 int fd = open(dirpath, O_RDONLY); in main() [all …]
|
| /freebsd-14.2/tests/sys/cddl/zfs/bin/ |
| H A D | dir_rd_update.c | 47 static char dirpath[256]; variable 64 dirpath[i] = 0; in main() 68 (void) strcpy(&dirpath[0], (const char *)cp1); in main() 69 (void) strcat(&dirpath[strlen(dirpath)], "TMP_DIR"); in main() 71 ret = mkdir(dirpath, 0777); in main() 76 argv[0], dirpath, errno); in main() 80 testdd = open(dirpath, O_RDONLY|O_SYNC); in main() 84 argv[0], dirpath, errno); in main() 91 int fd = open(dirpath, O_RDONLY|O_SYNC); in main() 105 int fd = open(dirpath, O_RDONLY); in main()
|
| /freebsd-14.2/include/rpcsvc/ |
| H A D | mount.x | 107 typedef string dirpath<MNTPATHLEN>; 120 dirpath ml_directory; 138 dirpath ex_dir; 168 MOUNTPROC_MNT(dirpath) = 1; 183 MOUNTPROC_UMNT(dirpath) = 3; 226 MOUNTPROC_MNT(dirpath) = 1; 241 MOUNTPROC_UMNT(dirpath) = 3;
|
| /freebsd-14.2/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-14.2/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-14.2/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-14.2/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() 881 strlcpy(dirpath, spec, dirpathsize); in nfs_mount_parse_from() 882 *dirlenp = strlen(dirpath); in nfs_mount_parse_from() 1330 sizeof(dirpath), &dirlen) == 0) { in nfs_mount() 1388 strlcpy(dirpath, name, sizeof (dirpath)); in nfs_mount() 1390 dirpath[0] = '\0'; in nfs_mount() 1391 dirlen = strlen(dirpath); in nfs_mount() [all …]
|
| H A D | nfs_clrpcops.c | 5132 nfsrpc_getdirpath(struct nfsmount *nmp, u_char *dirpath, struct ucred *cred, in nfsrpc_getdirpath() argument 5144 cp = dirpath; in nfsrpc_getdirpath()
|
| /freebsd-14.2/usr.sbin/lpr/lpr/ |
| H A D | lpr.c | 705 char *cp, *dirpath; in test() local 743 dirpath = malloc(dlen); in test() 744 strlcpy(dirpath, file, dlen); in test() 745 fd = checkwriteperm(file, dirpath); in test() 746 free(dirpath); in test()
|
| /freebsd-14.2/usr.sbin/mountd/ |
| H A D | mountd.c | 1202 stat(dirpath, &stb) < 0 || in mntsrv() 1203 statfs(dirpath, &fsb) < 0) { in mntsrv() 1207 numerichost, dirpath); in mntsrv() 1217 numerichost, dirpath); in mntsrv() 1269 add_mlist(host, dirpath); in mntsrv() 1277 numerichost, dirpath); in mntsrv() 1283 numerichost, dirpath); in mntsrv() 1316 numerichost, dirpath); in mntsrv() 1321 del_mlist(host, dirpath); in mntsrv() 1322 del_mlist(numerichost, dirpath); in mntsrv() [all …]
|
| /freebsd-14.2/contrib/bmake/ |
| H A D | dir.c | 859 char *prefix, *dirpath, *end; in SearchPath_ExpandMiddle() local 873 dirpath = Dir_FindFile(prefix, path); in SearchPath_ExpandMiddle() 885 if (dirpath == NULL) in SearchPath_ExpandMiddle() 888 end = &dirpath[strlen(dirpath) - 1]; in SearchPath_ExpandMiddle() 894 (void)SearchPath_Add(partPath, dirpath); in SearchPath_ExpandMiddle()
|
| /freebsd-14.2/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-14.2/usr.sbin/gssd/ |
| H A D | gssd.c | 1053 find_ccache_file(const char *dirpath, uid_t uid, char *rpath) in find_ccache_file() argument 1063 dirp = opendir(dirpath); in find_ccache_file() 1070 len = snprintf(namepath, sizeof(namepath), "%s/%s", dirpath, in find_ccache_file() 1080 dirpath, dp->d_name); in find_ccache_file()
|
| /freebsd-14.2/tests/sys/cddl/zfs/include/ |
| H A D | libtest.kshlib | 2998 typeset dirpath=${1:-$STC_NAME} 3000 print "SUNWstc-${dirpath}" | /usr/bin/sed -e "s/\//-/g"
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/zpool/ |
| H A D | zpool_main.c | 5669 print_zpool_dir_scripts(char *dirpath) in print_zpool_dir_scripts() argument 5676 if ((dir = opendir(dirpath)) != NULL) { in print_zpool_dir_scripts() 5680 dirpath, ent->d_name) >= sizeof (fullpath)) { in print_zpool_dir_scripts()
|