Skip to content

Commit 3f8180c

Browse files
committed
Fixed factual error.
1 parent 6f851f7 commit 3f8180c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

proc.tex

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,11 +1207,11 @@
12071207
12081208
fd = \emprg{open}(argv[1], O\_RDWR);
12091209
fsz = \emprg{lseek}(fd, 0, SEEK\_END);
1210-
p1 = addr = \emprg{mmap}(0, fsz, PROT\_READ|PROT\_WRITE,
1211-
MAP\_SHARED, fd, 0);
1210+
p1 = addr = \emprg{mmap}(0, fsz, PROT\_READ | PROT\_WRITE,
1211+
MAP\_SHARED, fd, 0);
12121212
p2 = p1 + fsz - 1;
12131213
while(p1<p2) \{
1214-
c = *p1; *p1++ = *p2; *p2-- = c;
1214+
c = *p1; *p1++ = *p2; *p2-- = c;
12151215
\}
12161216
\emprg{munmap}(addr, fsz);
12171217
\emprg{close}(fd);
@@ -1241,7 +1241,7 @@
12411241
\begin{itemize}
12421242
\item loads \emph{path} unless already loaded, returns
12431243
a \emsl{handle} or \texttt{NULL}
1244-
\item in \emph{mode} there is an OR combination of \texttt{RTLD\_NOW} (immediate
1244+
\item \emph{mode} is an OR combination of \texttt{RTLD\_NOW} (immediate
12451245
bind), \texttt{RTLD\_LAZY} (bound when needed), \texttt{RTLD\_GLOBAL}
12461246
(symbols accessible from all modules), \texttt{RTLD\_LOCAL} (symbols accessible
12471247
through the handle only)
@@ -1300,8 +1300,6 @@
13001300
For \funnm{dlopen}, the default is \texttt{RTLD\_LOCAL}. It means
13011301
the same library can be mapped multiple times via \funnm{dlopen} and the
13021302
symbols in the mapped instances of the same library will not overlap.
1303-
However, all globally mapped symbols from there are shared, e.g.
1304-
\texttt{errno}.
13051303
\end{itemize}
13061304
\item \label{RTLD_NEXT} Special handle \texttt{RTLD\_NEXT} searches the symbol
13071305
only in libraries loaded after the library that called \funnm{dlsym}. Handy for

0 commit comments

Comments
 (0)