/bind-9.11.3/bin/confgen/include/confgen/ |
H A D | os.h | 21 int set_user(FILE *fd, const char *user); 23 * Set the owner of the file referenced by 'fd' to 'user'.
|
/bind-9.11.3/bin/rndc/include/rndc/ |
H A D | os.h | 21 int set_user(FILE *fd, const char *user); 23 * Set the owner of the file referenced by 'fd' to 'user'.
|
/bind-9.11.3/lib/isc/win32/ |
H A D | keyboard.c | 30 int fd; local 34 fd = _fileno(stdin); 35 if (fd < 0) 38 keyboard->fd = fd; 52 keyboard->fd = -1; 65 cc = read(keyboard->fd, &c, 1);
|
H A D | file.c | 112 int fd; local 114 return (gettemp(path, binary, &fd) ? fd : -1); 139 fd_stats(int fd, struct stat *stats) { argument 144 if (fstat(fd, stats) != 0) 151 isc_file_getsizefd(int fd, off_t *size) { argument 157 result = fd_stats(fd, &stats); 353 int fd; local 360 fd = mkstemp(templet, ISC_TRUE); 361 if (fd 378 int fd; local 498 isc_file_isplainfilefd(int fd) argument 665 int fd; local 738 isc_file_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) argument [all...] |
/bind-9.11.3/bin/tests/system/rndc/ |
H A D | gencheck.c | 46 int fd; local 53 fd = -1; 61 fd = open(argv[1], O_RDONLY); 62 if (fd == -1) 66 while ((count = read(fd, buf, sizeof(buf))) != 0) { 81 if (fd != -1) 82 close(fd);
|
/bind-9.11.3/lib/isc/unix/ |
H A D | keyboard.c | 30 int fd; local 36 fd = open("/dev/tty", O_RDONLY, 0); 37 if (fd < 0) 40 keyboard->fd = fd; 42 if (tcgetattr(fd, &keyboard->saved_mode) < 0) { 58 if (tcsetattr(fd, TCSAFLUSH, ¤t_mode) < 0) { 68 close (fd); 80 (void)tcsetattr(keyboard->fd, TCSAFLUSH, &keyboard->saved_mode); 81 (void)close(keyboard->fd); [all...] |
H A D | entropy.c | 69 int fd = source->sources.file.handle; local 81 n = read(fd, buf, ndesired); 97 (void)close(fd); 109 int fd = source->sources.usocket.handle; local 127 if ((n = sendto(fd, buf, 1, 0, NULL, 0)) < 0) { 142 if ((n = sendto(fd, buf, 2, 0, NULL, 0)) < 0) { 159 if (recvfrom(fd, buf, 1, 0, NULL, NULL) != 1) { 198 n = recv(fd, buf, sz_to_recv, 0); 229 close(fd); 385 int maxfd, fd; local 450 make_nonblock(int fd) argument 482 int fd; local [all...] |
H A D | socket.c | 218 #define FDLOCK_ID(fd) ((fd) % FDLOCK_COUNT) 221 #define FDLOCK_ID(fd) 0 341 int fd; member in struct:isc__socket 589 isc__socket_fdwatchcreate(isc_socketmgr_t *manager, int fd, int flags, 860 if (setsockopt(sock->fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, 866 "%s: %s", sock->fd, 901 watch_fd(isc__socketmgr_t *manager, int fd, int msg) { argument 913 evchange.ident = fd; 924 oldevents = manager->epoll_events[fd]; 981 unwatch_fd(isc__socketmgr_t *manager, int fd, int msg) argument 1074 wakeup_socket(isc__socketmgr_t *manager, int fd, int msg) argument 1142 select_poke(isc__socketmgr_t *mgr, int fd, int msg) argument 1181 select_readmsg(isc__socketmgr_t *mgr, int *fd, int *msg) argument 1211 select_poke(isc__socketmgr_t *manager, int fd, int msg) argument 1224 make_nonblock(int fd) argument 2174 socketclose(isc__socketmgr_t *manager, isc__socket_t *sock, int fd) argument 2243 int fd; local 2455 int fd; local 3129 isc__socket_fdwatchcreate(isc_socketmgr_t *manager0, int fd, int flags, isc_sockfdwatch_t callback, void *cbarg, isc_task_t *task, isc_socket_t **socketp) argument 3276 int fd; local 3531 int fd; local 3993 process_fd(isc__socketmgr_t *manager, int fd, isc_boolean_t readable, isc_boolean_t writeable) argument 4136 int fd = events[i].data.fd; local 4210 int msg, fd; local [all...] |
H A D | file.c | 94 fd_stats(int fd, struct stat *stats) { argument 99 if (fstat(fd, stats) != 0) 106 isc_file_getsizefd(int fd, off_t *size) { argument 112 result = fd_stats(fd, &stats); 313 int fd; local 338 while ((fd = open(templet, O_RDWR|O_CREAT|O_EXCL, mode)) == -1) { 354 f = fdopen(fd, "w+"); 362 (void)close(fd); 440 isc_file_isplainfilefd(int fd) { argument 447 if ((fstat(fd, 588 int fd; local 658 isc_file_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) argument [all...] |
/bind-9.11.3/bin/confgen/unix/ |
H A D | os.c | 26 set_user(FILE *fd, const char *user) { argument 34 return (fchown(fileno(fd), pw->pw_uid, -1));
|
/bind-9.11.3/lib/isc/win32/include/isc/ |
H A D | keyboard.h | 20 int fd; member in struct:__anon298
|
/bind-9.11.3/contrib/dnsperf-2.1.0.0-1/ |
H A D | os.h | 28 perf_os_waituntilreadable(int fd, int pipe_fd, isc_int64_t timeout);
|
H A D | os.c | 60 perf_os_waituntilreadable(int fd, int pipe_fd, isc_int64_t timeout) argument 68 FD_SET(fd, &read_fds); 70 maxfd = pipe_fd > fd ? pipe_fd : fd; 83 } else if (FD_ISSET(fd, &read_fds)) {
|
H A D | datafile.c | 40 int fd; member in struct:perf_datafile 81 dfile->fd = STDIN_FILENO; 83 dfile->fd = open(filename, O_RDONLY); 84 if (dfile->fd < 0) 86 if (fstat(dfile->fd, &buf) == 0 && S_ISREG(buf.st_mode)) { 106 if (dfile->fd >= 0 && dfile->fd != STDIN_FILENO) 107 close(dfile->fd); 130 if (lseek(dfile->fd, 0L, SEEK_SET) < 0) 146 result = perf_os_waituntilreadable(dfile->fd, dfil [all...] |
/bind-9.11.3/bin/confgen/win32/ |
H A D | os.c | 24 set_user(FILE *fd, const char *user) { argument
|
/bind-9.11.3/lib/dns/ |
H A D | ssu_external.c | 60 int fd = -1; local 77 fd = socket(AF_UNIX, SOCK_STREAM, 0); 78 if (fd == -1) { 86 if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) == -1) { 92 close(fd); 96 return (fd); 125 int fd; local 146 fd = ux_socket_connect(sock_path); 147 if (fd == -1) 191 close(fd); [all...] |
/bind-9.11.3/unit/atf-src/atf-c/ |
H A D | utils.c | 104 const int fd = open(name, O_RDONLY); local 105 ATF_REQUIRE_MSG(fd != -1, "Cannot open %s", name); 110 while ((count = read(fd, buffer, sizeof(buffer) - 1)) > 0) { 145 const int fd = open(name, O_RDONLY); local 146 ATF_REQUIRE_MSG(fd != -1, "Cannot open %s", name); 153 while ((count = read(fd, buffer, sizeof(buffer))) > 0 && 156 close(fd); 162 close(fd); 216 const int fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644); local 217 ATF_REQUIRE_MSG(fd ! 299 int fd; local 357 atf_utils_readline(const int fd) argument [all...] |
H A D | utils_test.c | 58 const int fd = open(path, O_RDONLY); local 59 ATF_REQUIRE_MSG(fd != -1, "Cannot open %s", path); 60 const ssize_t length = read(fd, buffer, buflen - 1); 61 close(fd); 314 const int fd = open("empty.txt", O_RDONLY); local 315 ATF_REQUIRE(fd != -1); 316 ATF_REQUIRE(atf_utils_readline(fd) == NULL); 317 close(fd); 329 const int fd = open("test.txt", O_RDONLY); local 330 ATF_REQUIRE(fd ! [all...] |
/bind-9.11.3/unit/atf-src/tools/ |
H A D | process.cpp | 245 const int fd = m_pipefds[0]; local 247 return fd; 251 impl::stream_capture::connect_child(const int fd) argument 254 if (m_pipefds[1] != fd) { 255 safe_dup(m_pipefds[1], fd); 277 impl::stream_connect::connect_child(const int fd ATF_DEFS_ATTRIBUTE_UNUSED) 298 impl::stream_inherit::connect_child(const int fd ATF_DEFS_ATTRIBUTE_UNUSED) 302 impl::stream_redirect_fd::stream_redirect_fd(const int fd) : argument 303 m_fd(fd) 319 impl::stream_redirect_fd::connect_child(const int fd) argument 341 connect_child(const int fd) argument [all...] |
H A D | io.cpp | 227 impl::pistream::pistream(const int fd) : argument 229 m_systembuf(fd) 254 safe_read(const int fd, void* buffer, const size_t nbytes, argument 258 while ((ret = ::read(fd, buffer, nbytes)) == -1 && errno == EINTR) {} 285 impl::muxer::read_one(const size_t index, const int fd, std::string& accum, argument 289 const size_t nbytes = safe_read(fd, buffer.get(), m_bufsize - 1, 319 poll_fds[i].fd = m_fds[i]; 341 (void)read_one(i, poll_fds[i].fd, m_buffers[i], true);
|
/bind-9.11.3/lib/isc/tests/ |
H A D | file_test.c | 40 int fd; local 43 fd = creat(filename, 0644); 44 if (fd != -1) 45 close(fd);
|
/bind-9.11.3/lib/isc/unix/include/isc/ |
H A D | keyboard.h | 24 int fd; member in struct:__anon287
|
/bind-9.11.3/unit/atf-src/atf-c++/ |
H A D | utils.cpp | 86 atf::utils::redirect(const int fd, const std::string& path) argument 88 if (fd == STDOUT_FILENO) 90 else if (fd == STDERR_FILENO) 92 atf_utils_redirect(fd, path.c_str());
|
/bind-9.11.3/lib/lwres/win32/include/lwres/ |
H A D | net.h | 69 #define FD_CLR(fd, set) do { \ 72 if (((fd_set FAR *)(set))->fd_array[__i] == (SOCKET) fd) { \ 85 #define FD_SET(fd, set) do { \ 88 if (((fd_set FAR *)(set))->fd_array[__i] == (SOCKET)(fd)) { \ 94 ((fd_set FAR *)(set))->fd_array[__i] = (SOCKET)(fd); \
|
/bind-9.11.3/bin/confgen/ |
H A D | keygen.c | 206 FILE *fd = NULL; local 208 DO("create keyfile", isc_file_safecreate(keyfile, &fd)); 211 if (set_user(fd, user) == -1) 215 fprintf(fd, "key \"%s\" {\n\talgorithm %s;\n" 220 fflush(fd); 221 if (ferror(fd)) 223 if (fclose(fd))
|