/freebsd/usr.sbin/ypserv/ |
H A D | yp_server.c | 74 ypproc_null_2_svc(void *argp, struct svc_req *rqstp) in ypproc_null_2_svc() argument 92 ypproc_domain_2_svc(domainname *argp, struct svc_req *rqstp) argument 105 if (argp == NULL || yp_validdomain(*argp)) 114 ypproc_domain_nonack_2_svc(domainname *argp, struct svc_req *rqstp) argument 125 if (argp == NULL || yp_validdomain(*argp)) 134 ypproc_match_2_svc(ypreq_key *argp, struct svc_req *rqstp) argument 142 if (yp_access(argp->map, argp->domain, (struct svc_req *)rqstp)) { 144 if (yp_access(argp->map, (struct svc_req *)rqstp)) { 150 if (argp->domain == NULL || argp->map == NULL) { 155 if (yp_select_map(argp->map, argp->domain, NULL, 1) != YP_TRUE) { [all …]
|
/freebsd/sys/nlm/ |
H A D | nlm_prot_server.c | 121 nlm_sm_notify_0_svc(struct nlm_sm_status *argp, void *result, struct svc_req *rqstp) in nlm_sm_notify_0_svc() argument 123 nlm_sm_notify(argp); in nlm_sm_notify_0_svc() 129 nlm_test_1_svc(struct nlm_testargs *argp, nlm_testres *result, struct svc_req *rqstp) in nlm_test_1_svc() argument 135 args4.cookie = argp->cookie; in nlm_test_1_svc() 136 args4.exclusive = argp->exclusive; in nlm_test_1_svc() 137 nlm_convert_to_nlm4_lock(&args4.alock, &argp->alock); in nlm_test_1_svc() 153 nlm_lock_1_svc(struct nlm_lockargs *argp, nlm_res *result, struct svc_req *rqstp) in nlm_lock_1_svc() argument 159 args4.cookie = argp->cookie; in nlm_lock_1_svc() 160 args4.block = argp->block; in nlm_lock_1_svc() 161 args4.exclusive = argp->exclusive; in nlm_lock_1_svc() [all …]
|
H A D | nlm_prot_clnt.c | 17 nlm_sm_notify_0(struct nlm_sm_status *argp, void *clnt_res, CLIENT *clnt, struct rpc_callextra *ext… in nlm_sm_notify_0() argument 20 (xdrproc_t) xdr_nlm_sm_status, (caddr_t) argp, in nlm_sm_notify_0() 26 nlm_test_1(struct nlm_testargs *argp, nlm_testres *clnt_res, CLIENT *clnt, struct rpc_callextra *ex… in nlm_test_1() argument 29 (xdrproc_t) xdr_nlm_testargs, (caddr_t) argp, in nlm_test_1() 35 nlm_lock_1(struct nlm_lockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext, s… in nlm_lock_1() argument 38 (xdrproc_t) xdr_nlm_lockargs, (caddr_t) argp, in nlm_lock_1() 44 nlm_cancel_1(struct nlm_cancargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ext,… in nlm_cancel_1() argument 47 (xdrproc_t) xdr_nlm_cancargs, (caddr_t) argp, in nlm_cancel_1() 53 nlm_unlock_1(struct nlm_unlockargs *argp, nlm_res *clnt_res, CLIENT *clnt, struct rpc_callextra *ex… in nlm_unlock_1() argument 56 (xdrproc_t) xdr_nlm_unlockargs, (caddr_t) argp, in nlm_unlock_1() [all …]
|
H A D | nlm.h | 149 extern void nlm_sm_notify(nlm_sm_status *argp); 158 extern int nlm_do_test(nlm4_testargs *argp, nlm4_testres *result, 168 extern int nlm_do_lock(nlm4_lockargs *argp, nlm4_res *result, 178 extern int nlm_do_cancel(nlm4_cancargs *argp, nlm4_res *result, 188 extern int nlm_do_unlock(nlm4_unlockargs *argp, nlm4_res *result, 198 extern int nlm_do_granted(nlm4_testargs *argp, nlm4_res *result, 205 extern void nlm_do_granted_res(nlm4_res *argp, struct svc_req *rqstp); 210 extern void nlm_do_free_all(nlm4_notify *argp);
|
H A D | nlm_prot_impl.c | 1729 nlm_sm_notify(struct nlm_sm_status *argp) in nlm_sm_notify() argument 1734 NLM_DEBUG(3, "nlm_sm_notify(): mon_name = %s\n", argp->mon_name); in nlm_sm_notify() 1735 memcpy(&sysid, &argp->priv, sizeof(sysid)); in nlm_sm_notify() 1738 nlm_host_notify(host, argp->state); in nlm_sm_notify() 1855 nlm_do_test(nlm4_testargs *argp, nlm4_testres *result, struct svc_req *rqstp, in nlm_do_test() argument 1868 host = nlm_find_host_by_name(argp->alock.caller_name, in nlm_do_test() 1881 nlm_convert_to_fhandle_t(&fh, &argp->alock.fh); in nlm_do_test() 1882 nlm_copy_netobj(&result->cookie, &argp->cookie, M_RPC); in nlm_do_test() 1889 accmode = argp->exclusive ? VWRITE : VREAD; in nlm_do_test() 1896 fl.l_start = argp->alock.l_offset; in nlm_do_test() [all …]
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | test.c | 11 nlm_test_1(argp, clnt) in nlm_test_1() argument 12 struct nlm_testargs *argp; in nlm_test_1() 18 …if (clnt_call(clnt, NLM_TEST, xdr_nlm_testargs, argp, xdr_nlm_testres, &res, TIMEOUT) != RPC_SUCCE… 26 nlm_lock_1(argp, clnt) in nlm_lock_1() argument 27 struct nlm_lockargs *argp; in nlm_lock_1() 34 …if (st = clnt_call(clnt, NLM_LOCK, xdr_nlm_lockargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCC… 44 nlm_cancel_1(argp, clnt) in nlm_cancel_1() argument 45 struct nlm_cancargs *argp; in nlm_cancel_1() 51 …if (clnt_call(clnt, NLM_CANCEL, xdr_nlm_cancargs, argp, xdr_nlm_res, &res, TIMEOUT) != RPC_SUCCESS… 59 nlm_unlock_1(argp, clnt) in nlm_unlock_1() argument [all …]
|
/freebsd/stand/efi/loader/ |
H A D | efi_main.c | 56 arg_skipsep(CHAR16 *argp) in arg_skipsep() argument 59 while (*argp == ' ' || *argp == '\t' || *argp == '\n') in arg_skipsep() 60 argp++; in arg_skipsep() 61 return (argp); in arg_skipsep() 65 arg_skipword(CHAR16 *argp) in arg_skipword() argument 68 while (*argp && *argp != ' ' && *argp != '\t' && *argp != '\n') in arg_skipword() 69 argp++; in arg_skipword() 70 return (argp); in arg_skipword() 81 CHAR16 *argp, *args, **argv; in efi_main() local 166 argp = args; in efi_main() [all …]
|
/freebsd/contrib/ncurses/ncurses/base/ |
H A D | lib_printw.c | 48 va_list argp; in NCURSES_EXPORT() local 59 va_start(argp, fmt); in NCURSES_EXPORT() 60 code = vw_printw(stdscr, fmt, argp); in NCURSES_EXPORT() 61 va_end(argp); in NCURSES_EXPORT() 69 va_list argp; in wprintw() local 80 va_start(argp, fmt); in wprintw() 81 code = vw_printw(win, fmt, argp); in wprintw() 82 va_end(argp); in wprintw() 101 va_list argp; in mvprintw() local 103 va_start(argp, fmt); in mvprintw() [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/nfs/ |
H A D | tst.call3.c | 58 getattr_arginit(void *argp) in getattr_arginit() argument 60 GETATTR3args *args = argp; in getattr_arginit() 67 setattr_arginit(void *argp) in setattr_arginit() argument 69 SETATTR3args *args = argp; in setattr_arginit() 77 lookup_arginit(void *argp) in lookup_arginit() argument 79 LOOKUP3args *args = argp; in lookup_arginit() 87 access_arginit(void *argp) in access_arginit() argument 89 ACCESS3args *args = argp; in access_arginit() 96 commit_arginit(void *argp) in commit_arginit() argument 98 COMMIT3args *args = argp; in commit_arginit() [all …]
|
/freebsd/contrib/ncurses/form/ |
H A D | fty_enum.c | 68 enumARG *argp = (enumARG *)0; in Generic_Enum_Type() local 73 argp = typeMalloc(enumARG, 1); in Generic_Enum_Type() 75 if (argp) in Generic_Enum_Type() 82 T((T_CREATE("enumARG %p"), (void *)argp)); in Generic_Enum_Type() 87 argp->checkcase = ccase ? TRUE : FALSE; in Generic_Enum_Type() 88 argp->checkunique = cunique ? TRUE : FALSE; in Generic_Enum_Type() 89 argp->kwds = (char **)0; in Generic_Enum_Type() 94 argp->count = cnt; in Generic_Enum_Type() 104 argp->kwds = typeMalloc(char *, cnt + 1); in Generic_Enum_Type() 107 if ((kptarget = argp->kwds) != 0) in Generic_Enum_Type() [all …]
|
H A D | fty_alnum.c | 59 thisARG *argp = (thisARG *)0; in Generic_This_Type() local 63 argp = typeMalloc(thisARG, 1); in Generic_This_Type() 65 if (argp) in Generic_This_Type() 67 T((T_CREATE("thisARG %p"), (void *)argp)); in Generic_This_Type() 68 argp->width = *((int *)arg); in Generic_This_Type() 71 return ((void *)argp); in Generic_This_Type() 99 Copy_This_Type(const void *argp) in Copy_This_Type() argument 101 const thisARG *ap = (const thisARG *)argp; in Copy_This_Type() 122 Free_This_Type(void *argp) in Free_This_Type() argument 124 if (argp) in Free_This_Type() [all …]
|
H A D | fty_alpha.c | 59 thisARG *argp = (thisARG *)0; in Generic_This_Type() local 63 argp = typeMalloc(thisARG, 1); in Generic_This_Type() 65 if (argp) in Generic_This_Type() 67 T((T_CREATE("thisARG %p"), (void *)argp)); in Generic_This_Type() 68 argp->width = *((int *)arg); in Generic_This_Type() 71 return ((void *)argp); in Generic_This_Type() 99 Copy_This_Type(const void *argp) in Copy_This_Type() argument 101 const thisARG *ap = (const thisARG *)argp; in Copy_This_Type() 122 Free_This_Type(void *argp) in Free_This_Type() argument 124 if (argp) in Free_This_Type() [all …]
|
H A D | fty_int.c | 75 thisARG *argp = (thisARG *)0; in Generic_This_Type() local 80 argp = typeMalloc(thisARG, 1); in Generic_This_Type() 82 if (argp) in Generic_This_Type() 84 T((T_CREATE("thisARG %p"), (void *)argp)); in Generic_This_Type() 85 *argp = *param; in Generic_This_Type() 88 return (void *)argp; in Generic_This_Type() 120 Copy_This_Type(const void *argp) in Copy_This_Type() argument 122 const thisARG *ap = (const thisARG *)argp; in Copy_This_Type() 125 if (argp) in Copy_This_Type() 147 Free_This_Type(void *argp) in Free_This_Type() argument [all …]
|
H A D | fld_def.c | 133 _nc_Copy_Argument(const FIELDTYPE *typ, const TypeArgument *argp, int *err) in _nc_Copy_Argument() argument 139 assert(err != 0 && argp != 0); in _nc_Copy_Argument() 146 p->left = _nc_Copy_Argument(typ, argp->left, err); in _nc_Copy_Argument() 147 p->right = _nc_Copy_Argument(typ, argp->right, err); in _nc_Copy_Argument() 156 if (!(res = (TypeArgument *)(typ->copyarg((const void *)argp)))) in _nc_Copy_Argument() 163 res = (TypeArgument *)argp; in _nc_Copy_Argument() 181 _nc_Free_Argument(const FIELDTYPE *typ, TypeArgument *argp) in _nc_Free_Argument() argument 187 if (argp != 0) in _nc_Free_Argument() 189 _nc_Free_Argument(typ->left, argp->left); in _nc_Free_Argument() 190 _nc_Free_Argument(typ->right, argp->right); in _nc_Free_Argument() [all …]
|
H A D | fty_num.c | 139 Copy_This_Type(const void *argp) in Copy_This_Type() argument 141 const thisARG *ap = (const thisARG *)argp; in Copy_This_Type() 144 if (argp) in Copy_This_Type() 166 Free_This_Type(void *argp) in Free_This_Type() argument 168 if (argp) in Free_This_Type() 169 free(argp); in Free_This_Type() 183 Check_This_Field(FIELD *field, const void *argp) in Check_This_Field() argument 185 const thisARG *argn = (const thisARG *)argp; in Check_This_Field() 299 Check_This_Character(int c, const void *argp) in Check_This_Character() argument 301 const thisARG *argn = (const thisARG *)argp; in Check_This_Character()
|
/freebsd/sys/kern/ |
H A D | vfs_export.c | 74 struct export_args *argp); 103 struct export_args *argp) in vfs_hang_addrlist() argument 115 KASSERT(argp->ex_numsecflavors > 0, in vfs_hang_addrlist() 117 KASSERT(argp->ex_numsecflavors < MAXSECFLAVORS, in vfs_hang_addrlist() 127 if (argp->ex_addrlen == 0) { in vfs_hang_addrlist() 134 np->netc_exflags = argp->ex_flags; in vfs_hang_addrlist() 136 np->netc_anon->cr_uid = argp->ex_uid; in vfs_hang_addrlist() 137 crsetgroups_fallback(np->netc_anon, argp->ex_ngroups, in vfs_hang_addrlist() 138 argp->ex_groups, GID_NOGROUP); in vfs_hang_addrlist() 141 np->netc_numsecflavors = argp->ex_numsecflavors; in vfs_hang_addrlist() [all …]
|
/freebsd/usr.sbin/gssd/ |
H A D | gssd.c | 331 gssd_null_1_svc(void *argp, void *result, struct svc_req *rqstp) in gssd_null_1_svc() argument 339 gssd_init_sec_context_1_svc(init_sec_context_args *argp, init_sec_context_res *result, struct svc_r… in gssd_init_sec_context_1_svc() argument 355 if (hostbased_initiator_cred != 0 && argp->cred != 0 && in gssd_init_sec_context_1_svc() 356 argp->uid == 0) { in gssd_init_sec_context_1_svc() 365 } else if (ccfile_dirlist[0] != '\0' && argp->cred == 0) { in gssd_init_sec_context_1_svc() 377 gotone = find_ccache_file(cp, argp->uid, ccname); in gssd_init_sec_context_1_svc() 388 (int)argp->uid); in gssd_init_sec_context_1_svc() 397 if (argp->cred != 0 && argp->uid != 0) { in gssd_init_sec_context_1_svc() 406 (int) argp->uid); in gssd_init_sec_context_1_svc() 410 if (argp->cred) { in gssd_init_sec_context_1_svc() [all …]
|
/freebsd/usr.sbin/rpc.statd/ |
H A D | test.c | 11 sm_stat_1(argp, clnt) in sm_stat_1() argument 12 struct sm_name *argp; in sm_stat_1() 18 if (clnt_call(clnt, SM_STAT, (xdrproc_t)xdr_sm_name, argp, 27 sm_mon_1(argp, clnt) in sm_mon_1() argument 28 struct mon *argp; in sm_mon_1() 34 if (clnt_call(clnt, SM_MON, (xdrproc_t)xdr_mon, argp, 43 sm_unmon_1(argp, clnt) in sm_unmon_1() argument 44 struct mon_id *argp; in sm_unmon_1() 50 if (clnt_call(clnt, SM_UNMON, (xdrproc_t)xdr_mon_id, argp, 59 sm_unmon_all_1(argp, clnt) in sm_unmon_all_1() argument [all …]
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | comp_error.c | 118 va_list argp; in _nc_warning() local 124 va_start(argp, fmt); in _nc_warning() 125 vfprintf(stderr, fmt, argp); in _nc_warning() 127 va_end(argp); in _nc_warning() 133 va_list argp; in _nc_err_abort() local 136 va_start(argp, fmt); in _nc_err_abort() 137 vfprintf(stderr, fmt, argp); in _nc_err_abort() 139 va_end(argp); in _nc_err_abort() 146 va_list argp; in _nc_syserr_abort() local 149 va_start(argp, fmt); in _nc_syserr_abort() [all …]
|
/freebsd/usr.sbin/rpc.yppasswdd/ |
H A D | yppasswdd_server.c | 467 yppasswdproc_update_1_svc(yppasswd *argp, struct svc_req *rqstp) in yppasswdproc_update_1_svc() argument 528 if ((domain = find_domain(&argp->newpw)) == NULL) { in yppasswdproc_update_1_svc() 533 argp->newpw.pw_name, domain); in yppasswdproc_update_1_svc() 536 key.data = argp->newpw.pw_name; in yppasswdproc_update_1_svc() 537 key.size = strlen(argp->newpw.pw_name); in yppasswdproc_update_1_svc() 543 argp->newpw.pw_name); in yppasswdproc_update_1_svc() 558 cryptpw = crypt(argp->oldpass, yp_password.pw_passwd); in yppasswdproc_update_1_svc() 563 argp->newpw.pw_name); in yppasswdproc_update_1_svc() 569 if (validate(&yp_password, &argp->newpw)) { in yppasswdproc_update_1_svc() 573 argp->newpw.pw_name); in yppasswdproc_update_1_svc() [all …]
|
/freebsd/lib/libc/i386/gen/ |
H A D | makecontext.c | 69 intptr_t *argp; in __makecontext() local 123 argp = (intptr_t *)stack_top; in __makecontext() 132 *argp = (intptr_t)_ctx_start; /* overwritten with same value */ in __makecontext() 133 argp++; in __makecontext() 134 *argp = (intptr_t)start; in __makecontext() 135 argp++; in __makecontext() 140 *argp = va_arg(ap, intptr_t); in __makecontext() 141 argp++; in __makecontext() 146 *argp = (intptr_t)ucp; in __makecontext() 157 ucp->uc_mcontext.mc_esi = (int)argp; in __makecontext()
|
/freebsd/lib/libc/stdio/ |
H A D | xprintf_int.c | 258 const union arg *argp; in __printf_render_int() local 312 argp = arg[0]; in __printf_render_int() 319 if (sign && argp->intmaxarg < 0) { in __printf_render_int() 320 uu = -argp->intmaxarg; in __printf_render_int() 323 uu = argp->uintmaxarg; in __printf_render_int() 325 if (sign && argp->longarg < 0) { in __printf_render_int() 326 uu = (u_long)-argp->longarg; in __printf_render_int() 329 uu = argp->ulongarg; in __printf_render_int() 331 if (sign && (short)argp->intarg < 0) { in __printf_render_int() 332 uu = -(short)argp->intarg; in __printf_render_int() [all …]
|
/freebsd/usr.sbin/rpc.ypxfrd/ |
H A D | ypxfrd_server.c | 86 ypxfrd_getmap_1_svc(ypxfr_mapname *argp, struct svc_req *rqstp) argument 94 if (yp_validdomain(argp->xfrdomain)) { 98 if (yp_access(argp->xfrmap, (struct svc_req *)rqstp)) { 102 snprintf (buf, sizeof(buf), "%s/%s/%s", yp_dir, argp->xfrdomain, 103 argp->xfrmap); 109 if (argp->xfr_db_type != XFR_DB_BSD_HASH && 110 argp->xfr_db_type != XFR_DB_ANY) { 116 if (argp->xfr_byte_order == XFR_ENDIAN_BIG) { 118 if (argp->xfr_byte_order == XFR_ENDIAN_LITTLE) {
|
/freebsd/contrib/ntp/util/ |
H A D | sht.c | 121 char *argp; in main() local 139 unit = strtoul(argv[1], &argp, 10); in main() 140 if (argp == argv[1]) in main() 142 else if (*argp == ':') in main() 143 argp++; in main() 148 switch (*argp) { in main() 150 p->nsamples=atoi(argp+1); in main() 154 p->leap=atoi(argp+1); in main() 158 p->precision=-atoi(argp+1); in main() 165 while (*++argp) { in main() [all …]
|
/freebsd/contrib/telnet/telnet/ |
H A D | main.c | 352 char *args[9], **argp = args; in main() local 356 *argp++ = prompt; in main() 358 *argp++ = strdup("-l"); in main() 359 *argp++ = user; in main() 362 *argp++ = strdup("-s"); in main() 363 *argp++ = src_addr; in main() 365 *argp++ = argv[0]; /* host */ in main() 367 *argp++ = argv[1]; /* port */ in main() 368 *argp = 0; in main() 372 if (tn(argp - args, args) == 1) in main()
|