Cleaned up send_message, corrected errno scope, added errno support.
authorPaul Pearce <pearce@eecs.berkeley.edu>
Thu, 4 Jun 2009 01:15:30 +0000 (21:15 -0400)
committerKevin Klues <klueska@cs.berkeley.edu>
Fri, 5 Jun 2009 01:24:39 +0000 (18:24 -0700)
commit9794e9a8f0218a5b98a4e1c13efd6b7d6cfb64bb
tree36da6479de45209f8255070008bce7428f2b163a
parenta73f5679929168d1957818c36d05588b5db5729b
Cleaned up send_message, corrected errno scope, added errno support.

Rewrote send_message to reduce redundent code. Also made changes to
function to facilitate reporting errno for all file io syscalls. Made
change to the file syscalls themselves to deal with errno reporting.
Removed #undef .. extern in newlib_backend.h that was creating 2 copies
of errno. This now lets userlab apps get access to errno by simply
including errno.h. Also made various housekeeping code changes.

Created a new test file, file_error to test errno functionality, and put
hooks into matrix.c.
user/apps/parlib/Makefrag
user/apps/parlib/file_error.c [new file with mode: 0644]
user/apps/parlib/matrix.c
user/parlib/inc/newlib_backend.h
user/parlib/src/newlib_backend.c