1 *** top-3.8beta1/machine/m_sunos5.c.orig Wed Aug 31 05:23:52 2011
2 --- top-3.8beta1/machine/m_sunos5.c Wed Aug 31 05:25:25 2011
6 /* read the whole file */
7 p = malloc(st.st_size);
8 ! (void)pread(fd, p, st.st_size, 0);
10 /* cache the file descriptor if we can */
14 /* read the whole file */
15 p = malloc(st.st_size);
16 ! if (pread(fd, p, st.st_size, 0) != st.st_size)
19 ! op->fd_lpsinfo = -1;
24 /* cache the file descriptor if we can */
28 op->oldtime = TIMESPEC_TO_DOUBLE(lwpp->pr_time);
36 op->oldtime = TIMESPEC_TO_DOUBLE(lwpp->pr_time);