/external/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create_common.c | 32 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 …]
|
D | memfd_create_common.h | 99 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/ |
D | conv.py | 68 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/ |
D | conv.py | 68 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/ |
D | safe_macros_fn.h | 39 char* safe_basename(const char *file, const int lineno, 42 int safe_chdir(const char *file, const int lineno, 45 int safe_close(const char *file, const int lineno, 48 int safe_creat(const char *file, const int lineno, 51 char* safe_dirname(const char *file, const int lineno, 54 char* safe_getcwd(const char *file, const int lineno, 57 struct passwd* safe_getpwnam(const char *file, const int lineno, 60 int safe_getrusage(const char *file, const int lineno, 63 void* safe_malloc(const char *file, const int lineno, 66 int safe_mkdir(const char *file, const int lineno, [all …]
|
D | tst_safe_macros.h | 27 int safe_access(const char *filename, const int lineno, const char *pathname, 48 int safe_chroot(const char *file, const int lineno, const char *path); 53 int safe_dup(const char *file, const int lineno, int oldfd); 58 int safe_dup2(const char *file, const int lineno, int oldfd, int newfd); 75 void *safe_realloc(const char *file, const int lineno, void *ptr, size_t size); 96 int safe_pipe2(const char *file, const int lineno, int fildes[2], int flags); 116 int safe_setregid(const char *file, const int lineno, 122 int safe_setreuid(const char *file, const int lineno, 128 int safe_setresgid(const char *file, const int lineno, 133 int safe_setresuid(const char *file, const int lineno, [all …]
|
D | safe_net_fn.h | 28 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 …]
|
D | tst_safe_clocks.h | 18 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 …]
|
/external/ltp/lib/ |
D | tst_netdevice.c | 18 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 …]
|
D | safe_macros.c | 28 char *safe_basename(const char *file, const int lineno, in safe_basename() argument 36 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_basename() 44 safe_chdir(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_chdir() argument 52 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_chdir() 55 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_chdir() 63 safe_close(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_close() argument 71 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_close() 74 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_close() 82 safe_creat(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_creat() argument 90 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_creat() [all …]
|
D | tst_safe_macros.c | 23 int safe_access(const char *file, const int lineno, in safe_access() argument 31 tst_brk_(file, lineno, TBROK | TERRNO, in safe_access() 34 tst_brk_(file, lineno, TBROK | TERRNO, in safe_access() 42 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid) in safe_setpgid() argument 49 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setpgid() 52 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setpgid() 60 pid_t safe_getpgid(const char *file, const int lineno, pid_t pid) in safe_getpgid() argument 67 tst_brk_(file, lineno, TBROK | TERRNO, "getpgid(%i) failed", in safe_getpgid() 70 tst_brk_(file, lineno, TBROK | TERRNO, in safe_getpgid() 77 int safe_setgroups(const char *file, const int lineno, size_t size, const gid_t *list) in safe_setgroups() argument [all …]
|
D | safe_file_ops.c | 69 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 …]
|
D | safe_net.c | 85 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 …]
|
D | tst_assert.c | 12 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 …]
|
D | tst_safe_sysv_ipc.c | 64 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 …]
|
D | tst_rtnetlink.c | 29 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 …]
|
/external/libchrome/third_party/jinja2/ |
D | parser.py | 52 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/ |
D | parser.py | 55 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/ |
D | ast.py | 54 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/ |
D | parser.py | 28 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/ |
D | suspicious.py | 63 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/ |
D | suspicious.py | 64 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/python/cpython3/Include/internal/ |
D | pycore_ast.h | 326 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 …]
|
/external/python/cpython2/Lib/idlelib/ |
D | FormatParagraph.py | 83 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/ |
D | inline_gettext_extension.py | 31 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 …]
|