Home
last modified time | relevance | path

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

12345678910>>...18

/third_party/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 …]
/third_party/python/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 …]
/third_party/ltp/lib/
Dtst_netdevice.c18 const int lineno, unsigned int type, unsigned int flags, in create_request() argument
27 ctx = tst_rtnl_create_context(file, lineno); in create_request()
32 if (!tst_rtnl_add_message(file, lineno, ctx, &header, payload, psize)) { in create_request()
33 tst_rtnl_destroy_context(file, lineno, ctx); in create_request()
40 int tst_netdev_index_by_name(const char *file, const int lineno, in tst_netdev_index_by_name() argument
47 tst_brk_(file, lineno, TBROK, in tst_netdev_index_by_name()
52 sock = safe_socket(file, lineno, NULL, AF_INET, SOCK_DGRAM, 0); in tst_netdev_index_by_name()
58 ret = SAFE_IOCTL_(file, lineno, sock, SIOCGIFINDEX, &ifr); in tst_netdev_index_by_name()
59 safe_close(file, lineno, NULL, sock); in tst_netdev_index_by_name()
64 int tst_netdev_set_state(const char *file, const int lineno, in tst_netdev_set_state() argument
[all …]
Dsafe_macros.c27 char *safe_basename(const char *file, const int lineno, in safe_basename() argument
35 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_basename()
43 safe_chdir(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_chdir() argument
51 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_chdir()
54 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_chdir()
62 safe_close(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_close() argument
70 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_close()
73 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_close()
81 safe_creat(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_creat() argument
89 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_creat()
[all …]
Dtst_safe_macros.c22 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid) in safe_setpgid() argument
29 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setpgid()
32 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setpgid()
40 pid_t safe_getpgid(const char *file, const int lineno, pid_t pid) in safe_getpgid() argument
47 tst_brk_(file, lineno, TBROK | TERRNO, "getpgid(%i) failed", in safe_getpgid()
50 tst_brk_(file, lineno, TBROK | TERRNO, in safe_getpgid()
57 int safe_setgroups(const char *file, const int lineno, size_t size, const gid_t *list) in safe_setgroups() argument
64 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setgroups()
67 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setgroups()
75 int safe_getgroups(const char *file, const int lineno, int size, gid_t list[]) in safe_getgroups() argument
[all …]
Dsafe_file_ops.c69 int file_scanf(const char *file, const int lineno, in file_scanf() argument
79 tst_resm_(file, lineno, TWARN, "Failed to open FILE '%s'", in file_scanf()
91 tst_resm_(file, lineno, TWARN, in file_scanf()
97 tst_resm_(file, lineno, TWARN, in file_scanf()
104 tst_resm_(file, lineno, TWARN, "Failed to close FILE '%s'", in file_scanf()
113 tst_resm_(file, lineno, TWARN, "Failed to close FILE '%s'", in file_scanf()
120 void safe_file_scanf(const char *file, const int lineno, in safe_file_scanf() argument
131 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_file_scanf()
143 tst_brkm_(file, lineno, TBROK, cleanup_fn, in safe_file_scanf()
149 tst_brkm_(file, lineno, TBROK, cleanup_fn, in safe_file_scanf()
[all …]
Dsafe_net.c85 int tst_getsockport(const char *file, const int lineno, int sockfd) in tst_getsockport() argument
91 safe_getsockname(file, lineno, NULL, sockfd, sa, &addrlen); in tst_getsockport()
108 int safe_socket(const char *file, const int lineno, void (cleanup_fn)(void), in safe_socket() argument
128 tst_brkm_(file, lineno, ttype | TERRNO, cleanup_fn, in safe_socket()
131 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_socket()
139 int safe_socketpair(const char *file, const int lineno, int domain, int type, in safe_socketpair() argument
157 tst_brkm_(file, lineno, ttype | TERRNO, NULL, in safe_socketpair()
161 tst_brkm_(file, lineno, TBROK | TERRNO, NULL, in safe_socketpair()
169 int safe_getsockopt(const char *file, const int lineno, int sockfd, int level, in safe_getsockopt() argument
175 tst_brkm_(file, lineno, TBROK | TERRNO, NULL, in safe_getsockopt()
[all …]
Dtst_safe_sysv_ipc.c64 int safe_msgget(const char *file, const int lineno, key_t key, int msgflg) in safe_msgget() argument
71 tst_brk_(file, lineno, TBROK | TERRNO, "msgget(%i, %x) failed", in safe_msgget()
74 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgget()
82 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp, in safe_msgsnd() argument
90 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgsnd()
94 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgsnd()
102 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp, in safe_msgrcv() argument
110 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgrcv()
114 tst_brk_(file, lineno, TBROK | TERRNO, in safe_msgrcv()
122 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd, in safe_msgctl() argument
[all …]
Dtst_assert.c12 void tst_assert_int(const char *file, const int lineno, const char *path, int val) in tst_assert_int() argument
16 safe_file_scanf(file, lineno, NULL, path, "%d", &sys_val); in tst_assert_int()
19 tst_res_(file, lineno, TPASS, "%s = %d", path, val); in tst_assert_int()
23 tst_res_(file, lineno, TFAIL, "%s != %d got %d", path, val, sys_val); in tst_assert_int()
26 void tst_assert_ulong(const char *file, const int lineno, const char *path, unsigned long val) in tst_assert_ulong() argument
30 safe_file_scanf(file, lineno, NULL, path, "%lu", &sys_val); in tst_assert_ulong()
33 tst_res_(file, lineno, TPASS, "%s = %lu", path, val); in tst_assert_ulong()
37 tst_res_(file, lineno, TFAIL, "%s != %lu got %lu", path, val, sys_val); in tst_assert_ulong()
40 void tst_assert_file_int(const char *file, const int lineno, const char *path, const char *prefix, … in tst_assert_file_int() argument
46 file_lines_scanf(file, lineno, NULL, 1, path, fmt, &sys_val); in tst_assert_file_int()
[all …]
Dtst_rtnetlink.c29 static int tst_rtnl_grow_buffer(const char *file, const int lineno, in tst_rtnl_grow_buffer() argument
41 buf = safe_realloc(file, lineno, ctx->buffer, size); in tst_rtnl_grow_buffer()
55 void tst_rtnl_destroy_context(const char *file, const int lineno, in tst_rtnl_destroy_context() argument
58 safe_close(file, lineno, NULL, ctx->socket); in tst_rtnl_destroy_context()
64 const int lineno) in tst_rtnl_create_context() argument
69 ctx = safe_malloc(file, lineno, NULL, sizeof(struct tst_rtnl_context)); in tst_rtnl_create_context()
80 ctx->socket = safe_socket(file, lineno, NULL, AF_NETLINK, in tst_rtnl_create_context()
88 if (safe_bind(file, lineno, NULL, ctx->socket, (struct sockaddr *)&addr, in tst_rtnl_create_context()
90 tst_rtnl_destroy_context(file, lineno, ctx); in tst_rtnl_create_context()
94 ctx->buffer = safe_malloc(file, lineno, NULL, ctx->bufsize); in tst_rtnl_create_context()
[all …]
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, const char *callstr, in tst_check_resgid_() argument
[all …]
Dtst_safe_io_uring.c10 int safe_io_uring_init(const char *file, const int lineno, in safe_io_uring_init() argument
18 tst_brk_(file, lineno, TBROK | TERRNO, in safe_io_uring_init()
22 tst_brk_(file, lineno, TBROK | TERRNO, in safe_io_uring_init()
35 uring->sqr_base = safe_mmap(file, lineno, NULL, uring->sqr_mapsize, in safe_io_uring_init()
42 uring->sqr_entries = safe_mmap(file, lineno, NULL, in safe_io_uring_init()
50 uring->cqr_base = safe_mmap(file, lineno, NULL, uring->cqr_mapsize, in safe_io_uring_init()
72 int safe_io_uring_close(const char *file, const int lineno, in safe_io_uring_close() argument
77 safe_munmap(file, lineno, NULL, uring->cqr_base, uring->cqr_mapsize); in safe_io_uring_close()
78 safe_munmap(file, lineno, NULL, uring->sqr_entries, in safe_io_uring_close()
80 safe_munmap(file, lineno, NULL, uring->sqr_base, uring->sqr_mapsize); in safe_io_uring_close()
[all …]
/third_party/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 …]
Dtst_safe_macros.h43 int safe_chroot(const char *file, const int lineno, const char *path);
48 int safe_dup(const char *file, const int lineno, int oldfd);
53 int safe_dup2(const char *file, const int lineno, int oldfd, int newfd);
70 void *safe_realloc(const char *file, const int lineno, void *ptr, size_t size);
91 int safe_pipe2(const char *file, const int lineno, int fildes[2], int flags);
111 int safe_setregid(const char *file, const int lineno,
117 int safe_setreuid(const char *file, const int lineno,
123 int safe_setresgid(const char *file, const int lineno,
128 int safe_setresuid(const char *file, const int lineno,
139 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid);
[all …]
Dtst_safe_clocks.h18 static inline int safe_clock_getres(const char *file, const int lineno, in safe_clock_getres() argument
26 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_getres()
29 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_getres()
37 static inline int safe_clock_gettime(const char *file, const int lineno, in safe_clock_gettime() argument
45 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_gettime()
48 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_gettime()
57 static inline int safe_clock_settime(const char *file, const int lineno, in safe_clock_settime() argument
65 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_settime()
68 tst_brk_(file, lineno, TBROK | TERRNO, in safe_clock_settime()
76 static inline int safe_timer_create(const char *file, const int lineno, in safe_timer_create() argument
[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_recv(const char *file, const int lineno, size_t len,
53 ssize_t safe_recvmsg(const char *file, const int lineno, size_t msg_len,
56 int safe_bind(const char *file, const int lineno, void (cleanup_fn)(void),
[all …]
Dtst_netdevice.h9 int tst_netdev_index_by_name(const char *file, const int lineno,
15 int tst_netdev_set_state(const char *file, const int lineno,
21 int tst_create_veth_pair(const char *file, const int lineno,
26 int tst_netdev_add_device(const char *file, const int lineno,
31 int tst_netdev_remove_device(const char *file, const int lineno,
36 int tst_netdev_add_address(const char *file, const int lineno,
43 int tst_netdev_add_address_inet(const char *file, const int lineno,
50 int tst_netdev_remove_address(const char *file, const int lineno,
57 int tst_netdev_remove_address_inet(const char *file, const int lineno,
62 int tst_netdev_change_ns_fd(const char *file, const int lineno,
[all …]
/third_party/node/tools/inspector_protocol/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 …]
/third_party/skia/third_party/externals/jinja2/
Dparser.py57 def fail(self, msg, lineno=None, exc=TemplateSyntaxError): argument
62 if lineno is None:
63 lineno = self.stream.current.lineno
64 raise exc(msg, lineno, self.name, self.filename)
66 def _fail_ut_eof(self, name, end_token_stack, lineno): argument
101 self.fail(" ".join(message), lineno)
103 def fail_unknown_tag(self, name, lineno=None): argument
108 return self._fail_ut_eof(name, self._end_token_stack, lineno)
110 def fail_eof(self, end_tokens=None, lineno=None): argument
115 return self._fail_ut_eof(None, stack, lineno)
[all …]
/third_party/jinja2/
Dparser.py77 lineno: t.Optional[int] = None,
84 if lineno is None:
85 lineno = self.stream.current.lineno
86 raise exc(msg, lineno, self.name, self.filename)
92 lineno: t.Optional[int],
126 self.fail(" ".join(message), lineno)
129 self, name: str, lineno: t.Optional[int] = None
135 self._fail_ut_eof(name, self._end_token_stack, lineno)
140 lineno: t.Optional[int] = None,
146 self._fail_ut_eof(None, stack, lineno)
[all …]
/third_party/python/Include/internal/
Dpycore_ast.h326 int lineno; member
483 int lineno; member
507 int lineno; member
527 int lineno; member
536 int lineno; member
545 int lineno; member
608 int lineno; member
619 int lineno; member
636 returns, string type_comment, int lineno, int
642 type_comment, int lineno, int col_offset, int
[all …]
/third_party/python/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 …]
/third_party/python/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 …]
/third_party/ltp/libs/libltpnewipc/
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, addr); in probe_free_addr()
[all …]

12345678910>>...18