Home
last modified time | relevance | path

Searched refs:dirpath (Results 1 – 25 of 28) sorted by relevance

12

/dragonfly/sbin/hammer/
HDcmd_config.c37 static void config_get(const char *dirpath, struct hammer_ioc_config *config);
38 static void config_set(const char *dirpath, struct hammer_ioc_config *config);
53 char *dirpath; in hammer_cmd_config() local
68 dirpath = av[0]; in hammer_cmd_config()
70 config_get(dirpath, &config); in hammer_cmd_config()
79 config_get(dirpath, &config); /* ignore errors */ in hammer_cmd_config()
94 config_set(dirpath, &config); in hammer_cmd_config()
106 const char *dirpath; in hammer_cmd_viconfig() local
118 dirpath = "."; in hammer_cmd_viconfig()
120 dirpath = av[0]; in hammer_cmd_viconfig()
[all …]
HDcmd_snapshot.c59 char *dirpath; in hammer_cmd_snap() local
80 dirpath = dirpart(av[0]); in hammer_cmd_snap()
90 dirpath = strdup(av[0]); in hammer_cmd_snap()
91 asprintf(&tsym, "%s/%s", dirpath, extbuf); in hammer_cmd_snap()
102 fsfd = open(dirpath, O_RDONLY); in hammer_cmd_snap()
104 err(2, "hammer snap: Cannot open directory %s", dirpath); in hammer_cmd_snap()
132 dirpath); in hammer_cmd_snap()
136 if (strcmp(dirpath, ".") == 0 || strcmp(dirpath, "..") == 0) { in hammer_cmd_snap()
138 dirpath, (uintmax_t)synctid.tid); in hammer_cmd_snap()
141 dirpath, (uintmax_t)synctid.tid); in hammer_cmd_snap()
[all …]
HDcmd_pfs.c262 char *dirpath; in hammer_cmd_pseudofs_create() local
285 dirpath = dirname(tmpbuf); in hammer_cmd_pseudofs_create()
286 fd = open(dirpath, O_RDONLY); in hammer_cmd_pseudofs_create()
288 err(1, "Cannot open directory %s", dirpath); in hammer_cmd_pseudofs_create()
HDcmd_softprune.c56 const char *dirpath, const char *denname,
409 const char *dirpath, const char *denname __unused, in hammer_softprune_addentry() argument
425 asprintf(&fspath, "%s/%*.*s", dirpath, in hammer_softprune_addentry()
/dragonfly/include/rpcsvc/
HDmount.x101 typedef string dirpath<MNTPATHLEN>;
114 dirpath ml_directory;
132 dirpath ex_dir;
162 MOUNTPROC_MNT(dirpath) = 1;
177 MOUNTPROC_UMNT(dirpath) = 3;
220 MOUNTPROC_MNT(dirpath) = 1;
235 MOUNTPROC_UMNT(dirpath) = 3;
/dragonfly/contrib/cvs-1.12/src/
HDcheckout.c536 char *dirpath; member
547 build_one_dir (char *repository, char *dirpath, int sticky) in build_one_dir() argument
562 if (Create_Admin (".", dirpath, repository, in build_one_dir()
582 server_set_entstat (dirpath, repository); in build_one_dir()
821 head->dirpath = xstrdup (where); in checkout_proc()
841 new->dirpath = xmalloc (strlen (where)); in checkout_proc()
849 strncpy (new->dirpath, where, cp - where); in checkout_proc()
850 new->dirpath[cp - where] = '\0'; in checkout_proc()
856 strcpy (new->dirpath, "/"); in checkout_proc()
1225 const char *dir = last_component (dirs->dirpath); in build_dirs_and_chdir()
[all …]
/dragonfly/contrib/cryptsetup/lib/
HDutils_debug.c30 char dirpath[MAX_SHORTNAME], fdpath[MAX_SHORTNAME], linkpath[MAX_PATHNAME]; in check_pid() local
36 snprintf(dirpath, sizeof(dirpath), "/proc/%d/fd", pid); in check_pid()
38 if (!(dirp = opendir(dirpath))) in check_pid()
/dragonfly/contrib/libedit/src/
HDfilecomplete.c329 static char *filename = NULL, *dirname = NULL, *dirpath = NULL; in fn_filename_completion_function() local
381 el_free(dirpath); in fn_filename_completion_function()
382 dirpath = NULL; in fn_filename_completion_function()
386 dirpath = strdup("./"); in fn_filename_completion_function()
388 dirpath = fn_tilde_expand(dirname); in fn_filename_completion_function()
390 dirpath = strdup(dirname); in fn_filename_completion_function()
392 if (dirpath == NULL) in fn_filename_completion_function()
395 dir = opendir(dirpath); in fn_filename_completion_function()
/dragonfly/contrib/binutils-2.34/gold/
HDreadsyms.h60 Layout* layout, Dirsearch* dirpath, int dirindex, in Read_symbols() argument
65 dirpath_(dirpath), dirindex_(dirindex), mapfile_(mapfile), in Read_symbols()
447 Read_script(Symbol_table* symtab, Layout* layout, Dirsearch* dirpath, in Read_script() argument
452 : symtab_(symtab), layout_(layout), dirpath_(dirpath), dirindex_(dirindex), in Read_script()
HDarchive.h166 bool is_thin_archive, Dirsearch* dirpath, Task* task);
423 Input_objects* input_objects, Dirsearch* dirpath, in Add_archive_symbols() argument
430 dirpath_(dirpath), dirindex_(dirindex), mapfile_(mapfile), in Add_archive_symbols()
HDplugin.h213 Dirsearch* dirpath, Mapfile* mapfile,
618 Symbol_table* symtab, Layout* /*layout*/, Dirsearch* dirpath, in Plugin_hook() argument
622 dirpath_(dirpath), mapfile_(mapfile), in Plugin_hook()
HDfileread.cc994 Input_file::find_file(const Dirsearch& dirpath, int* pindex, in find_file() argument
1044 name = dirpath.find(names, is_in_sysroot, pindex, found_name); in find_file()
1068 name = dirpath.find(std::vector<std::string>(1, input_argument->name()), in find_file()
1085 Input_file::open(const Dirsearch& dirpath, const Task* task, int* pindex) in open() argument
1088 if (!Input_file::find_file(dirpath, pindex, this->input_argument_, in open()
HDreadsyms.cc113 Symbol_table* symtab, Layout* layout, Dirsearch* dirpath, in requeue() argument
128 workqueue->queue(new Read_symbols(input_objects, symtab, layout, dirpath, in requeue()
HDfileread.h581 find_file(const Dirsearch& dirpath, int* pindex,
HDarchive.cc199 bool is_thin_archive, Dirsearch* dirpath, Task* task) in Archive() argument
203 nested_archives_(), dirpath_(dirpath), num_members_(0), in Archive()
/dragonfly/contrib/binutils-2.27/gold/
HDreadsyms.h60 Layout* layout, Dirsearch* dirpath, int dirindex, in Read_symbols() argument
65 dirpath_(dirpath), dirindex_(dirindex), mapfile_(mapfile), in Read_symbols()
447 Read_script(Symbol_table* symtab, Layout* layout, Dirsearch* dirpath, in Read_script() argument
452 : symtab_(symtab), layout_(layout), dirpath_(dirpath), dirindex_(dirindex), in Read_script()
HDarchive.h166 bool is_thin_archive, Dirsearch* dirpath, Task* task);
423 Input_objects* input_objects, Dirsearch* dirpath, in Add_archive_symbols() argument
430 dirpath_(dirpath), dirindex_(dirindex), mapfile_(mapfile), in Add_archive_symbols()
HDplugin.h189 Dirsearch* dirpath, Mapfile* mapfile,
575 Symbol_table* symtab, Layout* /*layout*/, Dirsearch* dirpath, in Plugin_hook() argument
579 dirpath_(dirpath), mapfile_(mapfile), in Plugin_hook()
HDfileread.cc994 Input_file::find_file(const Dirsearch& dirpath, int* pindex, in find_file() argument
1044 name = dirpath.find(names, is_in_sysroot, pindex, found_name); in find_file()
1068 name = dirpath.find(std::vector<std::string>(1, input_argument->name()), in find_file()
1085 Input_file::open(const Dirsearch& dirpath, const Task* task, int* pindex) in open() argument
1088 if (!Input_file::find_file(dirpath, pindex, this->input_argument_, in open()
HDreadsyms.cc113 Symbol_table* symtab, Layout* layout, Dirsearch* dirpath, in requeue() argument
128 workqueue->queue(new Read_symbols(input_objects, symtab, layout, dirpath, in requeue()
HDfileread.h581 find_file(const Dirsearch& dirpath, int* pindex,
HDarchive.cc199 bool is_thin_archive, Dirsearch* dirpath, Task* task) in Archive() argument
203 nested_archives_(), dirpath_(dirpath), num_members_(0), in Archive()
/dragonfly/sbin/mountd/
HDmountd.c754 char rpcpath[RPCMNT_PATHLEN + 1], dirpath[MAXPATHLEN]; in mntsrv() local
802 if (realpath(rpcpath, dirpath) == NULL || in mntsrv()
803 stat(dirpath, &stb) < 0 || in mntsrv()
806 statfs(dirpath, &fsb) < 0) { in mntsrv()
810 numerichost, dirpath); in mntsrv()
812 warnx("stat failed on %s", dirpath); in mntsrv()
821 ((dp = dirp_search(ep->ex_dirl, dirpath)) && in mntsrv()
839 if (getfh(dirpath, (fhandle_t *)&fhr.fhr_fh) < 0) { in mntsrv()
841 syslog(LOG_ERR, "can't get fh for %s", dirpath); in mntsrv()
851 add_mlist(host, dirpath); in mntsrv()
[all …]
/dragonfly/usr.sbin/lpr/lpr/
HDlpr.c699 char *cp, *dirpath; in test() local
745 dirpath = malloc(dlen); in test()
746 strlcpy(dirpath, file, dlen); in test()
747 fd = checkwriteperm(file, dirpath); in test()
748 free(dirpath); in test()
/dragonfly/contrib/bmake/
HDdir.c842 char *prefix, *dirpath, *end; in SearchPath_ExpandMiddle() local
856 dirpath = Dir_FindFile(prefix, path); in SearchPath_ExpandMiddle()
868 if (dirpath == NULL) in SearchPath_ExpandMiddle()
871 end = &dirpath[strlen(dirpath) - 1]; in SearchPath_ExpandMiddle()
877 (void)SearchPath_Add(partPath, dirpath); in SearchPath_ExpandMiddle()

12