Home
last modified time | relevance | path

Searched +full:2 +full:- +full:environ (Results 1 – 25 of 371) sorted by relevance

12345678910>>...15

/third_party/musl/libc-test/src/functional/
Denv.c10 extern char **environ;
17 if (!environ) in main()
18 t_error("environ is NULL\n"); in main()
19 if (clearenv() || (environ && *environ)) in main()
23 if (strcmp(environ[0],"TEST=1") != 0) in main()
24 t_error("putenv failed: environ[0]: %s, wanted \"TEST=1\"\n", environ[0]); in main()
25 if ((s=environ[1])) in main()
26 t_error("environ[1]: %p, wanted 0\n", s); in main()
33 if ((s=*environ)) in main()
34 t_error("*environ: %p != 0\n", s); in main()
[all …]
/third_party/littlefs/.github/workflows/
Drelease.yml10 runs-on: ubuntu-18.04
13 # - tests passed?
14 # - we are the most recent commit on master?
19 - uses: actions/checkout@v2
26 fetch-depth: 0
29 - uses: dawidd6/action-download-artifact@v2
30 continue-on-error: true
37 - name: find-version
40 LFS_VERSION="$(grep -o '^#define LFS_VERSION .*$' lfs.h \
47 ( git describe --tags --abbrev=0 \
[all …]
/third_party/python/Lib/wsgiref/
Dvalidate.py2 # Licensed under the MIT license: https://opensource.org/licenses/mit-license.php
15 - Environment is a dictionary (and not a subclass).
17 - That all the required keys are in the environment: REQUEST_METHOD,
21 - That HTTP_CONTENT_TYPE and HTTP_CONTENT_LENGTH are not in the
25 - Warns if QUERY_STRING is missing, as the cgi module acts
28 - That CGI-style variables (that don't contain a .) have
29 (non-unicode) string values
31 - That wsgi.version is a tuple
33 - That wsgi.url_scheme is 'http' or 'https' (@@: is this too
36 - Warns if the REQUEST_METHOD is not known (@@: probably too
[all …]
Dhandlers.py15 _monthname = [None, # Dummy so we can use 1-based month numbers
39 ''.encode('utf-8', esc)
42 environ = {}
44 # Take the basic environment from native-unicode os.environ. Attempt to
46 # the bytes->unicode decoding step that will already have taken place.
47 for k, v in os.environ.items():
50 # On win32, the os.environ is natively Unicode. Different servers
53 software = os.environ.get('SERVER_SOFTWARE', '').lower()
55 # On IIS, the HTTP request will be decoded as UTF-8 as long
56 # as the input is a valid UTF-8 sequence. Otherwise it is
[all …]
/third_party/python/Lib/test/
Dtest_cgi.py44 fp = BytesIO(buf.encode('latin-1')) # FieldStorage expects bytes
46 env['CONTENT_TYPE'] = 'application/x-www-form-urlencoded'
75 ("x=1&y=2.0&z=2-3.%2b0", {'x': ['1'], 'y': ['2.0'], 'z': ['2-3.+0']}),
76 …ustomer&order_id=0bb2e248638833d48cb7fed300000f1b&expire=964546263&lobale=en-US&kid=130003.300038&…
81 'lobale': ['en-US'],
106 def gen_result(data, environ): argument
107 encoding = 'latin-1'
110 form = cgi.FieldStorage(fp=fake_stdin, environ=environ, encoding=encoding)
123 'CONTENT-LENGTH': '558'}
130 POSTDATA = '''--JfISa01
[all …]
Dtest_wsgiref.py27 """Non-socket HTTP server"""
41 """Non-socket HTTP handler"""
50 def hello_app(environ,start_response): argument
52 ('Content-Type','text/plain'),
58 def header_app(environ, start_response): argument
60 ('Content-Type', 'text/plain'),
64 environ['HTTP_X_TEST_HEADER'], environ['QUERY_STRING'],
65 environ['PATH_INFO']
66 ]).encode('iso-8859-1')]
113 "Content-Type: text/plain\r\n"
[all …]
Dtest_posix.py31 os_helper.TESTFN + '-dummy-symlink')
35 sys.maxsize < 2**32 and not (support.is_emscripten or support.is_wasi),
36 'test is only meaningful on 32-bit builds'
65 # no side-effects which we need to cleanup (e.g., fork, wait, abort)
100 # -1 means don't change that value.
101 self.assertIsNone(posix.setresuid(-1, -1, -1))
109 new_user_ids = (current_user_ids[0]+1, -1, -1)
117 # -1 means don't change that value.
118 self.assertIsNone(posix.setresgid(-1, -1, -1))
126 new_group_ids = (current_group_ids[0]+1, -1, -1)
[all …]
Dtest_os.py97 # bpo-41625: On AIX, splice() only works with a socket, not with a pipe.
112 # bpo-37412: On Linux, PATH_MAX is usually around 4096 bytes. On
130 dirname = dirname + ('a' * (dirlen - len(dirname)))
140 need = min_len - (len(cwd) + len(os.path.sep))
210 os.closerange(first, first + 2)
232 # Skip the test on 32-bit platforms: the number of bytes must fit in a
246 # The test does not try to read more than 2 GiB at once because the
251 # os.write() accepts bytes- and buffer-like objects but not strings
278 self.write_windows_console(sys.executable, "-c", code)
279 self.write_windows_console(sys.executable, "-u", "-c", code)
[all …]
/third_party/python/Lib/distutils/
Dsysconfig.py56 stacklevel=2
73 """Parse a Makefile-style file.
92 n, v = m.group(1, 2)
127 elif n in os.environ:
129 item = os.environ[n]
182 # an in-source build.
188 # It's not a configure-based build, so the sys module doesn't have
194 """Do any platform-specific customization of a CCompiler instance.
201 # Perform first-time customization of compiler-related
218 if 'CC' in os.environ:
[all …]
Dutil.py3 Miscellaneous utility functions -- anything that doesn't fit into
21 distinguish platform-specific build directories and platform-specific built
28 linux-i586
29 linux-alpha (?)
30 solaris-2.6-sun4u
33 win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
34 win32 (all others - specifically, sys.platform is returned)
36 For other non-POSIX platforms, currently just returns 'sys.platform'.
41 return 'win-amd64'
43 return 'win-arm32'
[all …]
/third_party/python/Lib/
Dcgi.py24 # -------
90 DeprecationWarning, stacklevel=2)
129 def parse(fp=None, environ=os.environ, keep_blank_values=0, argument
137 environ : environment dictionary; default: os.environ
140 percent-encoded forms should be treated as blank strings.
161 encoding = 'latin-1'
167 if not 'REQUEST_METHOD' in environ:
168 environ['REQUEST_METHOD'] = 'GET' # For testing stand-alone
169 if environ['REQUEST_METHOD'] == 'POST':
170 ctype, pdict = parse_header(environ['CONTENT_TYPE'])
[all …]
D_osx_support.py15 # like "-arch" or "-isdkroot", that may need customization for
33 os.environ['PATH']. Returns the complete filename or None if not found.
36 path = os.environ['PATH']
71 cmd = "%s >'%s' 2>&1" % (commandstring, fp.name)
73 cmd = "%s 2>/dev/null >'%s'" % (commandstring, fp.name)
74 return fp.read().decode('utf-8').strip() if not os.system(cmd) else None
80 or _read_output("/usr/bin/xcrun -find %s" % (toolname,))
99 f = open('/System/Library/CoreServices/SystemVersion.plist', encoding="utf-8")
111 _SYSTEM_VERSION = '.'.join(m.group(1).split('.')[:2])
138 # This is needed for higher-level cross-platform tests of get_platform.
[all …]
Dntpath.py1 # Module 'ntpath' -- common operations on WinNT/Win95 pathnames
8 # strings representing various path-related bits and pieces
84 # volume), or if a pathname after the volume-letter-and-colon or UNC-resource
138 if result_path and result_path[-1] not in seps:
141 ## add separator between UNC and non-absolute path
143 result_drive and result_drive[-1:] != colon):
156 Returns a 2-tuple (drive_or_unc, path); either part may be empty.
174 if len(p) >= 2:
186 if normp[0:2] == sep * 2:
189 start = 8 if normp[:8].upper() == unc_prefix else 2
[all …]
/third_party/googletest/googletest/test/
Dgoogletest-filter-unittest.py34 the GTEST_FILTER environment variable or the --gtest_filter flag.
36 googletest-filter-unittest_ (a program written with Google Test) with different
57 # os.environ. We then use 'eval' to parse the child's output so that an
61 os.environ['EMPTY_VAR'] = ''
63 [sys.executable, '-c', 'import os; print(\'EMPTY_VAR\' in os.environ)'])
68 # We set an env variable to a non-empty string, unset it, and invoke
70 # is NO LONGER in os.environ.
75 os.environ['UNSET_VAR'] = 'X'
76 del os.environ['UNSET_VAR']
78 [sys.executable, '-c', 'import os; print(\'UNSET_VAR\' not in os.environ)'
[all …]
Dgoogletest-output-test.py35 googletest_output_test.py --build_dir=BUILD/DIR --gengolden
36 where BUILD/DIR contains the built googletest-output-test_ file.
37 googletest_output_test.py --gengolden
49 GENGOLDEN_FLAG = '--gengolden'
53 NO_STACKTRACE_SUPPORT_FLAG = '--no_stacktrace_support'
58 GOLDEN_NAME = 'googletest-output-test-golden-lin.txt'
60 PROGRAM_PATH = gtest_test_utils.GetTestExecutablePath('googletest-output-test_')
64 COMMAND_LIST_TESTS = ({}, [PROGRAM_PATH, '--gtest_list_tests'])
65 COMMAND_WITH_COLOR = ({}, [PROGRAM_PATH, '--gtest_color=yes'])
67 '--gtest_print_time',
[all …]
/third_party/python/Tools/scripts/
Drun_tests.py4 tests that can be time-consuming or resource-intensive (e.g. largefile),
6 simply passing a -u option to this script.
18 return arg.startswith('-j') or arg.startswith('--multiprocess')
22 return arg.startswith('-u') or arg.startswith('--use')
25 return arg.startswith('-p') or arg.startswith('--python')
30 '-u', # Unbuffered stdout and stderr
31 '-W', 'default', # Warnings set to 'default'
32 '-bb', # Warnings about bytes/bytearray
35 cross_compile = '_PYTHON_HOST_PLATFORM' in os.environ
36 if (hostrunner := os.environ.get("_PYTHON_HOSTRUNNER")) is None:
[all …]
/third_party/python/Tools/freeze/
DREADME8 ---------------
18 the Python run-time. Some measures have been taken to avoid linking
22 written in Python that it uses) is not included in the binary --
23 instead, the compiled byte-code (the instruction stream used
25 protection of your Python source code, though not much -- a
26 disassembler for Python byte-code is available in the standard Python
32 ----------------------------------------------
34 Previous versions of Freeze used a pretty simple-minded algorithm to
42 code for IMPORT instructions. It may still be confused -- it will not
43 know about calls to the __import__ built-in function, or about import
[all …]
/third_party/python/Doc/library/
Dposix.rst1 :mod:`posix` --- The most common POSIX system calls
8 --------------
18 module provides a superset of the :mod:`posix` interface. On non-Unix operating
23 :func:`~os.putenv` when an entry in ``os.environ`` is changed.
29 .. _posix-large-files:
32 ------------------
41 support for files that are larger than 2 GiB from a C programming model where
42 :c:expr:`int` and :c:expr:`long` are 32-bit values. This is typically accomplished
43 by defining the relevant size and offset types as 64-bit values. Such files are
53 CFLAGS="`getconf LFS_CFLAGS`" OPT="-g -O2 $CFLAGS" \
[all …]
/third_party/node/
Dandroid_configure.py7 print("- Patches List -")
8 …print("[1] [deps/v8/src/trap-handler/trap-handler.h] related to https://github.com/nodejs/node/iss…
10 …os.system('patch -f ./deps/v8/src/trap-handler/trap-handler.h < ./android-patches/trap-handler.h.p…
14 print("android-configure is not supported on Windows yet.")
17 if len(sys.argv) == 2 and sys.argv[1] == "patch":
22 …print("Usage: ./android-configure [patch] <path to the Android NDK> <Android SDK version> <target …
29 if int(sys.argv[2]) < 24:
34 android_sdk_version = sys.argv[2]
39 TOOLCHAIN_PREFIX = "armv7a-linux-androideabi"
42 TOOLCHAIN_PREFIX = "aarch64-linux-android"
[all …]
/third_party/tzdata/
Ddate.c11 2. Redistributions in binary form must reproduce the above copyright
67 while ((ch = getopt(argc, argv, "ucr:")) != EOF && ch != -1) { in main()
78 _("date: error: multiple -r's used")); in main()
100 if (argc - optind != 1) { in main()
125 for (n = 0; environ[n] != NULL; ++n) in dogmt()
128 if (!ckd_add(&n, n, 2) && !ckd_mul(&n, n, sizeof *fakeenv) in dogmt()
132 if (n <= INDEX_MAX / sizeof *fakeenv - 2) in dogmt()
133 fakeenv = malloc((n + 2) * sizeof *fakeenv); in dogmt()
142 for (from = 1; environ[from] != NULL; ++from) in dogmt()
143 if (strncmp(environ[from], "TZ=", 3) != 0) in dogmt()
[all …]
/third_party/node/tools/gyp/pylib/gyp/
Dmac_tool.py3 # Use of this source code is governed by a BSD-style license that can be
6 """Utility functions to perform Xcode-style build steps.
8 These functions are executed via gyp-mac-tool when using the Makefile generator.
46 """Transforms a tool name like copy-info-plist to CopyInfoPlist"""
47 return name_string.title().replace("-", "")
57 # single-file branch below doesn't. This should probably be changed to
58 # be consistent with the single-file branch.
86 args = ["xcrun", "ibtool", "--errors", "--warnings", "--notices"]
88 if os.environ["XCODE_VERSION_ACTUAL"] > "0700":
89 args.extend(["--auto-activate-custom-fonts"])
[all …]
Dcommon.py2 # Use of this source code is governed by a BSD-style license that can be
63 if len(target_split) == 2:
69 if len(target_split) == 2:
79 # - a fully defined build file, either absolute or relative to the current
81 # - a target name
82 # - a toolset
93 # parsed_build_file is not a usable path as-is. Resolve it by
96 # and os.path.join will return it as-is.
121 if var in os.environ:
122 return os.environ[var]
[all …]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
Dmac_tool.py3 # Use of this source code is governed by a BSD-style license that can be
6 """Utility functions to perform Xcode-style build steps.
8 These functions are executed via gyp-mac-tool when using the Makefile generator.
46 """Transforms a tool name like copy-info-plist to CopyInfoPlist"""
47 return name_string.title().replace("-", "")
57 # single-file branch below doesn't. This should probably be changed to
58 # be consistent with the single-file branch.
86 args = ["xcrun", "ibtool", "--errors", "--warnings", "--notices"]
88 if os.environ["XCODE_VERSION_ACTUAL"] > "0700":
89 args.extend(["--auto-activate-custom-fonts"])
[all …]
Dcommon.py2 # Use of this source code is governed by a BSD-style license that can be
63 if len(target_split) == 2:
69 if len(target_split) == 2:
79 # - a fully defined build file, either absolute or relative to the current
81 # - a target name
82 # - a toolset
93 # parsed_build_file is not a usable path as-is. Resolve it by
96 # and os.path.join will return it as-is.
121 if var in os.environ:
122 return os.environ[var]
[all …]
/third_party/node/deps/npm/node_modules/color-support/
DREADME.md1 # color-support
6-ci.org/isaacs/color-support.svg?branch=master)](https://travis-ci.org/isaacs/color-support) [![Co…
8 This is similar to `supports-color`, but it does not read
13 2. If stdout is not a TTY, not supported, unless the `ignoreTTY`
16 3. If the `TERM` environ is `dumb`, not supported, unless the
23 7. Handle continuous-integration servers. If `CI` or
27 6. Guess based on the `TERM_PROGRAM` environ. These terminals support
30 - `iTerm.app` version 3.x supports 16m colors, below support 256
31 - `MacTerm` supports 16m colors
32 - `Apple_Terminal` supports 256 colors
[all …]

12345678910>>...15