qemu-os.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * FreeBSD conversion extern declarations
  3. *
  4. * Copyright (c) 2013 Stacey D. Son
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef QEMU_OS_H
  20. #define QEMU_OS_H
  21. /* qemu/osdep.h pulls in the rest */
  22. #include <sys/acl.h>
  23. #include <sys/mount.h>
  24. #include <sys/timex.h>
  25. #include <sys/rtprio.h>
  26. #include <sys/select.h>
  27. #include <sys/socket.h>
  28. #include <netinet/in.h>
  29. struct freebsd11_stat;
  30. /* os-stat.c */
  31. abi_long h2t_freebsd11_stat(abi_ulong target_addr,
  32. struct freebsd11_stat *host_st);
  33. abi_long h2t_freebsd11_nstat(abi_ulong target_addr,
  34. struct freebsd11_stat *host_st);
  35. abi_long t2h_freebsd_fhandle(fhandle_t *host_fh, abi_ulong target_addr);
  36. abi_long h2t_freebsd_fhandle(abi_ulong target_addr, fhandle_t *host_fh);
  37. abi_long h2t_freebsd11_statfs(abi_ulong target_addr,
  38. struct freebsd11_statfs *host_statfs);
  39. abi_long target_to_host_fcntl_cmd(int cmd);
  40. abi_long h2t_freebsd_stat(abi_ulong target_addr,
  41. struct stat *host_st);
  42. abi_long h2t_freebsd_statfs(abi_ulong target_addr,
  43. struct statfs *host_statfs);
  44. #endif /* QEMU_OS_H */