Home
last modified time | relevance | path

Searched refs:nfd (Results 1 – 5 of 5) sorted by relevance

/system/core/toolbox/
Dalarm.c21 int nfd; in alarm_main() local
159 nfd = open("/sys/android_power/acquire_full_wake_lock", O_RDWR); in alarm_main()
160 write(nfd, wake_lock_id, sizeof(wake_lock_id) - 1); in alarm_main()
161 close(nfd); in alarm_main()
163 nfd = open("/sys/android_power/release_wake_lock", O_RDWR); in alarm_main()
164 write(nfd, wake_lock_id, sizeof(wake_lock_id) - 1); in alarm_main()
165 close(nfd); in alarm_main()
Dnotify.c14 int nfd, ffd; in notify_main() local
61 nfd = inotify_init(); in notify_main()
62 if(nfd < 0) { in notify_main()
69 res = inotify_add_watch(nfd, file_names[i], event_mask); in notify_main()
86 res = read(nfd, event_buf, sizeof(event_buf)); in notify_main()
Dgetevent.c407 static int read_notify(const char *dirname, int nfd, int print_flags) in read_notify() argument
417 res = read(nfd, event_buf, sizeof(event_buf)); in read_notify()
/system/core/debuggerd/
Dgetevent.c93 static int read_notify(const char *dirname, int nfd) in read_notify() argument
103 res = read(nfd, event_buf, sizeof(event_buf)); in read_notify()
/system/core/sh/
Deval.c135 int nfd; in sh_pipe() local
141 nfd = fcntl(fds[0], F_DUPFD, 3); in sh_pipe()
142 if (nfd != -1) { in sh_pipe()
144 fds[0] = nfd; in sh_pipe()
149 nfd = fcntl(fds[1], F_DUPFD, 3); in sh_pipe()
150 if (nfd != -1) { in sh_pipe()
152 fds[1] = nfd; in sh_pipe()