Home
last modified time | relevance | path

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

/bionic/libc/kernel/tools/
Dcpp.py72 def __init__(self): argument
73 self.id = None
74 self.value = None
75 self.lineno = 0
76 self.colno = 0
78 def set(self,id,val=None): argument
79 self.id = id
81 self.value = val
83 self.value = id
86 def copyFrom(self,src): argument
[all …]
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 …]
Dutils.py51 def __init__(self): argument
52 self.line = ""
54 def write(self,msg): argument
55 self.line += msg
58 def get(self): argument
59 return self.line
123 def __init__(self): argument
124 self.old_files = set()
125 self.new_files = set()
126 self.new_data = {}
[all …]
/bionic/libc/tools/
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 …]
Dbionic_utils.py41 def __init__(self): argument
42 self.syscalls = []
43 self.lineno = 0
45 def E(self, msg): argument
46 print "%d: %s" % (self.lineno, msg)
48 def parse_line(self, line): argument
55 E = self.E
136 self.syscalls.append(t)
143 def parse_file(self, file_path): argument
147 self.lineno += 1
[all …]
Dgensyscalls.py384 def __init__(self): argument
385 self.old_stubs = []
386 self.new_stubs = []
387 self.other_files = []
388 self.syscalls = []
391 def process_file(self, input): argument
394 self.syscalls = parser.syscalls
397 for syscall in self.syscalls:
426 def scan_linux_unistd_h(self, fp, path): argument
437 def gen_glibc_syscalls_h(self): argument
[all …]
Dgenlibgcc_compat.py77 def process(self): argument
/bionic/libc/bionic/
Dfork.cpp39 pthread_internal_t* self = __get_thread(); in fork() local
42 pid_t parent_pid = self->invalidate_cached_pid(); in fork()
45 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, &(self->tid), NULL); in fork()
47 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, NULL, &(self->tid)); in fork()
50 self->set_cached_pid(gettid()); in fork()
53 self->set_cached_pid(parent_pid); in fork()
Dgetpid.cpp36 pthread_internal_t* self = __get_thread(); in getpid() local
40 if (__predict_true(self->get_cached_pid(&cached_pid))) { in getpid()
Dclone.cpp70 pthread_internal_t* self = __get_thread(); in clone() local
71 pid_t parent_pid = self->invalidate_cached_pid(); in clone()
81 self->set_cached_pid(parent_pid); in clone()
/bionic/tests/
Ddlfcn_test.cpp51 void* self = dlopen(NULL, RTLD_NOW); in TEST() local
52 ASSERT_TRUE(self != NULL); in TEST()
55 void* sym = dlsym(self, "DlSymTestFunction"); in TEST()
64 ASSERT_EQ(0, dlclose(self)); in TEST()
231 void* self = dlopen("/does/not/exist", RTLD_NOW); in TEST() local
232 ASSERT_TRUE(self == NULL); in TEST()
263 void* self = dlopen(NULL, RTLD_NOW); in TEST() local
264 ASSERT_TRUE(self != NULL); in TEST()
280 sym = dlsym(self, NULL); in TEST()
286 sym = dlsym(self, "ThisSymbolDoesNotExist"); in TEST()
[all …]