Skip to content
Snippets Groups Projects
  1. Dec 09, 2013
  2. Dec 08, 2013
  3. Dec 04, 2013
  4. Dec 03, 2013
  5. Dec 02, 2013
    • Avi Kivity's avatar
      file: make sys_open() allocate the file structure · 153f6513
      Avi Kivity authored
      
      Currently sys_open() receives an uninitialized file structure from its
      callers, which is awkward as the callers must handle opening a file in
      two steps.  It also doesn't fit well with C++'s notion of an object being
      always fully initialized and valid.
      
      Fix by making sys_open() allocate and return the file structure.  This also
      fixes a window in open() where an fd would point to an uninitialized file
      (between fdalloc() and sys_open()).
      
      Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
      153f6513
  6. Dec 01, 2013
  7. Nov 29, 2013
Loading