This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
os_cp:pipes_signals [2023/04/26 00:08] jkonczak [Shared memory] |
os_cp:pipes_signals [2023/05/09 23:18] (current) jkonczak [Shared memory] |
||
---|---|---|---|
Line 443: | Line 443: | ||
<html><p style="text-align: center"><object id="svg-object" data="/jkonczak/_media/os_cp:mmap.svg" type="image/svg+xml"></object></p></html> | <html><p style="text-align: center"><object id="svg-object" data="/jkonczak/_media/os_cp:mmap.svg" type="image/svg+xml"></object></p></html> | ||
+ | |||
+ | **To compile programs that use ''shm_open'' with older glibc versions, one must add ''-lrt'' to compile options.** | ||
~~Exercise.#~~ | ~~Exercise.#~~ | ||
Line 499: | Line 501: | ||
char c, text[1022] = {0}; | char c, text[1022] = {0}; | ||
- | scanf("%[^\n]1021", text); | + | scanf("%1021[^\n]", text); |
do { // this reads all remaining characters in this line including '\n' | do { // this reads all remaining characters in this line including '\n' | ||
c = getchar(); | c = getchar(); |