File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 10921092\item For the file to be mapped into memory it is first necessary to open it
10931093via \texttt {open }. The access mode in \texttt {prot } cannot be less restrictive
10941094than specified in the mode for \texttt {open }.
1095- \item The use of \texttt {MAP\_ FIXED } is not recommended, since it hampers
1096- portability of the code. Also, it removes any existing mappings at that
1097- address. Further, it does not work well with ASLR (Address Space Layout
1098- Randomization) which is frequently used in current Unix systems for dynamically
1099- linked programs.
1095+ \item The use of \texttt {MAP\_ FIXED } is not recommended as it hampers
1096+ portability of the code. It also removes any existing mappings at that address
1097+ and does not work well with ASLR (Address Space Layout Randomization) which is
1098+ frequently used in current Unix systems for dynamically linked programs.
11001099\item \textbf {warning: } w.r.t. \texttt {MAP\_ SHARED } -- if the file is truncated
11011100by another process so that the truncation affects the mapped part, the access
11021101to such area results in the \texttt {SIGBUS } resp. \texttt {SIGSEGV } or signal
You can’t perform that action at this time.
0 commit comments