Searched refs:npaths (Results 1 – 3 of 3) sorted by relevance
93 static int npaths; /* # pathlist arguments */ variable164 if (npaths == 0) in setpath()238 for (npaths = 0; path = paths[npaths]; npaths++) { in initpaths()317 if (npaths == 0 || pathhead == NULL) in freepaths()336 npaths = 0; in freepaths()
83 unsigned int npaths, ncmds; in dosetpath() local100 npaths = i - 1; in dosetpath()104 ncmds = i - npaths - 1; in dosetpath()106 if (npaths) { in dosetpath()112 npaths = (sizeof syspaths / sizeof *syspaths) - 1; in dosetpath()118 spaths = xmalloc(npaths * sizeof *spaths); in dosetpath()119 setzero(spaths, npaths * sizeof *spaths); in dosetpath()120 cpaths = xmalloc((npaths + 1) * sizeof *cpaths); in dosetpath()121 setzero(cpaths, (npaths + 1) * sizeof *cpaths); in dosetpath()124 for (i = 0; i < npaths; i++) { in dosetpath()[all …]
280 static u_int npaths = 2; variable293 if (npaths >= MAX_PATHS) in path_new()295 memmove(&paths[npaths - stdpaths + 1], &paths[npaths - stdpaths], in path_new()297 paths[npaths - stdpaths] = savestr(path); in path_new()298 npaths++; in path_new()