Lines Matching refs:st
148 struct stat st;
152 if (fstat(fd, &st) != 0) {
158 *pghpp = malloc(st.st_size);
160 debug("cannot malloc() %ld bytes for pagedata", st.st_size);
163 (void) bzero(*pghpp, st.st_size);
166 if ((res = read(fd, *pghpp, st.st_size)) != st.st_size) {
1015 struct stat st;
1033 if (fstat(lpc->lpc_xmap_fd, &st) != 0) {
1040 if ((st.st_size % sizeof (*lpc->lpc_xmap)) != 0) {
1047 lpc->lpc_xmap = malloc(st.st_size);
1049 debug("cannot malloc() %ld bytes for xmap", st.st_size);
1055 if ((res = pread(lpc->lpc_xmap_fd, lpc->lpc_xmap, st.st_size, 0)) !=
1056 st.st_size) {
1067 lpc->lpc_nxmap = st.st_size / sizeof (*lpc->lpc_xmap);