Home
last modified time | relevance | path

Searched refs:self (Results 1 – 18 of 18) sorted by relevance

/bionic/libc/tools/
Dtest_genseccomp.py11 def setUp(self): argument
14 def get_config(self, arch): argument
18 self.fail("No such architecture")
20 def get_headers(self, arch): argument
21 return self.get_config(arch)[1]
23 def get_switches(self, arch): argument
24 return self.get_config(arch)[2]
26 def test_get_names(self): argument
48 self.assertIn("fchown", names64)
49 self.assertNotIn("fchown", names)
[all …]
Dgenserv.py18 def __init__(self,name,port,proto): argument
19 self.name = name
20 self.port = port
21 self.proto = proto
22 self.aliases = []
24 def add_alias(self,alias): argument
25 self.aliases.append(alias)
27 def __str__(self): argument
28 result = "\\%0o%s" % (len(self.name),self.name)
29 result += "\\%0o\\%0o" % (((self.port >> 8) & 255), self.port & 255)
[all …]
Dgensyscalls.py404 def __init__(self): argument
405 self.syscalls = []
406 self.lineno = 0
408 def E(self, msg): argument
409 print "%d: %s" % (self.lineno, msg)
411 def parse_line(self, line): argument
418 E = self.E
499 self.syscalls.append(t)
503 def parse_open_file(self, fp): argument
505 self.lineno += 1
[all …]
Dgenseccomp.py14 def __init__(self, name, value): argument
15 self.names = [name]
16 self.begin = value
17 self.end = self.begin + 1
19 def __str__(self): argument
20 return "(%s, %s, %s)" % (self.begin, self.end, self.names)
22 def add(self, name, value): argument
23 if value != self.end:
25 self.end += 1
26 self.names.append(name)
Dgenversion-scripts.py45 def run(self): argument
Dpylintrc41 disable=missing-docstring,invalid-name,no-self-use,fixme,design
/bionic/libc/kernel/tools/
Dkernel.py67 def __init__(self,config={}): argument
69 self.reset()
70 self.config = config
72 def reset(self,config={}): argument
73 self.files = set() # set of files being parsed for headers
74 self.headers = {} # maps headers to set of users
75 self.config = config
77 def checkInclude(self, line, from_file, kernel_root=None): argument
87 self.files.add(from_file)
98 if not header in self.headers:
[all …]
Dcpp.py107 def __init__(self, tu=None, group=None, int_data=None, ptr_data=None, argument
109 clang.cindex.Token.__init__(self)
110 self._id = None
111 self._tu = tu
112 self._group = group
113 self._cursor = cursor
117 self.int_data = int_data
118 self.ptr_data = ptr_data
121 def id(self): argument
123 if self._id is None:
[all …]
Dutils.py45 def __init__(self): argument
46 self.line = ""
48 def write(self,msg): argument
49 self.line += msg
52 def get(self): argument
53 return self.line
76 def __init__(self): argument
77 self.old_files = set()
78 self.new_files = set()
79 self.new_data = {}
[all …]
/bionic/libc/bionic/
Dclone.cpp47 pthread_internal_t* self = __get_thread(); in __start_thread() local
48 if (self && self->tid == -1) { in __start_thread()
49 self->tid = syscall(__NR_gettid); in __start_thread()
87 pthread_internal_t* self = __get_thread(); in clone() local
88 pid_t parent_pid = self->invalidate_cached_pid(); in clone()
91 pid_t caller_tid = self->tid; in clone()
96 self->tid = -1; in clone()
118 self->set_cached_pid(parent_pid); in clone()
119 self->tid = caller_tid; in clone()
120 } else if (self->tid == -1) { in clone()
[all …]
Dgettid.cpp35 pthread_internal_t* self = __get_thread(); in gettid() local
36 if (__predict_true(self)) { in gettid()
37 pid_t tid = self->tid; in gettid()
41 self->tid = syscall(__NR_gettid); in gettid()
42 return self->tid; in gettid()
Dgetpid.cpp36 pthread_internal_t* self = __get_thread(); in getpid() local
38 if (__predict_true(self)) { in getpid()
41 if (__predict_true(self->get_cached_pid(&cached_pid))) { in getpid()
Dfork.cpp38 pthread_internal_t* self = __get_thread(); in fork() local
46 &(self->tid)); in fork()
50 self->set_cached_pid(gettid()); in fork()
/bionic/tools/bionicbb/
Dtest_tasks.py11 def test_accepts_googlers(self, mock_commit, *other_checks): argument
20 self.assertFalse(presubmit.should_skip_build({
29 def test_rejects_googlish_domains(self, mock_commit, *other_checks): argument
38 self.assertTrue(presubmit.should_skip_build({
47 def test_rejects_non_googlers(self, mock_commit, *other_checks): argument
56 self.assertTrue(presubmit.should_skip_build({
65 def test_skips_cleanspecs(self, mock_files, *other_checks): argument
71 self.assertTrue(presubmit.should_skip_build({
80 def test_skips_bionicbb(self, mock_files, *other_checks): argument
86 self.assertTrue(presubmit.should_skip_build({
Dgerrit.py21 def __init__(self, code, url): argument
22 self.code = code
23 self.url = url
24 super(GerritError, self).__init__('Error {}: {}'.format(code, url))
/bionic/libc/kernel/uapi/linux/
Dscif_ioctl.h27 struct scif_port_id self; member
73 __u64 self; member
/bionic/libc/system_properties/
Dsystem_properties.cpp354 find_nth* self = reinterpret_cast<find_nth*>(ptr); in FindNth() local
355 if (self->current++ == self->sought) self->result = pi; in FindNth()
/bionic/tests/
Ddlfcn_test.cpp82 void* self = dlopen(nullptr, RTLD_NOW); in TEST() local
83 ASSERT_TRUE(self != nullptr); in TEST()
86 void* sym = dlsym(self, "DlSymTestFunction"); in TEST()
95 ASSERT_EQ(0, dlclose(self)); in TEST()
824 void* self = dlopen("/does/not/exist", RTLD_NOW); in TEST() local
825 ASSERT_TRUE(self == nullptr); in TEST()
892 void* self = dlopen(nullptr, RTLD_NOW); in TEST() local
893 ASSERT_TRUE(self != nullptr); in TEST()
907 sym = dlsym(self, "ThisSymbolDoesNotExist"); in TEST()
911 ASSERT_EQ(0, dlclose(self)); in TEST()
[all …]