xp                129 htags/anchor.c 		XARGS *xp;
xp                132 htags/anchor.c 		if ((xp = anchor_input[db]) == NULL)
xp                138 htags/anchor.c 		while ((ctags_xid = xargs_read(xp)) != NULL) {
xp                148 htags/anchor.c 				xargs_unread(xp);
xp                142 libutil/xargs.c #define LT_MAX ((xp->max_args == 0 || count < xp->max_args))
xp                156 libutil/xargs.c 		if (xp->put_gpath && !test("b", ++path))\
xp                162 libutil/xargs.c 	xp->seqno++;\
xp                163 libutil/xargs.c 	if (xp->put_gpath)\
xp                165 libutil/xargs.c 	if (xp->skip_assembly && locatestring(path, ".s", MATCH_AT_LAST|IGNORE_CASE) != NULL) {\
xp                166 libutil/xargs.c 		if (xp->verbose)\
xp                167 libutil/xargs.c 			xp->verbose(path + 2, xp->seqno, 1);\
xp                169 libutil/xargs.c 		if (xp->verbose)\
xp                170 libutil/xargs.c 			xp->verbose(path + 2, xp->seqno, 0);\
xp                192 libutil/xargs.c execute_command(XARGS *xp)
xp                206 libutil/xargs.c 	if (*xp->command == '"')
xp                213 libutil/xargs.c 	meta_p = locatestring(xp->command, "%s", MATCH_FIRST);
xp                215 libutil/xargs.c 		strbuf_nputs(comline, xp->command, meta_p - xp->command);
xp                218 libutil/xargs.c 		strbuf_puts(comline, xp->command);
xp                224 libutil/xargs.c 	switch (xp->type) {
xp                228 libutil/xargs.c 			fseek(xp->ip, xp->fptr, SEEK_SET)
xp                232 libutil/xargs.c 				((p = (strbuf_getlen(xp->path) > 0 ?
xp                233 libutil/xargs.c 				strbuf_value(xp->path) :
xp                234 libutil/xargs.c 				strbuf_fgets(xp->path, xp->ip, STRBUF_NOCRLF))) != NULL))
xp                237 libutil/xargs.c 			strbuf_reset(xp->path)
xp                240 libutil/xargs.c 		xp->fptr = ftell(xp->ip);
xp                243 libutil/xargs.c 		for (; LT_MAX && xp->argc > 0; xp->argc--, xp->argv++)
xp                244 libutil/xargs.c 			APPEND_ARGUMENT(xp->argv[0])
xp                247 libutil/xargs.c 		for (; LT_MAX && xp->curp < xp->endp; xp->curp += length + 1)
xp                248 libutil/xargs.c 			APPEND_ARGUMENT(xp->curp)
xp                263 libutil/xargs.c 	if (*xp->command == '"')
xp                284 libutil/xargs.c 	XARGS *xp;
xp                286 libutil/xargs.c 	xp  = check_calloc(sizeof(XARGS), 1);
xp                287 libutil/xargs.c 	xp->command = check_strdup(command);
xp                288 libutil/xargs.c 	xp->type = 0;
xp                289 libutil/xargs.c 	xp->pipe = NULL;
xp                290 libutil/xargs.c 	xp->result = strbuf_open(0);
xp                291 libutil/xargs.c 	xp->end_of_arg = 0;
xp                292 libutil/xargs.c 	xp->unread = 0;
xp                293 libutil/xargs.c 	xp->max_args = max_args;
xp                294 libutil/xargs.c 	xp->seqno = 0;
xp                295 libutil/xargs.c 	xp->skip_assembly = 0;
xp                300 libutil/xargs.c 	xp->verbose = NULL;
xp                309 libutil/xargs.c 	xp->ignore_error = 0;
xp                314 libutil/xargs.c 	xp->put_gpath = 0;
xp                318 libutil/xargs.c 	xp->trim_line = 0;
xp                320 libutil/xargs.c 	return xp;
xp                337 libutil/xargs.c 	XARGS *xp = xargs_open_generic(command, max_args);
xp                339 libutil/xargs.c 	xp->type = XARGS_FILE;
xp                340 libutil/xargs.c 	xp->ip = ip;
xp                341 libutil/xargs.c 	xp->path = strbuf_open(0);
xp                342 libutil/xargs.c 	xp->fptr = 0;
xp                343 libutil/xargs.c 	return xp;
xp                361 libutil/xargs.c 	XARGS *xp = xargs_open_generic(command, max_args);
xp                363 libutil/xargs.c 	xp->type = XARGS_ARGV;
xp                364 libutil/xargs.c 	xp->argc = argc;
xp                365 libutil/xargs.c 	xp->argv = argv;
xp                366 libutil/xargs.c 	return xp;
xp                383 libutil/xargs.c 	XARGS *xp = xargs_open_generic(command, max_args);
xp                385 libutil/xargs.c 	xp->type = XARGS_STRBUF;
xp                386 libutil/xargs.c 	xp->curp = strbuf_value(sb);
xp                387 libutil/xargs.c 	xp->endp = xp->curp + strbuf_getlen(sb);
xp                388 libutil/xargs.c 	return xp;
xp                404 libutil/xargs.c 	XARGS *xp = xargs_open_generic(command, max_args);
xp                406 libutil/xargs.c 	xp->type = XARGS_FIND;
xp                407 libutil/xargs.c 	return xp;
xp                416 libutil/xargs.c xargs_read(XARGS *xp)
xp                418 libutil/xargs.c 	assert(xp != NULL);
xp                419 libutil/xargs.c 	if (xp->end_of_arg)
xp                421 libutil/xargs.c 	if (xp->unread) {
xp                422 libutil/xargs.c 		xp->unread = 0;
xp                423 libutil/xargs.c 		return strbuf_value(xp->result);
xp                425 libutil/xargs.c 	if (xp->pipe && strbuf_fgets(xp->result, xp->pipe, STRBUF_NOCRLF) != NULL) {
xp                426 libutil/xargs.c 		if (xp->trim_line)
xp                427 libutil/xargs.c 			strbuf_trim(xp->result);
xp                428 libutil/xargs.c 		return strbuf_value(xp->result);
xp                430 libutil/xargs.c 	if (xp->pipe)
xp                431 libutil/xargs.c 		if (pclose(xp->pipe) != 0 && !xp->ignore_error)
xp                437 libutil/xargs.c 		xp->pipe = execute_command(xp);
xp                438 libutil/xargs.c 		if (xp->pipe && strbuf_fgets(xp->result, xp->pipe, STRBUF_NOCRLF) != NULL) {
xp                439 libutil/xargs.c 			if (xp->trim_line)
xp                440 libutil/xargs.c 				strbuf_trim(xp->result);
xp                441 libutil/xargs.c 			return strbuf_value(xp->result);
xp                443 libutil/xargs.c 		if (xp->pipe) {
xp                444 libutil/xargs.c 			if (pclose(xp->pipe) != 0 && !xp->ignore_error)
xp                447 libutil/xargs.c 			xp->end_of_arg = 1;
xp                449 libutil/xargs.c 	} while (!xp->end_of_arg);
xp                459 libutil/xargs.c xargs_unread(XARGS *xp)
xp                461 libutil/xargs.c 	assert(xp != NULL);
xp                462 libutil/xargs.c 	xp->unread = 1;
xp                470 libutil/xargs.c xargs_close(XARGS *xp)
xp                474 libutil/xargs.c 	assert(xp != NULL);
xp                475 libutil/xargs.c 	count = xp->seqno;
xp                476 libutil/xargs.c 	assert(xp->pipe == NULL);
xp                477 libutil/xargs.c 	free(xp->command);
xp                478 libutil/xargs.c 	strbuf_close(xp->result);
xp                480 libutil/xargs.c 	switch (xp->type) {
xp                482 libutil/xargs.c 		strbuf_close(xp->path);
xp                489 libutil/xargs.c 	free(xp);