dl-syscalls.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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, write to
  14. the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
  15. USA. */
  16. #ifdef __NR_sram_alloc
  17. #define __NR__dl_sram_alloc __NR_sram_alloc
  18. static __always_inline _syscall2(__ptr_t, _dl_sram_alloc,
  19. size_t, len, unsigned long, flags)
  20. #endif
  21. #ifdef __NR_sram_free
  22. #define __NR__dl_sram_free __NR_sram_free
  23. static __always_inline _syscall1(int, _dl_sram_free, __ptr_t, addr)
  24. #endif
  25. #ifdef __NR_dma_memcpy
  26. #define __NR__dl_dma_memcpy __NR_dma_memcpy
  27. static __always_inline _syscall3(__ptr_t, _dl_dma_memcpy,
  28. __ptr_t, dest, __ptr_t, src, size_t, len)
  29. #endif
  30. #define __UCLIBC_MMAP_HAS_6_ARGS__