Lines Matching refs:sqp
7871 static int save_fd_on_redirect(int fd, int avoid_fd, struct squirrel **sqp) in save_fd_on_redirect() argument
7889 if (sqp == NULL) { in save_fd_on_redirect()
7929 if (sqp == ERR_PTR) { in save_fd_on_redirect()
7936 *sqp = add_squirrel(*sqp, fd, avoid_fd); in save_fd_on_redirect()
8009 static int setup_redirects(struct command *prog, struct squirrel **sqp) in setup_redirects() argument
8019 save_fd_on_redirect(redir->rd_fd, /*avoid:*/ 0, sqp); in setup_redirects()
8054 if (newfd == redir->rd_fd && sqp) { in setup_redirects()
8060 *sqp = add_squirrel_closed(*sqp, newfd); in setup_redirects()
8075 closed = save_fd_on_redirect(redir->rd_fd, /*avoid:*/ newfd, sqp); in setup_redirects()
8090 if (internally_opened_fd(newfd, sqp && sqp != ERR_PTR ? *sqp : NULL)) { in setup_redirects()
9180 #define redirect_and_varexp_helper(command, sqp, argv_expanded) \ argument
9181 redirect_and_varexp_helper(command, sqp)
9185 struct squirrel **sqp, in redirect_and_varexp_helper() argument
9198 return setup_redirects(command, sqp); in redirect_and_varexp_helper()