db_streams.c 1.7 KB

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