core: Return a file descriptor from open_config()
authorMatt Fleming <matt.fleming@linux.intel.com>
Mon, 6 Jun 2011 21:17:03 +0000 (22:17 +0100)
committerMatt Fleming <matt.fleming@linux.intel.com>
Tue, 7 Jun 2011 12:04:23 +0000 (13:04 +0100)
commite7d484dfec2e4e807503dce754be6c54574e4d98
treee78c8e09536d11ca515ab3ae6c58aa6bd07723f2
parentf181c7083a188d7c189323990057b55374908449
core: Return a file descriptor from open_config()

Wrap open_config() the same way that open() wraps open_file(). The
only user of open_config() requires access to a file descriptor so it
makes sense to return a file descriptor.

The file handle implementation is a historic piece of code and this
patch tries to hide it as they will likely be removed at a future
point in time. Furthermore, the file handle code is very core-specific
and should not be exposed to any callers of open_config().

Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
core/Makefile
core/fs/fs.c