Home
last modified time | relevance | path

Searched refs:sys (Results 1 – 25 of 56) sorted by relevance

123

/xnu-8796.141.3/tools/lldbmacros/core/
H A Dsyntax_checker.py13 import sys
25 if len(sys.argv) < 2:
26 print("Error: Unknown arguments", file=sys.stderr)
28 sys.exit(1)
29 for fname in sys.argv[1:]:
31 print("Error: Cannot recognize %s as a file" % fname, file=sys.stderr)
32 sys.exit(1)
43 print("Error: Found a TAB character at %s:%d" % (fname, lineno), file=sys.stderr)
46 print("Error: Found a non ascii character at %s:%d" % (fname, lineno), file=sys.stderr)
49 … print("Error: Syntax check failed. Please fix the errors and try again.", file=sys.stderr)
[all …]
H A Dstandard.py8 import sys
27 self._stdout = stdout or sys.stdout
28 self._stderr = stderr or sys.stderr
31 self.old_stdout, self.old_stderr = sys.stdout, sys.stderr
33 sys.stdout, sys.stderr = self._stdout, self._stderr
37 sys.stdout = self.old_stdout
38 sys.stderr = self.old_stderr
355 self.isatty = os.isatty(sys.__stdout__.fileno())
H A Dcaching.py79 import sys
100 return sys.getsizeof(self)
135 return sys.getsizeof(self)
/xnu-8796.141.3/tools/lldbmacros/
H A Dsysreg.py16 import sys
84 sys.stdout.write(para.text)
86 sys.stdout.write(_GetParaChildrenStr(child))
87 sys.stdout.write(child.tail)
143 sys.stdout.write(_GetIndentedString(2, ''))
144 sys.stdout.write(para.text)
146 sys.stdout.write(_GetParaChildrenStr(child))
147 sys.stdout.write((child.tail))
153 sys.stdout.write(_GetIndentedString(2, ''))
154 sys.stdout.write(para.text)
[all …]
H A Dmacho.py11 import sys
89 low_offset = sys.maxsize
391 import sys
392 if len(sys.argv) < 2:
393 print("Usage: {} /path/to/macho_binary".format(sys.argv[0]))
394 sys.exit(1)
395 with open(sys.argv[-1], 'rb') as fp:
398 p = VisualMachoMap(sys.argv[-1])
400 sys.exit(0)
H A Dktrace.py20 import sys
522 sys.stderr.write((
840 sys.stderr.write('skipped {}/{} ({:4.2f}%) events'.format(
843 sys.stderr.write('\r')
853 sys.stderr.write('{}: wrote {}/{} ({:4.2f}%) events'.format(
858 sys.stderr.write('\r')
860 sys.stderr.write('\n')
861 sys.stderr.write('\n')
H A Dxnu.py7 import sys, os, re, time, getopt, shlex, inspect, xnudefines
79 stream = CommandOutput(summary_function_name, fhandle=sys.stdout)
285 result.SetImmediateOutputFile(sys.__stdout__)
361 stream = CommandOutput(cmd_name, fhandle=sys.stdout)
721 if module_name in sys.modules:
722 reload(sys.modules[module_name])
723 print(module_name + " is reloaded from " + sys.modules[module_name].__file__)
771 s = sys.__stdout__
1090 if os.isatty(sys.__stdout__.fileno()):
H A Dkmtriage.py7 import sys, shlex
/xnu-8796.141.3/tools/
H A Dsymbolify.py4 import sys
63 print "usage: %s [filename] [slide]" % sys.argv[0]
67 sys.exit(1)
71 if( len(sys.argv) > 3 ):
74 if( len(sys.argv) == 3 ):
75 SLIDE = int(sys.argv[2], 16)
77 if( len(sys.argv) >= 2 ):
78 KERNEL_FILE = sys.argv[1]
88 symbolify(KERNEL_FILE, sys.stdin, min_width=40)
/xnu-8796.141.3/tools/tests/perf_index/
H A Dtest_controller.py6 import sys
50 sys.stderr.write("usage: start_tests.py num_clients type threads size\n")
54 if len(sys.argv) < 5:
57 num_clients = int(sys.argv[1])
58 test_type = sys.argv[2]
59 num_threads = int(sys.argv[3])
60 job_size = int(sys.argv[4])
61 args = sys.argv[5:]
/xnu-8796.141.3/libkern/kxld/tests/
H A Dloadtest.py31 import sys
54 print >>sys.stderr, "*** kextload of %s was terminated by signal %d" % (kext, -retcode)
56 print >>sys.stderr, "*** kextload of %s failed with return code %d" % (kext, retcode)
58 print >>sys.stderr, "Execution failed:", e
59 sys.exit(1)
H A Dkxld_test.h31 void kxld_test_log(KXLDLogSubsystem sys, KXLDLogLevel level,
H A Dkxld_test.c34 kxld_test_log(KXLDLogSubsystem sys __unused, KXLDLogLevel level __unused, in kxld_test_log()
/xnu-8796.141.3/bsd/sys/
H A Ddarwin_posix_sys_types.modulemap1 module Darwin.POSIX.sys.types [system] {
2 header "sys/types.h"
3 header "sys/_types.h"
4 umbrella "sys/_types"
H A Ddarwin_cdefs.modulemap2 header "sys/cdefs.h"
3 header "sys/_symbol_aliasing.h"
4 header "sys/_posix_availability.h"
H A DMakefile265 INSTALL_MI_DIR = sys
271 EXPORT_MI_DIR = sys
320 MAKE_POSIX_AVAILABILITY = $(SRCROOT)/bsd/sys/make_posix_availability.sh
325 MAKE_SYMBOL_ALIASING = $(SRCROOT)/bsd/sys/make_symbol_aliasing.sh
/xnu-8796.141.3/bsd/
H A DMakefile9 SETUP_SUBDIRS = sys
26 sys \
58 sys \
81 sys
/xnu-8796.141.3/tools/trace/
H A Dparse_ipc_trace.py11 import sys
29 sys.stderr.write("\tCMD:{}\n".format(cmd_string))
57 sys.stderr.write(' New node: "{}"{}\n'.format(self.nname, ' '*50))
317sys.stderr.write(' {}->{} ({}/{}){}\r'.format(self.src.nname, self.dst.nname, df['ool'], df['std']…
344 sys.stderr.write('Creating new IPCGraph named {}...\n'.format(self.name))
425 sys.stderr.write(" {:d}...\r".format(self.nmsgs));
490 sys.stderr.write("following {}\n".format(f))
509 sys.stderr.write("{}following {}\n".format(' |--'*lvl, f))
642 sys.stderr.write("Creating GNUPlot...\n")
707 sys.stderr.write("\t{:s}...\n".format(new_file))
[all …]
/xnu-8796.141.3/
H A D.upstream_base_commits2 bsd/man/man2/access.2 freebsd lib/libc/sys/access.2 5b882020081a138285227631c46a406c08e17bc8
4 bsd/man/man2/utimensat.2 freebsd lib/libc/sys/utimensat.2 89c1fcc0d088065021703b658ef547f46b5481f0
/xnu-8796.141.3/san/tools/
H A Dgenerate_dynamic_blacklist.py4 import sys
51 with open(sys.argv[1]) as fd:
/xnu-8796.141.3/bsd/sys/_types/
H A DMakefile167 INSTALL_MI_DIR = sys/_types
173 EXPORT_MI_DIR = sys/_types
/xnu-8796.141.3/EXTERNAL_HEADERS/sys/_pthread/
H A DMakefile14 EXPORT_MI_DIR = sys/_pthread
/xnu-8796.141.3/EXTERNAL_HEADERS/
H A DMakefile12 sys
/xnu-8796.141.3/osfmk/kern/
H A Dclock.c1034 clock_sec_t sys; // sleepless time since boot in seconds in clock_initialize_calendar() local
1053 clock_get_system_microtime(&sys, &microsys); in clock_initialize_calendar()
1089 if ((sys > secs) || ((sys == secs) && (microsys > microsecs))) { in clock_initialize_calendar()
1091 __func__, (unsigned long) secs, microsecs, (unsigned long)sys, microsys); in clock_initialize_calendar()
1092 secs = utc_offset_secs = sys; in clock_initialize_calendar()
1098 TIME_SUB(utc_offset_secs, sys, utc_offset_microsecs, microsys, USEC_PER_SEC); in clock_initialize_calendar()
1145 print_all_clock_variables(__func__, &secs, &microsecs, &sys, &microsys, &clock_calend_cp); in clock_initialize_calendar()
/xnu-8796.141.3/libkern/libkern/
H A Dkxld_types.h191 typedef void (*KXLDLoggingCallback) (KXLDLogSubsystem sys, KXLDLogLevel level,

123