/bind-9.6-ESV-R11/bin/rndc/win32/ |
H A D | os.c | 33 set_user(FILE *fd, const char *user) { argument 46 int fd; local 58 fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); 59 if (fd == -1) 61 f = fdopen(fd, "w"); 63 close(fd);
|
/bind-9.6-ESV-R11/bin/rndc/unix/ |
H A D | os.c | 35 set_user(FILE *fd, const char *user) { argument 43 return (fchown(fileno(fd), pw->pw_uid, -1)); 48 int fd; local 63 fd = open(filename, flags, S_IRUSR | S_IWUSR); 64 if (fd == -1) 66 f = fdopen(fd, "w"); 68 close(fd);
|
/bind-9.6-ESV-R11/lib/isc/win32/ |
H A D | keyboard.c | 39 int fd; local 43 fd = _fileno(stdin); 44 if (fd < 0) 47 keyboard->fd = fd; 61 keyboard->fd = -1; 74 cc = read(keyboard->fd, &c, 1);
|
H A D | file.c | 113 int fd; local 115 return (gettemp(path, binary, &fd) ? fd : -1); 297 int fd; local 304 fd = mkstemp(templet, ISC_TRUE); 305 if (fd == -1) 308 close(fd); 322 int fd; local 332 fd = mkstemp(templet, binary); 334 if (fd [all...] |
H A D | socket.c | 237 SOCKET fd; /* file handle */ member in struct:isc_socket 392 printf("\t\tfd: %u\n", sock->fd); 545 hiocp = CreateIoCompletionPort((HANDLE)sock->fd, 589 if (sock->fd != INVALID_SOCKET) { 590 closesocket(sock->fd); 591 sock->fd = INVALID_SOCKET; 676 Result = WSASendTo(sock->fd, messagehdr->msg_iov, 745 INSIST(sock->fd != INVALID_SOCKET); 762 Result = WSARecvFrom((SOCKET)sock->fd, iov, 1, 813 "queue_io_request: fd 876 make_nonblock(SOCKET fd) argument 907 connection_reset_fix(SOCKET fd) argument [all...] |
/bind-9.6-ESV-R11/lib/isc/unix/ |
H A D | keyboard.c | 39 int fd; local 45 fd = open("/dev/tty", O_RDONLY, 0); 46 if (fd < 0) 49 keyboard->fd = fd; 51 if (tcgetattr(fd, &keyboard->saved_mode) < 0) { 67 if (tcsetattr(fd, TCSAFLUSH, ¤t_mode) < 0) { 77 close (fd); 89 (void)tcsetattr(keyboard->fd, TCSAFLUSH, &keyboard->saved_mode); 90 (void)close(keyboard->fd); [all...] |
H A D | entropy.c | 76 int fd = source->sources.file.handle; local 88 n = read(fd, buf, ndesired); 104 (void)close(fd); 116 int fd = source->sources.usocket.handle; local 134 if ((n = sendto(fd, buf, 1, 0, NULL, 0)) < 0) { 149 if ((n = sendto(fd, buf, 2, 0, NULL, 0)) < 0) { 166 if (recvfrom(fd, buf, 1, 0, NULL, NULL) != 1) { 205 n = recv(fd, buf, sz_to_recv, 0); 236 close(fd); 392 int maxfd, fd; local 457 make_nonblock(int fd) argument 489 int fd; local [all...] |
H A D | socket.c | 190 #define FDLOCK_ID(fd) ((fd) % FDLOCK_COUNT) 193 #define FDLOCK_ID(fd) 0 296 int fd; member in struct:isc_socket 606 if (setsockopt(sock->fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, 612 "%s: %s", sock->fd, 636 watch_fd(isc_socketmgr_t *manager, int fd, int msg) { argument 648 evchange.ident = fd; 661 event.data.fd = fd; 704 unwatch_fd(isc_socketmgr_t *manager, int fd, int msg) argument 791 wakeup_socket(isc_socketmgr_t *manager, int fd, int msg) argument 859 select_poke(isc_socketmgr_t *mgr, int fd, int msg) argument 898 select_readmsg(isc_socketmgr_t *mgr, int *fd, int *msg) argument 930 select_poke(isc_socketmgr_t *manager, int fd, int msg) argument 943 make_nonblock(int fd) argument 1771 closesocket(isc_socketmgr_t *manager, isc_socket_t *sock, int fd) argument 1835 int fd; local 2493 isc_socket_fdwatchcreate(isc_socketmgr_t *manager, int fd, int flags, isc_sockfdwatch_t callback, void *cbarg, isc_task_t *task, isc_socket_t **socketp) argument 2591 int fd; local 2824 int fd; local 3269 process_fd(isc_socketmgr_t *manager, int fd, isc_boolean_t readable, isc_boolean_t writeable) argument 3484 int msg, fd; local [all...] |
/bind-9.6-ESV-R11/bin/rndc/include/rndc/ |
H A D | os.h | 36 int set_user(FILE *fd, const char *user); 38 * Set the owner of the file referenced by 'fd' to 'user'.
|
/bind-9.6-ESV-R11/unit/atf-src/atf-c/ |
H A D | utils.c | 80 const int fd = open(name, O_RDONLY); local 81 ATF_REQUIRE_MSG(fd != -1, "Cannot open %s", name); 86 while ((count = read(fd, buffer, sizeof(buffer) - 1)) > 0) { 121 const int fd = open(name, O_RDONLY); local 122 ATF_REQUIRE_MSG(fd != -1, "Cannot open %s", name); 129 while ((count = read(fd, buffer, sizeof(buffer))) > 0 && 132 close(fd); 138 close(fd); 192 const int fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, 0644); local 193 ATF_REQUIRE_MSG(fd ! 266 int fd; local 324 atf_utils_readline(const int fd) argument [all...] |
H A D | utils_test.c | 61 const int fd = open(path, O_RDONLY); local 62 ATF_REQUIRE_MSG(fd != -1, "Cannot open %s", path); 63 const ssize_t length = read(fd, buffer, buflen - 1); 64 close(fd); 309 const int fd = open("empty.txt", O_RDONLY); local 310 ATF_REQUIRE(fd != -1); 311 ATF_REQUIRE(atf_utils_readline(fd) == NULL); 312 close(fd); 324 const int fd = open("test.txt", O_RDONLY); local 325 ATF_REQUIRE(fd ! [all...] |
H A D | check_test.c | 91 check_line(int fd, const char *exp) argument 93 char *line = atf_utils_readline(fd); 325 int fd = open(path, O_RDONLY); local 326 ATF_CHECK(fd != -1); 327 check_line(fd, "test-message"); 328 close(fd); 444 int fd = open(path, O_RDONLY); \ 445 ATF_CHECK(fd != -1); \ 446 check_line(fd, "Line 1 to " outname " for " resname); \ 447 check_line(fd, "Lin [all...] |
/bind-9.6-ESV-R11/lib/isc/win32/include/isc/ |
H A D | keyboard.h | 29 int fd; member in struct:__anon202
|
H A D | net.h | 155 #define FD_CLR(fd, set) do { \ 158 if (((fd_set FAR *)(set))->fd_array[__i] == (SOCKET) fd) { \ 171 #define FD_SET(fd, set) do { \ 174 if (((fd_set FAR *)(set))->fd_array[__i] == (SOCKET)(fd)) { \ 180 ((fd_set FAR *)(set))->fd_array[__i] = (SOCKET)(fd); \
|
/bind-9.6-ESV-R11/lib/isc/unix/include/isc/ |
H A D | keyboard.h | 33 int fd; member in struct:__anon194
|
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/ |
H A D | utils.cpp | 90 atf::utils::redirect(const int fd, const std::string& path) argument 92 if (fd == STDOUT_FILENO) 94 else if (fd == STDERR_FILENO) 96 atf_utils_redirect(fd, path.c_str());
|
/bind-9.6-ESV-R11/lib/lwres/win32/include/lwres/ |
H A D | net.h | 78 #define FD_CLR(fd, set) do { \ 81 if (((fd_set FAR *)(set))->fd_array[__i] == (SOCKET) fd) { \ 94 #define FD_SET(fd, set) do { \ 97 if (((fd_set FAR *)(set))->fd_array[__i] == (SOCKET)(fd)) { \ 103 ((fd_set FAR *)(set))->fd_array[__i] = (SOCKET)(fd); \
|
/bind-9.6-ESV-R11/bin/named/win32/ |
H A D | os.c | 180 int fd; local 190 fd = open(filename, O_WRONLY|O_CREAT|O_APPEND, 194 fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, 197 return (fd); 211 int fd; local 238 fd = safe_open(filename, ISC_FALSE); 239 if (fd < 0) { 246 lockfile = fdopen(fd, "w"); 251 (void)close(fd);
|
/bind-9.6-ESV-R11/bin/rndc/ |
H A D | rndc-confgen.c | 104 FILE *fd; local 106 fd = safe_create(keyfile); 107 if (fd == NULL) 110 if (set_user(fd, user) == -1) 113 fprintf(fd, "key \"%s\" {\n\talgorithm hmac-md5;\n" 117 fflush(fd); 118 if (ferror(fd)) 120 if (fclose(fd))
|
/bind-9.6-ESV-R11/unit/atf-src/atf-run/ |
H A D | io.cpp | 232 impl::pistream::pistream(const int fd) : argument 234 m_systembuf(fd) 259 safe_read(const int fd, void* buffer, const size_t nbytes, argument 263 while ((ret = ::read(fd, buffer, nbytes)) == -1 && errno == EINTR) {} 290 impl::muxer::read_one(const size_t index, const int fd, std::string& accum, argument 294 const size_t nbytes = safe_read(fd, buffer.get(), m_bufsize - 1, 324 poll_fds[i].fd = m_fds[i]; 346 (void)read_one(i, poll_fds[i].fd, m_buffers[i], true);
|
H A D | io_test.cpp | 99 int fd = ::open("test_read.txt", O_RDONLY); local 100 ATF_REQUIRE(fd != -1); 101 systembuf sb(fd, bufsize); 104 ::close(fd); 114 int fd = ::open("test_write.txt", O_WRONLY | O_CREAT | O_TRUNC, local 116 ATF_REQUIRE(fd != -1); 117 systembuf sb(fd, bufsize); 120 ::close(fd);
|
/bind-9.6-ESV-R11/bin/tests/dst/ |
H A D | t_dst.c | 488 int fd; local 502 fd = open(path, O_CREAT|O_TRUNC|O_WRONLY, S_IRWXU|S_IRWXO|S_IRWXG); 503 if (fd < 0) { 515 rval = write(fd, &val, 1); 526 rval = write(fd, &val, 1); 536 rval = write(fd, &val, 1); 545 rval = write(fd, &val, 1); 550 (void) close(fd); 563 int fd; local 569 fd 642 int fd; local [all...] |
/bind-9.6-ESV-R11/bin/named/unix/ |
H A D | os.c | 638 int fd; local 650 fd = open(filename, O_WRONLY|O_CREAT|O_APPEND, 655 fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, 658 return (fd); 713 int fd; local 751 fd = safe_open(filename, ISC_FALSE); 752 if (fd < 0) { 759 lockfile = fdopen(fd, "w"); 764 (void)close(fd);
|
/bind-9.6-ESV-R11/bin/win32/BINDInstall/ |
H A D | VersionInfo.cpp | 23 WIN32_FIND_DATA fd; local 24 memset(&fd, 0, sizeof(WIN32_FIND_DATA)); 31 hFile = FindFirstFile(filename, &fd);
|
/bind-9.6-ESV-R11/unit/atf-src/atf-c/detail/ |
H A D | process.h | 72 const int fd);
|