os_cp:pipes_signals
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| os_cp:pipes_signals [2023/04/18 21:50] – utworzono jkonczak | os_cp:pipes_signals [2023/05/09 21:18] (current) – [Shared memory] jkonczak | ||
|---|---|---|---|
| Line 120: | Line 120: | ||
| \\ | \\ | ||
| < | < | ||
| - | and '' | + | and '' |
| + | \\ | ||
| + | The '' | ||
| - | ~~Exercise.# | + | ~~Exercise.# |
| ===== Signals ===== | ===== Signals ===== | ||
| - | Disclaimer: these materials contain the very basics signals. | + | Disclaimer: these materials contain the very basics |
| - | For a comprehensive | + | For comprehensive |
| [[https:// | [[https:// | ||
| Line 428: | Line 430: | ||
| To ensure that the file is large enough, one can use the following functions: | To ensure that the file is large enough, one can use the following functions: | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| To clean up the memory mapping, one has to use the | To clean up the memory mapping, one has to use the | ||
| Line 441: | Line 443: | ||
| < | < | ||
| + | |||
| + | **To compile programs that use '' | ||
| ~~Exercise.# | ~~Exercise.# | ||
| Line 497: | Line 501: | ||
| char c, text[1022] = {0}; | char c, text[1022] = {0}; | ||
| - | scanf(" | + | scanf(" |
| do { // this reads all remaining characters in this line including ' | do { // this reads all remaining characters in this line including ' | ||
| c = getchar(); | c = getchar(); | ||
| Line 575: | Line 579: | ||
| } | } | ||
| </ | </ | ||
| - | |||
| - | //one must use msync() | ||
| - | //to sync data to disk | ||
| ~~META: | ~~META: | ||
os_cp/pipes_signals.1681854603.txt.gz · Last modified: (external edit)