Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 4 of 4) sorted by relevance

/iperf/src/
H A Diperf_util.c138 is_closed(int fd) in is_closed() argument
144 FD_SET(fd, &readset); in is_closed()
427 int fd; in iperf_dump_fdset() local
432 for (fd = 0; fd < nfds; ++fd) { in iperf_dump_fdset()
436 fprintf(fp, "%d", fd); in iperf_dump_fdset()
452 int fd; in daemon() local
495 dup2(fd, STDIN_FILENO); in daemon()
496 dup2(fd, STDOUT_FILENO); in daemon()
497 dup2(fd, STDERR_FILENO); in daemon()
498 if (fd > 2) { in daemon()
[all …]
H A Dnet.c96 pfd.fd = s; in timeout_connect()
371 Nread(int fd, char *buf, size_t count, int prot) in Nread() argument
377 r = read(fd, buf, nleft); in Nread()
398 Nwrite(int fd, const char *buf, size_t count, int prot) in Nwrite() argument
404 r = write(fd, buf, nleft); in Nwrite()
509 setnonblocking(int fd, int nonblocking) in setnonblocking() argument
513 flags = fcntl(fd, F_GETFL, 0); in setnonblocking()
523 if (fcntl(fd, F_SETFL, newflags) < 0) { in setnonblocking()
H A Dnet.h34 int Nread(int fd, char *buf, size_t count, int prot);
35 int Nwrite(int fd, const char *buf, size_t count, int prot) /* __attribute__((hot)) */;
38 int setnonblocking(int fd, int nonblocking);
H A Diperf_api.c102 static int JSON_write(int fd, cJSON *json);
104 static cJSON *JSON_read(int fd);
2570 JSON_write(int fd, cJSON *json) in JSON_write() argument
2596 JSON_read(int fd) in JSON_read() argument
2613 rc = Nread(fd, str, hsize, Ptcp); in JSON_read()
4534 int fd; in iperf_create_pidfile() local
4538 fd = open(test->pidfile, O_RDONLY, 0); in iperf_create_pidfile()
4539 if (fd >= 0) { in iperf_create_pidfile()
4567 if (fd < 0) { in iperf_create_pidfile()
4571 if (write(fd, buf, strlen(buf)) < 0) { in iperf_create_pidfile()
[all …]