HomeSort by: relevance | last modified time | path
    Searched defs:wfd (Results 1 - 10 of 10) sorted by relevancy

  /src/tests/kernel/kqueue/write/
t_fifo.c 78 int rfd, wfd, kq; local in function:ATF_TC_BODY
85 ATF_REQUIRE((wfd = open(fifo_path, O_WRONLY | O_NONBLOCK)) >= 0);
89 pipe_buf = fpathconf(wfd, _PC_PIPE_BUF);
95 EV_SET(&event[0], wfd, EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0);
100 ATF_REQUIRE(event[0].ident == (uintptr_t)wfd);
108 while (write(wfd, buf, pipe_buf) != -1) {
132 ATF_REQUIRE(event[0].ident == (uintptr_t)wfd);
135 (void)close(wfd);
  /src/tests/kernel/kqueue/read/
t_fifo.c 78 int rfd, wfd, kq; local in function:ATF_TC_BODY
85 ATF_REQUIRE((wfd = open(fifo_path, O_WRONLY | O_NONBLOCK)) >= 0);
89 pipe_buf = fpathconf(wfd, _PC_PIPE_BUF);
102 ATF_REQUIRE(write(wfd, buf, 1) == 1);
117 (void)close(wfd);
127 ATF_REQUIRE((wfd = open(fifo_path, O_WRONLY | O_NONBLOCK)) >= 0);
130 (void)close(wfd);
  /src/usr.bin/last/
want.c 74 int wfd; local in function:wtmp
91 wfd = STDIN_FILENO;
93 } else if ((wfd = open(file, O_RDONLY, 0)) < 0) {
97 if (lseek(wfd, 0, SEEK_CUR) < 0) {
115 tlen = read(wfd, buf, len);
126 wfd = tempfd;
129 if (fstat(wfd, &stb) == -1)
148 ret = pread(wfd, buf, size, offset);
  /src/usr.sbin/mdsetimage/
mdsetimage.c 188 int wfd; local in function:main
194 wfd = fsfd;
199 wfd = kfd;
210 if ((rv = write(wfd, buf, todo)) != todo) {
  /src/bin/cat/
cat.c 288 int wfd; local in function:raw_cat
290 wfd = fileno(stdout);
291 if (wfd < 0)
297 if (fstat(wfd, &sbuf) == 0 && sbuf.st_blksize > 0 &&
313 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
  /src/usr.sbin/pf/pfs/
pfs.c 124 int wfd; local in function:dump_states_binary
132 wfd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, 0600);
133 if (wfd == -1)
138 close(wfd);
146 if (write(wfd, &nb_states, sizeof(nb_states)) != sizeof(nb_states)) {
154 if (write(wfd, &p[i], sizeof(*p)) != sizeof(*p)) {
163 close(wfd);
  /src/usr.bin/sed/
defs.h 68 int wfd; /* Cached file descriptor */ member in struct:s_subst
  /src/tests/lib/libc/sys/
t_poll.c 275 int rfd, wfd; local in function:ATF_TC_BODY
284 RL(wfd = open(fifo_path, O_WRONLY | O_NONBLOCK));
287 pipe_buf = fpathconf(wfd, _PC_PIPE_BUF);
295 pfd[1].fd = wfd;
307 RL(nwrit = write(wfd, buf, 1));
327 while (write(wfd, buf, pipe_buf) != -1) {
385 RL(close(wfd));
404 int rfd, wfd; local in function:ATF_TC_BODY
411 RL(wfd = open(fifo_path, O_WRONLY));
417 RL(close(wfd));
454 int rfd, wfd; local in function:ATF_TC_BODY
    [all...]
  /src/sys/kern/
uipc_syscalls.c 1275 unsigned rfd, wfd; local in function:pipe1
1293 error = fsocreate(AF_LOCAL, &wso, SOCK_STREAM|soflags, 0, &wfd, &wf,
1328 fd_affix(p, wf, wfd);
1331 fildes[1] = wfd;
1335 fd_abort(p, wf, wfd);
  /src/sbin/fdisk/
fdisk.c 207 static int fd = -1, wfd = -1, *rfd = &fd; variable in typeref:typename:int
490 rfd = &wfd;
2516 wfd = open(disk_file, update ? O_RDWR|O_CREAT : O_RDONLY, 0777);
2517 if (wfd == -1) {
2524 wfd = fd;
2562 if (wfd == -1)
2563 errx(1, "write_disk(); wfd == -1");
2569 if (lseek(wfd, rnd, SEEK_SET) == (off_t)-1)
2573 return write(wfd, buf, 512);
2575 if ((nr = read(wfd, iobuf, secsize)) != secsize
    [all...]

Completed in 17 milliseconds