User Tools

Site Tools


os_cp:pipes_signals

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
os_cp:pipes_signals [2023/04/25 22:08] – [Shared memory] jkonczakos_cp:pipes_signals [2023/05/09 21:18] (current) – [Shared memory] jkonczak
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();
os_cp/pipes_signals.1682460494.txt.gz · Last modified: (external edit)