Searched defs:fd (Results 1 - 25 of 48) sorted by relevance

12

/bind-9.11.3/lib/isc/win32/include/isc/
H A Dkeyboard.h20 int fd; member in struct:__anon298
/bind-9.11.3/bin/confgen/unix/
H A Dos.c26 set_user(FILE *fd, const char *user) { argument
34 return (fchown(fileno(fd), pw->pw_uid, -1));
/bind-9.11.3/bin/confgen/win32/
H A Dos.c24 set_user(FILE *fd, const char *user) { argument
/bind-9.11.3/lib/isc/unix/include/isc/
H A Dkeyboard.h24 int fd; member in struct:__anon287
/bind-9.11.3/lib/isc/win32/
H A Dkeyboard.c30 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 Dinterfaceiter.c369 SOCKET fd; local
406 fd = socket(AF_INET6, SOCK_DGRAM, 0);
407 if (fd == INVALID_SOCKET)
412 if (bind(fd, (struct sockaddr *)&sin6, sizeof(sin6)) < 0) {
413 closesocket(fd);
416 closesocket(fd);
/bind-9.11.3/lib/isc/unix/
H A Dkeyboard.c30 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, &current_mode) < 0) {
68 close (fd);
80 (void)tcsetattr(keyboard->fd, TCSAFLUSH, &keyboard->saved_mode);
81 (void)close(keyboard->fd);
[all...]
H A Dentropy.c69 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...]
/bind-9.11.3/bin/tests/system/rndc/
H A Dgencheck.c46 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/tests/
H A Dfile_test.c40 int fd; local
43 fd = creat(filename, 0644);
44 if (fd != -1)
45 close(fd);
/bind-9.11.3/contrib/dnsperf-2.1.0.0-1/
H A Dos.c60 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 Ddatafile.c40 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/
H A Dkeygen.c206 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))
/bind-9.11.3/unit/atf-src/atf-c++/
H A Dutils.cpp86 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());
H A Dutils_test.cpp50 const int fd = open(path.c_str(), O_RDONLY); local
51 if (fd == -1)
53 const ssize_t length = read(fd, buffer, sizeof(buffer) - 1);
54 close(fd);
/bind-9.11.3/lib/dns/
H A Dssu_external.c60 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/bin/tests/virtual-time/
H A Dvtwrapper.c280 epoll_wait(int fd, struct epoll_event *events, int maxevents, int timeout) { argument
287 return syscall(SYS_epoll_wait, fd, events, maxevents, timeout);
293 return syscall(SYS_poll, fd, events, maxevents, timeout);
295 return syscall(SYS_poll, fd, events, maxevents, timeout);
/bind-9.11.3/lib/dns/tests/
H A Drbt_serialize_test.c283 int fd; local
319 fd = open("zone.bin", O_RDWR);
320 isc_file_getsizefd(fd, &filesize);
323 MAP_FILE|MAP_PRIVATE, fd, 0);
325 close(fd);
355 int fd; local
384 fd = open("zone.bin", O_RDWR);
385 isc_file_getsizefd(fd, &filesize);
388 MAP_FILE|MAP_PRIVATE, fd, 0);
390 close(fd);
[all...]
/bind-9.11.3/unit/atf-src/atf-c/
H A Dcheck_test.c86 check_line(int fd, const char *exp) argument
88 char *line = atf_utils_readline(fd);
320 int fd = open(path, O_RDONLY); local
321 ATF_CHECK(fd != -1);
322 check_line(fd, "test-message");
323 close(fd);
439 int fd = open(path, O_RDONLY); \
440 ATF_CHECK(fd != -1); \
441 check_line(fd, "Line 1 to " outname " for " resname); \
442 check_line(fd, "Lin
[all...]
H A Dutils.c104 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 Dutils_test.c58 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/bin/win32/BINDInstall/
H A DVersionInfo.cpp25 WIN32_FIND_DATA fd; local
26 memset(&fd, 0, sizeof(WIN32_FIND_DATA));
33 hFile = FindFirstFile(filename, &fd);
/bind-9.11.3/bin/named/win32/
H A Dos.c181 int fd; local
191 fd = open(filename, O_WRONLY|O_CREAT|O_APPEND, mode);
194 fd = open(filename, O_WRONLY|O_CREAT|O_EXCL, mode);
196 return (fd);
228 int fd; local
231 fd = safe_open(filename, mode, ISC_FALSE);
232 if (fd < 0) {
239 fp = fdopen(fd, "w");
244 close(fd);
/bind-9.11.3/unit/atf-src/atf-c++/detail/
H A Dprocess.cpp214 impl::stream_redirect_fd::stream_redirect_fd(const int fd) argument
216 atf_error_t err = atf_process_stream_init_redirect_fd(&m_sb, fd);
/bind-9.11.3/unit/atf-src/test-programs/
H A Dc_helpers.c60 int fd; local
61 fd = open(path, O_WRONLY | O_TRUNC | O_CREAT, 0644);
62 if (fd == -1)
64 close(fd);

Completed in 347 milliseconds

12