xp 893 global/global.c XARGS *xp; xp 968 global/global.c xp = xargs_open_with_strbuf(strbuf_value(comline), 0, path_list); xp 974 global/global.c while ((ctags_x = xargs_read(xp)) != NULL) { xp 986 global/global.c while ((ctags_x = xargs_read(xp)) != NULL) { xp 991 global/global.c xargs_close(xp); xp 692 gtags/gtags.c XARGS *xp; xp 696 gtags/gtags.c xp = xargs_open_with_strbuf(strbuf_value(comline), max_args, addlist); xp 697 gtags/gtags.c xp->put_gpath = 1; xp 699 gtags/gtags.c xp->verbose = verbose_updatetags; xp 700 gtags/gtags.c while ((ctags_x = xargs_read(xp)) != NULL) { xp 721 gtags/gtags.c total = xargs_close(xp); xp 749 gtags/gtags.c XARGS *xp; xp 793 gtags/gtags.c xp = xargs_open_with_find(strbuf_value(comline), max_args); xp 794 gtags/gtags.c xp->put_gpath = 1; xp 796 gtags/gtags.c xp->verbose = verbose_createtags; xp 797 gtags/gtags.c while ((ctags_x = xargs_read(xp)) != NULL) { xp 820 gtags/gtags.c total = xargs_close(xp); xp 119 htags/anchor.c XARGS *xp; xp 122 htags/anchor.c if ((xp = anchor_input[db]) == NULL) xp 128 htags/anchor.c while ((ctags_x = xargs_read(xp)) != NULL) { xp 143 htags/anchor.c xargs_unread(xp); xp 131 libutil/xargs.c #define LT_MAX ((xp->max_args == 0 || count < xp->max_args)) xp 145 libutil/xargs.c if (xp->put_gpath && !test("b", ++path))\ xp 151 libutil/xargs.c xp->seqno++;\ xp 152 libutil/xargs.c if (xp->put_gpath)\ xp 154 libutil/xargs.c if (xp->skip_assembly && locatestring(path, ".s", MATCH_AT_LAST|IGNORE_CASE) != NULL) {\ xp 155 libutil/xargs.c if (xp->verbose)\ xp 156 libutil/xargs.c xp->verbose(path + 2, xp->seqno, 1);\ xp 158 libutil/xargs.c if (xp->verbose)\ xp 159 libutil/xargs.c xp->verbose(path + 2, xp->seqno, 0);\ xp 181 libutil/xargs.c execute_command(XARGS *xp) xp 194 libutil/xargs.c meta_p = locatestring(xp->command, "%s", MATCH_FIRST); xp 196 libutil/xargs.c strbuf_nputs(comline, xp->command, meta_p - xp->command); xp 199 libutil/xargs.c strbuf_puts(comline, xp->command); xp 205 libutil/xargs.c switch (xp->type) { xp 209 libutil/xargs.c fseek(xp->ip, xp->fptr, SEEK_SET) xp 213 libutil/xargs.c ((p = (strbuf_getlen(xp->path) > 0 ? xp 214 libutil/xargs.c strbuf_value(xp->path) : xp 215 libutil/xargs.c strbuf_fgets(xp->path, xp->ip, STRBUF_NOCRLF))) != NULL)) xp 218 libutil/xargs.c strbuf_reset(xp->path) xp 221 libutil/xargs.c xp->fptr = ftell(xp->ip); xp 224 libutil/xargs.c for (; LT_MAX && xp->argc > 0; xp->argc--, xp->argv++) xp 225 libutil/xargs.c APPEND_ARGUMENT(xp->argv[0]) xp 228 libutil/xargs.c for (; LT_MAX && xp->curp < xp->endp; xp->curp += length + 1) xp 229 libutil/xargs.c APPEND_ARGUMENT(xp->curp) xp 261 libutil/xargs.c XARGS *xp; xp 263 libutil/xargs.c xp = check_calloc(sizeof(XARGS), 1); xp 264 libutil/xargs.c xp->command = check_strdup(command); xp 265 libutil/xargs.c xp->type = 0; xp 266 libutil/xargs.c xp->pipe = NULL; xp 267 libutil/xargs.c xp->result = strbuf_open(0); xp 268 libutil/xargs.c xp->end_of_arg = 0; xp 269 libutil/xargs.c xp->unread = 0; xp 270 libutil/xargs.c xp->max_args = max_args; xp 271 libutil/xargs.c xp->seqno = 0; xp 272 libutil/xargs.c xp->skip_assembly = 0; xp 277 libutil/xargs.c xp->verbose = NULL; xp 286 libutil/xargs.c xp->ignore_error = 0; xp 291 libutil/xargs.c xp->put_gpath = 0; xp 295 libutil/xargs.c xp->trim_line = 0; xp 297 libutil/xargs.c return xp; xp 314 libutil/xargs.c XARGS *xp = xargs_open_generic(command, max_args); xp 316 libutil/xargs.c xp->type = XARGS_FILE; xp 317 libutil/xargs.c xp->ip = ip; xp 318 libutil/xargs.c xp->path = strbuf_open(0); xp 319 libutil/xargs.c xp->fptr = 0; xp 320 libutil/xargs.c return xp; xp 338 libutil/xargs.c XARGS *xp = xargs_open_generic(command, max_args); xp 340 libutil/xargs.c xp->type = XARGS_ARGV; xp 341 libutil/xargs.c xp->argc = argc; xp 342 libutil/xargs.c xp->argv = argv; xp 343 libutil/xargs.c return xp; xp 360 libutil/xargs.c XARGS *xp = xargs_open_generic(command, max_args); xp 362 libutil/xargs.c xp->type = XARGS_STRBUF; xp 363 libutil/xargs.c xp->curp = strbuf_value(sb); xp 364 libutil/xargs.c xp->endp = xp->curp + strbuf_getlen(sb); xp 365 libutil/xargs.c return xp; xp 381 libutil/xargs.c XARGS *xp = xargs_open_generic(command, max_args); xp 383 libutil/xargs.c xp->type = XARGS_FIND; xp 384 libutil/xargs.c return xp; xp 393 libutil/xargs.c xargs_read(XARGS *xp) xp 395 libutil/xargs.c assert(xp != NULL); xp 396 libutil/xargs.c if (xp->end_of_arg) xp 398 libutil/xargs.c if (xp->unread) { xp 399 libutil/xargs.c xp->unread = 0; xp 400 libutil/xargs.c return strbuf_value(xp->result); xp 402 libutil/xargs.c if (xp->pipe && strbuf_fgets(xp->result, xp->pipe, STRBUF_NOCRLF) != NULL) { xp 403 libutil/xargs.c if (xp->trim_line) xp 404 libutil/xargs.c strbuf_trim(xp->result); xp 405 libutil/xargs.c return strbuf_value(xp->result); xp 407 libutil/xargs.c if (xp->pipe) xp 408 libutil/xargs.c if (pclose(xp->pipe) != 0 && !xp->ignore_error) xp 414 libutil/xargs.c xp->pipe = execute_command(xp); xp 415 libutil/xargs.c if (xp->pipe && strbuf_fgets(xp->result, xp->pipe, STRBUF_NOCRLF) != NULL) { xp 416 libutil/xargs.c if (xp->trim_line) xp 417 libutil/xargs.c strbuf_trim(xp->result); xp 418 libutil/xargs.c return strbuf_value(xp->result); xp 420 libutil/xargs.c if (xp->pipe) { xp 421 libutil/xargs.c if (pclose(xp->pipe) != 0 && !xp->ignore_error) xp 424 libutil/xargs.c xp->end_of_arg = 1; xp 426 libutil/xargs.c } while (!xp->end_of_arg); xp 436 libutil/xargs.c xargs_unread(XARGS *xp) xp 438 libutil/xargs.c assert(xp != NULL); xp 439 libutil/xargs.c xp->unread = 1; xp 447 libutil/xargs.c xargs_close(XARGS *xp) xp 451 libutil/xargs.c assert(xp != NULL); xp 452 libutil/xargs.c count = xp->seqno; xp 453 libutil/xargs.c assert(xp->pipe == NULL); xp 454 libutil/xargs.c free(xp->command); xp 455 libutil/xargs.c strbuf_close(xp->result); xp 457 libutil/xargs.c switch (xp->type) { xp 459 libutil/xargs.c strbuf_close(xp->path); xp 466 libutil/xargs.c free(xp);