Home | History | Annotate | Download | only in mmap
      1 This document defines the coverage for the mmap() function:
      2 
      3 Assertion	Tested?
      4 1		Not fully: ** Typed Memory object not tested. Tested file and shared
      5 memory object.
      6 2		NO: ** Typed Memory object
      7 3		YES
      8 4		NO: ** Typed Memory object not tested
      9 5		YES
     10 6		YES
     11 7		YES
     12 8		NO: ** Typed Memory object
     13 9		YES
     14 10		YES
     15 11		YES
     16 12		YES
     17 13  		YES
     18 14		YES
     19 15  		NO ** May assertion
     20 16		YES
     21 17		YES
     22 18  		YES
     23 19  		YES
     24 20		YES
     25 21		YES
     26 22  		NO ** Not sure how to get/set the limit of the number of mapped region
     27        		** for a process or system.
     28 23		YES
     29 24  		YES
     30 25		YES
     31 26		NO ** Typed Memory Object
     32 27		YES
     33 28  		YES
     34 29		YES
     35 30  		NO ** Typed Memory object
     36 31		YES
     37 
     38 NOTE:
     39 
     40 Some issues.
     41 
     42 11-2: Will fail with glibc-2.3 & linux kernel 2.6.0-test2.
     43       The SIGBUS cannot be triggered as expected.
     44 
     45 11-3: Same as 11-2.
     46 
     47 13-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 
     50 14-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 
     53 24-2: Will fail with glibc-2.3 & linux kernel 2.6.0-test2.
     54       Get EINVAL instead of ENOMEM.
     55 
     56 25-1: Freezes with glibc-3.4 & linux kernel 2.5.67
     57 
     58 28-1: Will fail with glibc-2.3 & linux kernel 2.6.0-test2.
     59 
     60 29-1: Will trigger SIGBUS (freezes with glibc-3.4 * linux kernel 2.5.67)
     61 
     62 31-1: Will fail with glibc-2.3 & linux kernel 2.6.0-test2.
     63       EXPECT EOVERFLOW but get not error.
     64 
     65