Home
last modified time | relevance | path

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

12345678910>>...28

/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.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/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/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 tst_getsockport(const char *file, const int lineno, int sockfd);
33 int safe_socket(const char *file, const int lineno, void (cleanup_fn)(void),
36 int safe_getsockopt(const char *file, const int lineno, int sockfd, int level,
39 int safe_setsockopt(const char *file, const int lineno, int sockfd, int level,
42 ssize_t safe_send(const char *file, const int lineno, char len_strict,
45 ssize_t safe_sendto(const char *file, const int lineno, char len_strict,
49 ssize_t safe_sendmsg(const char *file, const int lineno, size_t msg_len,
52 ssize_t safe_recvmsg(const char *file, const int lineno, size_t msg_len,
55 int safe_bind(const char *file, const int lineno, void (cleanup_fn)(void),
59 int safe_listen(const char *file, const int lineno, void (cleanup_fn)(void),
[all …]
Dtst_safe_macros.h53 int safe_chroot(const char *file, const int lineno, const char *path);
58 static inline int safe_dup(const char *file, const int lineno, in safe_dup() argument
65 tst_brk_(file, lineno, TBROK | TERRNO, in safe_dup()
117 int safe_setregid(const char *file, const int lineno,
123 int safe_setreuid(const char *file, const int lineno,
135 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid);
140 pid_t safe_getpgid(const char *file, const int lineno, pid_t pid);
239 static inline void *safe_mmap(const char *file, const int lineno, in safe_mmap() argument
247 tst_brk_(file, lineno, TBROK | TERRNO, in safe_mmap()
258 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.c30 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid) in safe_setpgid() argument
38 file, lineno, pid, pgid); in safe_setpgid()
44 pid_t safe_getpgid(const char *file, const int lineno, pid_t pid) in safe_getpgid() argument
51 "%s:%d: getpgid(%i) failed", file, lineno, pid); in safe_getpgid()
57 int safe_fanotify_init(const char *file, const int lineno, in safe_fanotify_init() argument
71 "%s:%d: fanotify_init() failed", file, lineno); in safe_fanotify_init()
80 int safe_personality(const char *filename, unsigned int lineno, in safe_personality() argument
86 tst_brk_(filename, lineno, TBROK | TERRNO, in safe_personality()
93 int safe_setregid(const char *file, const int lineno, in safe_setregid() argument
100 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_getsockopt(const char *file, const int lineno, int sockfd, int level, in safe_getsockopt() argument
145 file, lineno, sockfd, level, optname, optval, optlen); in safe_getsockopt()
150 int safe_setsockopt(const char *file, const int lineno, int sockfd, int level, in safe_setsockopt() argument
160 file, lineno, sockfd, level, optname, optval, optlen); in safe_setsockopt()
166 ssize_t safe_send(const char *file, const int lineno, char len_strict, in safe_send() argument
176 file, lineno, sockfd, buf, len, flags); in safe_send()
[all …]
Dtst_safe_sysv_ipc.c44 int safe_msgget(const char *file, const int lineno, key_t key, int msgflg) in safe_msgget() argument
51 file, lineno, (int)key, msgflg); in safe_msgget()
57 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp, in safe_msgsnd() argument
66 file, lineno, msqid, msgp, msgsz, msgflg); in safe_msgsnd()
72 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp, in safe_msgrcv() argument
81 file, lineno, msqid, msgp, msgsz, msgtyp, msgflg); in safe_msgrcv()
87 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd, in safe_msgctl() argument
96 file, lineno, msqid, cmd, buf, rval); in safe_msgctl()
103 int safe_shmget(const char *file, const int lineno, key_t key, size_t size, in safe_shmget() argument
111 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/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/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.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/Lib/idlelib/
Dparagraph.py82 lineno, col = map(int, mark.split("."))
83 line = text.get("%d.0" % lineno, "%d.end" % lineno)
86 while text.compare("%d.0" % lineno, "<", "end") and is_all_white(line):
87 lineno = lineno + 1
88 line = text.get("%d.0" % lineno, "%d.end" % lineno)
89 first_lineno = lineno
96 lineno = lineno + 1
97 line = text.get("%d.0" % lineno, "%d.end" % lineno)
98 last = "%d.0" % lineno
101 lineno = first_lineno - 1
[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/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/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/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/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/cpython3/Include/
DPython-ast.h203 int lineno; member
363 int lineno; member
406 int lineno; member
422 int lineno; member
452 asdl_seq * decorator_list, expr_ty returns, int lineno,
457 int lineno, int col_offset, PyArena *arena);
460 asdl_seq * body, asdl_seq * decorator_list, int lineno,
463 stmt_ty _Py_Return(expr_ty value, int lineno, int col_offset, PyArena *arena);
465 stmt_ty _Py_Delete(asdl_seq * targets, int lineno, int col_offset, PyArena
468 stmt_ty _Py_Assign(asdl_seq * targets, expr_ty value, int lineno, int
[all …]

12345678910>>...28