Home
last modified time | relevance | path

Searched refs:lineno (Results 1 – 25 of 456) sorted by relevance

12345678910>>...19

/external/python/cpython2/Lib/lib2to3/pgen2/
Dconv.py68 lineno = 0
70 lineno += 1
73 print "%s(%s): can't parse %s" % (filename, lineno,
118 lineno = 0
121 lineno, line = lineno+1, f.next()
122 assert line == '#include "pgenheaders.h"\n', (lineno, line)
123 lineno, line = lineno+1, f.next()
124 assert line == '#include "grammar.h"\n', (lineno, line)
127 lineno, line = lineno+1, f.next()
134 assert mo, (lineno, line)
[all …]
/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create_common.c42 int check_fallocate(const char *filename, const int lineno, int fd, in check_fallocate() argument
49 tst_brk_(filename, lineno, TFAIL | TERRNO, in check_fallocate()
54 tst_res_(filename, lineno, TPASS, in check_fallocate()
61 int check_fallocate_fail(const char *filename, const int lineno, int fd, in check_fallocate_fail() argument
68 tst_res_(filename, lineno, TFAIL, in check_fallocate_fail()
75 tst_res_(filename, lineno, TPASS | TERRNO, in check_fallocate_fail()
82 void check_ftruncate(const char *filename, const int lineno, int fd, in check_ftruncate() argument
85 safe_ftruncate(filename, lineno, fd, length); in check_ftruncate()
87 tst_res_(filename, lineno, TPASS, "ftruncate(%d, %ld) succeeded", fd, in check_ftruncate()
91 void check_ftruncate_fail(const char *filename, const int lineno, in check_ftruncate_fail() argument
[all …]
Dmemfd_create_common.h92 void assert_have_memfd_create(const char *filename, const int lineno);
95 int check_fallocate(const char *filename, const int lineno, int fd,
97 int check_fallocate_fail(const char *filename, const int lineno, int fd,
99 void check_ftruncate(const char *filename, const int lineno, int fd,
101 void check_ftruncate_fail(const char *filename, const int lineno, int fd,
104 int check_mfd_new(const char *filename, const int lineno,
106 void check_mfd_fail_new(const char *filename, const int lineno,
109 void *check_mmap(const char *file, const int lineno, void *addr, size_t length,
111 void check_mmap_fail(const char *file, const int lineno, void *addr,
114 void check_munmap(const char *file, const int lineno, void *p, size_t length);
[all …]
/external/ltp/include/
Dsafe_macros_fn.h27 char* safe_basename(const char *file, const int lineno,
30 int safe_chdir(const char *file, const int lineno,
33 int safe_close(const char *file, const int lineno,
36 int safe_creat(const char *file, const int lineno,
39 char* safe_dirname(const char *file, const int lineno,
42 char* safe_getcwd(const char *file, const int lineno,
45 struct passwd* safe_getpwnam(const char *file, const int lineno,
48 int safe_getrusage(const char *file, const int lineno,
51 void* safe_malloc(const char *file, const int lineno,
54 int safe_mkdir(const char *file, const int lineno,
[all …]
Dsafe_net_fn.h31 int safe_socket(const char *file, const int lineno, void (cleanup_fn)(void),
34 int safe_setsockopt(const char *file, const int lineno, int sockfd, int level,
37 ssize_t safe_send(const char *file, const int lineno, char len_strict,
40 ssize_t safe_sendto(const char *file, const int lineno, char len_strict,
44 int safe_bind(const char *file, const int lineno, void (cleanup_fn)(void),
48 int safe_listen(const char *file, const int lineno, void (cleanup_fn)(void),
51 int safe_connect(const char *file, const int lineno, void (cleanup_fn)(void),
54 int safe_getsockname(const char *file, const int lineno,
58 int safe_gethostname(const char *file, const int lineno,
Dtst_safe_macros.h53 static inline int safe_dup(const char *file, const int lineno, in safe_dup() argument
60 tst_brk_(file, lineno, TBROK | TERRNO, in safe_dup()
118 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid);
123 pid_t safe_getpgid(const char *file, const int lineno, pid_t pid);
222 static inline void *safe_mmap(const char *file, const int lineno, in safe_mmap() argument
230 tst_brk_(file, lineno, TBROK | TERRNO, in safe_mmap()
241 static inline int safe_ftruncate(const char *file, const int lineno, in safe_ftruncate() argument
248 tst_brk_(file, lineno, TBROK | TERRNO, in safe_ftruncate()
258 static inline int safe_truncate(const char *file, const int lineno, in safe_truncate() argument
265 tst_brk_(file, lineno, TBROK | TERRNO, in safe_truncate()
[all …]
/external/libmojo/third_party/jinja2/
Dparser.py44 def fail(self, msg, lineno=None, exc=TemplateSyntaxError): argument
49 if lineno is None:
50 lineno = self.stream.current.lineno
51 raise exc(msg, lineno, self.name, self.filename)
53 def _fail_ut_eof(self, name, end_token_stack, lineno): argument
82 self.fail(' '.join(message), lineno)
84 def fail_unknown_tag(self, name, lineno=None): argument
89 return self._fail_ut_eof(name, self._end_token_stack, lineno)
91 def fail_eof(self, end_tokens=None, lineno=None): argument
96 return self._fail_ut_eof(None, stack, lineno)
[all …]
Dext.py107 def attr(self, name, lineno=None): argument
115 return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)
118 dyn_kwargs=None, lineno=None): argument
126 return nodes.Call(self.attr(name, lineno=lineno), args, kwargs,
127 dyn_args, dyn_kwargs, lineno=lineno)
217 lineno = next(parser.stream).lineno
237 name.value, name.lineno,
279 name.value, name.lineno,
298 parser.fail('pluralize without variables', lineno)
303 node.set_lineno(lineno)
[all …]
/external/ltp/lib/
Dsafe_macros.c21 char *safe_basename(const char *file, const int lineno, in safe_basename() argument
30 file, lineno, path); in safe_basename()
37 safe_chdir(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_chdir() argument
46 file, lineno, path); in safe_chdir()
53 safe_close(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_close() argument
62 file, lineno, fildes); in safe_close()
69 safe_creat(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_creat() argument
78 file, lineno, pathname, mode); in safe_creat()
84 char *safe_dirname(const char *file, const int lineno, in safe_dirname() argument
93 file, lineno, path); in safe_dirname()
[all …]
Dsafe_file_ops.c77 int file_scanf(const char *file, const int lineno, in file_scanf() argument
89 path, file, lineno); in file_scanf()
102 path, file, lineno); in file_scanf()
109 exp_convs, ret, path, file, lineno); in file_scanf()
116 path, file, lineno); in file_scanf()
126 path, file, lineno); in file_scanf()
131 void safe_file_scanf(const char *file, const int lineno, in safe_file_scanf() argument
144 path, file, lineno); in safe_file_scanf()
157 path, file, lineno); in safe_file_scanf()
164 exp_convs, ret, path, file, lineno); in safe_file_scanf()
[all …]
Dsafe_net.c84 int safe_socket(const char *file, const int lineno, void (cleanup_fn)(void), in safe_socket() argument
93 "%s:%d: socket(%d, %d, %d) failed", file, lineno, in safe_socket()
100 int safe_setsockopt(const char *file, const int lineno, int sockfd, int level, in safe_setsockopt() argument
110 file, lineno, sockfd, level, optname, optval, optlen); in safe_setsockopt()
116 ssize_t safe_send(const char *file, const int lineno, char len_strict, in safe_send() argument
126 file, lineno, sockfd, buf, len, flags); in safe_send()
132 ssize_t safe_sendto(const char *file, const int lineno, char len_strict, in safe_sendto() argument
144 file, lineno, sockfd, buf, len, flags, in safe_sendto()
152 int safe_bind(const char *file, const int lineno, void (cleanup_fn)(void), in safe_bind() argument
165 "%s:%d: bind(%d, %s, %d) failed", file, lineno, in safe_bind()
[all …]
Dsafe_stdio.c26 FILE *safe_fopen(const char *file, const int lineno, void (cleanup_fn)(void), in safe_fopen() argument
34 file, lineno, path, mode); in safe_fopen()
40 int safe_fclose(const char *file, const int lineno, void (cleanup_fn)(void), in safe_fclose() argument
49 "%s:%d: fclose(%p) failed", file, lineno, f); in safe_fclose()
55 int safe_asprintf(const char *file, const int lineno, void (cleanup_fn)(void), in safe_asprintf() argument
67 "%s:%d: asprintf(%s,...) failed", file, lineno, fmt); in safe_asprintf()
73 FILE *safe_popen(const char *file, const int lineno, void (cleanup_fn)(void), in safe_popen() argument
86 file, lineno, command, type); in safe_popen()
90 file, lineno, command, type); in safe_popen()
/external/python/cpython2/Lib/compiler/
Dast.py54 def __init__(self, leftright, lineno=None): argument
57 self.lineno = lineno
69 def __init__(self, nodes, lineno=None): argument
71 self.lineno = lineno
85 def __init__(self, expr, attrname, flags, lineno=None): argument
89 self.lineno = lineno
101 def __init__(self, nodes, lineno=None): argument
103 self.lineno = lineno
117 def __init__(self, name, flags, lineno=None): argument
120 self.lineno = lineno
[all …]
Dtransformer.py78 lineno = extractLineNo(child)
79 if lineno is not None:
80 return lineno
259 lineno = nodelist[-4][2]
278 lineno=lineno)
291 return Lambda(names, defaults, flags, code, lineno=nodelist[1][2])
314 return Class(name, bases, doc, code, lineno=nodelist[1][2])
367 return Discard(exprNode, lineno=exprNode.lineno)
372 return Assign(nodesl, exprNode, lineno=nodelist[1][2])
376 return AugAssign(lval, op[1], exprNode, lineno=op[2])
[all …]
/external/libmojo/mojo/public/tools/bindings/pylib/mojom/parse/
Dparser.py40 def __init__(self, filename, message, lineno=None, snippet=None): argument
41 Error.__init__(self, filename, message, lineno=lineno,
82 p[2].lineno, snippet=self._GetSnippet(p[2].lineno))
87 p[2].lineno, snippet=self._GetSnippet(p[2].lineno))
96 p[2].lineno, snippet=self._GetSnippet(p[2].lineno))
109 p[0] = ast.Import(eval(p[2]), filename=self.filename, lineno=p.lineno(2))
113 p[0] = ast.Module(p[3], p[1], filename=self.filename, lineno=p.lineno(2))
151 p[0] = ast.Attribute(p[1], p[3], filename=self.filename, lineno=p.lineno(1))
155 p[0] = ast.Attribute(p[1], True, filename=self.filename, lineno=p.lineno(1))
266 filename=self.filename, lineno=p.lineno(3))
[all …]
/external/python/cpython2/Doc/tools/extensions/
Dsuspicious.py63 def __init__(self, docname, lineno, issue, line): argument
66 self.lineno = lineno # line number in the original source;
122 def check_issue(self, line, lineno, issue): argument
123 if not self.is_ignored(line, lineno, issue):
124 self.report_issue(line, lineno, issue)
126 def is_ignored(self, line, lineno, issue): argument
141 if (rule.lineno is not None) and \
142 abs(rule.lineno - lineno) > 5: continue
148 def report_issue(self, text, lineno, issue): argument
151 self.write_log_entry(lineno, issue, text)
[all …]
/external/python/cpython2/Lib/idlelib/
DFormatParagraph.py83 lineno, col = map(int, mark.split("."))
84 line = text.get("%d.0" % lineno, "%d.end" % lineno)
87 while text.compare("%d.0" % lineno, "<", "end") and is_all_white(line):
88 lineno = lineno + 1
89 line = text.get("%d.0" % lineno, "%d.end" % lineno)
90 first_lineno = lineno
97 lineno = lineno + 1
98 line = text.get("%d.0" % lineno, "%d.end" % lineno)
99 last = "%d.0" % lineno
102 lineno = first_lineno - 1
[all …]
/external/python/cpython2/Lib/
Dwarnings.py25 def _show_warning(message, category, filename, lineno, file=None, line=None): argument
33 file.write(formatwarning(message, category, filename, lineno, line))
40 def formatwarning(message, category, filename, lineno, line=None): argument
50 s = "%s: %s: %s\n" % (lineno, category.__name__, message)
51 line = linecache.getline(filename, lineno) if line is None else line
67 def filterwarnings(action, message="", category=Warning, module="", lineno=0, argument
87 assert isinstance(lineno, int) and lineno >= 0, \
90 re.compile(module), lineno)
96 def simplefilter(action, category=Warning, lineno=0, append=0): argument
108 assert isinstance(lineno, int) and lineno >= 0, \
[all …]
/external/python/cpython2/Tools/scripts/
Dtexcheck.py115 lineno = 0
117 for lineno, line in izip(count(startline), islice(source, startline-1, None)):
123 print lineno, '|', begend, name, punct,
125 openers.append((lineno, name))
127 openers.append((lineno, punct))
129 matchclose(lineno, name, openers, pairmap)
131 matchclose(lineno, punct, openers, pairmap)
138 bracestack.append(lineno)
143 print r'Warning, unmatched } on line %s.' % (lineno,)
154 print 'Warning, forward slash used on line %d with cmd: /%s' % (lineno, cmd)
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/
Dexceptions.py19 def _format_filepos(lineno, pos, filename): argument
21 return " at line: %d char: %d" % (lineno, pos)
23 return " in file '%s' at line: %d char: %d" % (filename, lineno, pos)
27 def __init__(self, message, source, lineno, pos, filename): argument
29 message + _format_filepos(lineno, pos, filename))
30 self.lineno = lineno
36 def __init__(self, message, source, lineno, pos, filename): argument
38 message + _format_filepos(lineno, pos, filename))
39 self.lineno = lineno
64 self.source, self.lineno = "", 0
[all …]
/external/iptables/
Diptables-test.py42 def print_error(reason, filename=None, lineno=None): argument
47 Colors.ENDC + ": line %d (%s)" % (lineno, reason))
50 def delete_rule(iptables, rule, filename, lineno): argument
55 ret = execute_cmd(cmd, filename, lineno)
58 print_error(reason, filename, lineno)
64 def run_test(iptables, rule, rule_save, res, filename, lineno): argument
79 ret = execute_cmd(cmd, filename, lineno)
87 print_error(reason, filename, lineno)
95 print_error(reason, filename, lineno)
96 delete_rule(iptables, rule, filename, lineno)
[all …]
/external/python/cpython2/Include/
DPython-ast.h183 int lineno; member
311 int lineno; member
353 int lineno; member
385 asdl_seq * decorator_list, int lineno, int col_offset,
389 asdl_seq * decorator_list, int lineno, int col_offset,
392 stmt_ty _Py_Return(expr_ty value, int lineno, int col_offset, PyArena *arena);
394 stmt_ty _Py_Delete(asdl_seq * targets, int lineno, int col_offset, PyArena
397 stmt_ty _Py_Assign(asdl_seq * targets, expr_ty value, int lineno, int
401 lineno, int col_offset, PyArena *arena);
403 stmt_ty _Py_Print(expr_ty dest, asdl_seq * values, bool nl, int lineno, int
[all …]
/external/python/cpython2/Parser/
Dasdl.py21 def __init__(self, type, lineno): argument
23 self.lineno = lineno
32 def __init__(self, value, lineno): argument
35 self.lineno = lineno
41 def __init__(self, value, lineno): argument
44 self.lineno = lineno
48 def __init__(self, lineno, token=None, msg=None): argument
49 self.lineno = lineno
55 return "Error at '%s', line %d" % (self.token, self.lineno)
57 return "%s, line %d" % (self.msg, self.lineno)
[all …]
/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dast_unittest.py50 node1 = ast.NodeBase(filename="hello.mojom", lineno=123)
62 self.assertEquals(node1.lineno, 123)
64 self.assertIsNone(node2.lineno)
75 node4 = _TestNode(123, filename="world.mojom", lineno=123)
81 node1 = _TestNode(1, filename="foo.mojom", lineno=1)
83 node1b = _TestNode(1, filename="foo.mojom", lineno=1)
84 node2 = _TestNode(2, filename="foo.mojom", lineno=2)
90 self.assertIsNone(nodelist1.lineno)
97 self.assertEquals(nodelist2.lineno, 1)
104 self.assertEquals(nodelist3.lineno, 2)
[all …]
/external/python/cpython2/Lib/hotshot/
Dlog.py84 def get_funcname(self, fileno, lineno): argument
86 return self._funcmap[(fileno, lineno)]
98 what, tdelta, fileno, lineno = self._nextitem()
103 filename, funcname = self._decode_location(fileno, lineno)
104 t = (filename, lineno, funcname)
116 return what, (filename, lineno, funcname), tdelta
123 self._funcmap[(fileno, lineno)] = (filename, tdelta)
129 self.cwd = lineno
130 self.addinfo(tdelta, lineno)
141 def _decode_location(self, fileno, lineno): argument
[all …]

12345678910>>...19