Searched refs:z_fd (Results 1 – 2 of 2) sorted by relevance
| /openbsd-src/usr.bin/compress/ |
| H A D | gzopen.c | 85 int z_fd; /* .gz file */ member 120 s->z_fd = 0; in gz_ropen() 137 s->z_fd = fd; in gz_ropen() 156 s->z_stream.avail_in = read(s->z_fd, s->z_buf, Z_BUFSIZE); in get_byte() 278 s->z_stream.avail_in = read(s->z_fd, s->z_buf, in gz_read() 342 if (write(s->z_fd, &y, sizeof(y)) != sizeof(y)) in put_int32() 372 if (writev(s->z_fd, iov, name ? 2 : 1) == -1) in put_header() 398 s->z_fd = 0; in gz_wopen() 417 s->z_fd = fd; in gz_wopen() 439 if (write(s->z_fd, s->z_buf, Z_BUFSIZE) != Z_BUFSIZE) in gz_write() [all …]
|
| H A D | zipopen.c | 58 int z_fd; /* zip file descriptor */ member 75 ssize_t nread = read(s->z_fd, s->z_buf, Z_BUFSIZE); in get_byte() 266 s->z_fd = fd; in zip_ropen() 326 ssize_t nread = read(s->z_fd, s->z_buf, Z_BUFSIZE); in zip_read() 449 (void)close(s->z_fd); in zip_close()
|