Lines Matching defs:sys

13 import sys
35 sys.maxsize < 2**32 and not (support.is_emscripten or support.is_wasi),
192 fp = os.open(sys.executable, os.O_RDONLY)
196 os.chdir(os.path.split(sys.executable)[0])
197 posix.execve(fp, [sys.executable, '-c', 'pass'], os.environ)
209 os.chdir(os.path.split(sys.executable)[0])
210 posix.execve(sys.executable, [sys.executable, '-c', 'pass'], os.environ)
408 if inst.errno == errno.EINVAL and sys.platform.startswith(
652 if sys.platform == "vxworks":
734 if sys.platform == "vxworks":
761 big_value = (2**31 if sys.platform != "vxworks" else 2**15)
1087 if sys.platform == 'darwin':
1132 if sys.platform != "darwin":
1157 if not sys.platform.startswith(('freebsd', 'netbsd')):
1197 if not sys.platform.startswith("freebsd"):
1217 if not sys.platform.startswith("freebsd"):
1530 if sys.platform == 'darwin':
1561 NOOP_PROGRAM = (sys.executable, '-I', '-S', '-c', 'pass')
1570 return (sys.executable, '-I', '-S', *args)
1636 sys.executable,
1637 [sys.executable, '-c', 'pass'],
1645 sys.executable,
1646 [sys.executable, '-c', 'pass'],
1654 self.spawn_func(sys.executable,
1655 [sys.executable, "-c", "pass"],
1660 sys.executable,
1661 [sys.executable, '-c', 'pass'],
1669 self.spawn_func(sys.executable,
1670 [sys.executable, "-c", "pass"],
1681 sys.executable,
1682 [sys.executable, '-c', code],
1690 self.spawn_func(sys.executable,
1691 [sys.executable, "-c", "pass"],
1694 self.spawn_func(sys.executable,
1695 [sys.executable, "-c", "pass"],
1698 self.spawn_func(sys.executable,
1699 [sys.executable, "-c", "pass"],
1717 pid = self.spawn_func(sys.executable,
1718 [sys.executable, "-c", code],
1743 sys.executable,
1744 [sys.executable, '-c', code],
1755 self.spawn_func(sys.executable,
1756 [sys.executable, "-c", "pass"],
1759 self.spawn_func(sys.executable,
1760 [sys.executable, "-c", "pass"],
1763 self.spawn_func(sys.executable,
1764 [sys.executable, "-c", "pass"],
1768 @unittest.skipIf(sys.platform.startswith(('freebsd', 'netbsd')),
1774 import os, sys
1776 sys.exit(101)
1778 sys.exit(102)""")
1780 sys.executable,
1781 [sys.executable, '-c', code],
1788 @unittest.skipIf(sys.platform.startswith(('freebsd', 'netbsd')),
1794 import os, sys
1796 sys.exit(101)
1798 sys.exit(102)""")
1800 sys.executable,
1801 [sys.executable, '-c', code],
1852 import sys
1853 sys.stdout.write("hello")
1891 import sys
1892 sys.stdout.write("hello")
1923 os.symlink(sys.executable, program_fullpath)
1948 @unittest.skipUnless(sys.platform == "darwin", "test weak linking on macOS")