Lines Matching refs:p2
54 void *p2; in bread() local
59 BUF_MALLOC(&p2, data, size); in bread()
60 if (p2 == NULL) { in bread()
64 cnt = pread(disk->d_fd, p2, size, (off_t)(blockno * disk->d_bsize)); in bread()
77 if (p2 != data) { in bread()
78 memcpy(data, p2, size); in bread()
79 free(p2); in bread()
83 if (p2 != data) { in bread()
84 free(p2); in bread()
94 void *p2; in bwrite() local
103 BUF_MALLOC(&p2, data, size); in bwrite()
104 if (p2 == NULL) { in bwrite()
108 if (p2 != data) in bwrite()
109 memcpy(p2, data, size); in bwrite()
110 cnt = pwrite(disk->d_fd, p2, size, (off_t)(blockno * disk->d_bsize)); in bwrite()
111 if (p2 != data) in bwrite()
112 free(p2); in bwrite()