dl-syscalls.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Copyright (C) 2003, 2004 Red Hat, Inc.
  2. Contributed by Alexandre Oliva <aoliva@redhat.com>
  3. This file is part of uClibc.
  4. uClibc is free software; you can redistribute it and/or modify it
  5. under the terms of the GNU Lesser General Public License as
  6. published by the Free Software Foundation; either version 2.1 of the
  7. License, or (at your option) any later version.
  8. uClibc is distributed in the hope that it will be useful, but WITHOUT
  9. ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with uClibc; see the file COPYING.LIB. If not, see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifdef __NR_sram_alloc
  16. #define __NR__dl_sram_alloc __NR_sram_alloc
  17. static __always_inline _syscall2(__ptr_t, _dl_sram_alloc,
  18. size_t, len, unsigned long, flags)
  19. #endif
  20. #ifdef __NR_sram_free
  21. #define __NR__dl_sram_free __NR_sram_free
  22. static __always_inline _syscall1(int, _dl_sram_free, __ptr_t, addr)
  23. #endif
  24. #ifdef __NR_dma_memcpy
  25. #define __NR__dl_dma_memcpy __NR_dma_memcpy
  26. static __always_inline _syscall3(__ptr_t, _dl_dma_memcpy,
  27. __ptr_t, dest, __ptr_t, src, size_t, len)
  28. #endif
  29. #define __UCLIBC_MMAP_HAS_6_ARGS__