Home
last modified time | relevance | path

Searched refs:fde (Results 1 – 9 of 9) sorted by relevance

/system/core/adb/
Dfdevent.c48 static void dump_fde(fdevent *fde, const char *info) in dump_fde() argument
50 fprintf(stderr,"FDE #%03d %c%c%c %s\n", fde->fd, in dump_fde()
51 fde->state & FDE_READ ? 'R' : ' ', in dump_fde()
52 fde->state & FDE_WRITE ? 'W' : ' ', in dump_fde()
53 fde->state & FDE_ERROR ? 'E' : ' ', in dump_fde()
57 #define dump_fde(fde, info) do { } while(0) argument
100 static void fdevent_connect(fdevent *fde) in fdevent_connect() argument
106 ev.data.ptr = fde; in fdevent_connect()
109 if(epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fde->fd, &ev)) { in fdevent_connect()
116 static void fdevent_disconnect(fdevent *fde) in fdevent_disconnect() argument
[all …]
Dsysdeps_win32.c1247 static void dump_fde(fdevent *fde, const char *info) in dump_fde() argument
1249 fprintf(stderr,"FDE #%03d %c%c%c %s\n", fde->fd, in dump_fde()
1250 fde->state & FDE_READ ? 'R' : ' ', in dump_fde()
1251 fde->state & FDE_WRITE ? 'W' : ' ', in dump_fde()
1252 fde->state & FDE_ERROR ? 'E' : ' ', in dump_fde()
1256 #define dump_fde(fde, info) do { } while(0) argument
1340 fdevent* fde = fd_table[ fd - WIN32_FH_BASE ]; in event_hook_signal() local
1342 if (fde != NULL && fde->fd == fd) { in event_hook_signal()
1343 if ((fde->state & FDE_PENDING) == 0) { in event_hook_signal()
1344 fde->state |= FDE_PENDING; in event_hook_signal()
[all …]
Dfdevent.h44 void fdevent_destroy(fdevent *fde);
48 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg);
57 void fdevent_set(fdevent *fde, unsigned events);
58 void fdevent_add(fdevent *fde, unsigned events);
59 void fdevent_del(fdevent *fde, unsigned events);
61 void fdevent_set_timeout(fdevent *fde, int64_t timeout_ms);
Djdwp_service.c109 fdevent* fde; member
172 if (proc->fde != NULL) { in jdwp_process_free()
173 fdevent_destroy(proc->fde); in jdwp_process_free()
174 proc->fde = NULL; in jdwp_process_free()
208 proc->fde = fdevent_create( socket, jdwp_process_event, proc ); in jdwp_process_alloc()
209 if (proc->fde == NULL) { in jdwp_process_alloc()
215 proc->fde->state |= FDE_DONT_CLOSE; in jdwp_process_alloc()
227 fdevent_add(proc->fde, FDE_READ); in jdwp_process_alloc()
358 fdevent_del( proc->fde, FDE_WRITE ); in jdwp_process_event()
396 fdevent_add( proc->fde, FDE_WRITE ); in create_jdwp_connection_fd()
[all …]
Dsysdeps.h185 void fdevent_destroy(fdevent *fde);
186 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg);
188 void fdevent_set(fdevent *fde, unsigned events);
189 void fdevent_add(fdevent *fde, unsigned events);
190 void fdevent_del(fdevent *fde, unsigned events);
Dsockets.c175 fdevent_add(&s->fde, FDE_WRITE); in local_socket_enqueue()
184 fdevent_add(&s->fde, FDE_READ); in local_socket_ready()
203 fdevent_remove(&s->fde); in local_socket_destroy()
241 fdevent_del(&s->fde, FDE_READ); in local_socket_close_locked()
294 fdevent_del(&s->fde, FDE_WRITE); in local_socket_event_func()
347 fdevent_del(&s->fde, FDE_READ); in local_socket_event_func()
376 fdevent_install(&s->fde, fd, local_socket_event_func, s); in create_local_socket()
Dadb.h96 fdevent fde; member
208 fdevent fde; member
Dadb.c454 fdevent_remove(&l->fde); in free_listener()
568 fdevent_install(&l->fde, l->fd, ss_listener_event_func, l); in install_listener()
570 fdevent_install(&l->fde, l->fd, listener_event_func, l); in install_listener()
572 fdevent_set(&l->fde, FDE_READ); in install_listener()
/system/core/sdcard/
Dsdcard.c660 struct fuse_dirent *fde = (struct fuse_dirent*) buffer; in handle_fuse_request() local
669 fde->ino = FUSE_UNKNOWN_INO; in handle_fuse_request()
670 fde->off = 0; in handle_fuse_request()
671 fde->type = de->d_type; in handle_fuse_request()
672 fde->namelen = strlen(de->d_name); in handle_fuse_request()
673 memcpy(fde->name, de->d_name, fde->namelen + 1); in handle_fuse_request()
674 fuse_reply(fuse, hdr->unique, fde, in handle_fuse_request()
675 FUSE_DIRENT_ALIGN(sizeof(struct fuse_dirent) + fde->namelen)); in handle_fuse_request()