Differences

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

Link to this comparison view

good_text_i_o_practice [2013/01/16 08:03]
sparre [Line by line] Proper exception handlers and a note on race conditions.
good_text_i_o_practice [2013/01/16 08:08] (current)
sparre [POSIX.Memory_Mapping] It is not an _exact_ solution. ;-)
Line 141: Line 141:
 ==== POSIX.Memory_Mapping ==== ==== POSIX.Memory_Mapping ====
  
-The [[#​posixmemory_mapping|POSIX.Memory_Mapping]] solution for reading an entire file into memory ​is a good and valid solution to this task as well.  ​It has some limitations which makes it irrelevant for some purposes:+The [[#​posixmemory_mapping|POSIX.Memory_Mapping]] solution for reading an entire file into memory ​practically solves ​this task as well.  ​Still, it has some limitations which may make it irrelevant for some purposes:
   * It only works for an actual file (i.e. one stored on a file system). ​ Specifically it doesn'​t work for standard input, pipes and TCP connections.   * It only works for an actual file (i.e. one stored on a file system). ​ Specifically it doesn'​t work for standard input, pipes and TCP connections.
   * It is not line oriented (i.e. you have to parse line-breaks yourself).   * It is not line oriented (i.e. you have to parse line-breaks yourself).
   * It requires an implementation of the POSIX Ada API (for example FLORIST or WPOSIX).   * It requires an implementation of the POSIX Ada API (for example FLORIST or WPOSIX).

Navigation