Skip to content

Commit 3fefefb

Browse files
committed
eradicate the SysV shared memory for good
1 parent bab621f commit 3fefefb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

proc.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
\item The sections for initialized and non-initialized variables and heap are
3434
considered as data
3535
\item It is also possible to connect segments of shared memory
36-
(\texttt{shmat}) or files (\texttt{mmap}) into the address space.
36+
(\texttt{shm\_open}) or files (\texttt{mmap}) into the address space.
3737
\item The text is shared between all processes which execute the same code.
3838
The data segment and stack are private for each process.
3939
\item Each system can use a different layout of a process address space
@@ -1178,8 +1178,8 @@
11781178
automatically grow mapped object when accessing beyond its current end.
11791179
\end{itemize}
11801180
\item It is possible to share anonymous mapping between processes using
1181-
\texttt{fork()}. The only alternative is shared memory established using
1182-
\texttt{shmat}.
1181+
\texttt{fork()}. The alternative is shared memory established using
1182+
\texttt{shm\_open} (\pageref{POSIX_IPC}).
11831183
\item Example of a system command using memory mapped files is \texttt{cat(1)}
11841184
on Solaris (for regular files). Using mapped memory is more efficient than
11851185
calling \texttt{read} repeatedly, saving the overhead necessary for switching to

synchro.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@
669669

670670
%%%%%
671671

672+
\hlabel{POSIX_IPC}
673+
672674
ifdef([[[NOSPELLCHECK]]], [[[
673675
\pdfbookmark[1]{shm\_open, sem\_open, mq\_open}{posixipc}
674676
]]])

0 commit comments

Comments
 (0)