Lines Matching refs:rsm

2217 static int awk_getline(rstream *rsm, var *v)  in awk_getline()  argument
2230 fd = fileno(rsm->F); in awk_getline()
2231 m = rsm->buffer; in awk_getline()
2232 a = rsm->adv; in awk_getline()
2233 p = rsm->pos; in awk_getline()
2234 size = rsm->size; in awk_getline()
2308 rsm->buffer = m; in awk_getline()
2309 rsm->adv = a + eo; in awk_getline()
2310 rsm->pos = p - eo; in awk_getline()
2311 rsm->size = size; in awk_getline()
2807 #define rsm (G.next_input_file__rsm) in next_input_file() macro
2812 if (rsm.F) in next_input_file()
2813 fclose(rsm.F); in next_input_file()
2814 rsm.F = NULL; in next_input_file()
2815 rsm.pos = rsm.adv = 0; in next_input_file()
2822 rsm.F = stdin; in next_input_file()
2828 rsm.F = xfopen_stdin(fname); in next_input_file()
2835 return &rsm; in next_input_file()
2836 #undef rsm in next_input_file()
2972 rstream *rsm = newfile(R.s); in evaluate() local
2973 if (!rsm->F) { in evaluate()
2975 rsm->F = popen(R.s, "w"); in evaluate()
2976 if (rsm->F == NULL) in evaluate()
2978 rsm->is_pipe = 1; in evaluate()
2980 rsm->F = xfopen(R.s, opn=='w' ? "w" : "a"); in evaluate()
2983 F = rsm->F; in evaluate()
3185 rstream *rsm; in evaluate() local
3189 rsm = newfile(L.s); in evaluate()
3190 if (!rsm->F) { in evaluate()
3193 rsm->F = popen(L.s, "r"); in evaluate()
3194 rsm->is_pipe = TRUE; in evaluate()
3196 rsm->F = fopen_for_read(L.s); /* not xfopen! */ in evaluate()
3202 rsm = iF; in evaluate()
3205 if (!rsm || !rsm->F) { in evaluate()
3214 i = awk_getline(rsm, R.v); in evaluate()
3323 rstream *rsm = newfile(L.s); in evaluate() local
3324 fflush(rsm->F); in evaluate()
3331 rstream *rsm; in evaluate() local
3333 rsm = (rstream *)hash_search(fdhash, L.s); in evaluate()
3334 debug_printf_eval("OC_FBLTIN close: op1:%p s:'%s' rsm:%p\n", op1, L.s, rsm); in evaluate()
3335 if (rsm) { in evaluate()
3338 rsm->is_pipe, rsm->F); in evaluate()
3343 if (rsm->F) in evaluate()
3344 err = rsm->is_pipe ? pclose(rsm->F) : fclose(rsm->F); in evaluate()
3350 free(rsm->buffer); in evaluate()