<rdar://problem/13963648>

Changes after feedback:
Directly use function pointer, just to be safer on 10.8.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@182529 91177308-0d34-0410-b5e6-96231b3b80d8
Added a new "lldb" log channel named "os" for the OperatingSystem plug-ins to use.

Added logging for the OS plug-in python objects in OperatingSystemPython so we can see the python dictionary returned from the plug-in when logging is enabled.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@182530 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed a file leak introduced with my last checkin. Also be sure to include <stdio.h> just in case.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@182537 91177308-0d34-0410-b5e6-96231b3b80d8
Cleaned up the File API a bit.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@182538 91177308-0d34-0410-b5e6-96231b3b80d8
Fix shutdown to correctly close stdout and stop showing garbage characters on exit.
Patch by Matthew Sorrels


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@182539 91177308-0d34-0410-b5e6-96231b3b80d8
Don't compare 4 characters on a 2 character string.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@182540 91177308-0d34-0410-b5e6-96231b3b80d8