• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1This document defines the coverage for the mmap() function:
2
3Assertion	Tested?
41		Not fully: ** Typed Memory object not tested. Tested file and shared
5memory object.
62		NO: ** Typed Memory object
73		YES
84		NO: ** Typed Memory object not tested
95		YES
106		YES
117		YES
128		NO: ** Typed Memory object
139		YES
1410		YES
1511		YES
1612		YES
1713  		YES
1814		YES
1915  		NO ** May assertion
2016		YES
2117		YES
2218  		YES
2319  		YES
2420		YES
2521		YES
2622  		NO ** Not sure how to get/set the limit of the number of mapped region
27       		** for a process or system.
2823		YES
2924  		YES
3025		YES
3126		NO ** Typed Memory Object
3227		YES
3328  		YES
3429		YES
3530  		NO ** Typed Memory object
3631		YES
37
38NOTE:
39
40Some issues.
41
4211-2: Will fail with glibc-2.3 & linux kernel 2.6.0-test2.
43      The SIGBUS cannot be triggered as expected.
44
4511-3: Same as 11-2.
46
4713-1: Will fail with glibc-2.3 & linux kernel 2.6.0-test2.
48      The file's st_atime will not be updated as expected.
49
5014-1: Will fail with glibc-2.3 & linux kernel 2.6.0-test2.
51      The file's st_ctime and st_mtime will not be updated as expected.
52
5324-2: Will fail with glibc-2.3 & linux kernel 2.6.0-test2.
54      Get EINVAL instead of ENOMEM.
55
5625-1: Freezes with glibc-3.4 & linux kernel 2.5.67
57
5828-1: Will fail with glibc-2.3 & linux kernel 2.6.0-test2.
59
6029-1: Will trigger SIGBUS (freezes with glibc-3.4 * linux kernel 2.5.67)
61
6231-1: Will fail with glibc-2.3 & linux kernel 2.6.0-test2.
63      EXPECT EOVERFLOW but get not error.
64
65