Home
last modified time | relevance | path

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

12345678910>>...32

/external/python/cpython3/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, next(f)
122 assert line == '#include "pgenheaders.h"\n', (lineno, line)
123 lineno, line = lineno+1, next(f)
124 assert line == '#include "grammar.h"\n', (lineno, line)
127 lineno, line = lineno+1, next(f)
134 assert mo, (lineno, line)
[all …]
/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.c32 int check_fallocate(const char *filename, const int lineno, int fd, in check_fallocate() argument
39 tst_brk_(filename, lineno, TFAIL | TERRNO, in check_fallocate()
44 tst_res_(filename, lineno, TPASS, in check_fallocate()
51 int check_fallocate_fail(const char *filename, const int lineno, int fd, in check_fallocate_fail() argument
58 tst_res_(filename, lineno, TFAIL, in check_fallocate_fail()
65 tst_res_(filename, lineno, TPASS | TERRNO, in check_fallocate_fail()
72 void check_ftruncate(const char *filename, const int lineno, int fd, in check_ftruncate() argument
75 safe_ftruncate(filename, lineno, fd, length); in check_ftruncate()
77 tst_res_(filename, lineno, TPASS, "ftruncate(%d, %ld) succeeded", fd, in check_ftruncate()
81 void check_ftruncate_fail(const char *filename, const int lineno, in check_ftruncate_fail() argument
[all …]
Dmemfd_create_common.h99 int mfd_flags_available(const char *filename, const int lineno,
102 int get_mfd_all_available_flags(const char *filename, const int lineno);
106 int check_fallocate(const char *filename, const int lineno, int fd,
108 int check_fallocate_fail(const char *filename, const int lineno, int fd,
110 void check_ftruncate(const char *filename, const int lineno, int fd,
112 void check_ftruncate_fail(const char *filename, const int lineno, int fd,
115 int check_mfd_new(const char *filename, const int lineno,
117 void check_mfd_fail_new(const char *filename, const int lineno,
120 void *check_mmap(const char *file, const int lineno, void *addr, size_t length,
122 void check_mmap_fail(const char *file, const int lineno, void *addr,
[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.h28 int safe_socket(const char *file, const int lineno, void (cleanup_fn)(void),
31 int safe_socketpair(const char *file, const int lineno, int domain, int type,
34 int safe_getsockopt(const char *file, const int lineno, int sockfd, int level,
37 int safe_setsockopt(const char *file, const int lineno, int sockfd, int level,
40 ssize_t safe_send(const char *file, const int lineno, char len_strict,
43 ssize_t safe_sendto(const char *file, const int lineno, char len_strict,
47 ssize_t safe_sendmsg(const char *file, const int lineno, size_t msg_len,
50 ssize_t safe_recvmsg(const char *file, const int lineno, size_t msg_len,
53 int safe_bind(const char *file, const int lineno, void (cleanup_fn)(void),
57 int safe_listen(const char *file, const int lineno, void (cleanup_fn)(void),
[all …]
Dtst_safe_macros.h54 int safe_chroot(const char *file, const int lineno, const char *path);
59 static inline int safe_dup(const char *file, const int lineno, in safe_dup() argument
66 tst_brk_(file, lineno, TBROK | TERRNO, in safe_dup()
118 int safe_setregid(const char *file, const int lineno,
124 int safe_setreuid(const char *file, const int lineno,
136 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid);
141 pid_t safe_getpgid(const char *file, const int lineno, pid_t pid);
240 static inline void *safe_mmap(const char *file, const int lineno, in safe_mmap() argument
248 tst_brk_(file, lineno, TBROK | TERRNO, in safe_mmap()
259 static inline int safe_ftruncate(const char *file, const int lineno, in safe_ftruncate() argument
[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 …]
Dtst_safe_macros.c19 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid) in safe_setpgid() argument
27 file, lineno, pid, pgid); in safe_setpgid()
33 pid_t safe_getpgid(const char *file, const int lineno, pid_t pid) in safe_getpgid() argument
40 "%s:%d: getpgid(%i) failed", file, lineno, pid); in safe_getpgid()
46 int safe_fanotify_init(const char *file, const int lineno, in safe_fanotify_init() argument
60 "%s:%d: fanotify_init() failed", file, lineno); in safe_fanotify_init()
69 int safe_personality(const char *filename, unsigned int lineno, in safe_personality() argument
75 tst_brk_(filename, lineno, TBROK | TERRNO, in safe_personality()
82 int safe_setregid(const char *file, const int lineno, in safe_setregid() argument
89 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setregid()
[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 tst_getsockport(const char *file, const int lineno, int sockfd) in tst_getsockport() argument
90 safe_getsockname(file, lineno, NULL, sockfd, sa, &addrlen); in tst_getsockport()
107 int safe_socket(const char *file, const int lineno, void (cleanup_fn)(void), in safe_socket() argument
128 "%s:%d: socket(%d, %d, %d) failed", file, lineno, in safe_socket()
135 int safe_socketpair(const char *file, const int lineno, int domain, int type, in safe_socketpair() argument
155 file, lineno, domain, type, protocol, sv); in safe_socketpair()
161 int safe_getsockopt(const char *file, const int lineno, int sockfd, int level, in safe_getsockopt() argument
171 file, lineno, sockfd, level, optname, optval, optlen); in safe_getsockopt()
176 int safe_setsockopt(const char *file, const int lineno, int sockfd, int level, in safe_setsockopt() argument
186 file, lineno, sockfd, level, optname, optval, optlen); in safe_setsockopt()
[all …]
Dtst_safe_sysv_ipc.c32 int safe_msgget(const char *file, const int lineno, key_t key, int msgflg) in safe_msgget() argument
39 file, lineno, (int)key, msgflg); in safe_msgget()
45 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp, in safe_msgsnd() argument
54 file, lineno, msqid, msgp, msgsz, msgflg); in safe_msgsnd()
60 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp, in safe_msgrcv() argument
69 file, lineno, msqid, msgp, msgsz, msgtyp, msgflg); in safe_msgrcv()
75 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd, in safe_msgctl() argument
84 file, lineno, msqid, cmd, buf, rval); in safe_msgctl()
91 int safe_shmget(const char *file, const int lineno, key_t key, size_t size, in safe_shmget() argument
99 file, lineno, (int)key, size, shmflg); in safe_shmget()
[all …]
/external/libchrome/third_party/jinja2/
Dparser.py52 def fail(self, msg, lineno=None, exc=TemplateSyntaxError): argument
57 if lineno is None:
58 lineno = self.stream.current.lineno
59 raise exc(msg, lineno, self.name, self.filename)
61 def _fail_ut_eof(self, name, end_token_stack, lineno): argument
90 self.fail(' '.join(message), lineno)
92 def fail_unknown_tag(self, name, lineno=None): argument
97 return self._fail_ut_eof(name, self._end_token_stack, lineno)
99 def fail_eof(self, end_tokens=None, lineno=None): argument
104 return self._fail_ut_eof(None, stack, lineno)
[all …]
/external/python/jinja/src/jinja2/
Dparser.py55 def fail(self, msg, lineno=None, exc=TemplateSyntaxError): argument
60 if lineno is None:
61 lineno = self.stream.current.lineno
62 raise exc(msg, lineno, self.name, self.filename)
64 def _fail_ut_eof(self, name, end_token_stack, lineno): argument
97 self.fail(" ".join(message), lineno)
99 def fail_unknown_tag(self, name, lineno=None): argument
104 return self._fail_ut_eof(name, self._end_token_stack, lineno)
106 def fail_eof(self, end_tokens=None, lineno=None): argument
111 return self._fail_ut_eof(None, stack, lineno)
[all …]
/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 …]
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/parse/
Dparser.py28 def __init__(self, filename, message, lineno=None, snippet=None): argument
29 Error.__init__(self, filename, message, lineno=lineno,
70 p[2].lineno, snippet=self._GetSnippet(p[2].lineno))
75 p[2].lineno, snippet=self._GetSnippet(p[2].lineno))
84 p[2].lineno, snippet=self._GetSnippet(p[2].lineno))
98 lineno=p.lineno(2))
102 p[0] = ast.Module(p[3], p[1], filename=self.filename, lineno=p.lineno(2))
140 p[0] = ast.Attribute(p[1], p[3], filename=self.filename, lineno=p.lineno(1))
144 p[0] = ast.Attribute(p[1], True, filename=self.filename, lineno=p.lineno(1))
255 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/cpython3/Doc/tools/extensions/
Dsuspicious.py64 def __init__(self, docname, lineno, issue, line): argument
67 self.lineno = lineno # line number in the original source;
126 def check_issue(self, line, lineno, issue): argument
127 if not self.is_ignored(line, lineno, issue):
128 self.report_issue(line, lineno, issue)
130 def is_ignored(self, line, lineno, issue): argument
145 if (rule.lineno is not None) and \
146 abs(rule.lineno - lineno) > 5: continue
152 def report_issue(self, text, lineno, issue): argument
154 self.write_log_entry(lineno, issue, text)
[all …]
/external/llvm-project/debuginfo-tests/dexter/dex/dextIR/
DLocIR.py13 def __init__(self, path: str, lineno: int, column: int):
17 self.lineno = lineno
21 return '{}({}:{})'.format(self.path, self.lineno, self.column)
26 and self.lineno == rhs.lineno
33 if self.lineno == rhs.lineno:
36 return self.lineno < rhs.lineno
42 if self.lineno == rhs.lineno:
45 return self.lineno > rhs.lineno
/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/jinja/docs/examples/
Dinline_gettext_extension.py31 lineno = token.lineno
43 yield Token(lineno, "data", preval)
44 lineno += count_newlines(preval)
47 yield Token(lineno, "data", gtok[1:])
49 yield Token(lineno, "block_begin", None)
50 yield Token(lineno, "name", "trans")
51 yield Token(lineno, "block_end", None)
55 yield Token(lineno, "data", gtok)
58 yield Token(lineno, "block_begin", None)
59 yield Token(lineno, "name", "endtrans")
[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/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, long)) and lineno >= 0, \
90 re.compile(module), int(lineno))
96 def simplefilter(action, category=Warning, lineno=0, append=0): argument
108 assert isinstance(lineno, (int, long)) and lineno >= 0, \
[all …]
/external/python/cpython3/Lib/
Dwarnings.py10 def showwarning(message, category, filename, lineno, file=None, line=None): argument
12 msg = WarningMessage(message, category, filename, lineno, file, line)
15 def formatwarning(message, category, filename, lineno, line=None): argument
17 msg = WarningMessage(message, category, filename, lineno, None, line)
42 line = linecache.getline(msg.filename, msg.lineno)
76 % (frame.filename, frame.lineno))
80 line = linecache.getline(frame.filename, frame.lineno)
109 sw(msg.message, msg.category, msg.filename, msg.lineno,
127 msg.filename, msg.lineno, msg.line)
130 def filterwarnings(action, message="", category=Warning, module="", lineno=0, argument
[all …]
/external/libpcap/rpcapd/
Dfileconf.c79 unsigned int lineno; in fileconf_read() local
83 lineno = 0; in fileconf_read()
93 lineno++; in fileconf_read()
108 loadfile, lineno, MAX_LINE); in fileconf_read()
151 loadfile, lineno); in fileconf_read()
180 loadfile, lineno); in fileconf_read()
201 loadfile, lineno); in fileconf_read()
227 loadfile, lineno, PARAM_ACTIVECLIENT, in fileconf_read()
258 loadfile, lineno); in fileconf_read()
271 loadfile, lineno, PARAM_ACTIVECLIENT); in fileconf_read()
[all …]

12345678910>>...32