Home
last modified time | relevance | path

Searched refs:redir (Results 1 – 25 of 39) sorted by relevance

12

/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_redirector.py26 redir = WidgetRedirector(self.text)
27 self.assertEqual(redir.widget, self.text)
28 self.assertEqual(redir.tk, self.text.tk)
30 redir.close() # restore self.tk, self.text
33 redir = WidgetRedirector(self.text)
34 redir.register('insert', Func)
35 redir.close()
36 self.assertEqual(redir._operations, {})
57 self.redir = WidgetRedirector(self.text)
59 self.orig_insert = self.redir.register('insert', self.func)
[all …]
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_widgetredir.py28 redir = WidgetRedirector(self.text)
29 self.assertEqual(redir.widget, self.text)
30 self.assertEqual(redir.tk, self.text.tk)
32 redir.close() # restore self.tk, self.text
35 redir = WidgetRedirector(self.text)
36 redir.register('insert', Func)
37 redir.close()
38 self.assertEqual(redir._operations, {})
58 self.redir = WidgetRedirector(self.text)
60 self.orig_insert = self.redir.register('insert', self.func)
[all …]
/external/one-true-awk/testdir/
DT.redir1 echo T.redir: test redirections
6 diff foo /etc/passwd || echo 'BAD: T.redir (print >"foo")'
10 diff foo /etc/passwd || echo 'BAD: T.redir (print >>"foo")'
15 diff foo /etc/passwd || echo 'BAD: T.redir (print > and >>"foo")'
19 diff foo /etc/passwd || echo 'BAD: T.redir (print | "cat >foo")'
28 diff foo1 foo2 || echo 'BAD: T.redir (buffering)'
32 diff foo2 /etc/passwd || echo 'BAD: T.redir (print >"/dev/stderr")'
33 diff foo1 /dev/null || echo 'BAD: T.redir (print >"/dev/stderr")'
37 diff foo1 /etc/passwd || echo 'BAD: T.redir (print >"/dev/stdout")'
38 diff foo2 /dev/null || echo 'BAD: T.redir (print >"/dev/stderr")'
/external/python/cpython2/Lib/idlelib/
DWidgetRedirector.py131 def __init__(self, redir, operation): argument
137 self.redir = redir
139 self.tk = redir.tk # redundant with self.redir
140 self.orig = redir.orig # redundant with self.redir
142 self.tk_call = redir.tk.call
143 self.orig_and_operation = (redir.orig, operation)
146 return "OriginalCommand(%r, %r)" % (self.redir, self.operation)
163 redir = WidgetRedirector(text)
167 original_insert = redir.register("insert", my_insert)
DPercolator.py9 self.redir = WidgetRedirector(text)
11 self.bottom.insert = self.redir.register("insert", self.insert)
12 self.bottom.delete = self.redir.register("delete", self.delete)
20 self.redir.close(); self.redir = None
/external/python/cpython3/Lib/idlelib/
Dredirector.py131 def __init__(self, redir, operation): argument
137 self.redir = redir
139 self.tk = redir.tk # redundant with self.redir
140 self.orig = redir.orig # redundant with self.redir
142 self.tk_call = redir.tk.call
143 self.orig_and_operation = (redir.orig, operation)
147 self.redir, self.operation)
163 redir = WidgetRedirector(text)
167 original_insert = redir.register("insert", my_insert)
Dpercolator.py10 self.redir = WidgetRedirector(text)
12 self.bottom.insert = self.redir.register("insert", self.insert)
13 self.bottom.delete = self.redir.register("delete", self.delete)
22 self.redir.close()
23 self.redir = None
/external/curl/tests/data/
Dtest22284 <url_homepage>http://freshmeat.net/redir/curl/1612/url_homepage/</url_homepage>
85 <url_tgz>http://freshmeat.net/redir/curl/1612/url_tgz/</url_tgz>
86 <url_bz2>http://freshmeat.net/redir/curl/1612/url_bz2/</url_bz2>
87 <url_zip>http://freshmeat.net/redir/curl/1612/url_zip/</url_zip>
88 <url_changelog>http://freshmeat.net/redir/curl/1612/url_changelog/</url_changelog>
89 <url_rpm>http://freshmeat.net/redir/curl/1612/url_rpm/</url_rpm>
90 <url_deb>http://freshmeat.net/redir/curl/1612/url_deb/</url_deb>
91 <url_osx>http://freshmeat.net/redir/curl/1612/url_osx/</url_osx>
92 <url_bsdport>http://freshmeat.net/redir/curl/1612/url_bsdport/</url_bsdport>
94 <url_cvs>http://freshmeat.net/redir/curl/1612/url_cvs/</url_cvs>
[all …]
Dtest112385 <url_homepage>http://freshmeat.net/redir/curl/1612/url_homepage/</url_homepage>
86 <url_tgz>http://freshmeat.net/redir/curl/1612/url_tgz/</url_tgz>
87 <url_bz2>http://freshmeat.net/redir/curl/1612/url_bz2/</url_bz2>
88 <url_zip>http://freshmeat.net/redir/curl/1612/url_zip/</url_zip>
89 <url_changelog>http://freshmeat.net/redir/curl/1612/url_changelog/</url_changelog>
90 <url_rpm>http://freshmeat.net/redir/curl/1612/url_rpm/</url_rpm>
91 <url_deb>http://freshmeat.net/redir/curl/1612/url_deb/</url_deb>
92 <url_osx>http://freshmeat.net/redir/curl/1612/url_osx/</url_osx>
93 <url_bsdport>http://freshmeat.net/redir/curl/1612/url_bsdport/</url_bsdport>
95 <url_cvs>http://freshmeat.net/redir/curl/1612/url_cvs/</url_cvs>
[all …]
Dtest23284 <url_homepage>http://freshmeat.net/redir/curl/1612/url_homepage/</url_homepage>
85 <url_tgz>http://freshmeat.net/redir/curl/1612/url_tgz/</url_tgz>
86 <url_bz2>http://freshmeat.net/redir/curl/1612/url_bz2/</url_bz2>
87 <url_zip>http://freshmeat.net/redir/curl/1612/url_zip/</url_zip>
88 <url_changelog>http://freshmeat.net/redir/curl/1612/url_changelog/</url_changelog>
89 <url_rpm>http://freshmeat.net/redir/curl/1612/url_rpm/</url_rpm>
90 <url_deb>http://freshmeat.net/redir/curl/1612/url_deb/</url_deb>
91 <url_osx>http://freshmeat.net/redir/curl/1612/url_osx/</url_osx>
92 <url_bsdport>http://freshmeat.net/redir/curl/1612/url_bsdport/</url_bsdport>
94 <url_cvs>http://freshmeat.net/redir/curl/1612/url_cvs/</url_cvs>
[all …]
Dtest23085 <url_homepage>http://freshmeat.net/redir/curl/1612/url_homepage/</url_homepage>
86 <url_tgz>http://freshmeat.net/redir/curl/1612/url_tgz/</url_tgz>
87 <url_bz2>http://freshmeat.net/redir/curl/1612/url_bz2/</url_bz2>
88 <url_zip>http://freshmeat.net/redir/curl/1612/url_zip/</url_zip>
89 <url_changelog>http://freshmeat.net/redir/curl/1612/url_changelog/</url_changelog>
90 <url_rpm>http://freshmeat.net/redir/curl/1612/url_rpm/</url_rpm>
91 <url_deb>http://freshmeat.net/redir/curl/1612/url_deb/</url_deb>
92 <url_osx>http://freshmeat.net/redir/curl/1612/url_osx/</url_osx>
93 <url_bsdport>http://freshmeat.net/redir/curl/1612/url_bsdport/</url_bsdport>
95 <url_cvs>http://freshmeat.net/redir/curl/1612/url_cvs/</url_cvs>
[all …]
Dtest31480 <url_homepage>http://freshmeat.net/redir/curl/1612/url_homepage/</url_homepage>
81 <url_tgz>http://freshmeat.net/redir/curl/1612/url_tgz/</url_tgz>
82 <url_bz2>http://freshmeat.net/redir/curl/1612/url_bz2/</url_bz2>
83 <url_zip>http://freshmeat.net/redir/curl/1612/url_zip/</url_zip>
84 <url_changelog>http://freshmeat.net/redir/curl/1612/url_changelog/</url_changelog>
85 <url_rpm>http://freshmeat.net/redir/curl/1612/url_rpm/</url_rpm>
86 <url_deb>http://freshmeat.net/redir/curl/1612/url_deb/</url_deb>
87 <url_osx>http://freshmeat.net/redir/curl/1612/url_osx/</url_osx>
88 <url_bsdport>http://freshmeat.net/redir/curl/1612/url_bsdport/</url_bsdport>
90 <url_cvs>http://freshmeat.net/redir/curl/1612/url_cvs/</url_cvs>
[all …]
Dtest12458 --proto-redir
35 --proto deny must override --proto-redir allow
38 --location --proto +all,-ftp --proto-redir -all,+ftp http://%HOSTIP:%HTTPPORT/1245
Dtest3256 --proto-redir
45 -k https://%HOSTIP:%HTTPSPORT/325 --proto-redir -http --location
Dtest126130 'redirect_url' with --location and --max-redir
33 http://%HOSTIP:%HTTPPORT/we/want/our/1261 -w '%{redirect_url}\n' --location --max-redir 0
Dtest128622 HTTP/1.1 302 Thanks for this, but we want to redir you!
44 HTTP/1.1 302 Thanks for this, but we want to redir you!
/external/fmtlib/test/
Dgtest-extra-test.cc344 OutputRedirect redir(file.get()); in TEST() local
362 std::unique_ptr<OutputRedirect> redir{nullptr}; in TEST() local
363 EXPECT_SYSTEM_ERROR_NOASSERT(redir.reset(new OutputRedirect(f.get())), EBADF, in TEST()
365 redir.reset(nullptr); in TEST()
374 std::unique_ptr<OutputRedirect> redir{nullptr}; in TEST() local
376 redir.reset(new OutputRedirect(f.get())), EBADF, in TEST()
386 OutputRedirect redir(file.get()); in TEST() local
388 EXPECT_EQ("censored", sanitize(redir.restore_and_read())); in TEST()
389 EXPECT_EQ("", sanitize(redir.restore_and_read())); in TEST()
402 OutputRedirect redir(f.get()); in TEST() local
[all …]
/external/iproute2/tc/
Dm_mirred.c71 int ok = 0, iok = 0, mirror = 0, redir = 0, ingress = 0, egress = 0; in parse_direction() local
118 if (redir) { in parse_direction()
126 } else if (!redir && matches(*argv, "redirect") == 0) { in parse_direction()
127 redir = 1; in parse_direction()
136 } else if ((redir || mirror) && matches(*argv, "dev") == 0) { in parse_direction()
/external/u-boot/common/
Dcli_hush.c1210 struct redir_struct *redir; local
1212 for (redir=prog->redirects; redir; redir=redir->next) {
1213 if (redir->dup == -1 && redir->word.gl_pathv == NULL) {
1217 if (redir->dup == -1) {
1218 mode=redir_table[redir->type].mode;
1219 openfd = open(redir->word.gl_pathv[0], mode, 0666);
1223 perror_msg("error opening %s", redir->word.gl_pathv[0]);
1227 openfd = redir->dup;
1230 if (openfd != redir->fd) {
1231 if (squirrel && redir->fd < 3) {
[all …]
/external/python/pybind11/tests/
Dtest_iostream.cpp35 py::scoped_ostream_redirect redir; in TEST_SUBMODULE() local
40 py::scoped_ostream_redirect redir(std::cout, py::module::import("sys").attr("stdout")); in TEST_SUBMODULE() local
49 py::scoped_ostream_redirect redir(std::cerr, py::module::import("sys").attr("stderr")); in TEST_SUBMODULE() local
/external/libxml2/include/libxml/
Dnanohttp.h43 char **redir,
52 char **redir);
/external/curl/docs/cmdline-opts/
Dproto-redir.d1 Long: proto-redir
12 curl --proto-redir -all,http,https http://example.com
/external/u-boot/test/image/
Dtest-imagetools.sh81 local redir="$1"
86 ${cmd} >${redir}
/external/mksh/src/
Dsyn.c856 char redir[8]; in syntaxerr() local
883 s = snptreef(redir, sizeof(redir), Tft_R, yylval.iop); in syntaxerr()
894 redir[0] = c; in syntaxerr()
895 redir[1] = '\0'; in syntaxerr()
897 shf_snprintf(redir, sizeof(redir), in syntaxerr()
899 s = redir; in syntaxerr()
/external/libxml2/
Dnanohttp.c1255 xmlNanoHTTPOpenRedir(const char *URL, char **contentType, char **redir) { in xmlNanoHTTPOpenRedir() argument
1257 if (redir != NULL) *redir = NULL; in xmlNanoHTTPOpenRedir()
1258 return(xmlNanoHTTPMethodRedir(URL, NULL, NULL, contentType, redir, NULL,0)); in xmlNanoHTTPOpenRedir()
1357 char **contentType, char **redir, in xmlNanoHTTPMethodRedir() argument
1571 if ((redir != NULL) && (redirURL != NULL)) { in xmlNanoHTTPMethodRedir()
1572 *redir = redirURL; in xmlNanoHTTPMethodRedir()
1576 if (redir != NULL) in xmlNanoHTTPMethodRedir()
1577 *redir = NULL; in xmlNanoHTTPMethodRedir()

12