syscalls.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* vi: set sw=4 ts=4: */
  2. /*
  3. * Common header file for uClibc syscalls
  4. *
  5. * Copyright (C) 2001-2004 by Erik Andersen <andersen@codpoet.org>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Library General Public License
  9. * as published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Library General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Library General Public
  18. * License along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  20. * USA
  21. */
  22. #define _GNU_SOURCE
  23. #define _LARGEFILE64_SOURCE
  24. #include <features.h>
  25. #include <errno.h>
  26. #include <sys/types.h>
  27. #include <sys/syscall.h>
  28. #include <endian.h>
  29. #undef __OPTIMIZE__
  30. /* We absolutely do _NOT_ want interfaces silently
  31. * * * renamed under us or very bad things will happen... */
  32. #ifdef __USE_FILE_OFFSET64
  33. # undef __USE_FILE_OFFSET64
  34. #endif