db_streams.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* -*- mode:c; c-file-style:"k&r"; c-basic-offset: 4; tab-width:4; indent-tabs-mode:nil; mode:auto-fill; fill-column:78; -*- */
  2. /* vim: set ts=4 sw=4 et tw=78 fo=cqt wm=0: */
  3. /* Copyright (C) 2014 Stony Brook University
  4. This file is part of Graphene Library OS.
  5. Graphene Library OS is free software: you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public License
  7. as published by the Free Software Foundation, either version 3 of the
  8. License, or (at your option) any later version.
  9. Graphene Library OS is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. /*
  16. * db_stream.c
  17. *
  18. * This file contains APIs to open, read, write and get attribute of
  19. * streams.
  20. */
  21. #include "pal_defs.h"
  22. #include "pal.h"
  23. #include "pal_internal.h"
  24. #include "pal_debug.h"
  25. #include "pal_error.h"
  26. #include "api.h"
  27. void _DkPrintConsole (const void * buf, int size)
  28. {
  29. /* need to be implemented */
  30. }
  31. /* _DkStreamUnmap for internal use. Unmap stream at certain memory address.
  32. The memory is unmapped as a whole.*/
  33. int _DkStreamUnmap (void * addr, int size)
  34. {
  35. return -PAL_ERROR_NOTIMPLEMENTED;
  36. }
  37. /* _DkSendHandle for internal use. Send a PAL_HANDLE over the given
  38. process handle. */
  39. int _DkSendHandle (PAL_HANDLE hdl, PAL_HANDLE cargo)
  40. {
  41. return -PAL_ERROR_NOTIMPLEMENTED;
  42. }
  43. /* _DkReceiveHandle for internal use. Receive and return a PAL_HANDLE over the
  44. given PAL_HANDLE else return negative value. */
  45. int _DkReceiveHandle(PAL_HANDLE hdl, PAL_HANDLE * cargo)
  46. {
  47. return -PAL_ERROR_NOTIMPLEMENTED;
  48. }