Searched defs:buf_len (Results 1 - 2 of 2) sorted by relevance

/ast/src/lib/libz/
H A Dminigzip.c139 off_t buf_len; /* length of the input file */ local
144 buf_len = sb.st_size;
145 if (buf_len <= 0) return Z_ERRNO;
148 buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
152 len = gzwrite(out, (char *)buf, (unsigned)buf_len);
154 if (len != (int)buf_len) error(gzerror(out, &err));
156 munmap(buf, buf_len);
/glassfish-3.1.2/installer/src/cpp/share/launcher/zlib-1.1.4/
H A Dminigzip.c141 off_t buf_len; /* length of the input file */ local
146 buf_len = sb.st_size;
147 if (buf_len <= 0) return Z_ERRNO;
150 buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
154 len = gzwrite(out, (char *)buf, (unsigned)buf_len);
156 if (len != (int)buf_len) error(gzerror(out, &err));
158 munmap(buf, buf_len);

Completed in 42 milliseconds