Home
last modified time | relevance | path

Searched refs:lineno (Results 26 - 50 of 448) sorted by relevance

12345678910>>...18

/third_party/python/Lib/test/
H A Dtest_syntax.py1842 lineno=None, offset=None, end_lineno=None, end_offset=None):
1858 if lineno is not None:
1859 self.assertEqual(err.lineno, lineno)
1922 self._check_error(source, "parameter and global", lineno=3)
1932 self._check_error(source, "parameter and nonlocal", lineno=3)
1963 self._check_error("break", msg, lineno=1)
1964 self._check_error("if 0: break", msg, lineno=1)
1965 self._check_error("if 0: break\nelse: x=1", msg, lineno=1)
1966 self._check_error("if 1: pass\nelse: break", msg, lineno
[all...]
/third_party/ltp/lib/
H A Dtst_uid.c16 gid_t tst_get_free_gid_(const char *file, const int lineno, gid_t skip) in tst_get_free_gid_() argument
27 tst_res_(file, lineno, TINFO | TERRNO, in tst_get_free_gid_()
32 tst_brk_(file, lineno, TBROK|TERRNO, "Group ID lookup failed"); in tst_get_free_gid_()
36 tst_brk_(file, lineno, TBROK, "No free group ID found"); in tst_get_free_gid_()
72 int tst_check_resuid_(const char *file, const int lineno, const char *callstr, in tst_check_resuid_() argument
83 tst_res_(file, lineno, TFAIL, "Unexpected process UID after %s", in tst_check_resuid_()
86 tst_res_(file, lineno, TFAIL, "Unexpected process UID"); in tst_check_resuid_()
89 tst_res_(file, lineno, TINFO, "Got: ruid = %d, euid = %d, suid = %d", in tst_check_resuid_()
91 tst_res_(file, lineno, TINFO, in tst_check_resuid_()
97 int tst_check_resgid_(const char *file, const int lineno, cons argument
[all...]
H A Dtst_safe_file_at.c35 int safe_openat(const char *const file, const int lineno, in safe_openat() argument
53 tst_brk_(file, lineno, TBROK | TERRNO, in safe_openat()
60 ssize_t safe_file_readat(const char *const file, const int lineno, in safe_file_readat() argument
64 int fd = safe_openat(file, lineno, dirfd, path, O_RDONLY); in safe_file_readat()
70 rval = safe_read(file, lineno, NULL, 0, fd, buf, nbyte - 1); in safe_file_readat()
78 tst_brk_(file, lineno, TBROK, in safe_file_readat()
120 int safe_file_vprintfat(const char *const file, const int lineno, in safe_file_vprintfat() argument
143 tst_brk_(file, lineno, TBROK | TERRNO, in safe_file_vprintfat()
152 tst_brk_(file, lineno, TBROK | TERRNO, in safe_file_vprintfat()
160 int safe_file_printfat(const char *const file, const int lineno, in safe_file_printfat() argument
174 safe_unlinkat(const char *const file, const int lineno, const int dirfd, const char *const path, const int flags) safe_unlinkat() argument
202 safe_fchownat(const char *const file, const int lineno, const int dirfd, const char *const path, uid_t owner, gid_t group, int flags) safe_fchownat() argument
222 safe_fstatat(const char *const file, const int lineno, const int dirfd, const char *const path, struct stat *statbuf, int flags) safe_fstatat() argument
[all...]
H A Dsafe_stdio.c26 FILE *safe_fopen(const char *file, const int lineno, void (cleanup_fn)(void), in safe_fopen() argument
32 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_fopen()
39 int safe_fclose(const char *file, const int lineno, void (cleanup_fn)(void), in safe_fclose() argument
47 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_fclose()
50 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_fclose()
57 int safe_asprintf(const char *file, const int lineno, void (cleanup_fn)(void), in safe_asprintf() argument
68 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_asprintf()
71 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_asprintf()
78 FILE *safe_popen(const char *file, const int lineno, void (cleanup_fn)(void), in safe_popen() argument
89 tst_brkm_(file, lineno, TBRO in safe_popen()
[all...]
H A Dtst_safe_io_uring.c10 int safe_io_uring_init(const char *file, const int lineno, in safe_io_uring_init() argument
21 tst_brk_(file, lineno, TBROK | TERRNO, in safe_io_uring_init()
25 tst_brk_(file, lineno, TBROK | TERRNO, in safe_io_uring_init()
38 uring->sqr_base = safe_mmap(file, lineno, NULL, uring->sqr_mapsize, in safe_io_uring_init()
45 uring->sqr_entries = safe_mmap(file, lineno, NULL, in safe_io_uring_init()
53 uring->cqr_base = safe_mmap(file, lineno, NULL, uring->cqr_mapsize, in safe_io_uring_init()
75 int safe_io_uring_close(const char *file, const int lineno, in safe_io_uring_close() argument
80 safe_munmap(file, lineno, NULL, uring->cqr_base, uring->cqr_mapsize); in safe_io_uring_close()
81 safe_munmap(file, lineno, NULL, uring->sqr_entries, in safe_io_uring_close()
83 safe_munmap(file, lineno, NUL in safe_io_uring_close()
89 safe_io_uring_enter(const char *file, const int lineno, int strict, int fd, unsigned int to_submit, unsigned int min_complete, unsigned int flags, sigset_t *sig) safe_io_uring_enter() argument
[all...]
H A Dtst_safe_timerfd.c14 int safe_timerfd_create(const char *file, const int lineno, in safe_timerfd_create() argument
22 tst_brk_(file, lineno, TTYPE | TERRNO, in safe_timerfd_create()
25 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timerfd_create()
33 int safe_timerfd_gettime(const char *file, const int lineno, in safe_timerfd_gettime() argument
41 tst_brk_(file, lineno, TTYPE | TERRNO, in safe_timerfd_gettime()
44 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timerfd_gettime()
51 int safe_timerfd_settime(const char *file, const int lineno, in safe_timerfd_settime() argument
61 tst_brk_(file, lineno, TTYPE | TERRNO, in safe_timerfd_settime()
64 tst_brk_(file, lineno, TBROK | TERRNO, in safe_timerfd_settime()
H A Dtst_mkfs.c25 void tst_mkfs_(const char *file, const int lineno, void (cleanup_fn)(void), in tst_mkfs_() argument
36 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
42 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
48 tst_resm_(file, lineno, TINFO, in tst_mkfs_()
60 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
78 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
92 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
96 tst_resm_(file, lineno, TINFO, in tst_mkfs_()
106 tst_brkm_(file, lineno, TCONF, cleanup_fn, in tst_mkfs_()
110 tst_brkm_(file, lineno, TBRO in tst_mkfs_()
[all...]
H A Dtst_resource.c82 static int file_copy(const char *file, const int lineno, in file_copy() argument
95 safe_cp(file, lineno, cleanup_fn, buf, dest); in file_copy()
100 void tst_resource_copy(const char *file, const int lineno, in tst_resource_copy() argument
105 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_resource_copy()
118 if (file_copy(file, lineno, cleanup_fn, dataroot, filename, dest)) in tst_resource_copy()
126 if (file_copy(file, lineno, cleanup_fn, buf, filename, dest)) in tst_resource_copy()
132 if (file_copy(file, lineno, cleanup_fn, startwd, filename, dest)) in tst_resource_copy()
135 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_resource_copy()
H A Dtst_epoll.c11 int safe_epoll_create1(const char *const file, const int lineno, in safe_epoll_create1() argument
29 tst_brk_(file, lineno, in safe_epoll_create1()
36 int safe_epoll_ctl(const char *const file, const int lineno, in safe_epoll_ctl() argument
59 tst_brk_(file, lineno, in safe_epoll_ctl()
67 int safe_epoll_wait(const char *const file, const int lineno, in safe_epoll_wait() argument
74 tst_brk_(file, lineno, TBROK | TERRNO, in safe_epoll_wait()
/third_party/ltp/include/
H A Dsafe_file_ops_fn.h39 int file_scanf(const char *file, const int lineno,
43 void safe_file_scanf(const char *file, const int lineno,
48 int file_lines_scanf(const char *file, const int lineno,
56 int file_printf(const char *file, const int lineno,
60 void safe_file_printf(const char *file, const int lineno,
65 void safe_try_file_printf(const char *file, const int lineno,
72 int safe_cp(const char *file, const int lineno,
88 int safe_touch(const char *file, const int lineno,
95 int mount_overlay(const char *file, const int lineno, int skip);
H A Dtst_safe_posix_ipc.h28 static inline int safe_mq_open(const char *file, const int lineno, in safe_mq_open() argument
54 tst_brk_(file, lineno, TBROK | TERRNO, in safe_mq_open()
58 tst_brk_(file, lineno, TBROK | TERRNO, in safe_mq_open()
65 static inline int safe_mq_close(const char *file, const int lineno, in safe_mq_close() argument
73 tst_brk_(file, lineno, TBROK | TERRNO, in safe_mq_close()
76 tst_brk_(file, lineno, TBROK | TERRNO, in safe_mq_close()
83 static inline int safe_mq_unlink(const char *file, const int lineno, in safe_mq_unlink() argument
91 tst_brk_(file, lineno, TBROK | TERRNO, in safe_mq_unlink()
94 tst_brk_(file, lineno, TBROK | TERRNO, in safe_mq_unlink()
101 static inline int safe_mq_notify(const char *file, const int lineno, in safe_mq_notify() argument
114 safe_mq_send(const char *file, const int lineno, mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio) safe_mq_send() argument
[all...]
H A Dtst_netdevice.h11 int tst_netdev_index_by_name(const char *file, const int lineno,
17 int tst_netdev_set_state(const char *file, const int lineno,
23 int tst_create_veth_pair(const char *file, const int lineno, int strict,
28 int tst_netdev_add_device(const char *file, const int lineno, int strict,
33 int tst_netdev_remove_device(const char *file, const int lineno, int strict,
38 int tst_netdev_add_address(const char *file, const int lineno, int strict,
45 int tst_netdev_add_address_inet(const char *file, const int lineno, int strict,
52 int tst_netdev_remove_address(const char *file, const int lineno, int strict,
59 int tst_netdev_remove_address_inet(const char *file, const int lineno,
65 int tst_netdev_change_ns_fd(const char *file, const int lineno, in
[all...]
H A Dtst_safe_sysv_ipc.h14 int safe_msgget(const char *file, const int lineno, key_t key, int msgflg);
18 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp,
23 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp,
28 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd,
35 int safe_shmget(const char *file, const int lineno, key_t key, size_t size,
40 void *safe_shmat(const char *file, const int lineno, int shmid,
45 int safe_shmdt(const char *file, const int lineno, const void *shmaddr);
48 int safe_shmctl(const char *file, const int lineno, int shmid, int cmd,
55 int safe_semget(const char *file, const int lineno, key_t key, int nsems,
60 int safe_semctl(const char *file, const int lineno, in
[all...]
H A Dtst_rtnetlink.h28 const int lineno);
36 void tst_rtnl_destroy_context(const char *file, const int lineno,
42 int tst_rtnl_send(const char *file, const int lineno,
47 int tst_rtnl_send_validate(const char *file, const int lineno,
60 struct tst_rtnl_message *tst_rtnl_recv(const char *file, const int lineno,
65 int tst_rtnl_add_message(const char *file, const int lineno,
73 int tst_rtnl_add_attr(const char *file, const int lineno,
80 int tst_rtnl_add_attr_string(const char *file, const int lineno,
89 int tst_rtnl_add_attr_list(const char *file, const int lineno,
103 int tst_rtnl_check_acks(const char *file, const int lineno,
[all...]
/third_party/ltp/libs/libltpnewipc/
H A Dlibnewipc.c29 key_t getipckey(const char *file, const int lineno) in getipckey() argument
36 safe_getcwd(file, lineno, NULL, buf, BUFSIZE); in getipckey()
44 "ftok() failed at %s:%d", file, lineno); in getipckey()
50 int get_used_sysvipc(const char *file, const int lineno, const char *sysvipc_file) in get_used_sysvipc() argument
56 fp = safe_fopen(file, lineno, NULL, sysvipc_file, "r"); in get_used_sysvipc()
65 "%s:%d", sysvipc_file, file, lineno); in get_used_sysvipc()
71 void *probe_free_addr(const char *file, const int lineno) in probe_free_addr() argument
79 shm_id = safe_shmget(file, lineno, probe_key, SHMLBA * 2, in probe_free_addr()
81 addr = safe_shmat(file, lineno, shm_id, NULL, 0); in probe_free_addr()
82 safe_shmdt(file, lineno, add in probe_free_addr()
[all...]
/third_party/python/Lib/
H A Dbdb.py226 lineno = frame.f_lineno
227 if lineno not in self.breaks[filename]:
230 lineno = frame.f_code.co_firstlineno
231 if lineno not in self.breaks[filename]:
235 (bp, flag) = effective(filename, lineno, frame)
292 def set_until(self, frame, lineno=None):
293 """Stop when the line with the lineno greater than the current one is
296 if lineno is None:
297 lineno = frame.f_lineno + 1
298 self._set_stopinfo(frame, frame, lineno)
[all...]
H A Dnetrc.py12 def __init__(self, msg, filename=None, lineno=None):
14 self.lineno = lineno
19 return "%s (%s, line %s)" % (self.msg, self.filename, self.lineno)
24 self.lineno = 1
32 self.lineno += 1
84 saved_lineno = lexer.lineno
89 if lexer.lineno == saved_lineno and len(tt) == 1:
104 file, lexer.lineno)
114 "bad toplevel token %r" % tt, file, lexer.lineno)
[all...]
H A Dpyclbr.py23 lineno -- line in the file where the object's definition starts;
55 def __init__(self, module, name, file, lineno, end_lineno, parent):
59 self.lineno = lineno
70 def __init__(self, module, name, file, lineno,
72 super().__init__(module, name, file, lineno, end_lineno, parent)
75 parent.methods[name] = lineno
80 def __init__(self, module, name, super_, file, lineno,
82 super().__init__(module, name, file, lineno, end_lineno, parent)
89 def _nest_function(ob, func_name, lineno, end_linen
[all...]
/third_party/node/deps/v8/third_party/jinja2/
H A Dext.py112 def attr(self, name, lineno=None):
118 self.attr('_my_attribute', lineno=lineno)
120 return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)
123 self, name, args=None, kwargs=None, dyn_args=None, dyn_kwargs=None, lineno=None
133 self.attr(name, lineno=lineno),
138 lineno=lineno,
[all...]
/third_party/skia/third_party/externals/jinja2/
H A Dext.py112 def attr(self, name, lineno=None):
118 self.attr('_my_attribute', lineno=lineno)
120 return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)
123 self, name, args=None, kwargs=None, dyn_args=None, dyn_kwargs=None, lineno=None
133 self.attr(name, lineno=lineno),
138 lineno=lineno,
[all...]
/third_party/ltp/include/old/
H A Dltp_priv.h44 void tst_vbrk_(const char *file, const int lineno, int ttype,
47 void tst_brk_(const char *file, const int lineno, int ttype,
50 void tst_vres_(const char *file, const int lineno, int ttype,
53 void tst_res_(const char *file, const int lineno, int ttype,
57 #define NO_NEWLIB_ASSERT(file, lineno) \
59 tst_brk_(file, lineno, TBROK, \
/third_party/python/Lib/idlelib/
H A Dformat.py89 lineno, col = map(int, mark.split("."))
90 line = text.get("%d.0" % lineno, "%d.end" % lineno)
93 while text.compare("%d.0" % lineno, "<", "end") and is_all_white(line):
94 lineno = lineno + 1
95 line = text.get("%d.0" % lineno, "%d.end" % lineno)
96 first_lineno = lineno
103 lineno
[all...]
/third_party/node/tools/inspector_protocol/jinja2/
H A Dext.py109 def attr(self, name, lineno=None):
115 self.attr('_my_attribute', lineno=lineno)
117 return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)
120 dyn_kwargs=None, lineno=None):
128 return nodes.Call(self.attr(name, lineno=lineno), args, kwargs,
129 dyn_args, dyn_kwargs, lineno=lineno)
[all...]
/third_party/ltp/include/lapi/
H A Dsafe_rt_signal.h11 static inline int safe_rt_sigaction(const char *file, const int lineno, in safe_rt_sigaction() argument
20 tst_brk_(file, lineno, TBROK | TERRNO, in safe_rt_sigaction()
24 tst_brk_(file, lineno, TBROK | TERRNO, in safe_rt_sigaction()
36 static inline int safe_rt_sigprocmask(const char *file, const int lineno, in safe_rt_sigprocmask() argument
44 tst_brk_(file, lineno, TBROK | TERRNO, in safe_rt_sigprocmask()
48 tst_brk_(file, lineno, TBROK | TERRNO, in safe_rt_sigprocmask()
/third_party/ltp/tools/sparse/sparse-src/Documentation/sphinx/
H A Dir.py39 lineno = self.lineno
49 content.append(index, source, lineno)
50 content.append('' , source, lineno)
51 content.append(name , source, lineno)
52 content.append('' , source, lineno)

Completed in 10 milliseconds

12345678910>>...18