Home
last modified time | relevance | path

Searched refs:file_addr (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/test/smbclient-tests/cmd/rw_mmap/
H A Drw_mmap.c46 char *file_addr; in main() local
120 file_addr = mmap(NULL, filesize, in main()
122 if (file_addr == MAP_FAILED) { in main()
137 while (p < file_addr + filesize) { in main()
157 while (p < file_addr + filesize) { in main()
158 if (p + blksize > file_addr + filesize) in main()
159 blksize = file_addr + filesize - p; in main()
180 while (p < file_addr + filesize) { in main()
181 if (p + blksize > file_addr + filesize) in main()
182 blksize = file_addr + filesize - p; in main()
[all …]
/illumos-gate/usr/src/test/smbclient-tests/cmd/close_wr/
H A Dclose_wr.c40 char *file_addr; in main() local
69 file_addr = mmap(NULL, filesize, in main()
71 if (file_addr == MAP_FAILED) { in main()
77 memset(file_addr, 0, filesize); in main()
90 for (i = 0, p = file_addr; i < 4; i++, p += blksize) { in main()
95 if (msync(file_addr, filesize, MS_SYNC) == -1) { in main()
101 if (munmap(file_addr, filesize) == -1) { in main()
/illumos-gate/usr/src/test/smbclient-tests/cmd/mkfile_mmap/
H A Dmkfile_mmap.c46 char *file_addr; in main() local
135 file_addr = mmap(NULL, blksize, in main()
137 if (file_addr == MAP_FAILED) { in main()
144 p = file_addr; in main()
145 q = file_addr + blksize - K; in main()
154 (i * blksize) + (p - file_addr)); in main()
159 if (msync(file_addr, blksize, MS_SYNC) == -1) { in main()
165 if (munmap(file_addr, blksize) == -1) { in main()
/illumos-gate/usr/src/test/smbclient-tests/cmd/no_close/
H A Dno_close.c37 char *file_addr; in main() local
66 file_addr = mmap(NULL, filesize, in main()
68 if (file_addr == MAP_FAILED) { in main()
76 memset(file_addr + offset, c[i], blksize); in main()
78 memset(file_addr + offset, c[i], filesize - offset); in main()