File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11151115however it is not possible to write beyond the end of the file and thus
11161116extend the file - the process would otherwise receive the \texttt {SIGBUS } or
11171117\texttt {SIGSEGV } signal, see example \example {mmap/lseek.c}.
1118- The signal is also received when attempting to write to file mapped read-only.
1119- (this makes sense, the assignment does not have a return value which can be
1120- tested)
1118+ The signal is also received when attempting to write to a file mapped read-only
1119+ -- and that makes sense as there is no way to indicate (and test) a failed
1120+ assignment operation.
11211121\item the mapping is done in whole pages, the \texttt {off } values have to
11221122be aligned correctly (also when using \texttt {MAP\_ FIXED } the \texttt {addr }).
11231123Last page after the end of file is padded with zeroes and this section is
You can’t perform that action at this time.
0 commit comments