/freebsd/usr.sbin/pnfsdscopymr/ |
H A D | pnfsdscopymr.c | 74 struct addrinfo hints, *res, *nres; in main() local 188 nres = res; in main() 189 while (nres != NULL) { in main() 191 nres->ai_family) { in main() 197 if (nres->ai_family == AF_INET && in main() 198 nres->ai_addrlen >= sizeof(sin)) { in main() 199 memcpy(&sin, nres->ai_addr, in main() 204 } else if (nres->ai_family == in main() 205 AF_INET6 && nres->ai_addrlen >= in main() 207 memcpy(&sin6, nres in main() [all...] |
/freebsd/libexec/phttpget/ |
H A D | phttpget.c | 307 int nres = 0; /* Number of next reply to receive */ in main() local 354 while (nres < argc) { in main() 385 firstreq = nres; in main() 436 if (nres == nreq) { in main() 578 nres++; in main() 588 fname = strrchr(argv[nres], '/'); in main() 590 fname = argv[nres]; in main() 595 argv[nres]); in main() 670 fprintf(stderr, "http://%s/%s: %d ", servername, argv[nres], in main() 682 nres++; in main() [all …]
|
/freebsd/contrib/lua/src/ |
H A D | lcorolib.c | 33 int status, nres; in auxresume() local 39 status = lua_resume(co, L, narg, &nres); in auxresume() 41 if (l_unlikely(!lua_checkstack(L, nres + 1))) { in auxresume() 42 lua_pop(co, nres); /* remove results anyway */ in auxresume() 46 lua_xmove(co, L, nres); /* move yielded values */ in auxresume() 47 return nres; in auxresume()
|
H A D | ldo.c | 387 static void rethook (lua_State *L, CallInfo *ci, int nres) { in rethook() argument 389 StkId firstres = L->top.p - nres; /* index of first result */ in rethook() 399 luaD_hook(L, LUA_HOOKRET, -1, ftransfer, nres); /* call it */ in rethook() 433 l_sinline void moveresults (lua_State *L, StkId res, int nres, int wanted) { in moveresults() argument 441 if (nres == 0) /* no results? */ in moveresults() 444 setobjs2s(L, res, L->top.p - nres); /* move it to proper place */ in moveresults() 448 wanted = nres; /* we want all results */ in moveresults() 453 L->ci->u2.nres = nres; in moveresults() 458 rethook(L, L->ci, nres); in moveresults() 463 wanted = nres; /* we want all results */ in moveresults() [all …]
|
H A D | lapi.h | 26 #define adjustresults(L,nres) \ argument 27 { if ((nres) <= LUA_MULTRET && L->ci->top.p < L->top.p) \
|
H A D | ltests.c | 1421 int nres = getnum; in runC() local 1422 lua_call(L1, narg, nres); in runC() 1426 int nres = getnum; in runC() local 1428 lua_callk(L1, narg, nres, i, Cfunck); in runC() 1549 int nres = getnum; in runC() local 1550 status = lua_pcall(L1, narg, nres, getnum); in runC() 1554 int nres = getnum; in runC() local 1556 status = lua_pcallk(L1, narg, nres, 0, i, Cfunck); in runC() 1649 int nres; in runC() local 1650 status = lua_resume(lua_tothread(L1, i), L, getnum, &nres); in runC() [all …]
|
H A D | lvm.c | 863 L->top.p = ra + ci->u2.nres; in luaV_finishOp() 1730 ci->u2.nres = n; /* save number of returns */ in luaV_execute() 1753 int nres; in luaV_execute() local 1756 for (nres = ci->nresults; l_unlikely(nres > 0); nres--) in luaV_execute() 1770 int nres = ci->nresults; in luaV_execute() local 1772 if (nres == 0) in luaV_execute() 1778 for (; l_unlikely(nres > 1); nres--) in luaV_execute()
|
H A D | ldo.h | 78 LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, int nres);
|
H A D | lua.c | 153 static int docall (lua_State *L, int narg, int nres) { in docall() argument 160 status = lua_pcall(L, narg, nres, base); in docall()
|
H A D | lstate.h | 196 int nres; /* number of values returned */ member
|
H A D | lua.h | 312 int *nres);
|
/freebsd/sbin/hastd/ |
H A D | hastd.c | 484 struct hast_resource *nres, *cres, *tres; in hastd_reload() local 612 TAILQ_FOREACH(nres, &newcfg->hc_resources, hr_next) { in hastd_reload() 613 if (strcmp(cres->hr_name, nres->hr_name) == 0) in hastd_reload() 616 if (nres == NULL) { in hastd_reload() 626 TAILQ_FOREACH_SAFE(nres, &newcfg->hc_resources, hr_next, tres) { in hastd_reload() 628 if (strcmp(cres->hr_name, nres->hr_name) == 0) in hastd_reload() 632 TAILQ_REMOVE(&newcfg->hc_resources, nres, hr_next); in hastd_reload() 633 TAILQ_INSERT_TAIL(&cfg->hc_resources, nres, hr_next); in hastd_reload() 634 pjdlog_info("Resource %s added.", nres->hr_name); in hastd_reload() 659 TAILQ_FOREACH_SAFE(nres, &newcfg->hc_resources, hr_next, tres) { in hastd_reload() [all …]
|
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lcorolib.c | 30 int nres = lua_gettop(co); in auxresume() local 31 if (!lua_checkstack(L, nres + 1)) { in auxresume() 32 lua_pop(co, nres); /* remove results anyway */ in auxresume() 36 lua_xmove(co, L, nres); /* move yielded values */ in auxresume() 37 return nres; in auxresume()
|
H A D | lapi.h | 17 #define adjustresults(L,nres) \ argument 18 { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }
|
/freebsd/lib/libc/net/ |
H A D | rcmd.c | 89 int refused, nres; in rcmd_af() local 134 nres = 0; in rcmd_af() 136 nres++; in rcmd_af() 178 if (nres > 1) { in rcmd_af() 199 if (nres > 1) { in rcmd_af()
|
/freebsd/sys/dev/bhnd/bhndb/ |
H A D | bhndb_subr.c | 654 size_t nres, ndt; in bhndb_alloc_host_resources() local 668 nres = 0; in bhndb_alloc_host_resources() 670 nres++; in bhndb_alloc_host_resources() 716 hr->resource_specs = malloc(sizeof(hr->resource_specs[0]) * (nres + 1), in bhndb_alloc_host_resources() 720 for (size_t i = 0; i < nres; i++) in bhndb_alloc_host_resources() 723 hr->resource_specs[nres].type = -1; in bhndb_alloc_host_resources() 726 hr->resources = malloc(sizeof(hr->resources[0]) * nres, M_BHND, in bhndb_alloc_host_resources()
|
/freebsd/contrib/bc/include/ |
H A D | program.h | 210 * @param nres The number of results returned by the instruction. 213 #define bc_program_retire(p, nres, nops) \ argument 214 (bc_vec_npopAt(&(p)->results, (nops), (p)->results.len - (nres + nops)))
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_iov_api.h | 163 int nres; /* number of resources */ member
|
H A D | ecore_sriov.c | 453 iov->nres, iov->cap, iov->ctrl, in ecore_iov_pci_cfg_info()
|
/freebsd/contrib/unbound/iterator/ |
H A D | iterator.c | 2791 size_t naddr, nres, navail; in processQueryTargets() local 2814 delegpt_count_addr(iq->dp, &naddr, &nres, &navail); in processQueryTargets()
|