File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 10791079via \texttt {open }. The access mode in \texttt {prot } cannot be `` higher'' than
10801080specified in the mode for \texttt {open }.
10811081\item The use of \texttt {MAP\_ FIXED } is not recommended, since it hampers
1082- portability of the code.
1082+ portability of the code. Also, it removes any existing mappings at that
1083+ address. Further, it does not work well with ASLR (Address Space Layout
1084+ Randomization) which is frequently used in current Unix systems for dynamically
1085+ linked programs.
10831086\item \textbf {warning: } w.r.t. \texttt {MAP\_ SHARED } -- if the file is truncated
10841087by another process so that the truncation affects the mapped part, the access
10851088to such area results in the \texttt {SIGBUS } resp. \texttt {SIGSEGV } or signal
You can’t perform that action at this time.
0 commit comments