Searched refs:dstfd (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/boot/fiocompress/
H A Dfiocompress.c56 static int dstfd; variable
115 if (ioctl(dstfd, _FIO_COMPRESSED, 0) == -1) {
169 dstfd = fd;
202 if (lseek(dstfd, offset, SEEK_SET) == (off_t)-1) {
221 if (write(dstfd, dstbuf, dlen) != dlen) {
232 if (lseek(dstfd, 0, SEEK_SET) == (off_t)-1) {
238 if (write(dstfd, hdr, hlen) != hlen) {
294 if (write(dstfd, dstbuf, dlen) != dlen) {
309 if (write(dstfd, dstbuf, dlen) != dlen) {
/illumos-gate/usr/src/cmd/svc/configd/
H A Dbackend.c937 int dstfd, size_t *sz)
961 if ((n = write(dstfd, &buf[nwr], nrd - nwr)) < 0) {
1492 int srcfd, dstfd; local
1515 if ((dstfd = mkstemp(tmppath)) < 0) {
1539 if ((res = backend_do_copy(src, srcfd, dst, dstfd, &cpsz)) !=
1566 (void) close(dstfd);
936 backend_do_copy(const char *src, int srcfd, const char *dst, int dstfd, size_t *sz) argument

Completed in 63 milliseconds