Home
last modified time | relevance | path

Searched refs:zs_fd (Results 1 – 2 of 2) sorted by relevance

/openbsd/src/usr.bin/compress/
Dzopen.c98 int zs_fd; /* File stream for I/O */ member
232 if (write(zs->zs_fd, z_magic, sizeof(z_magic)) != in zwrite()
236 if (write(zs->zs_fd, &tmp, sizeof(tmp)) != sizeof(tmp)) in zwrite()
318 (void)close(zs->zs_fd); in z_close()
324 (void)close(zs->zs_fd); in z_close()
339 setfile(name, zs->zs_fd, sb); in z_close()
341 rval = close(zs->zs_fd); in z_close()
433 if (write(zs->zs_fd, zs->zs_buf, bits) != bits) in output()
446 if (write(zs->zs_fd, zs->zs_buf, bits) != bits) in output()
480 read(zs->zs_fd, header, sizeof(header)); in zread()
[all …]
/openbsd/src/sbin/savecore/
Dzopen.c98 int zs_fd; /* File stream for I/O */ member
231 if (write(zs->zs_fd, z_magic, sizeof(z_magic)) != in zwrite()
235 if (write(zs->zs_fd, &tmp, sizeof(tmp)) != sizeof(tmp)) in zwrite()
317 (void)close(zs->zs_fd); in z_close()
323 (void)close(zs->zs_fd); in z_close()
337 rval = close(zs->zs_fd); in z_close()
435 if (write(zs->zs_fd, zs->zs_buf, bits) != bits) in output()
448 if (write(zs->zs_fd, zs->zs_buf, bits) != bits) in output()
577 zs->zs_fd = fd; in z_open()