target_structs.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * SPARC specific structures for linux-user
  3. *
  4. * Copyright (c) 2013 Fabrice Bellard
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library 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 GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef TARGET_STRUCTS_H
  20. #define TARGET_STRUCTS_H
  21. struct target_ipc_perm {
  22. abi_int __key; /* Key. */
  23. abi_uint uid; /* Owner's user ID. */
  24. abi_uint gid; /* Owner's group ID. */
  25. abi_uint cuid; /* Creator's user ID. */
  26. abi_uint cgid; /* Creator's group ID. */
  27. #if TARGET_ABI_BITS == 32
  28. abi_ushort __pad1;
  29. abi_ushort mode; /* Read/write permission. */
  30. abi_ushort __pad2;
  31. #else
  32. abi_ushort mode;
  33. abi_ushort __pad1;
  34. #endif
  35. abi_ushort __seq; /* Sequence number. */
  36. uint64_t __unused1;
  37. uint64_t __unused2;
  38. };
  39. struct target_shmid_ds {
  40. struct target_ipc_perm shm_perm; /* operation permission struct */
  41. #if TARGET_ABI_BITS == 32
  42. abi_uint __pad1;
  43. #endif
  44. abi_ulong shm_atime; /* time of last shmat() */
  45. #if TARGET_ABI_BITS == 32
  46. abi_uint __pad2;
  47. #endif
  48. abi_ulong shm_dtime; /* time of last shmdt() */
  49. #if TARGET_ABI_BITS == 32
  50. abi_uint __pad3;
  51. #endif
  52. abi_ulong shm_ctime; /* time of last change by shmctl() */
  53. abi_long shm_segsz; /* size of segment in bytes */
  54. abi_ulong shm_cpid; /* pid of creator */
  55. abi_ulong shm_lpid; /* pid of last shmop */
  56. abi_long shm_nattch; /* number of current attaches */
  57. abi_ulong __unused1;
  58. abi_ulong __unused2;
  59. };
  60. #endif