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

12

/bind-9.6-ESV-R11/lib/isc/win32/include/isc/
H A Dkeyboard.h29 int fd; member in struct:__anon202
/bind-9.6-ESV-R11/lib/isc/unix/include/isc/
H A Dkeyboard.h33 int fd; member in struct:__anon194
/bind-9.6-ESV-R11/bin/rndc/win32/
H A Dos.c33 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 Dos.c35 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 Dkeyboard.c39 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 Dfile.c113 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...]
/bind-9.6-ESV-R11/lib/isc/unix/
H A Dkeyboard.c39 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, &current_mode) < 0) {
77 close (fd);
89 (void)tcsetattr(keyboard->fd, TCSAFLUSH, &keyboard->saved_mode);
90 (void)close(keyboard->fd);
[all...]
H A Dentropy.c76 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 Dfile.c244 int fd; local
270 while ((fd = open(templet, O_RDWR|O_CREAT|O_EXCL, mode)) == -1) {
286 f = fdopen(fd, "w+");
294 (void)close(fd);
H A Difiter_ioctl.c630 int fd; local
682 fd = iter->socket6;
684 fd = iter->socket;
691 if (ioctl(fd, SIOCGLIFFLAGS, (char *) &lifreq) < 0) {
720 if (ioctl(fd, SIOCGLIFDSTADDR, (char *)&lifreq)
770 if (ioctl(fd, SIOCGLIFNETMASK, (char *)&lifreq) < 0) {
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/
H A Dutils.cpp90 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());
H A Dutils_test.cpp54 const int fd = open(path, O_RDONLY); local
55 if (fd == -1)
57 const ssize_t length = read(fd, buffer, sizeof(buffer) - 1);
58 close(fd);
/bind-9.6-ESV-R11/bin/named/win32/
H A Dos.c180 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 Drndc-confgen.c104 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/bin/win32/BINDInstall/
H A DVersionInfo.cpp23 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/
H A Dcheck_test.c91 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...]
H A Dutils.c80 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 Dutils_test.c61 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...]
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/detail/
H A Dprocess.cpp218 impl::stream_redirect_fd::stream_redirect_fd(const int fd) argument
220 atf_error_t err = atf_process_stream_init_redirect_fd(&m_sb, fd);
/bind-9.6-ESV-R11/unit/atf-src/atf-run/
H A Dio.cpp232 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 Dio_test.cpp99 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/unit/atf-src/test-programs/
H A Dc_helpers.c65 int fd; local
66 fd = open(path, O_WRONLY | O_TRUNC | O_CREAT, 0644);
67 if (fd == -1)
69 close(fd);
/bind-9.6-ESV-R11/bin/named/unix/
H A Dos.c638 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/tests/dst/
H A Dt_dst.c488 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/unit/atf-src/atf-c/detail/
H A Dfs.c829 int fd; local
840 err = do_mkstemp(buf, &fd);
845 *fdout = fd;

Completed in 452 milliseconds

12