Home
last modified time | relevance | path

Searched refs:savefd (Results 1 – 9 of 9) sorted by relevance

/external/virglrenderer/vtest/
Dvtest_renderer.c86 static int savefd = -1; in vtest_block_read() local
97 if (savefd == -1) { in vtest_block_read()
98 savefd = open(getenv("VTEST_SAVE"), in vtest_block_read()
100 if (savefd == -1) { in vtest_block_read()
105 if (write(savefd, buf, size) != size) { in vtest_block_read()
/external/mksh/src/
Dexec.c135 e->savefd = alloc2(NUFILE, sizeof(short), ATEMP); in execute()
137 memset(e->savefd, 0, NUFILE * sizeof(short)); in execute()
172 e->savefd[0] = savefd(0); in execute()
173 e->savefd[1] = savefd(1); in execute()
193 restfd(1, e->savefd[1]); in execute()
195 e->savefd[1] = 0; in execute()
235 e->savefd[0] = savefd(0); in execute()
236 e->savefd[1] = savefd(1); in execute()
1536 if (e->savefd[iop->unit] == 0) { in iosetup()
1539 e->savefd[iop->unit] = -1; in iosetup()
[all …]
Dmain.c997 ep->savefd = NULL; in newenv()
1016 if (ep->savefd != NULL) { in quitenv()
1019 if (ep->savefd[fd]) in quitenv()
1020 restfd(fd, ep->savefd[fd]); in quitenv()
1021 if (ep->savefd[2]) in quitenv()
1106 if (ep->savefd) { in cleanup_parents_env()
1108 if (ep->savefd[fd] > 0) in cleanup_parents_env()
1109 close(ep->savefd[fd]); in cleanup_parents_env()
1110 afree(ep->savefd, &ep->area); in cleanup_parents_env()
1111 ep->savefd = NULL; in cleanup_parents_env()
[all …]
Djobs.c1500 if (ep->savefd && ep->savefd[2]) in check_job()
1501 fd = ep->savefd[2]; in check_job()
Dfuncs.c2478 if (e->savefd != NULL) { in c_exec()
2480 if (e->savefd[i] > 0) in c_exec()
2481 close(e->savefd[i]); in c_exec()
2487 e->savefd[i]) in c_exec()
2490 e->savefd = NULL; in c_exec()
Deval.c1452 ofd1 = savefd(1); in comsub()
1472 ofd1 = savefd(1); in comsub()
Dsh.h818 short *savefd; /* original redirected fds */ member
2531 short savefd(int);
Dhistrap.c788 if ((histfd = savefd(fd)) < 0) in hist_persist_init()
Dmisc.c314 if (!newval || (shl_xtrace->fd = savefd(2)) == -1) in change_xtrace()