Searched refs:fd (Results 1 – 4 of 4) sorted by relevance
| /memcached-1.4.29/ |
| H A D | daemon.c | 46 int fd; in daemonize() local 67 if (noclose == 0 && (fd = open("/dev/null", O_RDWR, 0)) != -1) { in daemonize() 68 if(dup2(fd, STDIN_FILENO) < 0) { in daemonize() 72 if(dup2(fd, STDOUT_FILENO) < 0) { in daemonize() 76 if(dup2(fd, STDERR_FILENO) < 0) { in daemonize() 81 if (fd > STDERR_FILENO) { in daemonize() 82 if(close(fd) < 0) { in daemonize()
|
| H A D | thread.c | 81 static void thread_libevent_process(int fd, short which, void *arg); 390 static void thread_libevent_process(int fd, short which, void *arg) { in thread_libevent_process() argument 396 if (read(fd, buf, 1) != 1) { in thread_libevent_process() 433 if (read(fd, &timeout_fd, sizeof(timeout_fd)) != sizeof(timeout_fd)) { in thread_libevent_process()
|
| H A D | logger.c | 394 watchers_pollfds[nfd].fd = w->sfd; in logger_thread_poll_watchers() 398 watchers_pollfds[nfd].fd = w->sfd; in logger_thread_poll_watchers()
|
| H A D | memcached.c | 94 static void event_handler(const int fd, const short which, void *arg); 141 static void maxconns_handler(const int fd, const short which, void *arg) { in maxconns_handler() argument 144 if (fd == -42 || allow_new_conns == false) { in maxconns_handler() 4814 void event_handler(const int fd, const short which, void *arg) { in event_handler() argument 4823 if (fd != c->sfd) { in event_handler() 5198 static void clock_handler(const int fd, const short which, void *arg) { in clock_handler() argument
|