Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 65) sorted by relevance

123

/xnu-11215.81.4/tools/tests/personas/
H A Dpersona_test_run_src.sh56 local line=$2
57 if [ -z "$line" ]; then
58 line=${BASH_LINENO[0]}
60 echo "[$line] ERROR: $msg" 1>&2
61 exit $((1 + $line % 254))
72 local line=$2
73 if [ -z "$line" ]; then
74 line=${BASH_LINENO[0]}
78 bail "e=$err: $msg" $line
93 local line=$2
[all …]
/xnu-11215.81.4/san/tools/
H A Dgenerate_dynamic_blacklist.py44 def extract_symbol(line): argument
45 fields = line.split(":")
48 raise Exception("Invalid exclusion rule: {}".format(line))
57 for line in fd.readlines():
58 line = line.strip() variable
59 if line and not line.startswith("#"):
60 kext, func, ty = extract_symbol(line)
/xnu-11215.81.4/tools/
H A Dformat_vm_parameter_validation.py249 def replace_error_code_return(test, line): argument
252 line = line.replace('return ' + str(code) + ';', 'return ' + name + ';')
253 return line
470 for line in data:
471 unmodified_line = line
473 if ('TEST BEGIN' in line):
475 if ('TEST END' in line):
478 line = re.sub('^\s*\d+:\d+:\d+ ', '', line)
479 line = re.sub('^\[KTEST\]\s+[A-Z]+\s+\d+\s+(\d+\s+)?\S+\s+\d+\s+', '', line)
480 line = line.lstrip()
[all …]
H A Dvm_sanitize_enforcement.py74 def is_type_used_in_line(safe_type, line): argument
76 if "vm_address_t reserved; /* Reserved */" in line:
83 if safe_type in line.replace(':', ' ').replace(';', ' ').replace(',', ' ').split():
92 for line in file:
94 if is_type_used_in_line(safe_type, line):
95 …pe \"" + safe_type + "\" in " +filepath + ":" + str(lineno) + ". Line is \"" + line.strip() + "\"")
H A Dsyscall_map.lua11 local function in_valid_region(line)
13 if line:sub(1, 1) ~= '#' then
18 local assume_defined = not line:match('COMPAT_GETFSSTAT')
19 if line:match('^#if') then
21 elseif line:match('^#else') then
23 elseif line:match('^#endif') then
56 for line in io.stdin:lines() do
57 if in_valid_region(line) then
58 bsd_syscalls[#bsd_syscalls + 1] = syscall_ptn:match(line)
/xnu-11215.81.4/libsyscall/wrappers/spawn/
H A Dposix_spawn_filtering.c175 char *line = read_buffer; in evaluate_rules() local
180 if (memcmp(line, "binary_name:", strlen("binary_name:")) == 0) { in evaluate_rules()
181 char *binary_name = line + strlen("binary_name:"); in evaluate_rules()
185 } else if (memcmp(line, "path_start:", strlen("path_start:")) == 0) { in evaluate_rules()
186 char *path_start = line + strlen("path_start:"); in evaluate_rules()
190 } else if (memcmp(line, "add_env:", strlen("add_env:")) == 0) { in evaluate_rules()
191 char *add_env = line + strlen("add_env:"); in evaluate_rules()
202 } else if (memcmp(line, "binpref:", strlen("binpref:")) == 0) { in evaluate_rules()
203 char *binpref = line + strlen("binpref:"); in evaluate_rules()
208 } else if (memcmp(line, "alt_rosetta:", strlen("alt_rosetta:")) == 0) { in evaluate_rules()
[all …]
/xnu-11215.81.4/SETUP/config/
H A Dmkmakefile.c176 char line[BUFSIZ]; in makefile() local
180 (void) sprintf(line, "%s/Makefile.template", config_directory); in makefile()
181 ifp = fopenp(VPATH, line, pname, "r"); in makefile()
183 perror(line); in makefile()
217 while (fgets(line, BUFSIZ, ifp) != 0) { in makefile()
218 if (*line == '%') { in makefile()
221 if (profiling && strncmp(line, "COPTS=", 6) == 0) { in makefile()
225 cp = index(line, '\n'); in makefile()
229 cp = line + 6; in makefile()
239 fprintf(ofp, "%s -pg\n", line); in makefile()
[all …]
H A Dmain.c152 static char line[80]; in get_word() local
170 cp = line; in get_word()
183 return line; in get_word()
195 static char line[80]; in get_rest() local
199 cp = line; in get_rest()
210 return line; in get_rest()
/xnu-11215.81.4/osfmk/ipc/
H A Dmig_log.c104 unsigned int line) in MigEventTracer() argument
109 size, kpd, retcode, ports, oolports, ool, file, line); in MigEventTracer()
120 unsigned int line) in MigEventErrors() argument
123 printf("%d|%d|%d -- %s %d\n", who, what, *(int *)par, file, line); in MigEventErrors()
125 printf("%d|%d|%s -- %s %d\n", who, what, (char *)par, file, line); in MigEventErrors()
/xnu-11215.81.4/libkern/kxld/tests/
H A Dloadtest.py37 line = pipe.readline() variable
38 while line:
39 kexts.append(line.strip())
40 line = pipe.readline() variable
/xnu-11215.81.4/tools/lldbmacros/
H A Dvm_pageout.py130 for line in result.splitlines():
131 matches = re.findall(r'(\d+|[\w_]+)', line)
134 print(line)
195 for line in result.splitlines():
196 matches = re.findall(r'(\d|[\w_]+)', line)
199 print(line)
H A Dmacho.py283 def center_text_in_line(self, line, text): argument
285 if len(text) > len(line) - 2:
288 lbreak_pos = (len(line) // 2) - (len(text) // 2)
291 out = line[:lbreak_pos] + text
292 return out + line[len(out):]
349line = "{:s} {: <#020X} ({: <10d}) floff:{: <#08x} {}".format(s, b.vmaddr, b.vmsize, b.fileoff, b…
354 mstr.append(line)
H A Dutils.py196 def write(self, line): argument
197 self.log_debug(line)
581 line = ""
588 line += " "
591 line += "{}{:02x}".format(marks.get(addr, ' '), b)
594 line += " "
597 print("{}{:#016x} {} |{}|".format(prefix, row, line, chars))
H A Drecount.py291 for line in sum.fmt_args():
292 lines.append(O.format(self._usage_fmt(), '*', *line))
479 for (i, line) in enumerate(usage_lines):
483 O.write(prefix + line + line_suffix + '\n')
545 for line in task_sum.fmt_basic_args():
546 line = line[:-1]
547 print(O.format(row_fmt, 'task', *line))
550 for line in term_sum.fmt_basic_args():
551 print(O.format(row_fmt, 'terminated', *line))
/xnu-11215.81.4/libkern/c++/
H A DOSUnserialize.cpp145 #line 60 "OSUnserialize.y"
260 #line 212 "OSUnserialize.tab.c"
1491 #line 151 "OSUnserialize.y"
1496 #line 152 "OSUnserialize.y"
1501 #line 153 "OSUnserialize.y"
1506 #line 156 "OSUnserialize.y"
1511 #line 157 "OSUnserialize.y"
1516 #line 158 "OSUnserialize.y"
1521 #line 159 "OSUnserialize.y"
1526 #line 160 "OSUnserialize.y"
[all …]
/xnu-11215.81.4/tools/lldbmacros/tests/lldbtest/
H A Dtestcase.py168 for line in lines[1:]:
169 stripped = line.lstrip()
171 indent = min(indent, len(line) - len(stripped))
176 for line in lines[1:]:
177 trimmed.append(line[indent:].rstrip())
/xnu-11215.81.4/osfmk/console/
H A Dvideo_console.c1387 int line; in vc_render_char() local
1392 for (line = 0; line < ISO_CHAR_HEIGHT; line++) { in vc_render_char()
1704 int line, col; in vc_reverse_cursor() local
1713 for (line = 0; line < ISO_CHAR_HEIGHT; line++) { in vc_reverse_cursor()
1737 uint32_t *from, *to, linelongs, i, line, rowline, rowscanline; in vc_scroll_down() local
1754 for (line = 0; line < ISO_CHAR_HEIGHT; line++) { in vc_scroll_down()
1771 uint32_t *from, *to, linelongs, i, line, rowline, rowscanline; in vc_scroll_up() local
1787 for (line = 0; line < ISO_CHAR_HEIGHT; line++) { in vc_scroll_up()
1952 int line, col; in vc_blit_rect_8() local
1973 for (line = 0; line < height; line++) { in vc_blit_rect_8()
[all …]
/xnu-11215.81.4/libkern/libkern/c++/
H A DOSUnserializeXMLSharedImplementation.h155 #line 61 "OSUnserializeXML.y"
332 #line 283 "OSUnserializeXML.tab.c"
1569 #line 217 "OSUnserializeXML.y"
1576 #line 220 "OSUnserializeXML.y"
1585 #line 225 "OSUnserializeXML.y"
1592 #line 230 "OSUnserializeXML.y"
1608 #line 242 "OSUnserializeXML.y"
1624 #line 254 "OSUnserializeXML.y"
1640 #line 266 "OSUnserializeXML.y"
1656 #line 278 "OSUnserializeXML.y"
[all …]
/xnu-11215.81.4/iokit/System/
H A DOSUnserializeXMLSharedImplementation.h155 #line 61 "OSUnserializeXML.y"
332 #line 283 "OSUnserializeXML.tab.c"
1569 #line 217 "OSUnserializeXML.y"
1576 #line 220 "OSUnserializeXML.y"
1585 #line 225 "OSUnserializeXML.y"
1592 #line 230 "OSUnserializeXML.y"
1608 #line 242 "OSUnserializeXML.y"
1624 #line 254 "OSUnserializeXML.y"
1640 #line 266 "OSUnserializeXML.y"
1656 #line 278 "OSUnserializeXML.y"
[all …]
/xnu-11215.81.4/osfmk/mach/
H A Dmig_log.h69 unsigned int line
82 unsigned int line
/xnu-11215.81.4/osfmk/kern/
H A Dexclaves_boot.h61 #define __EXCLAVES_BOOT_TASK(name, line, rank, func) \ argument
65 __exclaves_boot_task_entry_ ## name ## _ ## line = { \
H A Dstartup.h753 #define __STARTUP1(name, line, subsystem, rank, func, a, b) \
756 __startup_ ## subsystem ## _entry_ ## name ## _ ## line = { \
761 #define __STARTUP(name, line, subsystem, rank, func) \
762 __STARTUP1(name, line, subsystem, rank, func, , NULL)
764 #define __STARTUP_ARG(name, line, subsystem, rank, func, arg) \
765 __STARTUP1(name, line, subsystem, rank, func, arg, arg)
/xnu-11215.81.4/EXTERNAL_HEADERS/corecrypto/
H A Dcc_macros.h42 #define __CC_DEBUG_REQUIRE_MESSAGE(name, assertion, label, message, file, line, value) \ argument
43 …tf( "require: %s, %s%s:%d\n", assertion, (message!=0) ? message : "", ___t==NULL?file:___t, line);}
/xnu-11215.81.4/osfmk/corecrypto/
H A Dcc_macros.h70 #define __CC_DEBUG_REQUIRE_MESSAGE(name, assertion, label, message, file, line, value) \ argument
71 …tf( "require: %s, %s%s:%d\n", assertion, (message!=0) ? message : "", ___t==NULL?file:___t, line);}
/xnu-11215.81.4/tests/
H A Dtest_sysctl_kern_procargs_25397314.m164 NSMutableString *line = [[NSMutableString alloc] initWithCapacity:0];
166 [line appendFormat:@" %04zx ", row];
170 [line appendFormat:@"%02x ", c];
177 [line appendString:@" "];
180 [line appendFormat:@" %@", text];
181 T_LOG("%s", [line UTF8String]);
183 [line release];

123