Lines Matching refs:param

171 	struct netdfs_getver *param = arg;  in netdfs_s_getver()  local
173 param->version = DFS_MANAGER_VERSION_NT4; in netdfs_s_getver()
186 netdfs_add_t *param = arg; in netdfs_s_add() local
189 const char *uncpath = (const char *)param->dfs_path; in netdfs_s_add()
194 param->status = ERROR_ACCESS_DENIED; in netdfs_s_add()
198 if (param->server == NULL || param->share == NULL) { in netdfs_s_add()
199 param->status = ERROR_INVALID_PARAMETER; in netdfs_s_add()
203 switch (param->flags) { in netdfs_s_add()
210 param->status = ERROR_INVALID_PARAMETER; in netdfs_s_add()
216 param->status = status; in netdfs_s_add()
223 param->status = status; in netdfs_s_add()
231 status = dfs_link_add(fspath, (const char *)param->server, in netdfs_s_add()
232 (const char *)param->share, (const char *)param->comment, in netdfs_s_add()
233 param->flags, &newlink); in netdfs_s_add()
245 param->status = status; in netdfs_s_add()
258 struct netdfs_remove *param = arg; in netdfs_s_remove() local
261 const char *uncpath = (const char *)param->dfs_path; in netdfs_s_remove()
265 param->status = ERROR_ACCESS_DENIED; in netdfs_s_remove()
270 if ((param->server == NULL && param->share != NULL) || in netdfs_s_remove()
271 (param->server != NULL && param->share == NULL)) { in netdfs_s_remove()
272 param->status = ERROR_INVALID_PARAMETER; in netdfs_s_remove()
278 param->status = status; in netdfs_s_remove()
284 status = dfs_link_remove(fspath, (const char *)param->server, in netdfs_s_remove()
285 (const char *)param->share); in netdfs_s_remove()
304 param->status = status; in netdfs_s_remove()
318 netdfs_setinfo_t *param = arg; in netdfs_s_setinfo() local
323 if ((param->server == NULL && param->share != NULL) || in netdfs_s_setinfo()
324 (param->server != NULL && param->share == NULL)) { in netdfs_s_setinfo()
325 param->status = ERROR_INVALID_PARAMETER; in netdfs_s_setinfo()
329 status = dfs_path_parse(&path, (const char *)param->dfs_path, in netdfs_s_setinfo()
333 param->status = status; in netdfs_s_setinfo()
343 param->status = ERROR_NOT_FOUND; in netdfs_s_setinfo()
347 switch (param->info.level) { in netdfs_s_setinfo()
349 status = netdfs_setinfo_100(&path, param->info.iu.info100); in netdfs_s_setinfo()
352 status = netdfs_setinfo_101(&path, param->info.iu.info101, in netdfs_s_setinfo()
353 (const char *)param->server, (const char *)param->share); in netdfs_s_setinfo()
356 status = netdfs_setinfo_102(&path, param->info.iu.info102); in netdfs_s_setinfo()
359 status = netdfs_setinfo_103(&path, param->info.iu.info103); in netdfs_s_setinfo()
362 status = netdfs_setinfo_104(&path, param->info.iu.info104, in netdfs_s_setinfo()
363 (const char *)param->server, (const char *)param->share); in netdfs_s_setinfo()
366 status = netdfs_setinfo_105(&path, param->info.iu.info105); in netdfs_s_setinfo()
375 param->status = status; in netdfs_s_setinfo()
388 netdfs_getinfo_t *param = arg; in netdfs_s_getinfo() local
400 uint32_t level = param->level; in netdfs_s_getinfo()
402 status = dfs_path_parse(&path, (const char *)param->dfs_path, in netdfs_s_getinfo()
418 status = dfs_link_getinfo(fspath, &info, param->level); in netdfs_s_getinfo()
420 status = dfs_root_getinfo(fspath, &info, param->level); in netdfs_s_getinfo()
426 (void) strlcpy(info.i_uncpath, (char *)param->dfs_path, in netdfs_s_getinfo()
436 param->info.iu.info1 = info1; in netdfs_s_getinfo()
442 param->info.iu.info2 = info2; in netdfs_s_getinfo()
448 param->info.iu.info3 = info3; in netdfs_s_getinfo()
454 param->info.iu.info4 = info4; in netdfs_s_getinfo()
460 param->info.iu.info5 = info5; in netdfs_s_getinfo()
466 param->info.iu.info6 = info6; in netdfs_s_getinfo()
472 param->info.iu.info100 = info100; in netdfs_s_getinfo()
488 bzero(param, sizeof (netdfs_getinfo_t)); in netdfs_s_getinfo()
490 param->info.level = level; in netdfs_s_getinfo()
491 param->status = status; in netdfs_s_getinfo()
509 netdfs_enum_t *param = arg; in netdfs_s_enum() local
511 uint32_t level = param->level; in netdfs_s_enum()
516 if (param->info == NULL) { in netdfs_s_enum()
533 if (param->pref_max_len == NETDFS_MAXPREFLEN || in netdfs_s_enum()
534 param->pref_max_len > NETDFS_MAXBUFLEN) in netdfs_s_enum()
537 de.de_prefmaxlen = param->pref_max_len; in netdfs_s_enum()
541 if (param->resume_handle != NULL) { in netdfs_s_enum()
542 if (*param->resume_handle >= de.de_ntotal) { in netdfs_s_enum()
546 de.de_resume = *param->resume_handle; in netdfs_s_enum()
548 *param->resume_handle = 0; in netdfs_s_enum()
564 param->info->iu.info1->info1 = de.de_entries; in netdfs_s_enum()
565 param->info->iu.info1->count = de.de_nitems; in netdfs_s_enum()
576 param->info->iu.info2->info2 = de.de_entries; in netdfs_s_enum()
577 param->info->iu.info2->count = de.de_nitems; in netdfs_s_enum()
589 param->info->iu.info3->info3 = de.de_entries; in netdfs_s_enum()
590 param->info->iu.info3->count = de.de_nitems; in netdfs_s_enum()
602 param->info->iu.info4->info4 = de.de_entries; in netdfs_s_enum()
603 param->info->iu.info4->count = de.de_nitems; in netdfs_s_enum()
615 param->info->iu.info5->info5 = de.de_entries; in netdfs_s_enum()
616 param->info->iu.info5->count = de.de_nitems; in netdfs_s_enum()
629 param->info->iu.info6->info6 = de.de_entries; in netdfs_s_enum()
630 param->info->iu.info6->count = de.de_nitems; in netdfs_s_enum()
642 param->info->iu.info300->info300 = de.de_entries; in netdfs_s_enum()
643 param->info->iu.info300->count = de.de_nitems; in netdfs_s_enum()
652 if ((status == ERROR_SUCCESS) && (param->resume_handle != NULL)) in netdfs_s_enum()
653 *param->resume_handle = de.de_resume; in netdfs_s_enum()
657 param->status = status; in netdfs_s_enum()
672 struct netdfs_move *param = arg; in netdfs_s_move() local
674 param->status = ERROR_NOT_SUPPORTED; in netdfs_s_move()
686 struct netdfs_rename *param = arg; in netdfs_s_rename() local
688 param->status = ERROR_NOT_SUPPORTED; in netdfs_s_rename()
701 struct netdfs_addstdroot *param = arg; in netdfs_s_addstdroot() local
702 const char *share = (const char *)param->share; in netdfs_s_addstdroot()
703 const char *comment = (const char *)param->comment; in netdfs_s_addstdroot()
706 param->status = ERROR_ACCESS_DENIED; in netdfs_s_addstdroot()
713 param->status = dfs_namespace_add(share, comment); in netdfs_s_addstdroot()
715 param->status = ERROR_NOT_SUPPORTED; in netdfs_s_addstdroot()
731 struct netdfs_remstdroot *param = arg; in netdfs_s_remstdroot() local
732 const char *share = (const char *)param->share; in netdfs_s_remstdroot()
737 param->status = dfs_namespace_remove(share); in netdfs_s_remstdroot()
739 param->status = ERROR_ACCESS_DENIED; in netdfs_s_remstdroot()
758 struct netdfs_enumex *param = arg; in netdfs_s_enumex() local
760 bzero(param->info, sizeof (struct netdfs_enumex)); in netdfs_s_enumex()
761 param->status = ERROR_NOT_SUPPORTED; in netdfs_s_enumex()